fig, ax = plt.subplots()
ax.plot(2, 3)
plt.rcParams['font.sans-serif'] = ['SimHei'] # 正常显示中文
ax.set_title('中文标题')
plt.show

 

 matplotlib中文标题

 

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2022-02-11
  • 2022-12-23
  • 2021-11-20
  • 2022-01-09
  • 2021-11-17
  • 2021-11-10
猜你喜欢
  • 2021-06-09
  • 2021-08-08
  • 2021-04-28
  • 2021-09-27
  • 2021-08-20
  • 2021-08-22
相关资源
相似解决方案