Skip to content

Commit a02f2ef

Browse files
committed
Better 'cycles' introduction
1 parent da53a8d commit a02f2ef

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/cycles.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@
2121
# ProPlot defines **color cycles** as color palettes comprising sets of
2222
# *distinct colors*. Unlike :ref:`colormaps <Colormaps>`, interpolation
2323
# between these colors may not make sense. Color cycles are generally used
24-
# with bar plots, line plots, and other distinct plot elements. ProPlot uses
25-
# the `~proplot.colors.ListedColormap` class to *name* color cycles, then
26-
# applies them to plots by updating the `property cycler\
27-
# <https://matplotlib.org/3.1.0/tutorials/intermediate/color_cycle.html>`__.
28-
# Color cycles can also be made by :ref:`sampling colormaps <ug_cycles_new>`.
24+
# with bar plots, line plots, and other distinct plot elements. ProPlot's
25+
# named color cycles are actually registered as `~proplot.colors.ListedColormap`
26+
# instances so that they can be `used with categorical data\
27+
# <https://journals.ametsoc.org/view-large/figure/9538246/bams-d-13-00155_1-f5.tif>`__.
28+
# Much more commonly, we build `*property cycles*\
29+
# <https://matplotlib.org/3.1.0/tutorials/intermediate/color_cycle.html>`__
30+
# from the `~proplot.colors.ListedColormap` colors using the
31+
# `~proplot.constructor.Cycle` constructor function or by
32+
# :ref:`drawing samples <ug_cycles_new>` from continuous colormaps.
2933
#
3034
# ProPlot adds several features to help you use color cycles effectively in
3135
# your figures. This section documents the new registered color cycles,

0 commit comments

Comments
 (0)