matplotlib 画图显示中文

替换sans-serif字体

plt.rcParams[‘font.sans-serif’] = [‘SimHei’]

解决坐标轴负数的负号显示问题

plt.rcParams[‘axes.unicode_minus’] = False