Pycharm使用matplotlib绘图时无法显示中文问题

在画图语句前,加上以下两行代码:

plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False</pre>
posted @ 2021-07-07 11:03  real0223  阅读(547)  评论(0)    收藏  举报