1.坐标轴左右间隔的调整 ax.set_xlim(-0.5,0.5)#调整绘制图像坐标左右间隔的大小 2.绘图过程中输入中文 from pylab import * from matplotlib.ticker import MultipleLocator, FormatStrFormatter mpl.rcParams['font.sans-serif'] = ['SimHei']