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

Skip to content

Commit d6270b1

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #29031: DOC: Fix copy-paste typo in ColorSequenceRegistry
1 parent 4ccf275 commit d6270b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ColorSequenceRegistry(Mapping):
105105
Read access uses a dict-like interface mapping names to lists of colors::
106106
107107
import matplotlib as mpl
108-
cmap = mpl.color_sequences['tab10']
108+
colors = mpl.color_sequences['tab10']
109109
110110
The returned lists are copies, so that their modification does not change
111111
the global definition of the color sequence.

0 commit comments

Comments
 (0)