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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Multiple plotting windows? [message #42848] Thu, 03 March 2005 17:21 Go to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
David Fanning wrote:
> Mark Hadfield writes:
>> Yeah, well, the number of Linux users is steadily increasing and I think
>> it's fair to say the tone is deteriorating at the same time.
>
> I have to admit, if I had to talk about regular expressions
> all day, I'd get peevish, too.

I'm just embarassed over PNT_LINE thing.


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: Multiple plotting windows? [message #42851 is a reply to message #42848] Thu, 03 March 2005 15:56 Go to previous messageGo to next message
optiksguy is currently offline  optiksguy
Messages: 5
Registered: March 2005
Junior Member
Thank you one and all, guess I didn't read all the relevant docs!

Best,

John
Re: Multiple plotting windows? [message #42852 is a reply to message #42851] Thu, 03 March 2005 15:30 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> Yeah, well, the number of Linux users is steadily increasing and I think
> it's fair to say the tone is deteriorating at the same time.

I have to admit, if I had to talk about regular expressions
all day, I'd get peevish, too.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Multiple plotting windows? [message #42853 is a reply to message #42852] Thu, 03 March 2005 15:08 Go to previous messageGo to next 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
Re: Multiple plotting windows? [message #42854 is a reply to message #42853] Thu, 03 March 2005 15:08 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
optiksguy wrote:
> Hello all:
> 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.

Yeah, well, the number of Linux users is steadily increasing and I think
it's fair to say the tone is deteriorating at the same time. When the
proportion of Linux users reaches 90%, I predict this group will be just
as bad as the Madrake Linux one and I won't bother with it any more,
except to make occasional "Windows rules" comments to stir up the angry
hordes.

> 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.

Read about WINDOW and WSET.


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: Multiple plotting windows? [message #42855 is a reply to message #42853] Thu, 03 March 2005 15:05 Go to previous messageGo to next 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/
Re: Multiple plotting windows? [message #42996 is a reply to message #42848] Thu, 03 March 2005 19:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> I'm just embarassed over PNT_LINE thing.

Ah, let it go and head over to the pub for a beer.
It won't be the last time you get to waste a couple of
hours if you work like me. :-)

Cheers,

David

P.S. I did think it was a heroic effort! And how would
you have ever discovered PNT_LINE on your own?
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Fri Oct 10 04:47:34 PDT 2025

Total time taken to generate the page: 0.79647 seconds