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

Skip to content

Commit a8f6e98

Browse files
authored
Merge pull request #14708 from meeseeksmachine/auto-backport-of-pr-14698-on-v3.1.1-doc
Backport PR #14698 on branch v3.1.1-doc (Make property name be consistent with rc parameter.)
2 parents 2533c9f + 1a5dcc8 commit a8f6e98

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tutorials/intermediate/color_cycle.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535

3636
###############################################################################
3737
# So ``yy[:, i]`` will give you the ``i``-th offset sine curve. Let's set the
38-
# default prop_cycle using :func:`matplotlib.pyplot.rc`. We'll combine a color
39-
# cycler and a linestyle cycler by adding (``+``) two ``cycler``'s together.
40-
# See the bottom of this tutorial for more information about combining
41-
# different cyclers.
38+
# default ``prop_cycle`` using :func:`matplotlib.pyplot.rc`. We'll combine a
39+
# color cycler and a linestyle cycler by adding (``+``) two ``cycler``'s
40+
# together. See the bottom of this tutorial for more information about
41+
# combining different cyclers.
4242
default_cycler = (cycler(color=['r', 'g', 'b', 'y']) +
4343
cycler(linestyle=['-', '--', ':', '-.']))
4444

@@ -48,7 +48,7 @@
4848
###############################################################################
4949
# Now we'll generate a figure with two axes, one on top of the other. On the
5050
# first axis, we'll plot with the default cycler. On the second axis, we'll
51-
# set the prop_cycler using :func:`matplotlib.axes.Axes.set_prop_cycle`
51+
# set the ``prop_cycle`` using :func:`matplotlib.axes.Axes.set_prop_cycle`,
5252
# which will only set the ``prop_cycle`` for this :mod:`matplotlib.axes.Axes`
5353
# instance. We'll use a second ``cycler`` that combines a color cycler and a
5454
# linewidth cycler.
@@ -67,16 +67,16 @@
6767
plt.show()
6868

6969
###############################################################################
70-
# Setting ``prop_cycler`` in the ``matplotlibrc`` file or style files
71-
# -------------------------------------------------------------------
70+
# Setting ``prop_cycle`` in the ``matplotlibrc`` file or style files
71+
# ------------------------------------------------------------------
7272
#
73-
# Remember, if you want to set a custom ``prop_cycler`` in your
73+
# Remember, if you want to set a custom cycler in your
7474
# ``.matplotlibrc`` file or a style file (``style.mplstyle``), you can set the
7575
# ``axes.prop_cycle`` property:
7676
#
7777
# .. code-block:: python
7878
#
79-
# axes.prop_cycle : cycler(color='bgrcmyk')
79+
# axes.prop_cycle : cycler(color='bgrcmyk')
8080
#
8181
# Cycling through multiple properties
8282
# -----------------------------------

0 commit comments

Comments
 (0)