<div dir="ltr"><div class="gmail_default" style="font-size:small">Sitan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please be aware that ncl-talk emails are going to hundreds of users, so it's better not to specifically address NCL developers in a new email thread. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I would start by looking at our histogram examples:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/histo.shtml">http://www.ncl.ucar.edu/Applications/histo.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">and in particular, examples histo_6.ncl and histo_11.ncl</div><div class="gmail_default"><br></div><div class="gmail_default">To add the text and lines to the plot, use gsn_add_text and gsn_add_polyline. You can see example histo_16.ncl for this.</div><div class="gmail_default"><br></div><div class="gmail_default">Note that in order to get the X locations for your lines and strings, you may want to use the special BeginBarLocs, MidBarLocs, or EndBarLocs attributes that are returned when you create a histogram using gsn_histogram.</div><div class="gmail_default"><br></div><div class="gmail_default">These attributes are necessary because the X axis values that you see (-2.2, -1.8, -1.4, etc) are not X locations, but rather bin ranges for your data. The three special attributes will give you the X locations for your bars so you can more easily position your text and lines where you want them.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 8:18 AM, Sitan Heyl <span dir="ltr"><<a href="mailto:heylsitan@gmail.com" target="_blank">heylsitan@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, Mary<div> I remember there is one example how to plot histogram like this (attachment). can you give me some suggestion how to plot it?</div><div><br></div><div>Best,</div><div>Yongli</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>