python画图时,中文无法正常显示的问题,RuntimeWarning: Glyph 26631 missing from current font. font.set_text(s, 0, flags=flags)
python使用matplotlib库画图时,标题含有中文时,运行警告,文字不能正常显示,显示小框框,加入下列代码可解决
plt.rcParams['font.sans-serif']=['SimHei']
plt.rcParams['axes.unicode_minus'] = False #负号显示
原文链接:https://blog.youkuaiyun.com/lhd005/article/details/99550113