switching between >2 graphs (IDL)?? [message #4667] |
Wed, 12 July 1995 00:00  |
hartman
Messages: 9 Registered: August 1994
|
Junior Member |
|
|
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.
JanWillem
|
|
|
Re: switching between >2 graphs (IDL)?? [message #4745 is a reply to message #4667] |
Fri, 14 July 1995 00:00  |
hartman
Messages: 9 Registered: August 1994
|
Junior Member |
|
|
In <3u1ui4$eoa@newsreader.wustl.edu> lrn@wuphys.wustl.edu (Larry Roger Nittler) writes:
> 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
Thanks a lot; this works very well. Also thanks to the people who
responded to me by e-mail.
JanWillem
|
|
|