[ncl-talk] cnConstFLabelFormat
Laura Fowler
laura at ucar.edu
Thu Aug 8 12:21:46 MDT 2019
Hi Rick:
Thank you for your suggestion. While looking at the documentation for
cnLineLabelFormat, I read about and used cnLineLabelStrings in conjunction
with cnExplicitLineLabelsOn. I was able to write the label as "6".
Many thanks for your quick reply and suggestion.
Laura
On Thu, Aug 8, 2019 at 11:40 AM Rick Brownrigg <brownrig at ucar.edu> wrote:
> HI Laura,
>
> Try perhaps *cnLineLabelFormat*. I think cnConstFLabelFormat refers to
> case when the scalar field is covered by a single iso-band and resulting in
> no contour lines
>
> Rick
>
> On Thu, Aug 8, 2019 at 11:23 AM Laura Fowler via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Hello:
>>
>> I have a contour levels defined as:
>>
>> sres at cnLevelSelectionMode = "ExplicitLevels"
>>
>> sres at cnLevels = (/6.03,12.,20.,28./)
>>
>> have which I use to plot the attached figure. I would like to change the
>> label 6.03 to 6 so that it looks like the other labels. I have attempted to
>> use cnConstFLabelFormat with the help of the "HLU Floating Point Format",
>> but without too much luck.
>>
>> Can somebody please help me figure out how to make a "6" label from a
>> 6.03 level (note that using 6. as a level will not work).
>>
>> Many thanks,
>> Laura
>>
>> --
>>
>> !-------------------------------------------------------------------------------------------------------------
>> Laura D. Fowler
>>
>> Mesoscale and Microscale Meteorology Division (MMM)
>> National Center for Atmospheric Research
>> P.O. Box 3000, Boulder CO 80307-3000
>>
>> e-mail: laura at ucar.edu
>> phone: 303-497-1628
>>
>>
>> !-------------------------------------------------------------------------------------------------------------
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
!-------------------------------------------------------------------------------------------------------------
Laura D. Fowler
Mesoscale and Microscale Meteorology Division (MMM)
National Center for Atmospheric Research
P.O. Box 3000, Boulder CO 80307-3000
e-mail: laura at ucar.edu
phone: 303-497-1628
!-------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190808/28e78ddb/attachment.html>
More information about the ncl-talk
mailing list