comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Xwindow, TVimage and PostScript fonts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Xwindow, TVimage and PostScript fonts [message #16768] Thu, 19 August 1999 00:00
roy.hansen is currently offline  roy.hansen
Messages: 8
Registered: September 1998
Junior Member
Hi,

I have been playing around with David Fanning's example programs to
see if I can snatch a few ideas for my next project. BTW, Xwindow is a
fantastic program.

One thing that I need is a plot of an image with axis and a colorbar that
easily can be printed to high quality PostScript.
Easy, I thougth. Use xwindow, tvimage and colorbar as in the following
example:

;------------- Start hurrah.pro -------------------

PRO hurrah, image, Xxx=xxx, Yyy=yyy

erase
pos = [0.05, 0.1, 0.8, 0.9]
tvimage, image, position=pos
!p.position = pos
plot, xxx, yyy, /xsty, /ysty, /nodata, /noerase

colorbar, position=[0.85, 0.1, 0.95, 0.9], /VERT, /RIGHT

END ;------------ hurrah.pro ----------------------


image = hanning(64) # hanning(64)
xwindow, 'hurrah', image*200, Xxx=[0,1], Yyy=[0,1], /Out

END ;-------------- main.pro ----------------------

This works except one detail:
How do I get readable fonts (i.e. PostScript and NOT Hershey fonts) on the PS output?

I know this post should be sent directly to David Fanning but he answers all the questions on
this newsgroup anyhow :-)

Any suggestions.


--RoyH
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Displaying 24-bit Images on PCs
Next Topic: Problem array subscripting

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:46:23 PDT 2025

Total time taken to generate the page: 0.00429 seconds