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

Home » Public Forums » archive » Re: cgplot and eps
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: cgplot and eps [message #82289 is a reply to message #82288] Fri, 23 November 2012 05:40 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
simona bellavista writes:

> I am trying to save a plot to eps, I use the keyword output in cgplot, but this doesn't work with overplot, because it only write to eps the portion of the plot that is being drawn. example:
>
> window,0
> cgerase
> cgplot, x, y, output='out.eps'
> cgplot, x, t, /overplot
>
> and moreover the part that is being printed to eps is not shown in window 0.
> I know I can use ps_start and ps_end, but I would like to know if there is a way that allows me to visualize the plot on x window and to print to eps at the same time.

I would do it this way:

cgplot, x, y, /window
cgplot, x, t, /overplot, /addcmd
cgcontrol, output='out.eps'

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: extract raster statistics from vector
Next Topic: Using TexToIDL in Coyote Graphics Routines

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

Current Time: Wed Oct 08 19:37:26 PDT 2025

Total time taken to generate the page: 0.00498 seconds