0

I am having an issue plotting data with Chinese characters. I am using simple pandas plot df.plot() and I get a bunch of error messages referring to missing Glyph, looking like this:

UserWarning: Glyph 29273 (\N{CJK UNIFIED IDEOGRAPH-7259}) missing from current font.
  func(*args, **kwargs)
UserWarning: Glyph 29642 (\N{CJK UNIFIED IDEOGRAPH-73CA}) missing from current font.
  func(*args, **kwargs)
UserWarning: Glyph 29786 (\N{CJK UNIFIED IDEOGRAPH-745A}) missing from current font.
  func(*args, **kwargs)
UserWarning: Glyph 23453 (\N{CJK UNIFIED IDEOGRAPH-5B9D}) missing from current font.
  func(*args, **kwargs)

What should I install to fix this problem?

halo09876
  • 2,725
  • 12
  • 51
  • 71
  • You need to find a font that has this glyph, then change the font property in Matplotlib. As far as I can see you can't do this through the DataFrame `plot` method, you need to use matplotlib. See [here](https://stackoverflow.com/a/28907015/6220759) – Josh Friedlander Oct 03 '22 at 08:22

0 Answers0