设置坐标轴中时间显示格式为时:分(Y,m,d,H,M,S)(年月日时分秒)
hours = mdates.DateFormatter(’%H:%M’)
ax.xaxis.set_major_formatter(hours)
转载自:https://blog.youkuaiyun.com/huangxiaoyun1900/article/details/81952942
设置坐标轴中时间显示格式为时:分(Y,m,d,H,M,S)(年月日时分秒)
hours = mdates.DateFormatter(’%H:%M’)
ax.xaxis.set_major_formatter(hours)
转载自:https://blog.youkuaiyun.com/huangxiaoyun1900/article/details/81952942