I have copied and put in my configurations in ~/.config/matplotlib/matplotlibrc
.
Then I checked in python which matplotlibrc it is using. It is still the default one.
>>> import matplotlib
>>> matplotlib.matplotlib_fname()
'/Users/home/Library/Python/3.10/lib/python/site-packages/matplotlib/mpl-data/matplotlibrc'
The configs I put in is not affective. From the documentation, the one in .config should take precedence.
I have tried restarting the terminal, but nothing worked. If I put the matplotlibrc file in the working directory of python, it successfully chooses the one in the directory. But it never uses the one in .config/.
I read from this thread that I have to delete the .matplotlib dir. I tried but it is recreated as soon as I launch python, and nothing is changed. What would be the problem?
I use a macbook on MacOS 14.4.1.
Jeffrey Suen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1