Fancy settings for Matplotlib.
Authors: Joel Karlsson & Carl Eklind
pip install git+https://github.com/kajoel/pynt
Download Latin Modern Roman (e.g. here: https://www.fontsquirrel.com/fonts/latin-modern-roman, you only need to install Latin Modern Roman, lmroman10-regular.otf
).
Then, run the following in python
to make Matplotlib find the new font (you only need to do this once):
from matplotlib import font_manager
font_manager._rebuild()
Now, Pynt will use Latin Modern Roman as the default font when LaTeX is not used.
This is not the right place for documentation but, currently, Pynt has only three functions.
Set Pynt style for Pyplot. Currently pynt
is the only option.
Turn on (or off) useage of TeX.
preamble
can be True
(Pynt default preamble), a path to a preamble,
a string (or list) version of the preamble or False
(no preamble).
Set Pyplot fontsize.