熊猫,带错误栏的水平条形图

时间:2015-12-11 21:05:47

标签: python pandas plot bar-chart

在Pandas中,如何使水平条形图内的误差条也水平?

tried it and my Error Bars inside horizontal Bar Chart is vertical

1 个答案:

答案 0 :(得分:1)

从你的代码:

means.plot(yerr=errors, ax=ax, kind='barh')

您使用了yerr,因此您的误差线与垂直轴对齐。将其更改为xerr,错误栏将为水平。