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

Home » Public Forums » archive » Re: online visualisation with pv-wave 6.02
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: online visualisation with pv-wave 6.02 [message #8651] Fri, 11 April 1997 00:00
Andre Lodwig is currently offline  Andre Lodwig
Messages: 5
Registered: April 1997
Junior Member
Alfred Priller wrote:

> 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?
>
> Any answer is being appreciated
>
> thanks
>
I am not absolutely sure if I got your problem right,
but I once wrote me the following two progs:

;
;file: getplot.pro
;
; A. Lodwig, 3/95
;
pro setplot,a

!p = a.p
!x = a.x
!y = a.y
!z = a.z
end

function getplot

ret={,p:!p,x:!x,y:!y,z:!z} ;create an unnamed structure
return,ret
end



Just draw your first plot, then do plot1 = getplot(),
do your next plot, then plot2 = getplot() and so on.
If you wish to oplot in one of the previous plots, say
the second one, you have to do 'setplot, plot2' and all
status variables are restored.
I didn't need window switching, but you should be able
to add this to the progs.

Hope this helps,

Andre



--
------------------------------------------------------------ ----------
Andre Lodwig
Institut fuer Kommunikationsakustik _/ _/ _/ _/
Ruhr-Universitaet Bochum (RUB-IKA) _/ _/ _/ _/_/
D-44780 Bochum _/ _/_/ _/_/_/
Phone : +49 234 700 5387 _/ _/ _/ _/ _/
FAX : +49 234 709 4165 _/ _/ _/ _/ _/
email : lodwig@aea.ruhr-uni-bochum.de
------------------------------------------------------------ ----------
Re: online visualisation with pv-wave 6.02 [message #8652 is a reply to message #8651] Fri, 11 April 1997 00:00 Go to previous message
davidf is currently offline  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
-----------------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Vector-drawn fonts on an SGI
Next Topic: online visualisation with pv-wave 6.02

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

Current Time: Wed Oct 08 18:07:30 PDT 2025

Total time taken to generate the page: 0.00370 seconds