Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit586991e

Browse files
committed
DOC: Fix copy-paste typo in ColorSequenceRegistry
The docstring was copied from ColormapRegistry, but using `cmap` in the example is misleading.
1 parented8131b commit586991e

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
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp