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 #75300 is a reply to message #75226] Tue, 22 February 2011 13:06 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Jeremy Bailin wrote:
> 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

Just for completeness, same goes for function graphics in IDL v8+

IDL> pA=plot([0,1],[0,1])
IDL> pB=plot([0,2],[0,2])
IDL> pA=plot([0.1], [0.8],symbol='diamond',/overplot)

cheers,

paulv
[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: Thu Oct 09 23:54:57 PDT 2025

Total time taken to generate the page: 0.08406 seconds