|
42 | 42 |
|
43 | 43 | # Have colormaps separated into categories: |
44 | 44 | # http://matplotlib.org/examples/color/colormaps_reference.html |
45 | | -cmaps = [('Perceptually Uniform Sequential', |
46 | | - ['viridis', 'inferno', 'plasma', 'magma']), |
47 | | - ('Sequential', ['Blues', 'BuGn', 'BuPu', |
48 | | - 'GnBu', 'Greens', 'Greys', 'Oranges', 'OrRd', |
49 | | - 'PuBu', 'PuBuGn', 'PuRd', 'Purples', 'RdPu', |
50 | | - 'Reds', 'YlGn', 'YlGnBu', 'YlOrBr', 'YlOrRd']), |
51 | | - ('Sequential (2)', ['afmhot', 'autumn', 'bone', 'cool', |
52 | | - 'copper', 'gist_heat', 'gray', 'hot', 'pink', |
53 | | - 'spring', 'Wistia', 'summer', 'winter']), |
54 | | - ('Diverging', ['BrBG', 'bwr', 'coolwarm', 'PiYG', 'PRGn', 'PuOr', |
55 | | - 'RdBu', 'RdGy', 'RdYlBu', 'RdYlGn', 'Spectral', |
56 | | - 'seismic']), |
57 | | - ('Qualitative', ['Accent', 'Dark2', 'Paired', 'Pastel1', |
58 | | - 'Pastel2', 'Set1', 'Set2', 'Set3', 'tab10', |
59 | | - 'tab20', 'tab20b', 'tab20c']), |
60 | | - ('Miscellaneous', ['gist_earth', 'terrain', 'ocean', 'gist_stern', |
61 | | - 'brg', 'CMRmap', 'cubehelix', |
62 | | - 'gnuplot', 'gnuplot2', 'gist_ncar', |
63 | | - 'nipy_spectral', 'jet', 'rainbow', |
64 | | - 'gist_rainbow', 'hsv', 'flag', 'prism'])] |
| 45 | +cmaps = [('Perceptually Uniform Sequential', [ |
| 46 | + 'viridis', 'plasma', 'inferno', 'magma']), |
| 47 | + ('Sequential', [ |
| 48 | + 'Greys', 'Purples', 'Blues', 'Greens', 'Oranges', 'Reds', |
| 49 | + 'YlOrBr', 'YlOrRd', 'OrRd', 'PuRd', 'RdPu', 'BuPu', |
| 50 | + 'GnBu', 'PuBu', 'YlGnBu', 'PuBuGn', 'BuGn', 'YlGn']), |
| 51 | + ('Sequential (2)', [ |
| 52 | + 'binary', 'gist_yarg', 'gist_gray', 'gray', 'bone', 'pink', |
| 53 | + 'spring', 'summer', 'autumn', 'winter', 'cool', 'Wistia', |
| 54 | + 'hot', 'afmhot', 'gist_heat', 'copper']), |
| 55 | + ('Diverging', [ |
| 56 | + 'PiYG', 'PRGn', 'BrBG', 'PuOr', 'RdGy', 'RdBu', |
| 57 | + 'RdYlBu', 'RdYlGn', 'Spectral', 'coolwarm', 'bwr', 'seismic']), |
| 58 | + ('Qualitative', [ |
| 59 | + 'Pastel1', 'Pastel2', 'Paired', 'Accent', |
| 60 | + 'Dark2', 'Set1', 'Set2', 'Set3', |
| 61 | + 'tab10', 'tab20', 'tab20b', 'tab20c']), |
| 62 | + ('Miscellaneous', [ |
| 63 | + 'flag', 'prism', 'ocean', 'gist_earth', 'terrain', 'gist_stern', |
| 64 | + 'gnuplot', 'gnuplot2', 'CMRmap', 'cubehelix', 'brg', 'hsv', |
| 65 | + 'gist_rainbow', 'rainbow', 'jet', 'nipy_spectral', 'gist_ncar'])] |
65 | 66 |
|
66 | 67 |
|
67 | 68 | nrows = max(len(cmap_list) for cmap_category, cmap_list in cmaps) |
|
0 commit comments