matplotlib命令与格式之tick坐标轴日期格式(设置日期主副刻度) 1.横坐标设置时间格式importmatplotlib.pyplotaspltimportmatplotlib.datesasmdates#配置横坐标为日期格式pl 日期主副刻度