@@ -302,8 +302,10 @@ pygtk, wxpython, tkinter, qt4, or macosx; also referred to as
302
302
"interactive backends") and hardcopy backends to make image files
303
303
(PNG, SVG, PDF, PS; also referred to as "non-interactive backends").
304
304
305
- There are a four ways to configure your backend, in reversed order
306
- of precedence:
305
+ There are a four ways to configure your backend. If they conflict each other,
306
+ the method mentioned last in the following list will be used, e.g. calling
307
+ :func: `~matplotlib.use() ` will override the setting in your ``matplotlibrc ``.
308
+
307
309
308
310
#. The ``backend `` parameter in your ``matplotlibrc `` file (see
309
311
:ref: `customizing-matplotlib `)::
@@ -329,9 +331,9 @@ of precedence:
329
331
330
332
> python script.py -dbackend
331
333
332
- This might conflict with scripts which parse
333
- command line arguments (see issue
334
- `#1986 <https://github.com/matplotlib/matplotlib/issues/1986 >`_), so you
334
+ This method is ** deprecated ** as the ` -d ` argument might conflict with
335
+ scripts which parse command line arguments (see issue
336
+ `#1986 <https://github.com/matplotlib/matplotlib/issues/1986 >`_). You
335
337
should use :envvar: `MPLBACKEND ` instead.
336
338
337
339
#. If your script depends on a specific backend you can use the
@@ -340,12 +342,12 @@ of precedence:
340
342
import matplotlib
341
343
matplotlib.use('PS') # generate postscript output by default
342
344
343
- If you use the `` use `` , this must be done before importing
344
- :mod: `matplotlib.pyplot `, calling :func: `~matplotlib.use ` after pyplot
345
- has been imported will have no effect. Using ` use ` will
346
- require changes in your code if users want to use a different
347
- backend. Therefore, you should avoid explicitly calling `` use `` unless
348
- absolutely necessary.
345
+ If you use the :func: ` ~matplotlib. use ` function , this must be done before
346
+ importing :mod: `matplotlib.pyplot `. Calling :func: `~matplotlib.use ` after
347
+ pyplot has been imported will have no effect. Using
348
+ :func: ` ~matplotlib.use ` will require changes in your code if users want to
349
+ use a different backend. Therefore, you should avoid explicitly calling
350
+ :func: ` ~matplotlib.use ` unless absolutely necessary.
349
351
350
352
.. note ::
351
353
Backend name specifications are not case-sensitive; e.g., 'GTKAgg'
0 commit comments