I am using matplotlib 1.3.1 with python 3.4.0 on Ubuntu 14.04. I would like to use a matplotlibrc configuration file in .config/matplotlib/matplotlibrc. However it seems like matplotlib is unable to find it:
~$ ls ~/.config/matplotlib/
matplotlibrc
~$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
/usr/lib/python3/dist-packages/matplotlib/__init__.py:766: UserWarning: Could not find matplotlibrc; using defaults
warnings.warn('Could not find matplotlibrc; using defaults')
/usr/lib/python3/dist-packages/matplotlib/__init__.py:882: UserWarning: could not find rc file; returning defaults
warnings.warn(message)
The content of my matplotlibrc is the default one from here.
How can I make matplotlib find the configuration file?
EDIT:
>>> matplotlib.get_configdir()
'/home/<me>/.matplotlib'
matplotlib.get_configdir()?chmod u+rwx ~/.config/matplotlibandchmod u+r ~/.config/matplotlib/matplotlibrcmight help.~/.matplotlibrather than~/.config/matplotlibthen. Not sure why the config path would have changed.UserWarning: Found matplotlib configuration in ~/.matplotlib/. To conform with the XDG base directory standard, this configuration location has been deprecated on Linux, and the new location is now '/home/me/.config'/matplotlib/. Please move your configuration there to ensure that matplotlib will continue to find it in the future.So I'd like to use the correct location, or at least get rid of the warning.