[ncl-talk] labeling color bar ends
Matt Masarik
mattmasarik at boisestate.edu
Mon Aug 1 15:15:23 MDT 2016
Great! Thanks, Mary.
Matt
On Mon, Aug 1, 2016 at 2:21 PM, Mary Haley <haley at ucar.edu> wrote:
> Hi Matt,
>
> Since NCL has no way of knowing what the these top and bottom values are
> (because they are open-ended), you will need to explicitly tell NCL to
> label those external edges of the labelbar, and then provide the extra two
> labels yourself.
>
> See the third plot in example 14 at:
>
> http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14
>
> The two key resources you'll need to set are:
>
> res at lbLabelAlignment = "ExternalEdges"
> res at lbLabelStrings = .... ; this has to be 2 more labels more than
> the default.
>
> -Mary
>
>
> On Fri, Jul 29, 2016 at 1:20 PM, Matt Masarik <mattmasarik at boisestate.edu>
> wrote:
>
>> I have a question regarding labeling color bars. I'm adding labels to
>> the ends using the contour resource:
>>
>> res at cnLabelBarEndStyle = "IncludeMinMaxLabels"
>>
>>
>> This gives end labels that are the actual min/max of the field. Is
>> there a way get the min/max to be the next values associated with your
>> contour stride?
>>
>> Ex, for contour intervals, 10, 20, 30, 40,
>>
>> Current: 0.3, 10, 20, 30, 40, 49.7
>> Desired: 0, 10, 20, 30, 40, 50
>>
>> I'm guessing this might be tricky since you don't have to pick evenly
>> spaced contours..
>>
>> Thanks,
>>
>> Matt
>>
>> _______________________________________________
>> 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/20160801/eea50c6f/attachment.html
More information about the ncl-talk
mailing list