试图绘制一个图形并设置x记号,但没有用。任何帮助都将不胜感激谢谢!你知道吗
postcodes = ['6000', '6003', '6005', '6006', '6007', '6008', '6009', '6010', '6011', '6012']
ax4 = data9310.plot(title='Population 2011/2016')
ax4.set_xticklabels(postcodes, rotation=0)
结果:
6003处于6000点位,以此类推。。。所以每个点在x轴上都应该有一个邮政编码
您的图形标记了
matplotlib
自动创建的所有主要x记号。可以指定设置的x记号:输出:
相关问题 更多 >
编程相关推荐