[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2 variables on same plot?
- Subject: 2 variables on same plot?
- From: Cathy Smith <cas(at)cdc.noaa.gov>
- Date: Wed, 25 Apr 2001 16:07:20 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Climate Diagnostics Center
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:24684
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 #
##################################################################