<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Barry,</div><div class="gmail_default" style="font-size:small"><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br class="gmail-Apple-interchange-newline">The reason why those particular labels are directly centered under the bars is because discrete values are being used. That is, the histogram is counting the number of values *equal* to specific values, rather than in a range of values.  You can see this from looking at this resource setting in the histo_3.ncl code:</div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">  res@gsnHistogramDiscreteBinValues  = ispan(0,25,1)</div><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">This will bin the values by counting the number of values exactly equal to 0, exactly equal to 1, and so on up to 25.</div><br></div><div class="gmail_default" style="font-size:small">The labels under the tickmarks are not labelbar tickmarks, since there is no labelbar in this case. These bars are drawn using filled polygons and not labelbars.</div><div class="gmail_default"><br></div><div class="gmail_default">To change these labels, you need to set tickmark (tm) resources, in particular, tmXBLabels. Here, I'm adding an equal sign to the front of every value:</div><div class="gmail_default"><br></div><font face="monospace, monospace">  res@tmXBLabels           = "=" + res@gsnHistogramDiscreteBinValues<br>  res@tmXBLabelFontHeightF = 0.01<br>  res@tmXBLabelStride      = 1</font><div class="gmail_default" style="font-size:small">


<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Note that I also set tmXBLabelStride to 1, because in histo_3.ncl, only every other bar was labeled.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 18, 2018 at 11:09 PM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</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">Hi:<div><br></div><div><div><a href="https://www.ncl.ucar.edu/Applications/histo.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/histo.shtml</a><br></div><div><br></div><div>is  histogram where the labels appear under the bars.</div><div><br></div><div>However, I can't seem to find the setting for this.</div><div><br></div><div>The default appears to be between</div><div><br></div><div>and: 




<span></span>





<p class="m_2244277422762582141gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_2244277422762582141gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@lbLabelAlignment <span class="m_2244277422762582141gmail-Apple-converted-space">    </span>= "BoxCenters"</span></p><p class="m_2244277422762582141gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_2244277422762582141gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_2244277422762582141gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_2244277422762582141gmail-s1" style="font-variant-ligatures:no-common-ligatures">is not a recognized resource,</span></p><p class="m_2244277422762582141gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_2244277422762582141gmail-s1" style="font-variant-ligatures:no-common-ligatures">so changing this to ExteriorEdges doesn't help.</span></p>


</div><div><br></div><div>Thank you,</div><div><br></div><div>Barry</div>-- <br><div class="m_2244277422762582141gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div></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>