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

Home » Public Forums » archive » Re: Use the device fonts for Ytitle on screen
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Use the device fonts for Ytitle on screen [message #68629 is a reply to message #68627] Wed, 11 November 2009 14:28 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
I wrote just a couple of minutes ago:


> Or, if it's kludgy solutions you are after, draw the plot
> in PostScript, convert it to PNG with ImageMagick, and display
> *that* in an un-resizable IDL graphics window. The Y axis will
> look great! ;-)

Here is my version of KludgePlot. It works great! Fabulous
graphics fonts!! :-)

PRO KludgePlot, x, y, _EXTRA=extra

CASE N_Params() OF
0: BEGIN
dep = Indgen(11)
indep = Indgen(N_Elements(dep))
xtitle='Time Dimension'
ytitle='Signal Strength'
END
1: BEGIN
dep = x
indep = Indgen(N_Elements(x))
END
2: BEGIN
dep = y
indep = x
END
ENDCASE

PS_START, FILENAME='myplot.ps'
Plot, indep, dep, XTITLE=xtitle, YTITLE=ytitle,
_STRICT_EXTRA=extra
PS_END, /PNG

image = Read_Png('myplot.png')
dims = Size(image, /DIMENSIONS)
Window, /Free, XSIZE=dims[1], YSIZE=dims[2]
TVImage, image
File_Delete, 'myplot.png'
File_Delete, 'myplot.ps'
END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tough System Variable Question for the IDL Gurus
Next Topic: Re: Tough System Variable Question for the IDL Gurus

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

Current Time: Sat Oct 11 10:10:17 PDT 2025

Total time taken to generate the page: 0.32248 seconds