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

Home » Public Forums » archive » Re: Multiple 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: Multiple plotting windows? [message #42853 is a reply to message #42852] Thu, 03 March 2005 15:08 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> Then window pops up with the plot and the title "IDL 0" in the title
> bar. What I can't figure out is how to plot a new data set in a new
> window, which leaves the original window undisturbed. There seems like
> there should be a simple keyword for this but I can't seem to figure it
> out (I've read the relevant IDL docs several times, the closest thing
> is !p.multi but that doesn't do it).

Use the window command to create a new window on the screen. You'll
also want to look at the wset, wdelete and wshow commands in order to
work with multiple windows at one time.

Each window has an ID associated with it. When you create a new window,
get the ID of the window and then you can jump back and forth between
which window you're plotting to. Even though commands like plot will
create a window for you, it's easier to track this if you explicitly
create the window yourself.

; Create two windows
window, 0
window, 1

; Draw something to the first window and then the second
wset, 0
plot, findgen(11)
wset, 1
plot, findgen(11)


-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: vector layer comparison in IDL
Next Topic: On Pointers and Culture

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

Current Time: Sat Nov 29 22:11:43 PST 2025

Total time taken to generate the page: 0.00226 seconds