I'm trying to plot unicode symbols. I've tried a variety of approaches and always get stuck with bitstream vera sans, which doesn't have the symbols I need.
I have unsuccessfully tried deleting the font cache (~/.matplotlib/fontList.*cache
), loading the font directly from file (e.g. How to use a (random) *.otf or *.ttf font in matplotlib?), and some other SO suggestions that I've now lost.
>>> import matplotlib
>>> matplotlib.use('agg')
>>> import matplotlib.font_manager as font_manager
>>> prop = font_manager.FontProperties('/Library/Fonts/Arial Unicode.ttf')
>>> prop.get_name()
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/font_manager.py:1279: UserWarning: findfont: Font family ['/Library/Fonts/Arial Unicode.ttf'] not found. Falling back to Bitstream Vera Sans
(prop.get_family(), self.defaultFamily[fontext]))
'Bitstream Vera Sans'
How can I load this font, or at least something nearly equivalent?