解决matplotlib画图无法显示中文和负号

加入以下两行:

plt.rcParams['font.sans-serif'] = ['SimHei']  # 用于正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False    # 用来正常显示负号