Re: How to change the labels with values less than 1 (0.6 for instance) in a contour figure?

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 19 2010 - 18:51:47 MDT

The default for contour labels in NCL is to use the fewest number of characters possible to represent the value. If you want values less than 1 to be preceded by a '0' character, add the '@' character in front of the default value for the 'cnLineLabelFormat' resource: i.e. set it to "@*+^sg". There are a couple of other format resources that apply to contour plots: cnHighLabelFormat and cnLowLabelFormat. In order to understand the meaning of the symbols used, you can look at
http://www.ncl.ucar.edu/Document/Graphics/format_spec.shtml.
For an example that exercises a number of the possibilities, see tm_8.ncl at
http://www.ncl.ucar.edu/Applications/tickmarks.shtml.
 -dave

On Oct 19, 2010, at 6:03 PM, Yan Bao wrote:

> Hi, everyone
> In a contour figure made by NCL, the decimal values are labeled by "."+integer digital number(integer, like 0.6 -> .6). Do you happen to know how to change them to the normal ones?
>
> Thanks,
>
> Yan
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 19 18:51:54 2010

This archive was generated by hypermail 2.1.8 : Fri Oct 22 2010 - 12:21:46 MDT