在使用Seaborn Riuinplots中使用拆分时显示两个盒子图
我想制作分裂的小提琴图,也显示两个数据集的框图,例如问题 seaborn:如何在每个海洋小提琴中使用自定义色彩?,问题是,当使用拆分海洋时,只会显示其中一个(我甚至还不清楚我都不清楚如您在答案中所看到的,它指的是哪个数据集,有没有办法克服这一点,或者我应该使用其他软件包?
I would like to make split violin plots which also show the boxplots for both datasets, like in the figure of the question Seaborn: How to apply custom color to each seaborn violinplot? , problem is that when using split seaborn shows only one of them (and it's not even clear to me to which dataset it refers to) as you can see in the answer, is there a way to overcome this or should I use a different package?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个带有人工数据集的示例,以显示默认
innion ='box'
如何显示组合数据集的简单盒子图框。第二个图显示了
innion ='Quartile'
的样子。最右边的绘图显示了一种明确绘制单独的盒子图的方法(使用
width =
将它们放在靠近中心)。Here is an example with an artificial dataset to show how the default
inner='box'
shows a simple boxplot-like box for the combined dataset.The second plot shows how
inner='quartile'
looks like.The rightmost plot shows an approach to explicitly draw separate boxplots (using
width=
to place them close to the center).