|
131 | 131 | 'tab10', 'tab20', 'tab20b', 'tab20c', # merged colormap cycles |
132 | 132 | ) |
133 | 133 | } |
134 | | -CMAPS_DELETE = ( |
135 | | - 'binary', 'gist_yarg', 'gist_gray', 'gray', 'bone', 'pink', |
136 | | - 'spring', 'summer', 'autumn', 'winter', 'cool', 'wistia', |
137 | | - 'afmhot', 'gist_heat', 'copper', |
138 | | - 'seismic', 'bwr', 'brg', |
139 | | - 'flag', 'prism', 'ocean', 'gist_earth', 'terrain', 'gist_stern', |
140 | | - 'gnuplot', 'gnuplot2', 'cmrmap', 'hsv', 'hot', 'rainbow', |
141 | | - 'gist_rainbow', 'jet', 'nipy_spectral', 'gist_ncar', 'cubehelix', |
142 | | -) |
143 | 134 | CMAPS_DIVERGING = tuple( |
144 | 135 | (key1.lower(), key2.lower()) for key1, key2 in ( |
145 | 136 | ('PiYG', 'GYPi'), |
|
157 | 148 | ('DryWet', 'WetDry') |
158 | 149 | )) |
159 | 150 |
|
160 | | -# Color cycle stuff |
161 | | -CYCLES_PRESET = { |
162 | | - # Default matplotlib v2 |
163 | | - 'default': [ |
164 | | - '#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', |
165 | | - '#8c564b', '#e377c2', '#7f7f7f', '#bcbd22', '#17becf'], |
166 | | - # From stylesheets |
167 | | - '538': [ |
168 | | - '#008fd5', '#fc4f30', '#e5ae38', '#6d904f', '#8b8b8b', '#810f7c'], |
169 | | - 'ggplot': [ |
170 | | - '#E24A33', '#348ABD', '#988ED5', '#777777', '#FBC15E', '#8EBA42', |
171 | | - '#FFB5B8'], |
172 | | - # The two nice-looking seaborn color cycles |
173 | | - 'ColorBlind': [ |
174 | | - '#0072B2', '#D55E00', '#009E73', '#CC79A7', '#F0E442', '#56B4E9'], |
175 | | - # versions with more colors |
176 | | - 'ColorBlind10': [ |
177 | | - '#0173B2', '#DE8F05', '#029E73', '#D55E00', '#CC78BC', '#CA9161', |
178 | | - '#FBAFE4', '#949494', '#ECE133', '#56B4E9'], |
179 | | - # Created with iwanthue and coolers |
180 | | - 'FlatUI': [ |
181 | | - '#3498db', '#e74c3c', '#95a5a6', '#34495e', '#2ecc71', '#9b59b6'], |
182 | | - 'Warm': [ |
183 | | - (51, 92, 103), (158, 42, 43), (255, 243, 176), |
184 | | - (224, 159, 62), (84, 11, 14)], |
185 | | - 'Cool': ['#6C464F', '#9E768F', '#9FA4C4', '#B3CDD1', '#C7F0BD'], |
186 | | - 'Sharp': ['#007EA7', '#D81159', '#B3CDD1', '#FFBC42', '#0496FF'], |
187 | | - 'Hot': ['#0D3B66', '#F95738', '#F4D35E', '#FAF0CA', '#EE964B'], |
188 | | - 'Contrast': ['#2B4162', '#FA9F42', '#E0E0E2', '#A21817', '#0B6E4F'], |
189 | | - 'Floral': ['#23395B', '#D81E5B', '#FFFD98', '#B9E3C6', '#59C9A5'], |
190 | | -} |
191 | | -CYCLES_DELETE = ( |
192 | | - 'tab10', 'tab20', 'tab20b', 'tab20c', |
193 | | - 'paired', 'pastel1', 'pastel2', 'dark2', |
194 | | -) # unappealing cycles, and cycles that are just merged monochrome colormaps |
195 | | -CYCLES_RENAME = ( |
196 | | - ('Accent', 'Set1'), |
197 | | -) # rename existing cycles |
198 | | - |
199 | 151 | # Named color filter props |
200 | | -COLORS_SPACE = 'hcl' # dist 'distinct-ness' of colors using this colorspace |
| 152 | +COLORS_SPACE = 'hcl' # color "distincness" is defined with this space |
201 | 153 | COLORS_THRESH = 0.10 # bigger number equals fewer colors |
202 | 154 | COLORS_TRANSLATIONS = tuple((re.compile(regex), sub) for regex, sub in ( |
203 | 155 | ('/', ' '), |
|
0 commit comments