Hi Adam and ncl users,
Thank you for your suggestion. I have also found an easier alternative, setting cnLineLabelFormat.
This parameter controls the precision of line libels as well.
Franco
Adam Phillips <asphilli@cgd.ucar.edu>
11/12/2008 10:15 MST
Per franco.catalano@uniroma1.it
CC ncl-talk@ucar.edu
CCR
Oggetto Re: [ncl-talk] label bar precision
Hi Franco,
There isn't a resource that sets the precision of label bar labels
(yet), but I've gotten around the issue by setting
cnExplicitLabelBarLabelsOn = True and passing an array of labels to
lbLabelStrings:
res@cnExplicitLabelBarLabelsOn = True
res@lbLabelStrings = (/"0.0200","0.0201","0.0202"/)
Note that by doing this, you are disassociating the Label Bar labels
from the actual values of your contour plot. Thus, if you change the
contour levels of your plot, you will need to change the lbLabelStrings
as well.
Also note that you can do the same thing if you have a colored
streamline or vector plot by setting vcExplicitLabelBarLabelsOn
or sfExplicitLabelBarLabelsOn.
http://www.ncl.ucar.edu/Document/Graphics/Resources/lb.shtml#lbLabelStrings
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnExplicitLabelBarLabelsOn
Adam
franco.catalano@uniroma1.it wrote:
> Hi ncl team and users
> Is there a way to explicitly set the precision of the label bar labels.
> For example, like the tick marks with tmXBPrecision and tmYLPrecision.
> Thank you for your suggestions.
>
> Franco
>
> ____________________________________________________
> Eng. Franco Catalano
> Ph.D. Student
>
> D.I.T.S.
> Department of Hydraulics, Transportation and Roads.
> Via Eudossiana 18, 00184 Rome
> Sapienza University of Rome.
> tel: +390644585218
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
--
--------------------------------------------------------------
Adam Phillips asphilli@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
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 11 2008 - 10:51:14 MST
This archive was generated by hypermail 2.2.0 : Sat Dec 20 2008 - 12:36:21 MST