<div dir="ltr">Since the lbLabelValues (not a real resource, but I'll refer to the concept of that anyway) is controlled by the contour plot it's associated with, you'd have to forcibly change the plot. You also have the option of creating your own label bar from scratch and attaching it, but that's even more of a hassle than the explicit strings with the trade off of being able to control every aspect of the label bar without affecting the plot.<div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/labelbar.shtml">https://www.ncl.ucar.edu/Applications/labelbar.shtml</a><br></div><div><br></div><div>Example 5 is essentially the level of control we're taking with editing some of the parameters in general, but Example 10 would be a completely independent label bar. Example 12's positioning advice would also be relevant should you decide to go down that route.</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div>
<br><div class="gmail_quote">On Thu, Nov 13, 2014 at 10:31 AM, Don Murray (NOAA Affiliate) <span dir="ltr"><<a href="mailto:don.murray@noaa.gov" target="_blank">don.murray@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Thanks, Kyle. I tried the stride, but it doesn't allow you to set the start/end points.<br>
<br>
And, I was hoping to avoid the explicit lbLabelStrings, but maybe that's the best solution. It would be nice if there was a lbLabelValues attribute to go along with lbLabelStrings, like there is for the tick marks.<br>
<br>
Don<br>
<br>
On 11/13/14 9:25 AM, Kyle Griffin wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi Don,<br>
<br>
You can explore the controls over the label bar labels (lbLabelxxxxx) at:<br>
<br>
<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/lb.shtml#lbLabelAlignment" target="_blank">https://www.ncl.ucar.edu/<u></u>Document/Graphics/Resources/<u></u>lb.shtml#lbLabelAlignment</a><br>
<br>
lbLabelStride = 5 would work to give you only every 5 on the color bar.<br>
<br>
A bit more time consuming would be to explicitly set the lbLabelStrings<br>
= (/"","","","","10","","","",""<u></u>,"","","","","","","20",......<u></u>./) which<br>
should also get the job done - you might also need to set lbLabelStride<br>
= 1 to make sure the strings apply to the correct labels.<br>
<br>
<br>
<br>
------------------------------<u></u>----------<br>
Kyle S. Griffin<br>
Department of Atmospheric and Oceanic Sciences<br>
University of Wisconsin - Madison<br>
Room 1421<br>
1225 W Dayton St, Madison, WI 53706<br></span>
Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a> <mailto:<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>><span class=""><br>
<br>
On Thu, Nov 13, 2014 at 10:02 AM, Don Murray (NOAA Affiliate)<br></span><span class="">
<<a href="mailto:don.murray@noaa.gov" target="_blank">don.murray@noaa.gov</a> <mailto:<a href="mailto:don.murray@noaa.gov" target="_blank">don.murray@noaa.gov</a>>> wrote:<br>
<br>
Hi-<br>
<br>
I've read through the label bar examples, but I'm not finding the<br>
answer, so I'll ask here.<br>
<br>
I have a dataset that I'm drawing with filled contours, defined as:<br>
<br>
res@cnLevelSelectionMode = "ManualLevels"<br>
res@cnMinLevelValF = 5.<br>
res@cnMaxLevelValF = 65.<br>
res@cnLevelSpacingF = 1<br>
<br>
over a colormap with 241 values.<br>
<br>
For the label bar, I'd like to just have labels every 10 units<br>
(10,20,30,40,50,60), but I'm not sure how to set the label values.<br>
<br>
I'm sure I'm missing something simple, but help is appreciated.<br>
<br>
Thanks.<br>
<br>
Don<br>
--<br>
Don Murray<br>
NOAA/ESRL/PSD and CU-CIRES<br></span>
<a href="tel:303-497-3596" value="+13034973596" target="_blank">303-497-3596</a> <tel:<a href="tel:303-497-3596" value="+13034973596" target="_blank">303-497-3596</a>><span class=""><br>
<a href="http://www.esrl.noaa.gov/psd/people/don.murray/" target="_blank">http://www.esrl.noaa.gov/psd/<u></u>people/don.murray/</a><br>
______________________________<u></u>_________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<u></u>mailman/listinfo/ncl-talk</a><br>
<br>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
<br>
-- <br>
Don Murray<br>
NOAA/ESRL/PSD and CU-CIRES<br>
<a href="tel:303-497-3596" value="+13034973596" target="_blank">303-497-3596</a><br>
<a href="http://www.esrl.noaa.gov/psd/people/don.murray/" target="_blank">http://www.esrl.noaa.gov/psd/<u></u>people/don.murray/</a><br>
</div></div></blockquote></div><br></div>