[ncl-talk] custom string labels in time-axis

Adam Phillips asphilli at ucar.edu
Wed Nov 14 15:19:20 MST 2018


Hi Tabish,
Yes, see tickmark example 2 here:
http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex2

Note though that the values set in tmXBValues must be within the range of
times specified in the x-input in gsn_csm_xy. For example, if you create
your plot like this:
plot(1) = gsn_csm_xy(wks,ispan(1950,2005,1),arr,res)
your times run from 1950 to 2005, and your tmXBValues need to be set within
that range.

If you have any further questions let ncl-talk know.
Adam


On Wed, Nov 14, 2018 at 3:13 PM Tabish Ansari <tabishumaransari at gmail.com>
wrote:

> Hi
>
> I'm plotting arrays of length 120 through gsn_csm_xy() function.
> I've been using time_axis_labels function before but this time it's a
> slightly different
> situation and I want my x-axis to be labelled as:
> Day1, Day2, Day3, Day4, Day5
> every 24th hour along the 120 hours.
>
> Is it possible to do this?
>
> Thanks
>
> Tabish
>
> Tabish U Ansari
> PhD student, Lancaster Environment Center
> Lancaster Univeristy
> Bailrigg, Lancaster,
> LA1 4YW, United Kingdom
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181114/805732e4/attachment.html>


More information about the ncl-talk mailing list