Skip to content

Commit d028f87

Browse files
committed
Merge pull request #5272 from itoijala/matplotlibrc-1.5.x
Document $MATPLOTLIBRC
2 parents ab4eeda + f061478 commit d028f87

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

doc/users/customizing.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ matplotlib uses :file:`matplotlibrc` configuration files to customize all kinds
5050
of properties, which we call `rc settings` or `rc parameters`. You can control
5151
the defaults of almost every property in matplotlib: figure size and dpi, line
5252
width, color and style, axes, axis and grid properties, text and font
53-
properties and so on. matplotlib looks for :file:`matplotlibrc` in three
53+
properties and so on. matplotlib looks for :file:`matplotlibrc` in four
5454
locations, in the following order:
5555

5656
1. :file:`matplotlibrc` in the current working directory, usually used for
5757
specific customizations that you do not want to apply elsewhere.
5858

59-
2. It next looks in a user-specific place, depending on your platform:
59+
2. :file:`$MATPLOTLIBRC/matplotlibrc`.
60+
61+
3. It next looks in a user-specific place, depending on your platform:
6062

6163
- On Linux, it looks in :file:`.config/matplotlib/matplotlibrc` (or
6264
`$XDG_CONFIG_HOME/matplotlib/matplotlibrc`) if you've customized
@@ -66,7 +68,7 @@ locations, in the following order:
6668

6769
See :ref:`locating-matplotlib-config-dir`.
6870

69-
3. :file:`{INSTALL}/matplotlib/mpl-data/matplotlibrc`, where
71+
4. :file:`{INSTALL}/matplotlib/mpl-data/matplotlibrc`, where
7072
:file:`{INSTALL}` is something like
7173
:file:`/usr/lib/python2.5/site-packages` on Linux, and maybe
7274
:file:`C:\\Python25\\Lib\\site-packages` on Windows. Every time you

lib/matplotlib/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,9 @@ def matplotlib_fname():
755755
756756
- `$PWD/matplotlibrc`
757757
758-
- environment variable `MATPLOTLIBRC`
758+
- `$MATPLOTLIBRC/matplotlibrc`
759759
760-
- `$MPLCONFIGDIR/matplotlib`
760+
- `$MPLCONFIGDIR/matplotlibrc`
761761
762762
- On Linux,
763763

0 commit comments

Comments
 (0)