<div dir="ltr"><div class="gmail_default" style="font-size:small">Barry,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can add space by increasing the Y position of the text string in the call to gsn_text (or gsn_add_text).  For example, if the max value is 4000, don't put the label right at 4000, but rather add a little to it, like 4005. You can also cheat by adding a carriage return at the end of the string, e.g., instead of "label", use "label~C~" which adds one carriage return.  For two, "label~C~~C~" and so on.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The other thing to do do is set txJust to BottomCenter, which means the bottom center of the string is what will be positioned at your X,Y position, and not the center center of the string.  And growing the labels is via the txFontHeightF resource.</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 class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 19, 2019 at 11:09 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello:<div><br></div><div>I was a bit surprised do see that there are numbers above the bars now.</div><div><br></div><div>However, they are there, so I must have really benefited from the information on these two pages.</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Applications/Scripts/bar_horz_7.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/bar_horz_7.ncl</a><br></div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text.shtml</a><br></div><div><br></div><div>Yet, I am wondering how I might create a bit of space between the bars and the labels, and how I might grow the labels (numbers) themselves?</div><div><br></div><div>Thank you,</div><div><br></div><div>Barry</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 19, 2019 at 5:33 PM Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Barry,</div><div class="gmail_default" style="font-size:small"><br>You can also use gsn_add_text or gsn_text to place the text above the bar, using the max value of the bar and the X axis position.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">There are some examples. See bar_7.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex7" target="_blank">http://www.ncl.ucar.edu/Applications/bar.shtml#ex7</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Histograms are slightly different, but there are also several examples of labeling the bars:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/histo.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/histo.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">See #12, and #16. This is mainly to give you some ideas of different ways to label a bar.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 17, 2019 at 9:17 AM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Barry,</div><div><br></div><div>You might be able to use "datatondc()" to get the NDC coordinates of the tops of the bars, and then use gsn_text_ndc() to draw your annotation (applying a small offset in x and/or y direction to properly position it).  The example on the datatondc() does something similar, but with markers rather than text.<br></div><div><br></div><div>    <a href="http://ncl.ucar.edu/Document/Functions/Built-in/datatondc.shtml" target="_blank">http://ncl.ucar.edu/Document/Functions/Built-in/datatondc.shtml</a></div><div>    <a href="http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text_ndc.shtml" target="_blank">http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text_ndc.shtml</a><br></div></div></div></div><div><br></div><div>Hope that helps...</div><div>Rick<br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 16, 2019 at 11:05 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello:<div><br></div><div>I have a bar chart attached. </div><div><br></div><div>I would like to place a number (I will generate it) above the position of the bar highest bar, centered at each labeled (x-axis) interval.</div><div><br></div><div>Is there a straightforward way to do this?</div><div><br></div><div>Thanks,</div><div><br></div><div>Barry</div><div><div><br></div>-- <br><div dir="ltr" class="gmail-m_4279174292465643570gmail-m_-4699984059070737968gmail-m_5247111600376077497gmail-m_-5856623679344427183gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, 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><br></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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>
</blockquote></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_4279174292465643570gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, 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><br></div></div></div></div></div>
</blockquote></div>