例子
from matplotlib.font_manager import FontProperties
font = FontProperties(fname='/Library/Fonts/Songti.ttc')
plt.title(title,fontproperties=font)
plt.ylabel('真实值',fontproperties=font)
plt.xlabel('预测值',fontproperties=font)
plt.legend(['训练集','验证集'],prop=font)
参考 https://jingyan.baidu.com/article/ab69b2709575102ca6189f67.html
保存图片控制dpi,例子
plt.savefig("filename.png", dpi=1320)