[Thread Prev][Thread Next][Index]

Re: time axis labels



Hi Steve,
	If you want to change to remove the decimal points from axis
values, one way is to use the plotplus commands XFOR and YFOR.
	For example in your case you could use

plot/vs/line/hlimts=1970:1972:1/set yr,y1
ppl xfor,(i4) ; ppl plot

which would give labels 1972   1973 ...

However a better way might be to define a time axis appropriate to the
dataset, perhaps editing in missing values where a year was not available.
For example suppose you had a file knox.d as follows
1970 1
1971 2
1972 3
1973 4
1974 3
1975 2
1976 1
1977 -99
1978 3
1979 4
1980 3
1981 2
1982 1
representing data from March over a 13 year period with the 1977 value
missing.  Then in Ferret

def axis/t=15-mar-1970:15-mar-1982/npoints=13 tax
def grid/t=tax grd
file/form=free/var=yy,v/g=grd knox.d
set var/bad=-99 v
plot v

would give you a nice calendar axis.  If you try this demo you may not
like the fact that the first and last year are curtailed.  To avoid this
you could substitute

ppl/set v
ppl time,W197001010000,W198301010000 ; ppl plot

where the start and end points of the time axis are specified in "Woods
Hole format" Wyyyymmddhhmm - a blast from the PlotPlus past.

Mick
|____spillane@pmel.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