wuyulin

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

分类:

技术点:

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2021-12-28
  • 2021-10-18
  • 2022-12-23
  • 2021-11-24
  • 2021-10-29
猜你喜欢
  • 2021-11-14
  • 2021-11-13
  • 2021-08-29
  • 2021-07-09
  • 2021-05-08
  • 2021-08-20
  • 2021-05-16
相关资源
相似解决方案