[ncl-talk] improve the color bar labels
Mary Haley
haley at ucar.edu
Wed Feb 1 09:07:37 MST 2017
Dear Beata,
This is one of those cases where you have to set two resources.
First, the "lbLabelAutoStride" resource is set to True by default, which
means NCL tries to determine a "nice" stride for your labelbar labels,
depending on many factors. This is the thing that is causing your label
stride to change when you increase your font size, because it probably
thinks the labels are too close together. This resource overrides any
setting for lbLabelStride.
So, you need to set both:
res at lbLabelAutoStride = False
res at lbLabelStride = 1
---Mary
On Wed, Feb 1, 2017 at 3:16 AM, Beáta Szábo-Takács <szabo.b at czechglobe.cz>
wrote:
> Dear NCL users,
>
>
>
> I created a contour plot by gsn_csm_contour_map, where the labels in the
> color bar are hard to see because I used res at lbLabelFontHeightF =
> 0.005. The figure is attached. If I change the value of lbLabelFontHeightF
> to 0.007 only the every second label are noted. I also created a panel plot
> with the same script and used:
>
>
>
> resP at gsnPanelLabelBar = True ; add common color bar
>
> resP at lbLabelFontHeightF = 0.007 ; make labels smaller
>
>
>
> I got nice colorbar labels. The figure is attached. Could someone suggest
> me a solution to fix the color bar size in the case of gsn_csm_contour_map?
> The script is attached, as well.
>
>
>
> Thank you for your help in advance!
>
>
>
> Kind regards,
>
> Beata
>
> _______________________________________________
> 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/20170201/6a4f9494/attachment.html
More information about the ncl-talk
mailing list