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

Home » Public Forums » archive » Re: cgplot and the disappearing white axis
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 the disappearing white axis [message #80169 is a reply to message #80168] Sun, 13 May 2012 19:54 Go to previous message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
Alexis writes:

> I am trying to save a multiplot image to a pdf for a presentation.
> when the cgwindow pops up, all is well, everything is there as it
> should be. When I save it to a pdf, only the first plot's axis is
> there. However, this only happens when I specify the background color
> and axes' color (ie not /traditional) and ONLY when I specify the axis
> color to be white. If it is cyan, for example, everything is there in
> the pdf.
>
>
> cgwindow, 'cgplot', x1, y1, axiscolor='white',
> background=cgcolor('black')
>
> cgwindow, 'cgplot', x2, y2, axiscolor='white', /addcmd, /noerase
>
> The multiplot command is there via the position keyword, but not
> included in the example above. Any ideas why white won't give the
> second axes when saved to a pdf?

I would guess because you are confused about what you are doing and
you are confusing the cgWindow. I can hear it going "Huh!" now. :-)

The way you would do a multi-plot command using cgWindow is like this:

cgWindow, WMulti=[0,1,2]
cgPlot, x1, y1, axiscolor='white', background='black', /AddCmd
cgPlot, x2, y2, axiscolor='white', /AddCmd

This will produce the correct PDF file for you.

Cheers,

David
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: cgplot and the disappearing white axis
Next Topic: Re: scalar system variable as single element array

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

Current Time: Fri Oct 10 00:37:02 PDT 2025

Total time taken to generate the page: 2.40213 seconds