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

Home » Public Forums » archive » Re: PS file and annotate.pro?
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: PS file and annotate.pro? [message #11742 is a reply to message #11741] Fri, 15 May 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
John Kwiatkowski (johnmk@shell.clark.net) writes:

> I'm probably missing something simple here... I hope. I want
> to use annotate (IDL 5.0) to create a PS file with a plot and
> annotation objects. I believe I'm following the annotate help to the
> letter. Any help would be appreciated.
>
> Thanks,
> John K.
> IDL> set_plot, 'ps
> IDL> device, xsize=5 , ysize=4, /inches
> For my 640 x 512 window
> IDL> plot, findgen(10)
> IDL> set_plot, 'x'
> IDL> plot, findgen(10)
> IDL> annotate
> Color= 0
> I chose, write PostScript -> Objects only
> Saved to 'idl.ps', the file opened by default above
> Then exited annotate widget
> IDL> set_plot, 'ps'
> IDL> device, /close
>
> 'idl.ps' is now just a blank page. It does have a
> PS header and Prolog in it.

I don't know. I don't use Annotate and when I try to execute
the code you have here Annotate crashes with a CASE STATEMENT FOUND
NO MATCHES error. (Sigh...)

But my reading of the documentation (no guarantees) would
suggest that you don't need that last Set_Plot, 'PS'
command. I think what this is doing is causing the file
that you actually created (and Annotate wrote into, presumably)
to be overwritten. You might try giving your PostScript files
unique names with the Filename keyword so this doesn't surprise
you like this. :-)

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL v5.1 impressions
Next Topic: Programming style

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

Current Time: Sun Nov 30 07:14:26 PST 2025

Total time taken to generate the page: 0.15982 seconds