[Thread Prev][Thread Next][Index]

Re: plot time series on same time axis



Hi Chan,

	You need to regrid one of the variables onto the time axis of
the other.  Suppose v1900 has 12 monthly values from the year 1900
and v0020 has 12 values from the year 0020.  Then
        plot/set v1900,v0020[g=g1900,gt=@asn]
	ppl txlint,1,0 ; ppl plot
should do the plotting and drop the year label on the time axis.
Example:
   def axis/t=15-jan-1900:15-dec-1900/npoints=12 t1900
   def grid/t=t1900 g1900 ; let v1900=randu(t[g=g1900])
   def axis/t=15-jan-0020:15-dec-0020/npoints=12 t0020
   def grid/t=t1900 g0020 ; let v0020=randn(t[g=g0020])
   plot/nolab/set v1900,v0020[g=g1900,gt=@asn]
   ppl txlint,1,0 ; ppl plot

Good luck,
Mick

|____mick.spillane@noaa.gov____|
|__Room 2070 Bldg#3 NOAA/PMEL__|
|____Phone_:_(206)526-6780_____|




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement