diff --git a/tutorials/intermediate/color_cycle.py b/tutorials/intermediate/color_cycle.py index 9adbdbcd7341..cc400e3e7dac 100644 --- a/tutorials/intermediate/color_cycle.py +++ b/tutorials/intermediate/color_cycle.py @@ -35,10 +35,10 @@ ############################################################################### # So ``yy[:, i]`` will give you the ``i``-th offset sine curve. Let's set the -# default prop_cycle using :func:`matplotlib.pyplot.rc`. We'll combine a color -# cycler and a linestyle cycler by adding (``+``) two ``cycler``'s together. -# See the bottom of this tutorial for more information about combining -# different cyclers. +# default ``prop_cycle`` using :func:`matplotlib.pyplot.rc`. We'll combine a +# color cycler and a linestyle cycler by adding (``+``) two ``cycler``'s +# together. See the bottom of this tutorial for more information about +# combining different cyclers. default_cycler = (cycler(color=['r', 'g', 'b', 'y']) + cycler(linestyle=['-', '--', ':', '-.'])) @@ -48,7 +48,7 @@ ############################################################################### # Now we'll generate a figure with two axes, one on top of the other. On the # first axis, we'll plot with the default cycler. On the second axis, we'll -# set the prop_cycler using :func:`matplotlib.axes.Axes.set_prop_cycle` +# set the ``prop_cycle`` using :func:`matplotlib.axes.Axes.set_prop_cycle`, # which will only set the ``prop_cycle`` for this :mod:`matplotlib.axes.Axes` # instance. We'll use a second ``cycler`` that combines a color cycler and a # linewidth cycler. @@ -67,16 +67,16 @@ plt.show() ############################################################################### -# Setting ``prop_cycler`` in the ``matplotlibrc`` file or style files -# ------------------------------------------------------------------- +# Setting ``prop_cycle`` in the ``matplotlibrc`` file or style files +# ------------------------------------------------------------------ # -# Remember, if you want to set a custom ``prop_cycler`` in your +# Remember, if you want to set a custom cycler in your # ``.matplotlibrc`` file or a style file (``style.mplstyle``), you can set the # ``axes.prop_cycle`` property: # # .. code-block:: python # -# axes.prop_cycle : cycler(color='bgrcmyk') +# axes.prop_cycle : cycler(color='bgrcmyk') # # Cycling through multiple properties # -----------------------------------