论文图表

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 给子图在图片里面添加标题

https://stackoverflow.com/questions/12957801/matplotlib-placement-of-text-e-g-suptitle-inside-the-frame

保存图片控制dpi

例子
plt.savefig("filename.png", dpi=1320)

ps作图问题

5号字体是ps的10.5点
https://zhidao.baidu.com/question/99738533.html

posted @ 2018-10-19 15:01  流沙沙  阅读(165)  评论(0编辑  收藏  举报