Configuration
Tangled into ‘~/.matplotlib/matplotlibrc’
# Export with transparent background.
savefig.transparent: True
# Use LaTeX by default.
text.usetex: True
# Fix spindly LaTeX font and add support for Physics awesomness.
text.latex.preamble: \usepackage{mlmodern} \usepackage{physics}
- Check which file is loaded:
import matplotlib as mpl
path = mpl.get_configdir()
file = mpl.matplotlib_fname()
f'{path}/{file}'
/Users/salutis/.matplotlib/matplotlibrc
- Load the file manually for debugging:
import matplotlib as mpl
mpl.rc_file('~/.matplotlib/matplotlibrc')