<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Beata,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is one of those cases where you have to set two resources.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">First, the &quot;lbLabelAutoStride&quot; resource is set to True by default, which means NCL tries to determine a &quot;nice&quot; 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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So, you need to set both:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">res@lbLabelAutoStride = False</div><div class="gmail_default" style="font-size:small">res@lbLabelStride = 1</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">---Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 3:16 AM, Beáta Szábo-Takács <span dir="ltr">&lt;<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="HU" link="#0563C1" vlink="#954F72">
<div class="m_-4061205613093696285WordSection1">
<p class="MsoNormal">Dear NCL users,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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@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:<u></u><u></u></p>
<p class="MsoNormal">  <u></u><u></u></p>
<p class="MsoNormal">resP@gsnPanelLabelBar    = True                ; add common color bar<u></u><u></u></p>
<p class="MsoNormal">resP@lbLabelFontHeightF  = 0.007               ; make labels smaller<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank you for your help in advance!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kind regards,<u></u><u></u></p>
<p class="MsoNormal">Beata<u></u><u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>