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

Home » Public Forums » archive » overlaying two plots
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
overlaying two plots [message #69676] Wed, 03 February 2010 17:11
Mr.G is currently offline  Mr.G
Messages: 5
Registered: December 2009
Junior Member
Dear All,

Say I have two set of data:

(1)
x=findgen(101)*0.5
y=sin(x)

(2)
p=findgen(501)*2
q=exp(-p/500)

Now, I want to overlay
"plot,x,y"
and
"plot,p,q"
on the same plot.

I can not use oplot, since if I:
"plot,p,q
oplot,x,y"
I will get very funny plots.

What I want is the figure has two axis:
axis, xaxis=1,range=[0,50]
then, oplot, x,y "as if the range determined by p q changed to [0,50]"

Is that possible in IDL?

G
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem making large (~3GB) .sav files over NFS
Next Topic: How 2 read a matrix to a widget?

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

Current Time: Wed Oct 08 13:37:42 PDT 2025

Total time taken to generate the page: 0.00511 seconds