Re: labeling time axis

From: Fan Fang <Fan.Fang_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 21 2011 - 12:09:06 MDT

Thanks Adam and Arindam for the info.

-Fan

On 09/21/2011 02:29 PM, Arindam Chakraborty wrote:
> hi Fan,
> since NCL version 5.2.0, there's a function called time_axis_labels() that
> can fulfill some of the requirements you've mentioned. However, it cannot
> label the axis differently at different locations currently (for example, in
> case you want starting of every year should have year label and other ticks
> only month label, or something similar). You can have a look and see if this
> routine helps you:
> http://www.ncl.ucar.edu/Document/Functions/User_contributed/time_axis_labels.shtml
>
> regards,
>
> arindam
> --
> Arindam Chakraborty
> Centre for Atmospheric and Oceanic Sciences
> Indian Institute of Science
> Bangalore - 560 012, INDIA
> Tel: +91-80-22933074
> Fax: +91-80-23600865
> http://caos.iisc.ernet.in/faculty/arch
>
> ---------- Original Message -----------
> From: Adam Phillips<asphilli@ucar.edu>
> To: ncl-talk@ucar.edu
> Sent: Wed, 21 Sep 2011 11:33:08 -0600
> Subject: Re: labeling time axis
>
>> Hi Fan,
>> Sure. By setting tmXBMode = "Explicit", you can then set the number
>> of major tick marks (and their corresponding labels) via tmXBValues
>> and tmXBLabels. Once tmXBMode = "Explicit", you will also have to
>> set tmXBMinorValues, which defines where the minor tick marks are drawn.
>>
>> You can then use if statements to set up different scenarios..
>>
>> http://www.ncl.ucar.edu/Document/Graphics/Resources/tm.shtml#tmXBMode
>> http://www.ncl.ucar.edu/Document/Graphics/Resources/tm.shtml#tmXBMinorValues
>>
>> The top x-axis tick marks will also be set to whatever you do with
>> the bottom x-axis tick marks automatically. Hope that helps! Adam
>>
>> On 09/21/2011 11:09 AM, Fan Fang wrote:
>>> We use x-y plot for plotting time series, and labels are usually in
>>> regular intervals. Wonder if there is any utility in either resources
>>> or functions that would enable us to put in labels following arbitrary
>>> requirements, such as:
>>>
>>> arbitrary given time labels at possibly irregular intervals
>>> show only major tick marks for years if time spans over 4 years
>>> show 4 minor tics only
>>> show months as minor tics and label months in English names
>>>
>>> Thanks.
>>>
>>> -Fan
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>> --
>> ______________________________________________________________
>> Adam Phillips asphilli@ucar.edu
>> NCAR/Climate and Global Dynamics Division (303) 497-1726
>> P.O. Box 3000
>> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
> ------- End of Original Message -------
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 21 14:09:26 2011

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2011 - 17:12:44 MDT