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 #82288 is a reply to message #82286] Fri, 23 November 2012 05:48 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Friday, November 23, 2012 2:40:29 PM UTC+1, David Fanning wrote:
> 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.")

I knew there was an easier way...

Oh well, gotta through away a few lines of code.

Thanks,
Helder
[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: Thu Oct 09 19:57:12 PDT 2025

Total time taken to generate the page: 0.55724 seconds