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.

1 Answer 1

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
1
  • Where to look for the supported font? I'm looking for Kannada Font. Jun 2, 2021 at 14:42

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.