我正在尝试将非常长的 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 - 如何在matplotlib中获取多行x轴标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59466109/