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

Skip to content

Commit 679497f

Browse files
committed
DOC: update docs about qualitative colormaps
They are now ListedColormap, remove note about them being removed. Also added reminder to update the colormap documentation if you add a new colormap or change an existing one
1 parent 75dd62b commit 679497f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/matplotlib/_cm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Nothing here but dictionaries for generating LinearSegmentedColormaps,
33
and a dictionary of these dictionaries.
44
5-
Documentation for each is in pyplot.colormaps()
5+
Documentation for each is in pyplot.colormaps(). Please update this
6+
with the purpose and type of your colormap if you add data for one here.
67
"""
78

89
from __future__ import (absolute_import, division, print_function,

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,11 +1996,9 @@ def colormaps():
19961996
19971997
ColorBrewer Qualitative:
19981998
1999-
(For plotting nominal data, :class:`ListedColormap` should be used,
1999+
(For plotting nominal data, :class:`ListedColormap` is used,
20002000
not :class:`LinearSegmentedColormap`. Different sets of colors are
2001-
recommended for different numbers of categories. These continuous
2002-
versions of the qualitative schemes may be removed or converted in the
2003-
future.)
2001+
recommended for different numbers of categories.)
20042002
20052003
* Accent
20062004
* Dark2

0 commit comments

Comments
 (0)