hi Shinn,
You specify the axis using resource ttmAxis (="YL" in your case).
So, you need to add few lines in your code which should look something like these:
rest = True
rest@ttmFormat = "%Y-%N-%D"
rest@ttmAxis = "YL"
time_axis_label(x2&time,res,rest)
...
plt = gsn_csm_hov(...) ; existing in the code
...
And it is also a good idea to include ttmValues in the resources list to force ticking at required locations.
regards,
arindam
---------- Original Message -----------
From: shinn wong <shinnshinnwong@gmail.com>
To: ncl-talk@ucar.edu
Sent: Wed, 29 Sep 2010 10:51:12 +0800
Subject: Changing the format of time axis label
> Dear all,
> I've some problems concerning the setting of the axis label. How can I change the time in the y-axis to the format year-month-day? The code and the data are attached. Thanks in advance for the help and suggestions.
> Shinn
> --
> This message has been scanned for viruses and
> dangerous content byMailScanner, and is
> believed to be clean.
------- End of Original Message -------
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 29 05:36:12 2010
This archive was generated by hypermail 2.1.8 : Mon Oct 04 2010 - 08:55:54 MDT