如何与Seaborn绘制多个分销图?
我在Python中没有经验丰富。但是我设法与Seaborn绘制了一个招牌分配图。
示例代码:
sns.displot(SD_frame_A,kind="kde")
所以我尝试在一个图中绘制其中的三个:
示例代码:
sns.displot(SD_frame_A,kind="kde")
sns.displot(SD_frame_S,kind="kde")
sns.displot(SD_frame_D,kind="kde")
plt.show()
但是这只会单独绘制三个分发。有人如何在一个图中绘制3个分布?
感谢您的阅读!
I am not experienced with plotting in Python. But I have managed to plot a signle distribution plot with Seaborn.
example code:
sns.displot(SD_frame_A,kind="kde")
So I tryed to plot three of them in one graph:
example code:
sns.displot(SD_frame_A,kind="kde")
sns.displot(SD_frame_S,kind="kde")
sns.displot(SD_frame_D,kind="kde")
plt.show()
But this will only plot the three distribution separately. Does anyone how I can plot both 3 distribution in one plot?
Thanks for reading!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能使用
strendot
做到这一点,因为那是一个图形函数。但是您可以使用kdeplot
并提供轴对象:You can't do that with
displot
because that is a figure-level function. But you can usekdeplot
and provide an axes object: