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

Home » Public Forums » archive » checking if PS output file already open
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
checking if PS output file already open [message #89280] Wed, 13 August 2014 13:03
scvt is currently offline  scvt
Messages: 2
Registered: May 2009
Junior Member
I'm often looking at graphics output on the screen and use the prompt for a switch to call a chunk of code to send/regenerate the current image to a PS file before advancing to the next dataset.

I know, it's simple to just rename the 'idl.ps' file at the end of the session. But it would be nice if I could issue a DEVICE,FILENAME= statement along with the first SET_PLOT that switches to PS. But this overwrites the previously saved pages each time it's called. It's necessary to set up my own flag to test to avoid repeating the DEVICE statement.

Is there a simpler way to do this?
Something like DEVICE,FILENAME=,/NO_REOPEN would do the trick.

HELP,/DEVICE will show the name of the ps output file if it has been set. Is there a way to querry this information within a procedure? I tried looking for in !D and a few other system variables but couldn't find it.

It's such a minor little thing, but it's irritated me for years!

Thanks for any suggestions.

Richard
[Message index]
 
Read Message
Previous Topic: unwanted totally greek postscript output with coyote IDL
Next Topic: IDL kernel for IPython/Jupyter Notebooks

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

Current Time: Wed Oct 08 11:32:42 PDT 2025

Total time taken to generate the page: 0.00419 seconds