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

Home » Public Forums » archive » Different scales in the same plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Different scales in the same plot [message #44255] Thu, 02 June 2005 14:02 Go to previous message
caitouer is currently offline  caitouer
Messages: 21
Registered: June 2005
Junior Member
Hi, guys,
I just wonder if anyone tried to plot several scales in the same plot.
For example, plot two arrays with range [0,100] and [500,2000].
Moreover, mark the values on the left and right respectively if
possible. Right now I multipled the second array by 0.1 first and then
subtracted by 50. There might be a better way to do this...

x=[0,1,2,3,4]
a=[50,59,46,29,30]
b=0.1*[728,1061,1382,1620,1630]-50
PLOT,x,a,yrange=[20,150]
OPLOT,x,b

Thanks a lot,
Caitouer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: annotations in a contour plot.
Next Topic: Re: problem restoring a save file from within a procedure

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

Current Time: Sat Oct 11 02:02:13 PDT 2025

Total time taken to generate the page: 0.80213 seconds