[Thread Prev][Thread Next][Index]

Re: axis format



Hi Boyin
When you define a time axis from data, you are giving Ferret
time steps.  The time axis needs units so that the numbers
will be seen as years.

Here is an example, using data that I define in a Ferret
command, but it would be the same when you read it
from a file.

   ! file/var=tt bx.dat
   let tt = {1988,1989,1990,1991,1992,1993,1994,1995}

   ! Convert to dates, using the DAYS1900 function.
   ! The second argument is month, and the third day -
   ! so if your data should really be centered at the middle
   ! of the year, you can specify that.

   let time = days1900(tt,1,1)
   def axis/t/from_data/name=tax/units=days/t0=1-jan-1900 time
   plot t[gt=tax]       ! labels year and month tics

! or, use a pplus setting to change the axis labels.

   plot/set_up t[gt=time]
   ppl txlint 0,1          ! label years only
   ppl plot
 

Ansley Manke

Boyin Huang wrote:

Dear All:

I plotted a time series by specifying axis

file/var=tt                                            bx.dat
define axis/from_data/t/name=xaxis                     tt[d=1]

which plots the x-axis as "1988.0  1990.0  ... 2000.0" etc.

I wish to have the axis format as "1988  1990 .... 2000" etc or even "88  90 .... 00" etc.

How can I do this in ferret? Thank you very much.
 
 

-- 
Boyin Huang, Ph.D.
The Center for Research on the Changing Earth System (CRCES)
10211 Wincopin Circle, Suite 240, Columbia, MD 21044
Ph. 410-992-5704(o), 737-4557(h), Fx 992-5944, byh@crces.org, www.crces.org/byh
 

--
Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement