matplotlib中文标题

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

 

 

 

posted @ 2021-08-31 11:39  OTAKU_nicole  阅读(277)  评论(0编辑  收藏  举报