使用matplotlib画图报错,情况如下

RuntimeWarning: Glyph 20998 missing from current font

查询后初步发现是matplotlib找不到字体,需要自行设置一下:

plt.rcParams['font.sans-serif']=['SimHei']
posted on 2020-01-29 00:17  michaelz0  阅读(7990)  评论(0编辑  收藏  举报