Turn off error bars in Seaborn Bar Plot

末鹿安然 提交于 2020-01-02 02:17:33

问题


I'm using GridSpec in matplotlib to create a page that has 9 subplots. One of the subplots is a Seaborn bar plot created with the following code:

import seaborn as sns
sns.barplot(x=df['Time'], y=df['Volume_Count'], ax=ax7)

Is there a way to turn off the vertical error bars of the bar plot? If not, is it possible to reduce the horizontal width of the bars?

Thanks!


回答1:


Have you tried the ci argument? According to the documentation:

ci : float or None, optional Size of confidence intervals to draw around estimated values. If None, no bootstrapping will be performed, and error bars will not be drawn.

sns.barplot(x=df['Time'], y=df['Volume_Count'], ax=ax7, ci=None)


来源:https://stackoverflow.com/questions/40088585/turn-off-error-bars-in-seaborn-bar-plot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!