[英]How to avoid boxplot categories being too close to each other?
How to avoid boxplot categories being too close to each other? 如何避免箱线图类别过于接近? See the picture I uploaded, I can't even distinguish the words. 看到我上传的图片,我什至无法分辨单词。
# Residual vs Category
census_subdivision_without_lower_mainland_and_van_island.boxplot(column='residual',by='CNMCRGNNM')
plt.savefig('../output/linear_model/residual_vs_region.png')
plt.clf()
通过将rot=90
传递给boxplot()
来旋转箱形图轴标签:
census_subdivision_without_lower_mainland_and_van_island.boxplot(column='residual',by='CNMCRGNNM', rot=90)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.