[ncl-talk] Discrete Color Bar
Mary Haley
haley at ucar.edu
Sun Sep 27 18:27:16 MDT 2015
Hi Jonathan,
NCL always wants to contour using transitions, rather than discrete
values. If you truly have discrete values, like an array of integers, then
you can get around this by selecting contour levels that straddle the
discrete values. You may also want to set lbLabelAlignment to "BoxCenter"
and lbLabelStrings to select the appropriate labels, since you probably
don't want the labels used for the contour levels.
I've included a script which uses dummy data, so you can run it as is. Let
me know if this doesn't answer your question.
--Mary
On Sun, Sep 27, 2015 at 9:31 AM, jbuzan <jbuzan at purdue.edu> wrote:
> Hello NCL-Talk,
>
> Is there a way to set contour colors to discrete colors, instead of the
> transitions?
>
> -Jonathan
>
>
> _______________________________________________
> 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/20150927/7e157e06/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conLev_6.ncl
Type: application/octet-stream
Size: 1730 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150927/7e157e06/attachment.obj
More information about the ncl-talk
mailing list