Is it possible to align x-axis ticks with corresponding bars in a matplotlib histogram?

后端 未结 0 424
陌清茗
陌清茗 2020-12-23 18:44

While plotting time-series date, i\'m trying to plot the number of data points per hour:

fig, ax = plt.subplots()
ax.hist(x = df.index.hour,
        bins = 24         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题