Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 586991e

Browse filesBrowse files
committed
DOC: Fix copy-paste typo in ColorSequenceRegistry
The docstring was copied from ColormapRegistry, but using `cmap` in the example is misleading.
1 parent ed8131b commit 586991e
Copy full SHA for 586991e

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎lib/matplotlib/colors.py

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.