Configuration
Tangled into ‘~/.matplotlib/matplotlibrc’
# Export with transparent background.
savefig.transparent: True
# Use LaTeX by default.
text.usetex: True
# Fix LaTeX font being spindly on HiDPI screens.
text.latex.preamble: \usepackage{mlmodern}
- 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')