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

Skip to content

Commit 5dce0e3

Browse files
committed
improve-matplotlibrc-tutorial: update tutorials/introductory/customizing.py
change language to improve readability of mpl_configdir section
1 parent 9de9260 commit 5dce0e3

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

tutorials/introductory/customizing.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@
5353
# >>> import matplotlib.pyplot as plt
5454
# >>> plt.style.use('./images/presentation.mplstyle')
5555
#
56-
# Alternatively, you can load your custom style sheet with a call to
57-
# ``style.use(<style-name>)`` by placing your ``<style-name>.mplstyle`` file
58-
# into ``mpl_configdir/stylelib``. By default ``mpl_configdir`` should be
56+
# Alternatively, you can make your style known to Matplotlib by placing
57+
# your ``<style-name>.mplstyle`` file into ``mpl_configdir/stylelib``. You
58+
# can then load your custom style sheet with a call to
59+
# ``style.use(<style-name>)``. By default ``mpl_configdir`` should be
5960
# ``~/.config/matplotlib``, but you can check where yours is with
60-
# `matplotlib.get_configdir()`; you may need to create this directory. You also
61-
# can change the directory where Matplotlib looks for the stylelib/ folder by
62-
# setting the :envvar:`MPLCONFIGDIR` environment variable, see
61+
# `matplotlib.get_configdir()`; you may need to create this directory. You
62+
# also can change the directory where Matplotlib looks for the stylelib/
63+
# folder by setting the :envvar:`MPLCONFIGDIR` environment variable, see
6364
# :ref:`locating-matplotlib-config-dir`.
6465
#
6566
# Note that a custom style sheet in ``mpl_configdir/stylelib`` will override a
@@ -69,7 +70,7 @@
6970
# ``mpl_configdir`` you can specify your style with::
7071
#
7172
# >>> import matplotlib.pyplot as plt
72-
# >>> plt.style.use('<style-name>')
73+
# >>> plt.style.use(<style-name>)
7374
#
7475
#
7576
# Composing styles

0 commit comments

Comments
 (0)