<div dir="ltr"><div>Hi Mary<br></div><div>I should read this more carefully.</div><div>Thanks for the clear explanation!</div><div><br></div><div>Best!</div><div>Joowan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 8, 2015 at 4:49 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.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 class="gmail_default" style="font-size:small">This is the correct behavior. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please read the documentation for gsnXYBarChart and gsnXYBarChartOutlineOnly at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_xy.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_xy.shtml</a></div><div class="gmail_default">
<ul>
<li><span><i></i><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnXYBarChart" target="_blank"><span><i>gsnXYBarChart</i></span></a></span><span> - if set to True, then instead of a curve, a bar will be drawn for each Y value. Each bar will be centered around its X location. <br><br></span></li>
<li><span><i></i><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnXYBarChartOutlineOnly" target="_blank"><span><i>gsnXYBarChartOutlineOnly</i></span></a></span><span> - if set to True, then instead of a curve, you will get a box outline of your curve. This resource is different than the behavior of <a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnXYBarChart" target="_blank"><span><i>gsnXYBarChart</i></span></a>, because the vertical lines represent the exact location of the X values, and not centered about the X values.</span></li>
</ul><div>--Mary</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Feb 8, 2015 at 1:48 PM, Joowan Kim <span dir="ltr"><<a href="mailto:joowan@ucar.edu" target="_blank">joowan@ucar.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear NCL experts<div><br></div><div>I'm drawing histogram using, gsn_csm_xy. </div><div>It is very useful for me as it support drawing only outline of the histogram, res@gsnXYBarChartOutlineOnly = True</div><div><br></div><div>But I found this option shifts the histogram half of dx (bin size).</div><div>Is it only my problem or designed like that on purpose? </div><div>I'm using ncl v6.2.0 in MacOS.</div><div><br></div><div>please see my testing example below</div><div>Any comment will be helpful for me!</div><div><br></div><div>Thanks</div><div><br></div><div>----------------------------</div><div><div>s = random_normal(0,3,2000)</div><div>r = True</div><div>r@bin_max = 5.</div><div>r@bin_min = -5.</div><div>y = pdfx(s,10,r)</div><div>x = y@bin_center</div><div><br></div><div>w = gsn_open_wks("eps","bar2")</div><div>o = True</div><div>o@gsnDraw = False</div><div>o@gsnFrame = False</div><div>o@gsnXYBarChart = True</div><div>p1 = gsn_csm_xy(w,x,y,o)</div><div>o@gsnXYBarChartOutlineOnly = True</div><div>o@xyLineColor = "red"</div><div>p2 = gsn_csm_xy(w,x,y,o)</div><div>overlay(p1,p2)</div><div>draw(p1)</div><div>frame(w)</div><div><br></div><div>print("CAUTION: gsnXYBarChartOutlineOnly = True shifts the histogram...")</div></div><div><div>----------------------------<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div><div><br></div>-- <br><div><div dir="ltr">Joowan Kim<br>Atmospheric Chemistry Division<br>National Center for Atmospheric Research<br>PO Box 3000 Boulder, CO 80307<br><div>e-mail : <a href="mailto:joowan@ucar.edu" target="_blank">joowan@ucar.edu</a><br> <a href="mailto:joowan.k@gmail.com" target="_blank">joowan.k@gmail.com</a><br></div></div></div>
</div></font></span></div></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Joowan Kim<br>Atmospheric Chemistry Division<br>National Center for Atmospheric Research<br>PO Box 3000 Boulder, CO 80307<br><div>e-mail : <a href="mailto:joowan@ucar.edu" target="_blank">joowan@ucar.edu</a><br> <a href="mailto:joowan.k@gmail.com" target="_blank">joowan.k@gmail.com</a><br></div></div></div>
</div>