带有空心圆的 matplotlib 和 seaborn 错误栏

matplotlib and seaborn error bars with open circle

我正在使用 matplotlib 和 seaborn 来制作漂亮的图。我认为带有空心圆圈的错误栏非常好。仅使用 matplotlib 时的解决方案是使用类似

plt.errorbar(x,y,yerr=err,fmt='o',color='gray',linewidth=0.5,mfc='white',zorder=1)

但是,如果我导入 seaborn,它会删除我不想发生的外圈。有什么想法吗?

您需要将 markeredgewidthmew 参数设置为正数。