Matplotlib - Glyph 8722 missing from current font despite being in font_manager

Viewed 9875

To check all available matplotlib fonts, I followed the instructions here:

http://jonathansoma.com/lede/data-studio/matplotlib/list-all-fonts-available-in-matplotlib-plus-samples/

"Phetsarath OT" is on the resulting list:

enter image description here

When I try plt.rcParams["font.family"] = "Phetsarath OT" the plot generated contains the correct Phetsarath OT font, but an error message is triggered:

/matplotlib/backends/backend_agg.py:211: RuntimeWarning: Glyph 8722 missing from current font.
  font.set_text(s, 0.0, flags=flags)
/matplotlib/backends/backend_agg.py:180: RuntimeWarning: Glyph 8722 missing from current font.
  font.set_text(s, 0, flags=flags)

Is there anyway I can suppress this error?

1 Answers

Try this :

    plt.rc('axes', unicode_minus=False)
Related