<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Victoria,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default" style="font-size:small">Sorry about the delay. Most of the NCL team was out for a workshop last week.</div><div style="font-size:small"><br></div><div style="font-size:small">You shouldn't need to set <span style="font-size:12.8px">cnExplicitLabelBarLabelsOn at all.</span></div><div style="font-size:small"><span style="font-size:12.8px"><br></span></div><div style="font-size:small"><span style="font-size:12.8px">In order to control the labelbar label strings, you should only need lbLabelStrings.</span></div><div style="font-size:small"><span style="font-size:12.8px"><br></span></div><div style="font-size:small"><span style="font-size:12.8px">Did you see example vegland_1.ncl at:</span></div><div style="font-size:small"><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><a href="http://www.ncl.ucar.edu/Applications/classification.shtml">http://www.ncl.ucar.edu/Applications/classification.shtml</a></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">See the first frame of this example, which does something similar to what you want. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If you want every single box labeled, then you may need to set lbLabelAutoStride to False, because otherwise NCL might try to reduce the number of labels added to the boxes. You shouldn't  additionally need to set lbLabelStride to 1, although this doesn't hurt.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">--Mary</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 5, 2018 at 9:41 PM, Victoria Treadaway <span dir="ltr"><<a href="mailto:vtreada@uri.edu" target="_blank">vtreada@uri.edu</a>></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>Hello, </div><div><br></div><div>My understanding is that if I set res@cnExplicitLabelBarLabelsOn = True that I can rename the colorbar label strings. I'm trying to plot categorical data and follow the examples. However, the colorbar label is clearly not resetting. Am I missing something? Or is there a something I'm setting that is interfering?</div><div><br></div><div><div>      </div><div>        opts_rh@pmLabelBarDisplayMode = "Always"</div><div>        opts_rh@<wbr>cnExplicitLabelBarLabelsOn = True</div><div>        opts_rh@cnFillPalette       = colors</div><div>        opts_rh@cnFillOn             = True               ; turns on the color</div><div>        opts_rh@cnLineLabelsOn = False</div><div>        opts_rh@cnLevelSelectionMode = "ManualLevels"              ; set explicit contour levels</div><div>        opts_rh@cnMinLevelValF = 1</div><div>        opts_rh@cnMaxLevelValF = 5</div><div>        opts_rh@cnLevelSpacingF = 1</div><div>        opts_rh@lbLabelPosition  = "Center"           ; label position</div><div>        opts_rh@lbLabelAlignment = "BoxCenters"       ; label orientation</div><div>        opts_rh@lbLabelStrings   =  (/"T","E","S","T","5"/) </div><div>       opts_rh@lbLabelStride = 1</div><div>       opts_rh@lbLabelAutoStride = False</div><div>       opts_rh@cnSpanFillPalette = False</div><div>        opts_rh@lbOrientation        = "vertical"         ; vertical label bars</div><div>        opts_rh@pmLabelBarSide       = "right"</div><div>        ;opts_rh@tmYLMode                = "Explicit"</div><div>        opts_rh@tmYLLabels              = sprintf("%.1f",fspan(zmin,<wbr>zmax,nz))  ; Create labels</div><div>        opts_rh@tiMainString =  "TEST"</div><div>        opts_rh@tiXAxisString = "Distance From ARMOR (W/E) in km"</div><div>        opts_rh@tiYAxisString  = "Altitude (km)"</div><div>        opts_rh@cnLineLabelsOn = False       ; turn off contour info label</div><div>        opts_rh@<wbr>cnMissingValFillPattern = 0</div><div>        opts_rh@cnMissingValFillColor   = "white"</div></div><div><br></div><div>Thanks for your help,</div><div><br></div><div>Victoria </div><div><br></div><div class="m_-9060752222383718210gmail_signature"><div dir="ltr"><div style="font-size:12.8px"><br></div></div></div>
</div><div id="m_-9060752222383718210DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
        <tbody><tr>
        <td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width:46px;height:29px"></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link" style="color:#4453ea" target="_blank">www.avast.com</a>
                </td>
        </tr>
</tbody></table><a href="#m_-9060752222383718210_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></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>