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

Home » Public Forums » archive » switching between >2 graphs (IDL)??
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
switching between >2 graphs (IDL)?? [message #4667] Wed, 12 July 1995 00:00 Go to next message
hartman is currently offline  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 Go to previous message
hartman is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Checking datatypes (datatype.pro)
Next Topic: recommendation of IDL for use in commercial app.

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

Current Time: Fri Oct 10 05:41:09 PDT 2025

Total time taken to generate the page: 0.96128 seconds