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

Home » Public Forums » archive » Re: howto select and deselect plotting windows?
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: howto select and deselect plotting windows? [message #75226 is a reply to message #75225] Mon, 21 February 2011 12:01 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Monday, February 21, 2011 1:13:09 PM UTC-5, David Fanning wrote:
> simona bellavista writes:
>
>> I am looking for a way to select and deselect plotting windows, going
>> back and forth between them.
>> I mean I would like to
>>
>> select <window 0>
>> plot, x1, y1
>>
>> and then
>>
>> select <window 1>
>> plot, t, s
>>
>> and then again
>>
>> select <window 0>
>> oplot, x2, y2
>>
>> How do I do this? I remember I read something like that a while ago,
>> but now I cannot find it anymore...
>
> You use WSet to select the current graphics window.
> Or, if you are using resizeable graphics windows
> from the Coyote Graphics System, you would use
> cgSet.
>
> http://www.idlcoyote.com/graphics_tips/coyote_graphics.html

Incidentally, a *huge* advantage to doing it within cgWindows is that the data coordinate system of each window is preserved when you switch back and forth. So if you overplot things on window 0, they end up placed correctly on window 0's coordinate system. Compare the locations of the plusses:

IDL> window,0
IDL> plot, [0,1],[0,1]
IDL> window,1
IDL> plot, [0,2],[0,2]
IDL> wset,0
IDL> oplot, psym=1, [0.1], [0.8]

with

IDL> cgwindow, 'plot', [0,1],[0,1]
IDL> wids = cgquery()
IDL> cgwindow, 'plot', [0,2],[0,2]
IDL> cgset, wids[0]
IDL> cgwindow, 'oplot', [0.1],[0.8], psym=1, /addcmd


-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Avoiding multiple or complex WHEREs?
Next Topic: Pixelwise temporal trend, problem with REFORM

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

Current Time: Sat Oct 11 22:02:07 PDT 2025

Total time taken to generate the page: 1.04029 seconds