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

Skip to content

Commit 71047e9

Browse files
committed
Merge pull request #4112 from endolith/colormap_synonyms_in_examples
DOC: Organize colormap list and remove synonyms
2 parents 8443f28 + 3ecaa0b commit 71047e9

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

doc/users/plotting/colormaps/grayscale.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,23 @@
2222

2323
# Have colormaps separated into categories: http://matplotlib.org/examples/color/colormaps_reference.html
2424

25-
cmaps = [('Sequential', ['binary', 'Blues', 'BuGn', 'BuPu', 'gist_yarg',
25+
cmaps = [('Sequential', ['Blues', 'BuGn', 'BuPu',
2626
'GnBu', 'Greens', 'Greys', 'Oranges', 'OrRd',
2727
'PuBu', 'PuBuGn', 'PuRd', 'Purples', 'RdPu',
2828
'Reds', 'YlGn', 'YlGnBu', 'YlOrBr', 'YlOrRd']),
29-
('Sequential2', ['afmhot', 'autumn', 'bone', 'cool', 'copper',
30-
'gist_gray', 'gist_heat', 'gray', 'hot', 'pink',
29+
('Sequential (2)', ['afmhot', 'autumn', 'bone', 'cool', 'copper',
30+
'gist_heat', 'gray', 'hot', 'pink',
3131
'spring', 'summer', 'winter']),
3232
('Diverging', ['BrBG', 'bwr', 'coolwarm', 'PiYG', 'PRGn', 'PuOr',
33-
'RdBu', 'RdGy', 'RdYlBu', 'RdYlGn', 'seismic']),
34-
('Qualitative', ['Accent', 'Dark2', 'hsv', 'Paired', 'Pastel1',
35-
'Pastel2', 'Set1', 'Set2', 'Set3', 'spectral']),
36-
('Miscellaneous', ['gist_earth', 'gist_ncar', 'gist_rainbow',
37-
'gist_stern', 'jet', 'brg', 'CMRmap', 'cubehelix',
38-
'gnuplot', 'gnuplot2', 'ocean', 'rainbow',
39-
'terrain', 'flag', 'prism'])]
33+
'RdBu', 'RdGy', 'RdYlBu', 'RdYlGn', 'Spectral',
34+
'seismic']),
35+
('Qualitative', ['Accent', 'Dark2', 'Paired', 'Pastel1',
36+
'Pastel2', 'Set1', 'Set2', 'Set3']),
37+
('Miscellaneous', ['gist_earth', 'terrain', 'ocean', 'gist_stern',
38+
'brg', 'CMRmap', 'cubehelix',
39+
'gnuplot', 'gnuplot2', 'gist_ncar',
40+
'nipy_spectral', 'jet', 'rainbow',
41+
'gist_rainbow', 'hsv', 'flag', 'prism'])]
4042

4143
# indices to step through colormap
4244
x = np.linspace(0.0, 1.0, 100)

doc/users/plotting/colormaps/lightness.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,23 @@
2121

2222
# Have colormaps separated into categories: http://matplotlib.org/examples/color/colormaps_reference.html
2323

24-
cmaps = [('Sequential', ['binary', 'Blues', 'BuGn', 'BuPu', 'gist_yarg',
24+
cmaps = [('Sequential', ['Blues', 'BuGn', 'BuPu',
2525
'GnBu', 'Greens', 'Greys', 'Oranges', 'OrRd',
2626
'PuBu', 'PuBuGn', 'PuRd', 'Purples', 'RdPu',
2727
'Reds', 'YlGn', 'YlGnBu', 'YlOrBr', 'YlOrRd']),
28-
('Sequential2', ['afmhot', 'autumn', 'bone', 'cool', 'copper',
29-
'gist_gray', 'gist_heat', 'gray', 'hot', 'pink',
28+
('Sequential (2)', ['afmhot', 'autumn', 'bone', 'cool', 'copper',
29+
'gist_heat', 'gray', 'hot', 'pink',
3030
'spring', 'summer', 'winter']),
3131
('Diverging', ['BrBG', 'bwr', 'coolwarm', 'PiYG', 'PRGn', 'PuOr',
32-
'RdBu', 'RdGy', 'RdYlBu', 'RdYlGn', 'seismic']),
33-
('Qualitative', ['Accent', 'Dark2', 'hsv', 'Paired', 'Pastel1',
34-
'Pastel2', 'Set1', 'Set2', 'Set3', 'spectral']),
35-
('Miscellaneous', ['gist_earth', 'gist_ncar', 'gist_rainbow',
36-
'gist_stern', 'jet', 'brg', 'CMRmap', 'cubehelix',
37-
'gnuplot', 'gnuplot2', 'ocean', 'rainbow',
38-
'terrain', 'flag', 'prism'])]
32+
'RdBu', 'RdGy', 'RdYlBu', 'RdYlGn', 'Spectral',
33+
'seismic']),
34+
('Qualitative', ['Accent', 'Dark2', 'Paired', 'Pastel1',
35+
'Pastel2', 'Set1', 'Set2', 'Set3']),
36+
('Miscellaneous', ['gist_earth', 'terrain', 'ocean', 'gist_stern',
37+
'brg', 'CMRmap', 'cubehelix',
38+
'gnuplot', 'gnuplot2', 'gist_ncar',
39+
'nipy_spectral', 'jet', 'rainbow',
40+
'gist_rainbow', 'hsv', 'flag', 'prism'])]
3941

4042
# indices to step through colormap
4143
x = np.linspace(0.0, 1.0, 100)

0 commit comments

Comments
 (0)