matplotlib设置坐标轴标注格式 import matplotlib.dates as mdates axes.xaxis.set_major_formatter(mdates.DateFormatter(‘%Y-%m’)) Post Views: 576