<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Matt,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Since NCL has no way of knowing what the these top and bottom values are (because they are open-ended), you will need to explicitly tell NCL to label those external edges of the labelbar, and then provide the extra two labels yourself.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See the third plot in example 14 at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14">http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">The two key resources you&#39;ll need to set are:</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><div class="gmail_default">  res@lbLabelAlignment = &quot;ExternalEdges&quot;</div><div class="gmail_default">  res@lbLabelStrings = ....    ; this has to be 2 more labels more than the default.</div><div class="gmail_default"><br></div><div class="gmail_default">-Mary</div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 29, 2016 at 1:20 PM, Matt Masarik <span dir="ltr">&lt;<a href="mailto:mattmasarik@boisestate.edu" target="_blank">mattmasarik@boisestate.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have a question regarding labeling color bars.  I&#39;m adding labels to the ends using the contour resource:</div><div><br></div><div>        res@cnLabelBarEndStyle  =  &quot;IncludeMinMaxLabels&quot;<br></div><div><br></div><div><br></div><div>This gives end labels that are the actual min/max of the field.   Is there a way get the min/max to be the next values associated with your contour stride?</div><div><br></div><div>Ex,  for contour intervals,   10, 20, 30, 40,</div><div><br></div><div>Current:        0.3,  10,  20,  30,  40,  49.7</div><div>Desired:          0,   10,  20,  30,  40,  50</div><div><br></div><div>I&#39;m guessing this might be tricky since you don&#39;t have to pick evenly spaced contours..</div><div><br></div><div>Thanks,</div><div><br></div><div>Matt</div></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>