[ncl-talk] improve the color bar labels

Beáta Szábo-Takács szabo.b at czechglobe.cz
Thu Feb 2 00:33:03 MST 2017


Dear Mary,

Thank you very much for your help! It works correctly.

Have a nice day,
Beata

From: Mary Haley [mailto:haley at ucar.edu]
Sent: Wednesday, February 01, 2017 5:08 PM
To: Beáta Szábo-Takács <szabo.b at czechglobe.cz>
Cc: ncl-talk (ncl-talk at ucar.edu) <ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] improve the color bar labels

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<mailto: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<mailto: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/20170202/23dae8c1/attachment.html 


More information about the ncl-talk mailing list