Skip to content

Document $MATPLOTLIBRC #5272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions doc/users/customizing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,9 @@ def matplotlib_fname():

- `$PWD/matplotlibrc`

- environment variable `MATPLOTLIBRC`
- `$MATPLOTLIBRC/matplotlibrc`

- `$MPLCONFIGDIR/matplotlib`
- `$MPLCONFIGDIR/matplotlibrc`

- On Linux,

Expand Down