8000 Make property name be consistent with rc parameter. by bingyao · Pull Request #14698 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Make property name be consistent with rc parameter. #14698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tutorials/intermediate/color_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=['-', '--', ':', '-.']))

Expand All @@ -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.
Expand All @@ -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
# -----------------------------------
Expand Down
0