【发布时间】:2014-04-27 11:42:01
【问题描述】:
我正在策划一个为期一周的熊猫系列。我的代码:
rng = pd.date_range('1/6/2014',periods=169,freq='H')
graph = pd.Series(shared_index, index=rng[:168])
graph.plot(shared_index)
显示 7 个 x 轴标签:
[06 Jan 2014, 07, 08, 09, 10, 11, 12]
但我想要:
[周一、周二、周三、周四、周五、周六、周日]
我在代码中指定什么来更改轴标签?
谢谢!
【问题讨论】:
标签: python matplotlib pandas