Hi Li,
You need to set the resource cnLineLabelFormat = "@*+^sg"
The default is "*+^sg"; adding the @ will force an initial zero where a
decimal point would otherwise be the first (or last) character.
See the resource here:
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLineLabelFormat
and the Floating Point Format Specification documentation here:
http://www.ncl.ucar.edu/Document/Graphics/format_spec.shtml
Alternatively, you can alter the line labels manually by setting
cnExplicitLineLabelsOn = True, and then set the line labels individually
by setting cnLineLabelStrings. Note that cnLineLabelStrings will only
set the strings used on the line labels, it won't set the contours.
Hope that helps,
Adam
lxf wrote:
> Dear all,
>
> I have a "Contour Labels format" problem about how to chang Contour Labels format from "-.2" to "0.2" or from ".8" to "0.8".
> When I come to http://www.ncl.ucar.edu/Applications/contourLab.shtml%a3%acI didn't find direction about how to accomplish this problem. Did I miss something ?
>
> So, I come here to ask for help to deal with that.
>
> Best wishes,
> Li
> 2008-06-26
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Jun 26 2008 - 10:51:30 MDT
This archive was generated by hypermail 2.2.0 : Thu Jun 26 2008 - 16:29:44 MDT