From f06147852b27a95d1b9b81db9848b12782b995fa Mon Sep 17 00:00:00 2001 From: Ismo Toijala Date: Sun, 18 Oct 2015 15:32:06 +0200 Subject: [PATCH] document $MATPLOTLIBRC --- doc/users/customizing.rst | 8 +++++--- lib/matplotlib/__init__.py | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/users/customizing.rst b/doc/users/customizing.rst index 7388224f51d0..b9aa3cb7162b 100644 --- a/doc/users/customizing.rst +++ b/doc/users/customizing.rst @@ -50,13 +50,15 @@ matplotlib uses :file:`matplotlibrc` configuration files to customize all kinds of properties, which we call `rc settings` or `rc parameters`. You can control the defaults of almost every property in matplotlib: figure size and dpi, line width, color and style, axes, axis and grid properties, text and font -properties and so on. matplotlib looks for :file:`matplotlibrc` in three +properties and so on. matplotlib looks for :file:`matplotlibrc` in four locations, in the following order: 1. :file:`matplotlibrc` in the current working directory, usually used for specific customizations that you do not want to apply elsewhere. -2. It next looks in a user-specific place, depending on your platform: +2. :file:`$MATPLOTLIBRC/matplotlibrc`. + +3. It next looks in a user-specific place, depending on your platform: - On Linux, it looks in :file:`.config/matplotlib/matplotlibrc` (or `$XDG_CONFIG_HOME/matplotlib/matplotlibrc`) if you've customized @@ -66,7 +68,7 @@ locations, in the following order: See :ref:`locating-matplotlib-config-dir`. -3. :file:`{INSTALL}/matplotlib/mpl-data/matplotlibrc`, where +4. :file:`{INSTALL}/matplotlib/mpl-data/matplotlibrc`, where :file:`{INSTALL}` is something like :file:`/usr/lib/python2.5/site-packages` on Linux, and maybe :file:`C:\\Python25\\Lib\\site-packages` on Windows. Every time you diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index 89a2fb1b1222..043f415d5c6f 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -755,9 +755,9 @@ def matplotlib_fname(): - `$PWD/matplotlibrc` - - environment variable `MATPLOTLIBRC` + - `$MATPLOTLIBRC/matplotlibrc` - - `$MPLCONFIGDIR/matplotlib` + - `$MPLCONFIGDIR/matplotlibrc` - On Linux,