<div dir="ltr"><div dir="ltr">I'm sorry, I did not explain that very well. NCL example XY_13 shows how to add error bars to a line plot. However, you want to add error bars to a bar chart.<br><br>The added code at the bottom of xy_13.ncl, starting with "add error bars", should work about the same way when making a bar chart. Use the same X values that are used to make the bar chart, and use the min and max errors for the error bar Y values.<br><br>Be sure to set res@gsnFrame and res@gsnDraw to False when drawing the base plot, as shown in XY_13. Then call draw(plot) and frame(wks) after the error bars are added.</div><div dir="ltr"><br></div><div dir="ltr">You might also want to look at the NCL "Box Plot" examples for an alternate way to show bar charts with error bars.<br><br><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 1, 2020 at 9:51 PM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Please see example 13 on the NCL XY plot examples page.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 1, 2020 at 8:07 PM 张盼峰 via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div style="font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif;font-size:14px;line-height:1.6">
<div>
<div>
<span>Dear all,
</span></div><div><span><br></span></div><div>Can NCL or PyNGL add errorbar to the bar chart ?</div><div>Where are examples of adding errorbars ?</div><div><br></div><div>Thank you.</div><div><br></div><div>Best regards,</div><div><br></div><div>Panfeng</div></div></div></div></blockquote></div></div></blockquote></div></div></div></div>