Re: switching between >2 graphs (IDL)?? [message #4655] |
Thu, 13 July 1995 00:00 |
lrn
Messages: 10 Registered: May 1993
|
Junior Member |
|
|
Jan Willem Hartman (hartman@fys.ruu.nl) wrote:
: Hello all,
: I would like to be able to plot my data point after point, in two
: graphs. So, point1 in graph1, point1 in graph2, point2 in graph1,
: point2 in graph2 etc., in one window. Is there a way to switch back
: and forth between the several graphs on a window?
: If anyone knows and is willing to tell me, thanks in advance.
Hi,
If you have 2 different plots in two different windows,
what you need to do is save the !P, !X and !Y system variables
between plots. For example:
wset,1
plot,x1,y1,psym=4,xrange=[5,15],yrange=....
savep1=!p
savex1=!x
savey1=!y
wset,2
plot,x2,y2,...
savep2=!p
savex2=!x
savey2=!y
;Now to plot another point in plot 1:
wset,1
!p=savep1
!x=savex1
!y=savey1
oplot,x1_new,y1_new ;or plots or whatever.
:
:
:
etc
I don't know if this will work with both plots in the same window (you
might need to do stuff with the position keyword)
Hope this helps,
Larry
____________________________________________________________ _______________
| Larry R. Nittler Human beings were invented by water as |
| lrn@howdy.wustl.edu a means of transporting itself from |
| Interstellar Dust Buster one place to another. -- Tom Robbins |
|
|
|