mac matplotlib绘图显示中文乱码问题
例子
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
matplotlib 给子图在图片里面添加标题
保存图片控制dpi
例子
plt.savefig("filename.png", dpi=1320)
ps作图问题
5号字体是ps的10.5点
https://zhidao.baidu.com/question/99738533.html