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 #42855 is a reply to message #42853] Thu, 03 March 2005 15:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
John writes:

> First of I would like to say that I really like the tone of this group.
> I've been reading this group and a group on Mandrake Linux for a few
> weeks now, and boy is there a difference. Please keep up the good work.

I'll bet they don't talk about tennis on that other group!

> Now to my question. Say I plot a data set via the usual methods, i.e.
>
> plot, values.solar[*,0], values.solar[*,1], blah blah blah.
>
> 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).
>
> I'm sure it is something simply and silly, but I would greatly
> appreciate your assistance. Thanks in advance!!

I think you are looking for the WINDOW command:

IDL> Window, 1

gives you a window with graphics window index 1, etc.

To make a window the current graphics window (so you
can draw in it), you do a WSET to the proper window
index number. So, to draw in Window 0 again:

IDL> WSET, 0

To draw into window 1,

IDL> WSET, 1

etc.

The current graphics window is always set in !D.Window:

IDL> Print, !D.Window
1

Cheers,

David

P.S. There are books you can read to answer the most
obvious questions. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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: Tue Dec 02 16:58:14 PST 2025

Total time taken to generate the page: 1.20388 seconds