📜  带有 x-ticks 的条形图 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:00.252000             🧑  作者: Mango

代码示例1
plt.bar(weekday_averages['weekday'], weekday_averages['casual'])
plt.xticks(ticks=[0, 1, 2, 3, 4, 5, 6],
          labels=['Sunday', 'Monday', 'Tuesday', 'Wednesday',
                 'Thursday', 'Friday', 'Saturday'],
          rotation=30)
plt.show()