Я использую matplotlib 1.3.1 с python 3.4.0 на Ubuntu 14.04. Я хотел бы использовать matplotlibrc configuration file в .config/matplotlib/matplotlibrc
. Однако, похоже Matplotlib не в состоянии найти его:matplotlib не может найти конфигурационный файл matplotlibrc
~$ 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)
Содержание моего matplotlibrc
по умолчанию один из here.
Как сделать matplotlib найти файл конфигурации?
EDIT:
>>> matplotlib.get_configdir()
'/home/<me>/.matplotlib'
Что вы получаете от 'matplotlib.get_configdir()'? – Marius
У вас есть права на чтение ~/.config/matplotlib/matplotlibrc? 'chmod u + rwx ~/.config/matplotlib' и' chmod u + r ~/.config/matplotlib/matplotlibrc' могут помочь. – unutbu
@Marius см. Мое редактирование на вопрос. – fouronnes