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

Home » Public Forums » archive » IDL8.0 plot() function : how to plot to PS file like with DG "Set_Plot"?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL8.0 plot() function : how to plot to PS file like with DG "Set_Plot"? [message #72415] Wed, 15 September 2010 10:26 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

O.k., I finally got IDLv8.0 installed. I plotted the example in the docs:

IDL> t=SIN(2.0*FINDGEN(200)*!PI/25.0)*EXP(-0.02*FINDGEN(200))
IDL> p=plot(t,title="blah",xtitle='x',ytitle='y',color='red')
% Loaded DLM: XML.

O.k., great.

Now I want to plot it directly to a file (like I do with direct graphics after using SET_PLOT,'PS'). I guess the PRINT
method is the go... but how does one specify an output filename? Searching the documentation.... ah, o.k. the SAVE
method is what I need. Cool. I want to save a regular old, non-encapsulated, PostScript file

IDL> p.save,'test.ps'

Running that through ghostview tells me it's an encapsulated file. How to create a regular PS file? Is there no regular
PS support? The 800 pound gorilla in the iTools room was the lousy support for PS output... that silverback is still
hanging around I see. Argh.

On the plus side, finally I can easily add and modify legends. yay!

But, overall, for programmatic output into ps files, direct graphics still wins IMO.

cheers,

paulv

p.s. BTW, what's with the shorthand formatting e.g. "-r2+"? Is ITTVIS trying to make IDL look like matlab?!? :o)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8.0 Barplot can not generate Log X axis
Next Topic: Image and Maps with IDL8

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

Current Time: Wed Oct 08 13:47:31 PDT 2025

Total time taken to generate the page: 0.00473 seconds