|
22 | 22 |
|
23 | 23 | # Have colormaps separated into categories: http://matplotlib.org/examples/color/colormaps_reference.html
|
24 | 24 |
|
25 |
| -cmaps = [('Sequential', ['binary', 'Blues', 'BuGn', 'BuPu', 'gist_yarg', |
| 25 | +cmaps = [('Sequential', ['Blues', 'BuGn', 'BuPu', |
26 | 26 | 'GnBu', 'Greens', 'Greys', 'Oranges', 'OrRd',
|
27 | 27 | 'PuBu', 'PuBuGn', 'PuRd', 'Purples', 'RdPu',
|
28 | 28 | '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', |
31 | 31 | 'spring', 'summer', 'winter']),
|
32 | 32 | ('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'])] |
40 | 42 |
|
41 | 43 | # indices to step through colormap
|
42 | 44 | x = np.linspace(0.0, 1.0, 100)
|
|
0 commit comments