Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f061478

Browse filesBrowse files
committed
document $MATPLOTLIBRC
1 parent ab4eeda commit f061478
Copy full SHA for f061478

File tree

Expand file treeCollapse file tree

2 files changed

+7
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-5
lines changed

‎doc/users/customizing.rst

Copy file name to clipboardExpand all lines: doc/users/customizing.rst
+5-3Lines changed: 5 additions & 3 deletions
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

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.