[Thread Prev][Thread Next][Index]

Re: axis label



Hi Ben,
                  You can use PPLUS commands "TXLINT" to get rid of the
day label from the time axis. The usage is

 TXLINT,low_int,hi_int  
  Low_int = labeling interval for lowest level of tics (e.g. hr  on hr/day axis)
  Hi_int = labeling interval for highest level of tics (e.g. day on hr/day axis)

 Have a look at the manual for all PPLUS commands for time axis :

     Ch6 Sec3.2.  PPLUS axis commands

 This is a good mail in the archive regarding your question :

   http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_98/msg00090.html 
 
 Have a trial with the example below


 Few comments : 

       1. use "set var" command to assign proper title and units for the
             newly defined variable, especially if you are choosing the
             default labels/saving the variable to a new NetCDF file.
             (see the example below)

       2. " PPL XLAB " will be ignored if TAXIS  is on. See the example
             below to do the labelling of time axis.

       3. No need to define a number of variables without any use : 

            try ==>  Air_Temp = tseq_air_temp[gt=my_taxis@asn]

 Hope This Helps 

 With Regards 

 Jaison

!----------example.jnl---------------------------
\ cancel mode verify

   DEFINE AXIS/t="1-OCT-2002:00:30":"2-OCT-2002:00:00":30/UNITS=minutes my_taxis

   let Air_Temp = SIN(t[gt=my_taxis]/100)
   set var/title="Air Temperture"/units="Degree Celcius" Air_Temp

   plot/set Air_Temp
    PPL TXLINT,1, 0
   ppl plot
   label `($PPL$XMIN1)+ ( ($PPL$XMAX1) - ($PPL$XMIN1) )/2`, -1.2,0,0,0.13 Time

!-------------end of example.jnl--------------------------

On Mon, 7 Feb 2005, benb wrote:

> Hello All,
> 
> I read in 48 points of data from a netCDF file:
> set data airtemp.nc
> 
> and then I'm using the following script to create a plot of the data:
> 
> DEFINE AXIS/t="1-OCT-2002:00:30":"2-OCT-2002:00:00":30/UNITS=minutes my_taxis
> let tseq_air_temp = tsequence(Air_Temperature)
> let tax_air_temp = tseq_air_temp[gt=my_taxis@asn]
> let Air_Temperature_Kelvin = tax_air_temp
> let Air_Temp = Air_Temperature_Kelvin
> 
> plot/set_up/nolabel Air_Temp
> ppl title "Air Temperature - Diurnal Cycle"
> ppl xlab "Time"
> ppl ylab "Celsius"
> ppl plot
> 
> 
> It may be more complex than needed, but it works.  However, the x axis is la
> belled with both hours and date, i.e.:
> 
> 00  01  02  03  .  .  .  22  23  00
>            Oct 1
> 
> 
> I want to keep only the hours ("00  01  02  03  .  .  .  22  23  00", an ano
> nymous 24 hour sequence) and get rid of the "Oct 1" part.  Can someone tell 
> me how to do that?
> 
> I tried xlab as both
> ppl xlab"Date, Time"
> and 
> ppl xlab "Time" but they both gave me the same results.
> 
> Thank you,
> 
> Ben
> 

-- 
___________________________________________________

    Jaison Kurian                           
    Centre for Atmospheric and Oceanic Sciences
    Indian Institute of Science
    B A N G A L O R E   560 012
    Ph: +91-80-3942505
        +91-80-3600450
    Fax:+91-80-3600865
___________________________________________________


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement