matplotlib提示RuntimeWarning: Glyph 20998 missing from current font

时间:2020-01-29 00:54:23   收藏:0   阅读:4121

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

RuntimeWarning: Glyph 20998 missing from current font

技术分享图片

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

plt.rcParams['font.sans-serif']=['SimHei']

原文:https://www.cnblogs.com/zmichael/p/12239421.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!