ax.set(xlabel='X axis label',ylabel='Y axis label',xlim=(0,4),ylim=(0,4))ax.set_title('Anatomy of a figure',fontsize=20,va='bottom')ax.legend(loc='upper right')ax.grid(linestyle='--',which='major') 接下来设置刻度线,刻度又分为主刻度和次刻度,这里用到了ticker.MultipleLocator和...