Fonts and Matplotlib

There are a few posts on StackOverflow about changing the font used by matplotlib, but I was not able to find a practical solution, particularly if the font is not part of the current set of system fonts.

To use a new font:

(Optional) Install the font in the system;

$ apt-get install msttcorefonts

Copy the font to matplotlib font directory. In this case, it’s in a virtualenv (server);