Re: labeling time axis

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 21 2011 - 11:33:08 MDT

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
Received on Wed Sep 21 13:33:14 2011

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