2 variables on same plot? [message #24848] |
Wed, 25 April 2001 15:07 |
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 #
############################################################ ######
|
|
|