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

Home » Public Forums » archive » Re: Plotting to more than one window
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: Plotting to more than one window [message #34178 is a reply to message #34177] Fri, 21 February 2003 09:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matt Feinstein (notspecified@dev.null) writes:

> I'm trying to plot data alternately, back and forth, to more than one
> window, and have discovered, to my horror, that OPLOT uses the
> coordinate conversion parameters for the -last- 'PLOT' procedure,
> regardless of what the current window you're plotting in happens to
> be. I can think of various messy and unpleasant ways to get the
> plotting coordinate parameters I want in the windows I want, when I
> want them-- but it would be nice if there was a neat and pleasant way
> to do it-- is there?

Do you mean without using an object? Then, no, there
is no neat and pleasant way to do it. :-)

The messy way, of course, is just to save the appropriate
system variables:

Window, 1
Plot, data
p1 = !P
x1 = !X
y1 = !Y
z1 = !Z
m1 = !Map

Window, 2
Plot, moredata
p2 = !P
x2 = !X
y2 = !Y
z2 = !Z
m2 = !Map

Then, when you want to overplot, restore everything:

WSet, 1
!P = p1
!X = x1
!Y = y1
!Z = z1
!Map = m1
OPlot, somedataOn1

Cheers,

David

P.S. I can think of several interesting ways to do this with
an object. And it would be neat and pleasant, but you would
have to remember to destroy the object when you were done
with it. If your mama trained you right, this probably wouldn't
be a problem. :-)

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Does CONVOL convolute
Next Topic: Upgrade the 'double' accuracy in IDL 5.5

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

Current Time: Fri Oct 10 08:23:45 PDT 2025

Total time taken to generate the page: 0.47924 seconds