plt.rcParams['font.sans-serif']=['SimHei','Times New Roman']#中文显示 plt.rcParams['axes.unicode_minus']=False#负值显示 效果如下: