Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b1e02d

Browse files
authored
Merge pull request #25476 from StefRe/DOC/fix_envvar
DOC: Fix docstring formatting
2 parents 63b9b04 + 1a63d12 commit 5b1e02d

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

lib/matplotlib/__init__.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,21 @@
7777
figure is created, because it is not possible to switch between
7878
different GUI backends after that.
7979
80-
The following environment variables can be used to customize the behavior::
81-
82-
.. envvar:: MPLBACKEND
83-
84-
This optional variable can be set to choose the Matplotlib backend. See
85-
:ref:`what-is-a-backend`.
86-
87-
.. envvar:: MPLCONFIGDIR
88-
89-
This is the directory used to store user customizations to
90-
Matplotlib, as well as some caches to improve performance. If
91-
:envvar:`MPLCONFIGDIR` is not defined, :file:`{HOME}/.config/matplotlib`
92-
and :file:`{HOME}/.cache/matplotlib` are used on Linux, and
93-
:file:`{HOME}/.matplotlib` on other platforms, if they are
94-
writable. Otherwise, the Python standard library's `tempfile.gettempdir`
95-
is used to find a base directory in which the :file:`matplotlib`
96-
subdirectory is created.
80+
The following environment variables can be used to customize the behavior:
81+
82+
:envvar:`MPLBACKEND`
83+
This optional variable can be set to choose the Matplotlib backend. See
84+
:ref:`what-is-a-backend`.
85+
86+
:envvar:`MPLCONFIGDIR`
87+
This is the directory used to store user customizations to
88+
Matplotlib, as well as some caches to improve performance. If
89+
:envvar:`MPLCONFIGDIR` is not defined, :file:`{HOME}/.config/matplotlib`
90+
and :file:`{HOME}/.cache/matplotlib` are used on Linux, and
91+
:file:`{HOME}/.matplotlib` on other platforms, if they are
92+
writable. Otherwise, the Python standard library's `tempfile.gettempdir`
93+
is used to find a base directory in which the :file:`matplotlib`
94+
subdirectory is created.
9795
9896
Matplotlib was initially written by John D. Hunter (1968-2012) and is now
9997
developed and maintained by a host of others.

0 commit comments

Comments
 (0)