英文:
Seaborn boxplot - spaces beetween plots and categories
问题
I'm here to provide the translation for the text you provided. Here it is:
问题出在图上。我制作了Seaborn箱线图,以显示每天每小时(每小时一次采样)的数据。
我还在箱线上标记了中位数值。
我的问题是,由于中位数标签,图变得难以阅读。我想要改变每小时数据集之间的间距,但找不到如何调整它的方法。有人可以提供帮助吗?
请查看附图:我想要改变2021和2022之间以及每小时之间的间距。点击这里查看图片
代码链接:https://Control.com/7ae270bf
我找不到Seaborn箱线图的参数来更改间距。
英文:
got problem with figure. I made seaborn boxplot for days and hours (1h stamp).
I also get median value on boxes.
My problem is that it is unreadable cause mediana text. I would like to change spaces beetween data sets for hours but cant find calling for it. Anyone can help?
Look at attached pic: i want change space between 2021&2022 and between hoursenter image description here
Code: https://Control.com/7ae270bf
I cant find seaborn boxplot parameter to change spaces.
答案1
得分: 0
你可以在 sns.boxplot()
函数中使用 width
参数来改变箱线图/小时之间的间距。接下来,你可以通过在创建坐标轴时设置 figsize
来增加坐标轴的宽度。这样一起做将会在箱线图之间创建更多的间距。
英文:
You can use the width
argument in the sns.boxplot()
function to change the space between boxplots/hours. Next you can increase the ax width (by setting figsize
when you create the axes). Together this will create more space between boxplots.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论