当前字体中缺少字形23130



运行时间警告:当前字体中缺少Glyph23130。font.set_text(s, 0.0, flags=flags)

你好,朋友们,我收到了这个警告。当我将matplotlib.pyplotpandas一起使用时。

这看起来像是一个字体问题。我不知道为什么,但以下几行解决了我的问题,现在汉字可以正确显示了:

import matplotlib as plt
plt.rcParams['font.sans-serif']=['SimHei'] #Show Chinese label
plt.rcParams['axes.unicode_minus']=False   #These two lines need to be set manually

最新更新