0

RuntimeWarning: Glyph 23130 missing from current font. font.set_text(s, 0.0, flags=flags)

Hello Friends I got this warning. When I'm using matplotlib.pyplot with pandas.

Beso
  • 1,176
  • 5
  • 12
  • 26
Sahil Mathur
  • 11
  • 1
  • 1

1 Answers1

3

It looks like a font problem. I don't know why but the following lines resolved my problem and the Chinese characters can be displayed correctly now:

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
rml
  • 803
  • 10
  • 14