gpt4 book ai didi

seaborn - 如何在 Python 中使用 Seaborn 在条形图中显示带有标准差的误差条

转载 作者:行者123 更新时间:2023-12-02 10:11:57 26 4
gpt4 key购买 nike

我注意到 sns.barplot 使用标准错误作为误差条默认 1 。有办法把它改成SD吗?

ax = sns.barplot(x="day", y="tip", data=tips, ci=???)

最佳答案

编辑 2017 年:

现在,Seaborn v0.8 中有一个选项可以显示多种绘图类型的标准差。在问题的特定情况下:

ax = sns.barplot(x="day", y="tip", data=tips, ci="sd")

<小时/>

答案是:直接做是不可能的。

<小时/>

我问过same question in the GitHub issue tracker for this library :

Could it be possible to represent standard deviation bars instead standard error bars in barplots?

I don't know if it is already possible tweaking ci and estimator. If this feature is not too complex to implement in Seaborn, I could help to develop it as much as I can.

这个库的开发者(mwaskom)回答:

No, it's not possible, sorry.

关于seaborn - 如何在 Python 中使用 Seaborn 在条形图中显示带有标准差的误差条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36067194/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com