<div dir="ltr">NCLers. <br><br>I would like to be able to format a color bar label, without using sprintf.  It seems that <a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLineLabelFormat">cnLineLabelFormat</a> claims that it should do this job but for me today it is not making any difference to the label bar.  <br><br>Am I missing a step or something? cnLineLabelFormat does it&#39;s job nicely on the plot, but has no impact on the labelbar. <br><br><br>Request:<br>Existence of an lbLabelFormat resource,  that is potentially linked to cnLineLabelFormat when not defined itself.  <div><br></div><div>For now I will stick to creating my own array of labels, and pumping them through sprintf.  <br></div><div><br></div><div><br></div><div>Thanks, </div><div>     ~Alan.</div><div><br></div><div><br></div><div><br></div><div>example code of cnLineLabelFormat not affecting the label bar below:</div><div><br><div>x = fspan(-5, 5, 100)</div><div>data = new( (/100,100/), float)</div><div>do y=0, 99</div><div>data(y,:) = exp(( -(x^2)/4) - (((x(y))^2)))   ;; quick way of creating some nice data to plot. </div><div>end do</div><div><br></div><div>wks = gsn_open_wks(&quot;x11&quot;,&quot;&quot;)</div><div><br></div><div>res = True</div><div>res@cnFillOn = True</div><div>res@cnFillMode= &quot;RasterFill&quot;</div><div>res@cnLinesOn = False</div><div>res@cnLineLabelsOn = True<span id="goog_444734131"></span><span id="goog_444734132"></span><a href="/"></a></div><div>res@cnLineLabelFormat = &quot;0@;*.4f&quot;</div><div>res@lbAutoManage = False</div><div>res@lbOrientation = &quot;vertical&quot;</div><div>plot = gsn_csm_contour(wks, data, res)</div></div></div>