[ncl-talk] Adding end labels to label bar
Mary Haley
haley at ucar.edu
Mon Oct 1 14:33:57 MDT 2018
Hi Anne,
The "IncludeMinMaxLabels" setting includes the min/max of your actual data,
and not the min/max of the contour levels you selected. The 99.96
represents the maximum of your data.
If you want triangular ends *and* a min/max of 0 and 100, then you will
need to use lbLabelStrings to force the strings you want.
I've attached an example.
--Mary
On Sat, Sep 29, 2018 at 6:14 AM, Anne SEIDENGLANZ <anne.seidenglanz at unive.it
> wrote:
> Hi,
>
> I have a problem setting the labels to a label bar in a way I want. I have
> sea ice concentration data ranging from 0% to 100%. What I want is a label
> bar going from 0 to 100 as the data is, so I set also res at cnLabelBarEndStyle
> = “IncludeMinMaxLabels”.
>
> When I set the contour levels explicitly from 0 to 100, NCL tells me it
> cannot include the lower and upper labels and I end up values above 100%
> which is not what I want (1st picture). When I exclude 0 and 100 from the
> explicit levels and I set them from 10 to 90 I get some strange value of
> 99.41 as upper end label (2nd picture). I have also tried with
> “ManualLevels” but the result was similar. I even set my value range
> explicitly from 0 to 100 :
> tice = where((tice.ge.0 .and. tice.le.100), tice, tice at _FillValue)
>
> Am I missing something? I am using NCL version 6.4.0.
>
> Any advice is appreciated,
> thanks,
> Anne
>
>
> explicit levels 0->100
>
>
>
> explicit levels 10->90 and end labels included
>
>
>
> Nota automatica aggiunta dal sistema di posta.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181001/f7928950/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-09-29 at 14.05.38.png
Type: image/png
Size: 91495 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181001/f7928950/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-09-29 at 14.10.56.png
Type: image/png
Size: 98268 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181001/f7928950/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: labelbar.000003.png
Type: image/png
Size: 131205 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181001/f7928950/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: labelbar.000002.png
Type: image/png
Size: 129369 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181001/f7928950/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: labelbar.000001.png
Type: image/png
Size: 127496 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181001/f7928950/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: labelbar_tri.ncl
Type: application/octet-stream
Size: 850 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181001/f7928950/attachment-0001.obj>
More information about the ncl-talk
mailing list