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

Home » Public Forums » archive » Re: 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
Re: switching between >2 graphs (IDL)?? [message #4655] Thu, 13 July 1995 00:00
lrn is currently offline  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 |
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL 4 / Callable IDL
Next Topic: Re: IDL to C converter?

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

Current Time: Fri Oct 10 13:46:18 PDT 2025

Total time taken to generate the page: 0.16103 seconds