如何在小提琴中复制kdeplot的阴影?

时间:2019-04-26 02:09:20

标签: python matplotlib seaborn

我正在尝试在小提琴图上复制Seaborn的kdeplot shade=True显示。

enter image description here

但是,sns.violinplot()不使用shade参数。我可以使用ax.collections[0]访问小提琴图中的轴集合,然后同时使用set_facecolor()set_edgecolor()来更改绘图颜色。但是,我不确定如何为绘图的面色赋予Alpha值。我可以使用set_alpha(),但这可以设置面部和边缘颜色的alpha。

enter image description here

0 个答案:

没有答案