【发布时间】:2021-02-23 12:11:15
【问题描述】:
有没有一种方法可以向 seaborn regplot 和 residplot 添加自定义错误栏,就像使用 yerr 使用 matplotlib 错误栏一样?例子在这里;如果我只是添加一个 yerr 参数,则会发生错误,
import seaborn as sns
xd = [1,2,3,4,6,7]
yd = [2,4,7,9,12,14]
yerrd = [1,2,1,3,1,4]
sns.regplot(xd, yd)
sns.residplot(xd, yd)
【问题讨论】:
标签: python matplotlib plot seaborn data-visualization