File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ locations, in the following order:
156
156
your customizations to be saved, please move this file to your
157
157
user-specific matplotlib directory.
158
158
159
+ Once a :file: `matplotlibrc ` file has been found, it will *not * search any of
160
+ the other paths.
161
+
159
162
To display where the currently active :file: `matplotlibrc ` file was
160
163
loaded from, one can do the following::
161
164
@@ -164,6 +167,12 @@ loaded from, one can do the following::
164
167
'/home/foo/.config/matplotlib/matplotlibrc'
165
168
166
169
See below for a sample :ref: `matplotlibrc file<matplotlibrc-sample> `.
170
+ Although all parameters are optional, you should almost always set the
171
+ `backend ` or else matplotlib will choose `Agg `, a *non-interactive * backend.
172
+ This can lead to unexpected behavior, since if you do not have a
173
+ :file: `matplotlibrc ` file, it would normally fall back to
174
+ :file: `{ INSTALL } /matplotlib/mpl-data/matplotlibrc `, which is often set to an
175
+ interactive backend by the package maintainer.
167
176
168
177
.. _matplotlibrc-sample :
169
178
Original file line number Diff line number Diff line change 35
35
# You can also deploy your own backend outside of matplotlib by
36
36
# referring to the module name (which must be in the PYTHONPATH) as
37
37
# 'module://my_backend'.
38
+ #
39
+ # If you omit this parameter, it will always default to "Agg", which is a
40
+ # non-interactive backend.
38
41
backend : $TEMPLATE_BACKEND
39
42
40
43
# If you are using the Qt4Agg backend, you can choose here
You can’t perform that action at this time.
0 commit comments