【发布时间】:2020-04-15 09:06:04
【问题描述】:
我正在尝试将很长的 x 轴标签设置为多行,如右图所示:
我目前使用的代码:
ax = cluster3.plot(x='Neighborhood',y=['Population'],kind='bar',alpha=0.75,title='Population of Each Neighborhood',figsize=(15, 10))
ax.set_ylabel('Population')
cluster3 是具有 Neighborhood 列的数据框
【问题讨论】:
标签: python python-3.x matplotlib