<div dir="ltr"><div>Hi,</div><div><br></div><div>Its unclear what might be wrong without seeing your script. If this is exactly what you have in your script...</div><div><br></div><div>cnExplicitLabelBarLabelsOn = True<br>
lbLabelBarOn = True<br>
lbLabelsOn = True<br>
lbBoxLinesOn = False<br>
lbBoxSeparatorLinesOn = False<br>
lbLabelStrings = (/"100","150","200","250"/)</div><div><br></div><div>...then this would not have any effect on your plot, although I would have expected some sort of reasonable defaults. The above is setting *variables* by those names -- you want to set *resources* that then get passed into the plotting function; something like:</div><div><br></div><div>res = True</div><div>...<br></div><div>res@cnExplicitLabelBarLabelsOn = True<br>
res@lbLabelBarOn = True<br>
res@lbLabelsOn = True<br>
res@lbBoxLinesOn = False<br>
res@lbBoxSeparatorLinesOn = False<br>
res@lbLabelStrings = (/"100","150","200","250"/)</div><div>...</div><div>plot = gsn_csm_contour_XXX(wks, ....., res)</div><div><br></div><div>Is this what you have?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 24, 2018 at 8:46 AM <<a href="mailto:G.Monte@isac.cnr.it">G.Monte@isac.cnr.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dears all,<br>
I had a contouring map with a 100-spaced intervals in the label bar, so I<br>
decided to set a label string with four/five labels in some rapresentative<br>
positions of this bar. Here the commands I used (in NCL 6.4.0):<br>
<br>
cnExplicitLabelBarLabelsOn = True<br>
lbLabelBarOn = True<br>
lbLabelsOn = True<br>
lbBoxLinesOn = False<br>
lbBoxSeparatorLinesOn = False<br>
lbLabelStrings = (/"100","150","200","250"/)<br>
<br>
The script did run, but only the first value of my label string was<br>
written, while I had Label_21, Label_42, Label_63, Label_84 for the<br>
others. Moreover, I realized that even if I set the first value at 150, it<br>
is placed at the same position where the previous one was. I just cannot<br>
understand where the problems are.<br>
<br>
Giulio Monte<br>
<br>
<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>