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

Home » Public Forums » archive » 2 variables on same plot?
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
2 variables on same plot? [message #24848] Wed, 25 April 2001 15:07
Cathy Smith is currently offline  Cathy Smith
Messages: 3
Registered: January 2001
Junior Member
Hi all,

How do I plot 2 variables on 1 plot? They each have vastly
different ranges. I believe I am supposed to use AXIS but I can't seem
to get the 2nd plot to be scaled correctly.


xt=indgen(365)
plot,xt(0:90),omega(0:90),xstyle=8,ystyle=8
axis,yrange=[0,11],ystyle=1,/save,yaxis=1,xaxis=0
oplot,xt(0:90),prate(0:90),linestyle=2

The 2nd y axis has values from 0 to 10 and the data ranges from 0 to 10
but it is plotted from 0 to .001 or something like that.

thanks
Cathy Smith

--
"A round of victory lattes for everyone!!!!"

############################################################ ######
# NOAA-CIRES Climate Diagnostics Center #
# U of C Campus Box 216 Boulder, CO 80309-0216 #
# e-mail cas@cdc.noaa.gov web:http://www.cdc.noaa.gov/~cas #
# phone (303)497-6263 fax:(303)497-6449 #
############################################################ ######
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Anisotropic smoothing operations
Next Topic: Colorbar problems

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

Current Time: Wed Oct 08 13:47:03 PDT 2025

Total time taken to generate the page: 0.00568 seconds