如何避免boxplot类别彼此太靠近?看到我上传的图片,我甚至无法区分单词。
# 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()
答案 0 :(得分:1)
通过将rot=90
传递给boxplot()
:
census_subdivision_without_lower_mainland_and_van_island.boxplot(column='residual',by='CNMCRGNNM', rot=90)