Re: online visualisation with pv-wave 6.02 [message #8652 is a reply to message #8651] |
Fri, 11 April 1997 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Stephan Puchegger <a9127383@unet.univie.ac.at> writes:
> I need to draw different plots in different windows.
>
> Now my problem is:
> I open one window and draw the axis and grid for parameter one.
> I open another window for a different parameter with an other yrange on
> the axis.
>
> Now the data comes tumbling in from the machine -> this is to be plotted
> in the first window, but pv-wave stays with the yrange of the last plot,
> even after switching back to the first window with wset,0. That means:
> oplot and plots still think about the last plot command, whereas it is
> the previous plot command they should be attached to.
>
> Is there any fast way to tell pv-wave what i really want?
You have to save the plot parameters established for the various
windows if you want to go back to those windows (plots, really)
and overplot on them. In practice this usually means keeping
track of the !P, !X, and !Y system variables for each window.
The sequence of commands might look like this:
; Plot first plot in window 1. Store plot parameters.
Window, 1
Plot, data
p1=!P & x1=!X & y1 !Y
; Plot first plot in window 2. Store plot parameters.
Window, 2
Plot, moredata
p2=!P & x2=!X & y2 !Y
; Return to window 1, restore window 1 parameters and overplot.
WSet, 1
!P=p1 & !X=x1 & !Y=y1
OPLOT, stillmoredata
Cheers!
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
|
|
|