Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/matplotlib/_cm.py : 91%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2Nothing here but dictionaries for generating LinearSegmentedColormaps,
3and a dictionary of these dictionaries.
5Documentation for each is in pyplot.colormaps(). Please update this
6with the purpose and type of your colormap if you add data for one here.
7"""
9from functools import partial
11import numpy as np
13_binary_data = {
14 'red': ((0., 1., 1.), (1., 0., 0.)),
15 'green': ((0., 1., 1.), (1., 0., 0.)),
16 'blue': ((0., 1., 1.), (1., 0., 0.))
17 }
19_autumn_data = {'red': ((0., 1.0, 1.0), (1.0, 1.0, 1.0)),
20 'green': ((0., 0., 0.), (1.0, 1.0, 1.0)),
21 'blue': ((0., 0., 0.), (1.0, 0., 0.))}
23_bone_data = {'red': ((0., 0., 0.),
24 (0.746032, 0.652778, 0.652778),
25 (1.0, 1.0, 1.0)),
26 'green': ((0., 0., 0.),
27 (0.365079, 0.319444, 0.319444),
28 (0.746032, 0.777778, 0.777778),
29 (1.0, 1.0, 1.0)),
30 'blue': ((0., 0., 0.),
31 (0.365079, 0.444444, 0.444444),
32 (1.0, 1.0, 1.0))}
34_cool_data = {'red': ((0., 0., 0.), (1.0, 1.0, 1.0)),
35 'green': ((0., 1., 1.), (1.0, 0., 0.)),
36 'blue': ((0., 1., 1.), (1.0, 1., 1.))}
38_copper_data = {'red': ((0., 0., 0.),
39 (0.809524, 1.000000, 1.000000),
40 (1.0, 1.0, 1.0)),
41 'green': ((0., 0., 0.),
42 (1.0, 0.7812, 0.7812)),
43 'blue': ((0., 0., 0.),
44 (1.0, 0.4975, 0.4975))}
46def _flag_red(x): return 0.75 * np.sin((x * 31.5 + 0.25) * np.pi) + 0.5
47def _flag_green(x): return np.sin(x * 31.5 * np.pi)
48def _flag_blue(x): return 0.75 * np.sin((x * 31.5 - 0.25) * np.pi) + 0.5
49_flag_data = {'red': _flag_red, 'green': _flag_green, 'blue': _flag_blue}
51def _prism_red(x): return 0.75 * np.sin((x * 20.9 + 0.25) * np.pi) + 0.67
52def _prism_green(x): return 0.75 * np.sin((x * 20.9 - 0.25) * np.pi) + 0.33
53def _prism_blue(x): return -1.1 * np.sin((x * 20.9) * np.pi)
54_prism_data = {'red': _prism_red, 'green': _prism_green, 'blue': _prism_blue}
56def _ch_helper(gamma, s, r, h, p0, p1, x):
57 """Helper function for generating picklable cubehelix color maps."""
58 # Apply gamma factor to emphasise low or high intensity values
59 xg = x ** gamma
60 # Calculate amplitude and angle of deviation from the black to white
61 # diagonal in the plane of constant perceived intensity.
62 a = h * xg * (1 - xg) / 2
63 phi = 2 * np.pi * (s / 3 + r * x)
64 return xg + a * (p0 * np.cos(phi) + p1 * np.sin(phi))
66def cubehelix(gamma=1.0, s=0.5, r=-1.5, h=1.0):
67 """
68 Return custom data dictionary of (r, g, b) conversion functions, which can
69 be used with :func:`register_cmap`, for the cubehelix color scheme.
71 Unlike most other color schemes cubehelix was designed by D.A. Green to
72 be monotonically increasing in terms of perceived brightness.
73 Also, when printed on a black and white postscript printer, the scheme
74 results in a greyscale with monotonically increasing brightness.
75 This color scheme is named cubehelix because the (r, g, b) values produced
76 can be visualised as a squashed helix around the diagonal in the
77 (r, g, b) color cube.
79 For a unit color cube (i.e. 3-D coordinates for (r, g, b) each in the
80 range 0 to 1) the color scheme starts at (r, g, b) = (0, 0, 0), i.e. black,
81 and finishes at (r, g, b) = (1, 1, 1), i.e. white. For some fraction *x*,
82 between 0 and 1, the color is the corresponding grey value at that
83 fraction along the black to white diagonal (x, x, x) plus a color
84 element. This color element is calculated in a plane of constant
85 perceived intensity and controlled by the following parameters.
87 Optional keyword arguments:
89 ========= =======================================================
90 Keyword Description
91 ========= =======================================================
92 gamma gamma factor to emphasise either low intensity values
93 (gamma < 1), or high intensity values (gamma > 1);
94 defaults to 1.0.
95 s the start color; defaults to 0.5 (i.e. purple).
96 r the number of r, g, b rotations in color that are made
97 from the start to the end of the color scheme; defaults
98 to -1.5 (i.e. -> B -> G -> R -> B).
99 h the hue parameter which controls how saturated the
100 colors are. If this parameter is zero then the color
101 scheme is purely a greyscale; defaults to 1.0.
102 ========= =======================================================
103 """
104 return {'red': partial(_ch_helper, gamma, s, r, h, -0.14861, 1.78277),
105 'green': partial(_ch_helper, gamma, s, r, h, -0.29227, -0.90649),
106 'blue': partial(_ch_helper, gamma, s, r, h, 1.97294, 0.0)}
108_cubehelix_data = cubehelix()
110_bwr_data = ((0.0, 0.0, 1.0), (1.0, 1.0, 1.0), (1.0, 0.0, 0.0))
111_brg_data = ((0.0, 0.0, 1.0), (1.0, 0.0, 0.0), (0.0, 1.0, 0.0))
113# Gnuplot palette functions
114def _g0(x): return 0
115def _g1(x): return 0.5
116def _g2(x): return 1
117def _g3(x): return x
118def _g4(x): return x ** 2
119def _g5(x): return x ** 3
120def _g6(x): return x ** 4
121def _g7(x): return np.sqrt(x)
122def _g8(x): return np.sqrt(np.sqrt(x))
123def _g9(x): return np.sin(x * np.pi / 2)
124def _g10(x): return np.cos(x * np.pi / 2)
125def _g11(x): return np.abs(x - 0.5)
126def _g12(x): return (2 * x - 1) ** 2
127def _g13(x): return np.sin(x * np.pi)
128def _g14(x): return np.abs(np.cos(x * np.pi))
129def _g15(x): return np.sin(x * 2 * np.pi)
130def _g16(x): return np.cos(x * 2 * np.pi)
131def _g17(x): return np.abs(np.sin(x * 2 * np.pi))
132def _g18(x): return np.abs(np.cos(x * 2 * np.pi))
133def _g19(x): return np.abs(np.sin(x * 4 * np.pi))
134def _g20(x): return np.abs(np.cos(x * 4 * np.pi))
135def _g21(x): return 3 * x
136def _g22(x): return 3 * x - 1
137def _g23(x): return 3 * x - 2
138def _g24(x): return np.abs(3 * x - 1)
139def _g25(x): return np.abs(3 * x - 2)
140def _g26(x): return (3 * x - 1) / 2
141def _g27(x): return (3 * x - 2) / 2
142def _g28(x): return np.abs((3 * x - 1) / 2)
143def _g29(x): return np.abs((3 * x - 2) / 2)
144def _g30(x): return x / 0.32 - 0.78125
145def _g31(x): return 2 * x - 0.84
146def _g32(x):
147 ret = np.zeros(len(x))
148 m = (x < 0.25)
149 ret[m] = 4 * x[m]
150 m = (x >= 0.25) & (x < 0.92)
151 ret[m] = -2 * x[m] + 1.84
152 m = (x >= 0.92)
153 ret[m] = x[m] / 0.08 - 11.5
154 return ret
155def _g33(x): return np.abs(2 * x - 0.5)
156def _g34(x): return 2 * x
157def _g35(x): return 2 * x - 0.5
158def _g36(x): return 2 * x - 1
160gfunc = {i: globals()["_g{}".format(i)] for i in range(37)}
162_gnuplot_data = {
163 'red': gfunc[7],
164 'green': gfunc[5],
165 'blue': gfunc[15],
166}
168_gnuplot2_data = {
169 'red': gfunc[30],
170 'green': gfunc[31],
171 'blue': gfunc[32],
172}
174_ocean_data = {
175 'red': gfunc[23],
176 'green': gfunc[28],
177 'blue': gfunc[3],
178}
180_afmhot_data = {
181 'red': gfunc[34],
182 'green': gfunc[35],
183 'blue': gfunc[36],
184}
186_rainbow_data = {
187 'red': gfunc[33],
188 'green': gfunc[13],
189 'blue': gfunc[10],
190}
192_seismic_data = (
193 (0.0, 0.0, 0.3), (0.0, 0.0, 1.0),
194 (1.0, 1.0, 1.0), (1.0, 0.0, 0.0),
195 (0.5, 0.0, 0.0))
197_terrain_data = (
198 (0.00, (0.2, 0.2, 0.6)),
199 (0.15, (0.0, 0.6, 1.0)),
200 (0.25, (0.0, 0.8, 0.4)),
201 (0.50, (1.0, 1.0, 0.6)),
202 (0.75, (0.5, 0.36, 0.33)),
203 (1.00, (1.0, 1.0, 1.0)))
205_gray_data = {'red': ((0., 0, 0), (1., 1, 1)),
206 'green': ((0., 0, 0), (1., 1, 1)),
207 'blue': ((0., 0, 0), (1., 1, 1))}
209_hot_data = {'red': ((0., 0.0416, 0.0416),
210 (0.365079, 1.000000, 1.000000),
211 (1.0, 1.0, 1.0)),
212 'green': ((0., 0., 0.),
213 (0.365079, 0.000000, 0.000000),
214 (0.746032, 1.000000, 1.000000),
215 (1.0, 1.0, 1.0)),
216 'blue': ((0., 0., 0.),
217 (0.746032, 0.000000, 0.000000),
218 (1.0, 1.0, 1.0))}
220_hsv_data = {'red': ((0., 1., 1.),
221 (0.158730, 1.000000, 1.000000),
222 (0.174603, 0.968750, 0.968750),
223 (0.333333, 0.031250, 0.031250),
224 (0.349206, 0.000000, 0.000000),
225 (0.666667, 0.000000, 0.000000),
226 (0.682540, 0.031250, 0.031250),
227 (0.841270, 0.968750, 0.968750),
228 (0.857143, 1.000000, 1.000000),
229 (1.0, 1.0, 1.0)),
230 'green': ((0., 0., 0.),
231 (0.158730, 0.937500, 0.937500),
232 (0.174603, 1.000000, 1.000000),
233 (0.507937, 1.000000, 1.000000),
234 (0.666667, 0.062500, 0.062500),
235 (0.682540, 0.000000, 0.000000),
236 (1.0, 0., 0.)),
237 'blue': ((0., 0., 0.),
238 (0.333333, 0.000000, 0.000000),
239 (0.349206, 0.062500, 0.062500),
240 (0.507937, 1.000000, 1.000000),
241 (0.841270, 1.000000, 1.000000),
242 (0.857143, 0.937500, 0.937500),
243 (1.0, 0.09375, 0.09375))}
245_jet_data = {'red': ((0., 0, 0), (0.35, 0, 0), (0.66, 1, 1), (0.89, 1, 1),
246 (1, 0.5, 0.5)),
247 'green': ((0., 0, 0), (0.125, 0, 0), (0.375, 1, 1), (0.64, 1, 1),
248 (0.91, 0, 0), (1, 0, 0)),
249 'blue': ((0., 0.5, 0.5), (0.11, 1, 1), (0.34, 1, 1),
250 (0.65, 0, 0), (1, 0, 0))}
252_pink_data = {'red': ((0., 0.1178, 0.1178), (0.015873, 0.195857, 0.195857),
253 (0.031746, 0.250661, 0.250661),
254 (0.047619, 0.295468, 0.295468),
255 (0.063492, 0.334324, 0.334324),
256 (0.079365, 0.369112, 0.369112),
257 (0.095238, 0.400892, 0.400892),
258 (0.111111, 0.430331, 0.430331),
259 (0.126984, 0.457882, 0.457882),
260 (0.142857, 0.483867, 0.483867),
261 (0.158730, 0.508525, 0.508525),
262 (0.174603, 0.532042, 0.532042),
263 (0.190476, 0.554563, 0.554563),
264 (0.206349, 0.576204, 0.576204),
265 (0.222222, 0.597061, 0.597061),
266 (0.238095, 0.617213, 0.617213),
267 (0.253968, 0.636729, 0.636729),
268 (0.269841, 0.655663, 0.655663),
269 (0.285714, 0.674066, 0.674066),
270 (0.301587, 0.691980, 0.691980),
271 (0.317460, 0.709441, 0.709441),
272 (0.333333, 0.726483, 0.726483),
273 (0.349206, 0.743134, 0.743134),
274 (0.365079, 0.759421, 0.759421),
275 (0.380952, 0.766356, 0.766356),
276 (0.396825, 0.773229, 0.773229),
277 (0.412698, 0.780042, 0.780042),
278 (0.428571, 0.786796, 0.786796),
279 (0.444444, 0.793492, 0.793492),
280 (0.460317, 0.800132, 0.800132),
281 (0.476190, 0.806718, 0.806718),
282 (0.492063, 0.813250, 0.813250),
283 (0.507937, 0.819730, 0.819730),
284 (0.523810, 0.826160, 0.826160),
285 (0.539683, 0.832539, 0.832539),
286 (0.555556, 0.838870, 0.838870),
287 (0.571429, 0.845154, 0.845154),
288 (0.587302, 0.851392, 0.851392),
289 (0.603175, 0.857584, 0.857584),
290 (0.619048, 0.863731, 0.863731),
291 (0.634921, 0.869835, 0.869835),
292 (0.650794, 0.875897, 0.875897),
293 (0.666667, 0.881917, 0.881917),
294 (0.682540, 0.887896, 0.887896),
295 (0.698413, 0.893835, 0.893835),
296 (0.714286, 0.899735, 0.899735),
297 (0.730159, 0.905597, 0.905597),
298 (0.746032, 0.911421, 0.911421),
299 (0.761905, 0.917208, 0.917208),
300 (0.777778, 0.922958, 0.922958),
301 (0.793651, 0.928673, 0.928673),
302 (0.809524, 0.934353, 0.934353),
303 (0.825397, 0.939999, 0.939999),
304 (0.841270, 0.945611, 0.945611),
305 (0.857143, 0.951190, 0.951190),
306 (0.873016, 0.956736, 0.956736),
307 (0.888889, 0.962250, 0.962250),
308 (0.904762, 0.967733, 0.967733),
309 (0.920635, 0.973185, 0.973185),
310 (0.936508, 0.978607, 0.978607),
311 (0.952381, 0.983999, 0.983999),
312 (0.968254, 0.989361, 0.989361),
313 (0.984127, 0.994695, 0.994695), (1.0, 1.0, 1.0)),
314 'green': ((0., 0., 0.), (0.015873, 0.102869, 0.102869),
315 (0.031746, 0.145479, 0.145479),
316 (0.047619, 0.178174, 0.178174),
317 (0.063492, 0.205738, 0.205738),
318 (0.079365, 0.230022, 0.230022),
319 (0.095238, 0.251976, 0.251976),
320 (0.111111, 0.272166, 0.272166),
321 (0.126984, 0.290957, 0.290957),
322 (0.142857, 0.308607, 0.308607),
323 (0.158730, 0.325300, 0.325300),
324 (0.174603, 0.341178, 0.341178),
325 (0.190476, 0.356348, 0.356348),
326 (0.206349, 0.370899, 0.370899),
327 (0.222222, 0.384900, 0.384900),
328 (0.238095, 0.398410, 0.398410),
329 (0.253968, 0.411476, 0.411476),
330 (0.269841, 0.424139, 0.424139),
331 (0.285714, 0.436436, 0.436436),
332 (0.301587, 0.448395, 0.448395),
333 (0.317460, 0.460044, 0.460044),
334 (0.333333, 0.471405, 0.471405),
335 (0.349206, 0.482498, 0.482498),
336 (0.365079, 0.493342, 0.493342),
337 (0.380952, 0.517549, 0.517549),
338 (0.396825, 0.540674, 0.540674),
339 (0.412698, 0.562849, 0.562849),
340 (0.428571, 0.584183, 0.584183),
341 (0.444444, 0.604765, 0.604765),
342 (0.460317, 0.624669, 0.624669),
343 (0.476190, 0.643958, 0.643958),
344 (0.492063, 0.662687, 0.662687),
345 (0.507937, 0.680900, 0.680900),
346 (0.523810, 0.698638, 0.698638),
347 (0.539683, 0.715937, 0.715937),
348 (0.555556, 0.732828, 0.732828),
349 (0.571429, 0.749338, 0.749338),
350 (0.587302, 0.765493, 0.765493),
351 (0.603175, 0.781313, 0.781313),
352 (0.619048, 0.796819, 0.796819),
353 (0.634921, 0.812029, 0.812029),
354 (0.650794, 0.826960, 0.826960),
355 (0.666667, 0.841625, 0.841625),
356 (0.682540, 0.856040, 0.856040),
357 (0.698413, 0.870216, 0.870216),
358 (0.714286, 0.884164, 0.884164),
359 (0.730159, 0.897896, 0.897896),
360 (0.746032, 0.911421, 0.911421),
361 (0.761905, 0.917208, 0.917208),
362 (0.777778, 0.922958, 0.922958),
363 (0.793651, 0.928673, 0.928673),
364 (0.809524, 0.934353, 0.934353),
365 (0.825397, 0.939999, 0.939999),
366 (0.841270, 0.945611, 0.945611),
367 (0.857143, 0.951190, 0.951190),
368 (0.873016, 0.956736, 0.956736),
369 (0.888889, 0.962250, 0.962250),
370 (0.904762, 0.967733, 0.967733),
371 (0.920635, 0.973185, 0.973185),
372 (0.936508, 0.978607, 0.978607),
373 (0.952381, 0.983999, 0.983999),
374 (0.968254, 0.989361, 0.989361),
375 (0.984127, 0.994695, 0.994695), (1.0, 1.0, 1.0)),
376 'blue': ((0., 0., 0.), (0.015873, 0.102869, 0.102869),
377 (0.031746, 0.145479, 0.145479),
378 (0.047619, 0.178174, 0.178174),
379 (0.063492, 0.205738, 0.205738),
380 (0.079365, 0.230022, 0.230022),
381 (0.095238, 0.251976, 0.251976),
382 (0.111111, 0.272166, 0.272166),
383 (0.126984, 0.290957, 0.290957),
384 (0.142857, 0.308607, 0.308607),
385 (0.158730, 0.325300, 0.325300),
386 (0.174603, 0.341178, 0.341178),
387 (0.190476, 0.356348, 0.356348),
388 (0.206349, 0.370899, 0.370899),
389 (0.222222, 0.384900, 0.384900),
390 (0.238095, 0.398410, 0.398410),
391 (0.253968, 0.411476, 0.411476),
392 (0.269841, 0.424139, 0.424139),
393 (0.285714, 0.436436, 0.436436),
394 (0.301587, 0.448395, 0.448395),
395 (0.317460, 0.460044, 0.460044),
396 (0.333333, 0.471405, 0.471405),
397 (0.349206, 0.482498, 0.482498),
398 (0.365079, 0.493342, 0.493342),
399 (0.380952, 0.503953, 0.503953),
400 (0.396825, 0.514344, 0.514344),
401 (0.412698, 0.524531, 0.524531),
402 (0.428571, 0.534522, 0.534522),
403 (0.444444, 0.544331, 0.544331),
404 (0.460317, 0.553966, 0.553966),
405 (0.476190, 0.563436, 0.563436),
406 (0.492063, 0.572750, 0.572750),
407 (0.507937, 0.581914, 0.581914),
408 (0.523810, 0.590937, 0.590937),
409 (0.539683, 0.599824, 0.599824),
410 (0.555556, 0.608581, 0.608581),
411 (0.571429, 0.617213, 0.617213),
412 (0.587302, 0.625727, 0.625727),
413 (0.603175, 0.634126, 0.634126),
414 (0.619048, 0.642416, 0.642416),
415 (0.634921, 0.650600, 0.650600),
416 (0.650794, 0.658682, 0.658682),
417 (0.666667, 0.666667, 0.666667),
418 (0.682540, 0.674556, 0.674556),
419 (0.698413, 0.682355, 0.682355),
420 (0.714286, 0.690066, 0.690066),
421 (0.730159, 0.697691, 0.697691),
422 (0.746032, 0.705234, 0.705234),
423 (0.761905, 0.727166, 0.727166),
424 (0.777778, 0.748455, 0.748455),
425 (0.793651, 0.769156, 0.769156),
426 (0.809524, 0.789314, 0.789314),
427 (0.825397, 0.808969, 0.808969),
428 (0.841270, 0.828159, 0.828159),
429 (0.857143, 0.846913, 0.846913),
430 (0.873016, 0.865261, 0.865261),
431 (0.888889, 0.883229, 0.883229),
432 (0.904762, 0.900837, 0.900837),
433 (0.920635, 0.918109, 0.918109),
434 (0.936508, 0.935061, 0.935061),
435 (0.952381, 0.951711, 0.951711),
436 (0.968254, 0.968075, 0.968075),
437 (0.984127, 0.984167, 0.984167), (1.0, 1.0, 1.0))}
439_spring_data = {'red': ((0., 1., 1.), (1.0, 1.0, 1.0)),
440 'green': ((0., 0., 0.), (1.0, 1.0, 1.0)),
441 'blue': ((0., 1., 1.), (1.0, 0.0, 0.0))}
444_summer_data = {'red': ((0., 0., 0.), (1.0, 1.0, 1.0)),
445 'green': ((0., 0.5, 0.5), (1.0, 1.0, 1.0)),
446 'blue': ((0., 0.4, 0.4), (1.0, 0.4, 0.4))}
449_winter_data = {'red': ((0., 0., 0.), (1.0, 0.0, 0.0)),
450 'green': ((0., 0., 0.), (1.0, 1.0, 1.0)),
451 'blue': ((0., 1., 1.), (1.0, 0.5, 0.5))}
453_nipy_spectral_data = {
454 'red': [(0.0, 0.0, 0.0), (0.05, 0.4667, 0.4667),
455 (0.10, 0.5333, 0.5333), (0.15, 0.0, 0.0),
456 (0.20, 0.0, 0.0), (0.25, 0.0, 0.0),
457 (0.30, 0.0, 0.0), (0.35, 0.0, 0.0),
458 (0.40, 0.0, 0.0), (0.45, 0.0, 0.0),
459 (0.50, 0.0, 0.0), (0.55, 0.0, 0.0),
460 (0.60, 0.0, 0.0), (0.65, 0.7333, 0.7333),
461 (0.70, 0.9333, 0.9333), (0.75, 1.0, 1.0),
462 (0.80, 1.0, 1.0), (0.85, 1.0, 1.0),
463 (0.90, 0.8667, 0.8667), (0.95, 0.80, 0.80),
464 (1.0, 0.80, 0.80)],
465 'green': [(0.0, 0.0, 0.0), (0.05, 0.0, 0.0),
466 (0.10, 0.0, 0.0), (0.15, 0.0, 0.0),
467 (0.20, 0.0, 0.0), (0.25, 0.4667, 0.4667),
468 (0.30, 0.6000, 0.6000), (0.35, 0.6667, 0.6667),
469 (0.40, 0.6667, 0.6667), (0.45, 0.6000, 0.6000),
470 (0.50, 0.7333, 0.7333), (0.55, 0.8667, 0.8667),
471 (0.60, 1.0, 1.0), (0.65, 1.0, 1.0),
472 (0.70, 0.9333, 0.9333), (0.75, 0.8000, 0.8000),
473 (0.80, 0.6000, 0.6000), (0.85, 0.0, 0.0),
474 (0.90, 0.0, 0.0), (0.95, 0.0, 0.0),
475 (1.0, 0.80, 0.80)],
476 'blue': [(0.0, 0.0, 0.0), (0.05, 0.5333, 0.5333),
477 (0.10, 0.6000, 0.6000), (0.15, 0.6667, 0.6667),
478 (0.20, 0.8667, 0.8667), (0.25, 0.8667, 0.8667),
479 (0.30, 0.8667, 0.8667), (0.35, 0.6667, 0.6667),
480 (0.40, 0.5333, 0.5333), (0.45, 0.0, 0.0),
481 (0.5, 0.0, 0.0), (0.55, 0.0, 0.0),
482 (0.60, 0.0, 0.0), (0.65, 0.0, 0.0),
483 (0.70, 0.0, 0.0), (0.75, 0.0, 0.0),
484 (0.80, 0.0, 0.0), (0.85, 0.0, 0.0),
485 (0.90, 0.0, 0.0), (0.95, 0.0, 0.0),
486 (1.0, 0.80, 0.80)],
487}
490# 34 colormaps based on color specifications and designs
491# developed by Cynthia Brewer (http://colorbrewer.org).
492# The ColorBrewer palettes have been included under the terms
493# of an Apache-stype license (for details, see the file
494# LICENSE_COLORBREWER in the license directory of the matplotlib
495# source distribution).
497# RGB values taken from Brewer's Excel sheet, divided by 255
499_Blues_data = (
500 (0.96862745098039216, 0.98431372549019602, 1.0 ),
501 (0.87058823529411766, 0.92156862745098034, 0.96862745098039216),
502 (0.77647058823529413, 0.85882352941176465, 0.93725490196078431),
503 (0.61960784313725492, 0.792156862745098 , 0.88235294117647056),
504 (0.41960784313725491, 0.68235294117647061, 0.83921568627450982),
505 (0.25882352941176473, 0.5725490196078431 , 0.77647058823529413),
506 (0.12941176470588237, 0.44313725490196076, 0.70980392156862748),
507 (0.03137254901960784, 0.31764705882352939, 0.61176470588235299),
508 (0.03137254901960784, 0.18823529411764706, 0.41960784313725491)
509 )
511_BrBG_data = (
512 (0.32941176470588235, 0.18823529411764706, 0.0196078431372549 ),
513 (0.5490196078431373 , 0.31764705882352939, 0.0392156862745098 ),
514 (0.74901960784313726, 0.50588235294117645, 0.17647058823529413),
515 (0.87450980392156863, 0.76078431372549016, 0.49019607843137253),
516 (0.96470588235294119, 0.90980392156862744, 0.76470588235294112),
517 (0.96078431372549022, 0.96078431372549022, 0.96078431372549022),
518 (0.7803921568627451 , 0.91764705882352937, 0.89803921568627454),
519 (0.50196078431372548, 0.80392156862745101, 0.75686274509803919),
520 (0.20784313725490197, 0.59215686274509804, 0.5607843137254902 ),
521 (0.00392156862745098, 0.4 , 0.36862745098039218),
522 (0.0 , 0.23529411764705882, 0.18823529411764706)
523 )
525_BuGn_data = (
526 (0.96862745098039216, 0.9882352941176471 , 0.99215686274509807),
527 (0.89803921568627454, 0.96078431372549022, 0.97647058823529409),
528 (0.8 , 0.92549019607843142, 0.90196078431372551),
529 (0.6 , 0.84705882352941175, 0.78823529411764703),
530 (0.4 , 0.76078431372549016, 0.64313725490196083),
531 (0.25490196078431371, 0.68235294117647061, 0.46274509803921571),
532 (0.13725490196078433, 0.54509803921568623, 0.27058823529411763),
533 (0.0 , 0.42745098039215684, 0.17254901960784313),
534 (0.0 , 0.26666666666666666, 0.10588235294117647)
535 )
537_BuPu_data = (
538 (0.96862745098039216, 0.9882352941176471 , 0.99215686274509807),
539 (0.8784313725490196 , 0.92549019607843142, 0.95686274509803926),
540 (0.74901960784313726, 0.82745098039215681, 0.90196078431372551),
541 (0.61960784313725492, 0.73725490196078436, 0.85490196078431369),
542 (0.5490196078431373 , 0.58823529411764708, 0.77647058823529413),
543 (0.5490196078431373 , 0.41960784313725491, 0.69411764705882351),
544 (0.53333333333333333, 0.25490196078431371, 0.61568627450980395),
545 (0.50588235294117645, 0.05882352941176471, 0.48627450980392156),
546 (0.30196078431372547, 0.0 , 0.29411764705882354)
547 )
549_GnBu_data = (
550 (0.96862745098039216, 0.9882352941176471 , 0.94117647058823528),
551 (0.8784313725490196 , 0.95294117647058818, 0.85882352941176465),
552 (0.8 , 0.92156862745098034, 0.77254901960784317),
553 (0.6588235294117647 , 0.8666666666666667 , 0.70980392156862748),
554 (0.4823529411764706 , 0.8 , 0.7686274509803922 ),
555 (0.30588235294117649, 0.70196078431372544, 0.82745098039215681),
556 (0.16862745098039217, 0.5490196078431373 , 0.74509803921568629),
557 (0.03137254901960784, 0.40784313725490196, 0.67450980392156867),
558 (0.03137254901960784, 0.25098039215686274, 0.50588235294117645)
559 )
561_Greens_data = (
562 (0.96862745098039216, 0.9882352941176471 , 0.96078431372549022),
563 (0.89803921568627454, 0.96078431372549022, 0.8784313725490196 ),
564 (0.7803921568627451 , 0.9137254901960784 , 0.75294117647058822),
565 (0.63137254901960782, 0.85098039215686272, 0.60784313725490191),
566 (0.45490196078431372, 0.7686274509803922 , 0.46274509803921571),
567 (0.25490196078431371, 0.6705882352941176 , 0.36470588235294116),
568 (0.13725490196078433, 0.54509803921568623, 0.27058823529411763),
569 (0.0 , 0.42745098039215684, 0.17254901960784313),
570 (0.0 , 0.26666666666666666, 0.10588235294117647)
571 )
573_Greys_data = (
574 (1.0 , 1.0 , 1.0 ),
575 (0.94117647058823528, 0.94117647058823528, 0.94117647058823528),
576 (0.85098039215686272, 0.85098039215686272, 0.85098039215686272),
577 (0.74117647058823533, 0.74117647058823533, 0.74117647058823533),
578 (0.58823529411764708, 0.58823529411764708, 0.58823529411764708),
579 (0.45098039215686275, 0.45098039215686275, 0.45098039215686275),
580 (0.32156862745098042, 0.32156862745098042, 0.32156862745098042),
581 (0.14509803921568629, 0.14509803921568629, 0.14509803921568629),
582 (0.0 , 0.0 , 0.0 )
583 )
585_Oranges_data = (
586 (1.0 , 0.96078431372549022, 0.92156862745098034),
587 (0.99607843137254903, 0.90196078431372551, 0.80784313725490198),
588 (0.99215686274509807, 0.81568627450980391, 0.63529411764705879),
589 (0.99215686274509807, 0.68235294117647061, 0.41960784313725491),
590 (0.99215686274509807, 0.55294117647058827, 0.23529411764705882),
591 (0.94509803921568625, 0.41176470588235292, 0.07450980392156863),
592 (0.85098039215686272, 0.28235294117647058, 0.00392156862745098),
593 (0.65098039215686276, 0.21176470588235294, 0.01176470588235294),
594 (0.49803921568627452, 0.15294117647058825, 0.01568627450980392)
595 )
597_OrRd_data = (
598 (1.0 , 0.96862745098039216, 0.92549019607843142),
599 (0.99607843137254903, 0.90980392156862744, 0.78431372549019607),
600 (0.99215686274509807, 0.83137254901960789, 0.61960784313725492),
601 (0.99215686274509807, 0.73333333333333328, 0.51764705882352946),
602 (0.9882352941176471 , 0.55294117647058827, 0.34901960784313724),
603 (0.93725490196078431, 0.396078431372549 , 0.28235294117647058),
604 (0.84313725490196079, 0.18823529411764706, 0.12156862745098039),
605 (0.70196078431372544, 0.0 , 0.0 ),
606 (0.49803921568627452, 0.0 , 0.0 )
607 )
609_PiYG_data = (
610 (0.55686274509803924, 0.00392156862745098, 0.32156862745098042),
611 (0.77254901960784317, 0.10588235294117647, 0.49019607843137253),
612 (0.87058823529411766, 0.46666666666666667, 0.68235294117647061),
613 (0.94509803921568625, 0.71372549019607845, 0.85490196078431369),
614 (0.99215686274509807, 0.8784313725490196 , 0.93725490196078431),
615 (0.96862745098039216, 0.96862745098039216, 0.96862745098039216),
616 (0.90196078431372551, 0.96078431372549022, 0.81568627450980391),
617 (0.72156862745098038, 0.88235294117647056, 0.52549019607843139),
618 (0.49803921568627452, 0.73725490196078436, 0.25490196078431371),
619 (0.30196078431372547, 0.5725490196078431 , 0.12941176470588237),
620 (0.15294117647058825, 0.39215686274509803, 0.09803921568627451)
621 )
623_PRGn_data = (
624 (0.25098039215686274, 0.0 , 0.29411764705882354),
625 (0.46274509803921571, 0.16470588235294117, 0.51372549019607838),
626 (0.6 , 0.4392156862745098 , 0.6705882352941176 ),
627 (0.76078431372549016, 0.6470588235294118 , 0.81176470588235294),
628 (0.90588235294117647, 0.83137254901960789, 0.90980392156862744),
629 (0.96862745098039216, 0.96862745098039216, 0.96862745098039216),
630 (0.85098039215686272, 0.94117647058823528, 0.82745098039215681),
631 (0.65098039215686276, 0.85882352941176465, 0.62745098039215685),
632 (0.35294117647058826, 0.68235294117647061, 0.38039215686274508),
633 (0.10588235294117647, 0.47058823529411764, 0.21568627450980393),
634 (0.0 , 0.26666666666666666, 0.10588235294117647)
635 )
637_PuBu_data = (
638 (1.0 , 0.96862745098039216, 0.98431372549019602),
639 (0.92549019607843142, 0.90588235294117647, 0.94901960784313721),
640 (0.81568627450980391, 0.81960784313725488, 0.90196078431372551),
641 (0.65098039215686276, 0.74117647058823533, 0.85882352941176465),
642 (0.45490196078431372, 0.66274509803921566, 0.81176470588235294),
643 (0.21176470588235294, 0.56470588235294117, 0.75294117647058822),
644 (0.0196078431372549 , 0.4392156862745098 , 0.69019607843137254),
645 (0.01568627450980392, 0.35294117647058826, 0.55294117647058827),
646 (0.00784313725490196, 0.2196078431372549 , 0.34509803921568627)
647 )
649_PuBuGn_data = (
650 (1.0 , 0.96862745098039216, 0.98431372549019602),
651 (0.92549019607843142, 0.88627450980392153, 0.94117647058823528),
652 (0.81568627450980391, 0.81960784313725488, 0.90196078431372551),
653 (0.65098039215686276, 0.74117647058823533, 0.85882352941176465),
654 (0.40392156862745099, 0.66274509803921566, 0.81176470588235294),
655 (0.21176470588235294, 0.56470588235294117, 0.75294117647058822),
656 (0.00784313725490196, 0.50588235294117645, 0.54117647058823526),
657 (0.00392156862745098, 0.42352941176470588, 0.34901960784313724),
658 (0.00392156862745098, 0.27450980392156865, 0.21176470588235294)
659 )
661_PuOr_data = (
662 (0.49803921568627452, 0.23137254901960785, 0.03137254901960784),
663 (0.70196078431372544, 0.34509803921568627, 0.02352941176470588),
664 (0.8784313725490196 , 0.50980392156862742, 0.07843137254901961),
665 (0.99215686274509807, 0.72156862745098038, 0.38823529411764707),
666 (0.99607843137254903, 0.8784313725490196 , 0.71372549019607845),
667 (0.96862745098039216, 0.96862745098039216, 0.96862745098039216),
668 (0.84705882352941175, 0.85490196078431369, 0.92156862745098034),
669 (0.69803921568627447, 0.6705882352941176 , 0.82352941176470584),
670 (0.50196078431372548, 0.45098039215686275, 0.67450980392156867),
671 (0.32941176470588235, 0.15294117647058825, 0.53333333333333333),
672 (0.17647058823529413, 0.0 , 0.29411764705882354)
673 )
675_PuRd_data = (
676 (0.96862745098039216, 0.95686274509803926, 0.97647058823529409),
677 (0.90588235294117647, 0.88235294117647056, 0.93725490196078431),
678 (0.83137254901960789, 0.72549019607843135, 0.85490196078431369),
679 (0.78823529411764703, 0.58039215686274515, 0.7803921568627451 ),
680 (0.87450980392156863, 0.396078431372549 , 0.69019607843137254),
681 (0.90588235294117647, 0.16078431372549021, 0.54117647058823526),
682 (0.80784313725490198, 0.07058823529411765, 0.33725490196078434),
683 (0.59607843137254901, 0.0 , 0.2627450980392157 ),
684 (0.40392156862745099, 0.0 , 0.12156862745098039)
685 )
687_Purples_data = (
688 (0.9882352941176471 , 0.98431372549019602, 0.99215686274509807),
689 (0.93725490196078431, 0.92941176470588238, 0.96078431372549022),
690 (0.85490196078431369, 0.85490196078431369, 0.92156862745098034),
691 (0.73725490196078436, 0.74117647058823533, 0.86274509803921573),
692 (0.61960784313725492, 0.60392156862745094, 0.78431372549019607),
693 (0.50196078431372548, 0.49019607843137253, 0.72941176470588232),
694 (0.41568627450980394, 0.31764705882352939, 0.63921568627450975),
695 (0.32941176470588235, 0.15294117647058825, 0.5607843137254902 ),
696 (0.24705882352941178, 0.0 , 0.49019607843137253)
697 )
699_RdBu_data = (
700 (0.40392156862745099, 0.0 , 0.12156862745098039),
701 (0.69803921568627447, 0.09411764705882353, 0.16862745098039217),
702 (0.83921568627450982, 0.37647058823529411, 0.30196078431372547),
703 (0.95686274509803926, 0.6470588235294118 , 0.50980392156862742),
704 (0.99215686274509807, 0.85882352941176465, 0.7803921568627451 ),
705 (0.96862745098039216, 0.96862745098039216, 0.96862745098039216),
706 (0.81960784313725488, 0.89803921568627454, 0.94117647058823528),
707 (0.5725490196078431 , 0.77254901960784317, 0.87058823529411766),
708 (0.2627450980392157 , 0.57647058823529407, 0.76470588235294112),
709 (0.12941176470588237, 0.4 , 0.67450980392156867),
710 (0.0196078431372549 , 0.18823529411764706, 0.38039215686274508)
711 )
713_RdGy_data = (
714 (0.40392156862745099, 0.0 , 0.12156862745098039),
715 (0.69803921568627447, 0.09411764705882353, 0.16862745098039217),
716 (0.83921568627450982, 0.37647058823529411, 0.30196078431372547),
717 (0.95686274509803926, 0.6470588235294118 , 0.50980392156862742),
718 (0.99215686274509807, 0.85882352941176465, 0.7803921568627451 ),
719 (1.0 , 1.0 , 1.0 ),
720 (0.8784313725490196 , 0.8784313725490196 , 0.8784313725490196 ),
721 (0.72941176470588232, 0.72941176470588232, 0.72941176470588232),
722 (0.52941176470588236, 0.52941176470588236, 0.52941176470588236),
723 (0.30196078431372547, 0.30196078431372547, 0.30196078431372547),
724 (0.10196078431372549, 0.10196078431372549, 0.10196078431372549)
725 )
727_RdPu_data = (
728 (1.0 , 0.96862745098039216, 0.95294117647058818),
729 (0.99215686274509807, 0.8784313725490196 , 0.86666666666666667),
730 (0.9882352941176471 , 0.77254901960784317, 0.75294117647058822),
731 (0.98039215686274506, 0.62352941176470589, 0.70980392156862748),
732 (0.96862745098039216, 0.40784313725490196, 0.63137254901960782),
733 (0.86666666666666667, 0.20392156862745098, 0.59215686274509804),
734 (0.68235294117647061, 0.00392156862745098, 0.49411764705882355),
735 (0.47843137254901963, 0.00392156862745098, 0.46666666666666667),
736 (0.28627450980392155, 0.0 , 0.41568627450980394)
737 )
739_RdYlBu_data = (
740 (0.6470588235294118 , 0.0 , 0.14901960784313725),
741 (0.84313725490196079, 0.18823529411764706 , 0.15294117647058825),
742 (0.95686274509803926, 0.42745098039215684 , 0.2627450980392157 ),
743 (0.99215686274509807, 0.68235294117647061 , 0.38039215686274508),
744 (0.99607843137254903, 0.8784313725490196 , 0.56470588235294117),
745 (1.0 , 1.0 , 0.74901960784313726),
746 (0.8784313725490196 , 0.95294117647058818 , 0.97254901960784312),
747 (0.6705882352941176 , 0.85098039215686272 , 0.9137254901960784 ),
748 (0.45490196078431372, 0.67843137254901964 , 0.81960784313725488),
749 (0.27058823529411763, 0.45882352941176469 , 0.70588235294117652),
750 (0.19215686274509805, 0.21176470588235294 , 0.58431372549019611)
751 )
753_RdYlGn_data = (
754 (0.6470588235294118 , 0.0 , 0.14901960784313725),
755 (0.84313725490196079, 0.18823529411764706 , 0.15294117647058825),
756 (0.95686274509803926, 0.42745098039215684 , 0.2627450980392157 ),
757 (0.99215686274509807, 0.68235294117647061 , 0.38039215686274508),
758 (0.99607843137254903, 0.8784313725490196 , 0.54509803921568623),
759 (1.0 , 1.0 , 0.74901960784313726),
760 (0.85098039215686272, 0.93725490196078431 , 0.54509803921568623),
761 (0.65098039215686276, 0.85098039215686272 , 0.41568627450980394),
762 (0.4 , 0.74117647058823533 , 0.38823529411764707),
763 (0.10196078431372549, 0.59607843137254901 , 0.31372549019607843),
764 (0.0 , 0.40784313725490196 , 0.21568627450980393)
765 )
767_Reds_data = (
768 (1.0 , 0.96078431372549022 , 0.94117647058823528),
769 (0.99607843137254903, 0.8784313725490196 , 0.82352941176470584),
770 (0.9882352941176471 , 0.73333333333333328 , 0.63137254901960782),
771 (0.9882352941176471 , 0.5725490196078431 , 0.44705882352941179),
772 (0.98431372549019602, 0.41568627450980394 , 0.29019607843137257),
773 (0.93725490196078431, 0.23137254901960785 , 0.17254901960784313),
774 (0.79607843137254897, 0.094117647058823528, 0.11372549019607843),
775 (0.6470588235294118 , 0.058823529411764705, 0.08235294117647058),
776 (0.40392156862745099, 0.0 , 0.05098039215686274)
777 )
779_Spectral_data = (
780 (0.61960784313725492, 0.003921568627450980, 0.25882352941176473),
781 (0.83529411764705885, 0.24313725490196078 , 0.30980392156862746),
782 (0.95686274509803926, 0.42745098039215684 , 0.2627450980392157 ),
783 (0.99215686274509807, 0.68235294117647061 , 0.38039215686274508),
784 (0.99607843137254903, 0.8784313725490196 , 0.54509803921568623),
785 (1.0 , 1.0 , 0.74901960784313726),
786 (0.90196078431372551, 0.96078431372549022 , 0.59607843137254901),
787 (0.6705882352941176 , 0.8666666666666667 , 0.64313725490196083),
788 (0.4 , 0.76078431372549016 , 0.6470588235294118 ),
789 (0.19607843137254902, 0.53333333333333333 , 0.74117647058823533),
790 (0.36862745098039218, 0.30980392156862746 , 0.63529411764705879)
791 )
793_YlGn_data = (
794 (1.0 , 1.0 , 0.89803921568627454),
795 (0.96862745098039216, 0.9882352941176471 , 0.72549019607843135),
796 (0.85098039215686272, 0.94117647058823528 , 0.63921568627450975),
797 (0.67843137254901964, 0.8666666666666667 , 0.55686274509803924),
798 (0.47058823529411764, 0.77647058823529413 , 0.47450980392156861),
799 (0.25490196078431371, 0.6705882352941176 , 0.36470588235294116),
800 (0.13725490196078433, 0.51764705882352946 , 0.2627450980392157 ),
801 (0.0 , 0.40784313725490196 , 0.21568627450980393),
802 (0.0 , 0.27058823529411763 , 0.16078431372549021)
803 )
805_YlGnBu_data = (
806 (1.0 , 1.0 , 0.85098039215686272),
807 (0.92941176470588238, 0.97254901960784312 , 0.69411764705882351),
808 (0.7803921568627451 , 0.9137254901960784 , 0.70588235294117652),
809 (0.49803921568627452, 0.80392156862745101 , 0.73333333333333328),
810 (0.25490196078431371, 0.71372549019607845 , 0.7686274509803922 ),
811 (0.11372549019607843, 0.56862745098039214 , 0.75294117647058822),
812 (0.13333333333333333, 0.36862745098039218 , 0.6588235294117647 ),
813 (0.14509803921568629, 0.20392156862745098 , 0.58039215686274515),
814 (0.03137254901960784, 0.11372549019607843 , 0.34509803921568627)
815 )
817_YlOrBr_data = (
818 (1.0 , 1.0 , 0.89803921568627454),
819 (1.0 , 0.96862745098039216 , 0.73725490196078436),
820 (0.99607843137254903, 0.8901960784313725 , 0.56862745098039214),
821 (0.99607843137254903, 0.7686274509803922 , 0.30980392156862746),
822 (0.99607843137254903, 0.6 , 0.16078431372549021),
823 (0.92549019607843142, 0.4392156862745098 , 0.07843137254901961),
824 (0.8 , 0.29803921568627451 , 0.00784313725490196),
825 (0.6 , 0.20392156862745098 , 0.01568627450980392),
826 (0.4 , 0.14509803921568629 , 0.02352941176470588)
827 )
829_YlOrRd_data = (
830 (1.0 , 1.0 , 0.8 ),
831 (1.0 , 0.92941176470588238 , 0.62745098039215685),
832 (0.99607843137254903, 0.85098039215686272 , 0.46274509803921571),
833 (0.99607843137254903, 0.69803921568627447 , 0.29803921568627451),
834 (0.99215686274509807, 0.55294117647058827 , 0.23529411764705882),
835 (0.9882352941176471 , 0.30588235294117649 , 0.16470588235294117),
836 (0.8901960784313725 , 0.10196078431372549 , 0.10980392156862745),
837 (0.74117647058823533, 0.0 , 0.14901960784313725),
838 (0.50196078431372548, 0.0 , 0.14901960784313725)
839 )
842# ColorBrewer's qualitative maps, implemented using ListedColormap
843# for use with mpl.colors.NoNorm
845_Accent_data = (
846 (0.49803921568627452, 0.78823529411764703, 0.49803921568627452),
847 (0.74509803921568629, 0.68235294117647061, 0.83137254901960789),
848 (0.99215686274509807, 0.75294117647058822, 0.52549019607843139),
849 (1.0, 1.0, 0.6 ),
850 (0.2196078431372549, 0.42352941176470588, 0.69019607843137254),
851 (0.94117647058823528, 0.00784313725490196, 0.49803921568627452),
852 (0.74901960784313726, 0.35686274509803922, 0.09019607843137254),
853 (0.4, 0.4, 0.4 ),
854 )
856_Dark2_data = (
857 (0.10588235294117647, 0.61960784313725492, 0.46666666666666667),
858 (0.85098039215686272, 0.37254901960784315, 0.00784313725490196),
859 (0.45882352941176469, 0.4392156862745098, 0.70196078431372544),
860 (0.90588235294117647, 0.16078431372549021, 0.54117647058823526),
861 (0.4, 0.65098039215686276, 0.11764705882352941),
862 (0.90196078431372551, 0.6705882352941176, 0.00784313725490196),
863 (0.65098039215686276, 0.46274509803921571, 0.11372549019607843),
864 (0.4, 0.4, 0.4 ),
865 )
867_Paired_data = (
868 (0.65098039215686276, 0.80784313725490198, 0.8901960784313725 ),
869 (0.12156862745098039, 0.47058823529411764, 0.70588235294117652),
870 (0.69803921568627447, 0.87450980392156863, 0.54117647058823526),
871 (0.2, 0.62745098039215685, 0.17254901960784313),
872 (0.98431372549019602, 0.60392156862745094, 0.6 ),
873 (0.8901960784313725, 0.10196078431372549, 0.10980392156862745),
874 (0.99215686274509807, 0.74901960784313726, 0.43529411764705883),
875 (1.0, 0.49803921568627452, 0.0 ),
876 (0.792156862745098, 0.69803921568627447, 0.83921568627450982),
877 (0.41568627450980394, 0.23921568627450981, 0.60392156862745094),
878 (1.0, 1.0, 0.6 ),
879 (0.69411764705882351, 0.34901960784313724, 0.15686274509803921),
880 )
882_Pastel1_data = (
883 (0.98431372549019602, 0.70588235294117652, 0.68235294117647061),
884 (0.70196078431372544, 0.80392156862745101, 0.8901960784313725 ),
885 (0.8, 0.92156862745098034, 0.77254901960784317),
886 (0.87058823529411766, 0.79607843137254897, 0.89411764705882357),
887 (0.99607843137254903, 0.85098039215686272, 0.65098039215686276),
888 (1.0, 1.0, 0.8 ),
889 (0.89803921568627454, 0.84705882352941175, 0.74117647058823533),
890 (0.99215686274509807, 0.85490196078431369, 0.92549019607843142),
891 (0.94901960784313721, 0.94901960784313721, 0.94901960784313721),
892 )
894_Pastel2_data = (
895 (0.70196078431372544, 0.88627450980392153, 0.80392156862745101),
896 (0.99215686274509807, 0.80392156862745101, 0.67450980392156867),
897 (0.79607843137254897, 0.83529411764705885, 0.90980392156862744),
898 (0.95686274509803926, 0.792156862745098, 0.89411764705882357),
899 (0.90196078431372551, 0.96078431372549022, 0.78823529411764703),
900 (1.0, 0.94901960784313721, 0.68235294117647061),
901 (0.94509803921568625, 0.88627450980392153, 0.8 ),
902 (0.8, 0.8, 0.8 ),
903 )
905_Set1_data = (
906 (0.89411764705882357, 0.10196078431372549, 0.10980392156862745),
907 (0.21568627450980393, 0.49411764705882355, 0.72156862745098038),
908 (0.30196078431372547, 0.68627450980392157, 0.29019607843137257),
909 (0.59607843137254901, 0.30588235294117649, 0.63921568627450975),
910 (1.0, 0.49803921568627452, 0.0 ),
911 (1.0, 1.0, 0.2 ),
912 (0.65098039215686276, 0.33725490196078434, 0.15686274509803921),
913 (0.96862745098039216, 0.50588235294117645, 0.74901960784313726),
914 (0.6, 0.6, 0.6),
915 )
917_Set2_data = (
918 (0.4, 0.76078431372549016, 0.6470588235294118 ),
919 (0.9882352941176471, 0.55294117647058827, 0.3843137254901961 ),
920 (0.55294117647058827, 0.62745098039215685, 0.79607843137254897),
921 (0.90588235294117647, 0.54117647058823526, 0.76470588235294112),
922 (0.65098039215686276, 0.84705882352941175, 0.32941176470588235),
923 (1.0, 0.85098039215686272, 0.18431372549019609),
924 (0.89803921568627454, 0.7686274509803922, 0.58039215686274515),
925 (0.70196078431372544, 0.70196078431372544, 0.70196078431372544),
926 )
928_Set3_data = (
929 (0.55294117647058827, 0.82745098039215681, 0.7803921568627451 ),
930 (1.0, 1.0, 0.70196078431372544),
931 (0.74509803921568629, 0.72941176470588232, 0.85490196078431369),
932 (0.98431372549019602, 0.50196078431372548, 0.44705882352941179),
933 (0.50196078431372548, 0.69411764705882351, 0.82745098039215681),
934 (0.99215686274509807, 0.70588235294117652, 0.3843137254901961 ),
935 (0.70196078431372544, 0.87058823529411766, 0.41176470588235292),
936 (0.9882352941176471, 0.80392156862745101, 0.89803921568627454),
937 (0.85098039215686272, 0.85098039215686272, 0.85098039215686272),
938 (0.73725490196078436, 0.50196078431372548, 0.74117647058823533),
939 (0.8, 0.92156862745098034, 0.77254901960784317),
940 (1.0, 0.92941176470588238, 0.43529411764705883),
941 )
944# The next 7 palettes are from the Yorick scientific visualization package,
945# an evolution of the GIST package, both by David H. Munro.
946# They are released under a BSD-like license (see LICENSE_YORICK in
947# the license directory of the matplotlib source distribution).
948#
949# Most palette functions have been reduced to simple function descriptions
950# by Reinier Heeres, since the rgb components were mostly straight lines.
951# gist_earth_data and gist_ncar_data were simplified by a script and some
952# manual effort.
954_gist_earth_data = \
955{'red': (
956(0.0, 0.0, 0.0000),
957(0.2824, 0.1882, 0.1882),
958(0.4588, 0.2714, 0.2714),
959(0.5490, 0.4719, 0.4719),
960(0.6980, 0.7176, 0.7176),
961(0.7882, 0.7553, 0.7553),
962(1.0000, 0.9922, 0.9922),
963), 'green': (
964(0.0, 0.0, 0.0000),
965(0.0275, 0.0000, 0.0000),
966(0.1098, 0.1893, 0.1893),
967(0.1647, 0.3035, 0.3035),
968(0.2078, 0.3841, 0.3841),
969(0.2824, 0.5020, 0.5020),
970(0.5216, 0.6397, 0.6397),
971(0.6980, 0.7171, 0.7171),
972(0.7882, 0.6392, 0.6392),
973(0.7922, 0.6413, 0.6413),
974(0.8000, 0.6447, 0.6447),
975(0.8078, 0.6481, 0.6481),
976(0.8157, 0.6549, 0.6549),
977(0.8667, 0.6991, 0.6991),
978(0.8745, 0.7103, 0.7103),
979(0.8824, 0.7216, 0.7216),
980(0.8902, 0.7323, 0.7323),
981(0.8980, 0.7430, 0.7430),
982(0.9412, 0.8275, 0.8275),
983(0.9569, 0.8635, 0.8635),
984(0.9647, 0.8816, 0.8816),
985(0.9961, 0.9733, 0.9733),
986(1.0000, 0.9843, 0.9843),
987), 'blue': (
988(0.0, 0.0, 0.0000),
989(0.0039, 0.1684, 0.1684),
990(0.0078, 0.2212, 0.2212),
991(0.0275, 0.4329, 0.4329),
992(0.0314, 0.4549, 0.4549),
993(0.2824, 0.5004, 0.5004),
994(0.4667, 0.2748, 0.2748),
995(0.5451, 0.3205, 0.3205),
996(0.7843, 0.3961, 0.3961),
997(0.8941, 0.6651, 0.6651),
998(1.0000, 0.9843, 0.9843),
999)}
1001_gist_gray_data = {
1002 'red': gfunc[3],
1003 'green': gfunc[3],
1004 'blue': gfunc[3],
1005}
1007def _gist_heat_red(x): return 1.5 * x
1008def _gist_heat_green(x): return 2 * x - 1
1009def _gist_heat_blue(x): return 4 * x - 3
1010_gist_heat_data = {
1011 'red': _gist_heat_red, 'green': _gist_heat_green, 'blue': _gist_heat_blue}
1013_gist_ncar_data = \
1014{'red': (
1015(0.0, 0.0, 0.0000),
1016(0.3098, 0.0000, 0.0000),
1017(0.3725, 0.3993, 0.3993),
1018(0.4235, 0.5003, 0.5003),
1019(0.5333, 1.0000, 1.0000),
1020(0.7922, 1.0000, 1.0000),
1021(0.8471, 0.6218, 0.6218),
1022(0.8980, 0.9235, 0.9235),
1023(1.0000, 0.9961, 0.9961),
1024), 'green': (
1025(0.0, 0.0, 0.0000),
1026(0.0510, 0.3722, 0.3722),
1027(0.1059, 0.0000, 0.0000),
1028(0.1569, 0.7202, 0.7202),
1029(0.1608, 0.7537, 0.7537),
1030(0.1647, 0.7752, 0.7752),
1031(0.2157, 1.0000, 1.0000),
1032(0.2588, 0.9804, 0.9804),
1033(0.2706, 0.9804, 0.9804),
1034(0.3176, 1.0000, 1.0000),
1035(0.3686, 0.8081, 0.8081),
1036(0.4275, 1.0000, 1.0000),
1037(0.5216, 1.0000, 1.0000),
1038(0.6314, 0.7292, 0.7292),
1039(0.6863, 0.2796, 0.2796),
1040(0.7451, 0.0000, 0.0000),
1041(0.7922, 0.0000, 0.0000),
1042(0.8431, 0.1753, 0.1753),
1043(0.8980, 0.5000, 0.5000),
1044(1.0000, 0.9725, 0.9725),
1045), 'blue': (
1046(0.0, 0.5020, 0.5020),
1047(0.0510, 0.0222, 0.0222),
1048(0.1098, 1.0000, 1.0000),
1049(0.2039, 1.0000, 1.0000),
1050(0.2627, 0.6145, 0.6145),
1051(0.3216, 0.0000, 0.0000),
1052(0.4157, 0.0000, 0.0000),
1053(0.4745, 0.2342, 0.2342),
1054(0.5333, 0.0000, 0.0000),
1055(0.5804, 0.0000, 0.0000),
1056(0.6314, 0.0549, 0.0549),
1057(0.6902, 0.0000, 0.0000),
1058(0.7373, 0.0000, 0.0000),
1059(0.7922, 0.9738, 0.9738),
1060(0.8000, 1.0000, 1.0000),
1061(0.8431, 1.0000, 1.0000),
1062(0.8980, 0.9341, 0.9341),
1063(1.0000, 0.9961, 0.9961),
1064)}
1066_gist_rainbow_data = (
1067 (0.000, (1.00, 0.00, 0.16)),
1068 (0.030, (1.00, 0.00, 0.00)),
1069 (0.215, (1.00, 1.00, 0.00)),
1070 (0.400, (0.00, 1.00, 0.00)),
1071 (0.586, (0.00, 1.00, 1.00)),
1072 (0.770, (0.00, 0.00, 1.00)),
1073 (0.954, (1.00, 0.00, 1.00)),
1074 (1.000, (1.00, 0.00, 0.75))
1075)
1077_gist_stern_data = {
1078 'red': (
1079 (0.000, 0.000, 0.000), (0.0547, 1.000, 1.000),
1080 (0.250, 0.027, 0.250), # (0.2500, 0.250, 0.250),
1081 (1.000, 1.000, 1.000)),
1082 'green': ((0, 0, 0), (1, 1, 1)),
1083 'blue': (
1084 (0.000, 0.000, 0.000), (0.500, 1.000, 1.000),
1085 (0.735, 0.000, 0.000), (1.000, 1.000, 1.000))
1086}
1088def _gist_yarg(x): return 1 - x
1089_gist_yarg_data = {'red': _gist_yarg, 'green': _gist_yarg, 'blue': _gist_yarg}
1091# This bipolar color map was generated from CoolWarmFloat33.csv of
1092# "Diverging Color Maps for Scientific Visualization" by Kenneth Moreland.
1093# <http://www.kennethmoreland.com/color-maps/>
1094_coolwarm_data = {
1095 'red': [
1096 (0.0, 0.2298057, 0.2298057),
1097 (0.03125, 0.26623388, 0.26623388),
1098 (0.0625, 0.30386891, 0.30386891),
1099 (0.09375, 0.342804478, 0.342804478),
1100 (0.125, 0.38301334, 0.38301334),
1101 (0.15625, 0.424369608, 0.424369608),
1102 (0.1875, 0.46666708, 0.46666708),
1103 (0.21875, 0.509635204, 0.509635204),
1104 (0.25, 0.552953156, 0.552953156),
1105 (0.28125, 0.596262162, 0.596262162),
1106 (0.3125, 0.639176211, 0.639176211),
1107 (0.34375, 0.681291281, 0.681291281),
1108 (0.375, 0.722193294, 0.722193294),
1109 (0.40625, 0.761464949, 0.761464949),
1110 (0.4375, 0.798691636, 0.798691636),
1111 (0.46875, 0.833466556, 0.833466556),
1112 (0.5, 0.865395197, 0.865395197),
1113 (0.53125, 0.897787179, 0.897787179),
1114 (0.5625, 0.924127593, 0.924127593),
1115 (0.59375, 0.944468518, 0.944468518),
1116 (0.625, 0.958852946, 0.958852946),
1117 (0.65625, 0.96732803, 0.96732803),
1118 (0.6875, 0.969954137, 0.969954137),
1119 (0.71875, 0.966811177, 0.966811177),
1120 (0.75, 0.958003065, 0.958003065),
1121 (0.78125, 0.943660866, 0.943660866),
1122 (0.8125, 0.923944917, 0.923944917),
1123 (0.84375, 0.89904617, 0.89904617),
1124 (0.875, 0.869186849, 0.869186849),
1125 (0.90625, 0.834620542, 0.834620542),
1126 (0.9375, 0.795631745, 0.795631745),
1127 (0.96875, 0.752534934, 0.752534934),
1128 (1.0, 0.705673158, 0.705673158)],
1129 'green': [
1130 (0.0, 0.298717966, 0.298717966),
1131 (0.03125, 0.353094838, 0.353094838),
1132 (0.0625, 0.406535296, 0.406535296),
1133 (0.09375, 0.458757618, 0.458757618),
1134 (0.125, 0.50941904, 0.50941904),
1135 (0.15625, 0.558148092, 0.558148092),
1136 (0.1875, 0.604562568, 0.604562568),
1137 (0.21875, 0.648280772, 0.648280772),
1138 (0.25, 0.688929332, 0.688929332),
1139 (0.28125, 0.726149107, 0.726149107),
1140 (0.3125, 0.759599947, 0.759599947),
1141 (0.34375, 0.788964712, 0.788964712),
1142 (0.375, 0.813952739, 0.813952739),
1143 (0.40625, 0.834302879, 0.834302879),
1144 (0.4375, 0.849786142, 0.849786142),
1145 (0.46875, 0.860207984, 0.860207984),
1146 (0.5, 0.86541021, 0.86541021),
1147 (0.53125, 0.848937047, 0.848937047),
1148 (0.5625, 0.827384882, 0.827384882),
1149 (0.59375, 0.800927443, 0.800927443),
1150 (0.625, 0.769767752, 0.769767752),
1151 (0.65625, 0.734132809, 0.734132809),
1152 (0.6875, 0.694266682, 0.694266682),
1153 (0.71875, 0.650421156, 0.650421156),
1154 (0.75, 0.602842431, 0.602842431),
1155 (0.78125, 0.551750968, 0.551750968),
1156 (0.8125, 0.49730856, 0.49730856),
1157 (0.84375, 0.439559467, 0.439559467),
1158 (0.875, 0.378313092, 0.378313092),
1159 (0.90625, 0.312874446, 0.312874446),
1160 (0.9375, 0.24128379, 0.24128379),
1161 (0.96875, 0.157246067, 0.157246067),
1162 (1.0, 0.01555616, 0.01555616)],
1163 'blue': [
1164 (0.0, 0.753683153, 0.753683153),
1165 (0.03125, 0.801466763, 0.801466763),
1166 (0.0625, 0.84495867, 0.84495867),
1167 (0.09375, 0.883725899, 0.883725899),
1168 (0.125, 0.917387822, 0.917387822),
1169 (0.15625, 0.945619588, 0.945619588),
1170 (0.1875, 0.968154911, 0.968154911),
1171 (0.21875, 0.98478814, 0.98478814),
1172 (0.25, 0.995375608, 0.995375608),
1173 (0.28125, 0.999836203, 0.999836203),
1174 (0.3125, 0.998151185, 0.998151185),
1175 (0.34375, 0.990363227, 0.990363227),
1176 (0.375, 0.976574709, 0.976574709),
1177 (0.40625, 0.956945269, 0.956945269),
1178 (0.4375, 0.931688648, 0.931688648),
1179 (0.46875, 0.901068838, 0.901068838),
1180 (0.5, 0.865395561, 0.865395561),
1181 (0.53125, 0.820880546, 0.820880546),
1182 (0.5625, 0.774508472, 0.774508472),
1183 (0.59375, 0.726736146, 0.726736146),
1184 (0.625, 0.678007945, 0.678007945),
1185 (0.65625, 0.628751763, 0.628751763),
1186 (0.6875, 0.579375448, 0.579375448),
1187 (0.71875, 0.530263762, 0.530263762),
1188 (0.75, 0.481775914, 0.481775914),
1189 (0.78125, 0.434243684, 0.434243684),
1190 (0.8125, 0.387970225, 0.387970225),
1191 (0.84375, 0.343229596, 0.343229596),
1192 (0.875, 0.300267182, 0.300267182),
1193 (0.90625, 0.259301199, 0.259301199),
1194 (0.9375, 0.220525627, 0.220525627),
1195 (0.96875, 0.184115123, 0.184115123),
1196 (1.0, 0.150232812, 0.150232812)]
1197 }
1199# Implementation of Carey Rappaport's CMRmap.
1200# See `A Color Map for Effective Black-and-White Rendering of Color-Scale
1201# Images' by Carey Rappaport
1202# http://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m
1203_CMRmap_data = {'red': ((0.000, 0.00, 0.00),
1204 (0.125, 0.15, 0.15),
1205 (0.250, 0.30, 0.30),
1206 (0.375, 0.60, 0.60),
1207 (0.500, 1.00, 1.00),
1208 (0.625, 0.90, 0.90),
1209 (0.750, 0.90, 0.90),
1210 (0.875, 0.90, 0.90),
1211 (1.000, 1.00, 1.00)),
1212 'green': ((0.000, 0.00, 0.00),
1213 (0.125, 0.15, 0.15),
1214 (0.250, 0.15, 0.15),
1215 (0.375, 0.20, 0.20),
1216 (0.500, 0.25, 0.25),
1217 (0.625, 0.50, 0.50),
1218 (0.750, 0.75, 0.75),
1219 (0.875, 0.90, 0.90),
1220 (1.000, 1.00, 1.00)),
1221 'blue': ((0.000, 0.00, 0.00),
1222 (0.125, 0.50, 0.50),
1223 (0.250, 0.75, 0.75),
1224 (0.375, 0.50, 0.50),
1225 (0.500, 0.15, 0.15),
1226 (0.625, 0.00, 0.00),
1227 (0.750, 0.10, 0.10),
1228 (0.875, 0.50, 0.50),
1229 (1.000, 1.00, 1.00))}
1232# An MIT licensed, colorblind-friendly heatmap from Wistia:
1233# https://github.com/wistia/heatmap-palette
1234# http://wistia.com/blog/heatmaps-for-colorblindness
1235#
1236# >>> import matplotlib.colors as c
1237# >>> colors = ["#e4ff7a", "#ffe81a", "#ffbd00", "#ffa000", "#fc7f00"]
1238# >>> cm = c.LinearSegmentedColormap.from_list('wistia', colors)
1239# >>> _wistia_data = cm._segmentdata
1240# >>> del _wistia_data['alpha']
1241#
1242_wistia_data = {
1243 'red': [(0.0, 0.8941176470588236, 0.8941176470588236),
1244 (0.25, 1.0, 1.0),
1245 (0.5, 1.0, 1.0),
1246 (0.75, 1.0, 1.0),
1247 (1.0, 0.9882352941176471, 0.9882352941176471)],
1248 'green': [(0.0, 1.0, 1.0),
1249 (0.25, 0.9098039215686274, 0.9098039215686274),
1250 (0.5, 0.7411764705882353, 0.7411764705882353),
1251 (0.75, 0.6274509803921569, 0.6274509803921569),
1252 (1.0, 0.4980392156862745, 0.4980392156862745)],
1253 'blue': [(0.0, 0.47843137254901963, 0.47843137254901963),
1254 (0.25, 0.10196078431372549, 0.10196078431372549),
1255 (0.5, 0.0, 0.0),
1256 (0.75, 0.0, 0.0),
1257 (1.0, 0.0, 0.0)],
1258}
1261# Categorical palettes from Vega:
1262# https://github.com/vega/vega/wiki/Scales
1263# (divided by 255)
1264#
1266_tab10_data = (
1267 (0.12156862745098039, 0.4666666666666667, 0.7058823529411765 ), # 1f77b4
1268 (1.0, 0.4980392156862745, 0.054901960784313725), # ff7f0e
1269 (0.17254901960784313, 0.6274509803921569, 0.17254901960784313 ), # 2ca02c
1270 (0.8392156862745098, 0.15294117647058825, 0.1568627450980392 ), # d62728
1271 (0.5803921568627451, 0.403921568627451, 0.7411764705882353 ), # 9467bd
1272 (0.5490196078431373, 0.33725490196078434, 0.29411764705882354 ), # 8c564b
1273 (0.8901960784313725, 0.4666666666666667, 0.7607843137254902 ), # e377c2
1274 (0.4980392156862745, 0.4980392156862745, 0.4980392156862745 ), # 7f7f7f
1275 (0.7372549019607844, 0.7411764705882353, 0.13333333333333333 ), # bcbd22
1276 (0.09019607843137255, 0.7450980392156863, 0.8117647058823529), # 17becf
1277)
1279_tab20_data = (
1280 (0.12156862745098039, 0.4666666666666667, 0.7058823529411765 ), # 1f77b4
1281 (0.6823529411764706, 0.7803921568627451, 0.9098039215686274 ), # aec7e8
1282 (1.0, 0.4980392156862745, 0.054901960784313725), # ff7f0e
1283 (1.0, 0.7333333333333333, 0.47058823529411764 ), # ffbb78
1284 (0.17254901960784313, 0.6274509803921569, 0.17254901960784313 ), # 2ca02c
1285 (0.596078431372549, 0.8745098039215686, 0.5411764705882353 ), # 98df8a
1286 (0.8392156862745098, 0.15294117647058825, 0.1568627450980392 ), # d62728
1287 (1.0, 0.596078431372549, 0.5882352941176471 ), # ff9896
1288 (0.5803921568627451, 0.403921568627451, 0.7411764705882353 ), # 9467bd
1289 (0.7725490196078432, 0.6901960784313725, 0.8352941176470589 ), # c5b0d5
1290 (0.5490196078431373, 0.33725490196078434, 0.29411764705882354 ), # 8c564b
1291 (0.7686274509803922, 0.611764705882353, 0.5803921568627451 ), # c49c94
1292 (0.8901960784313725, 0.4666666666666667, 0.7607843137254902 ), # e377c2
1293 (0.9686274509803922, 0.7137254901960784, 0.8235294117647058 ), # f7b6d2
1294 (0.4980392156862745, 0.4980392156862745, 0.4980392156862745 ), # 7f7f7f
1295 (0.7803921568627451, 0.7803921568627451, 0.7803921568627451 ), # c7c7c7
1296 (0.7372549019607844, 0.7411764705882353, 0.13333333333333333 ), # bcbd22
1297 (0.8588235294117647, 0.8588235294117647, 0.5529411764705883 ), # dbdb8d
1298 (0.09019607843137255, 0.7450980392156863, 0.8117647058823529 ), # 17becf
1299 (0.6196078431372549, 0.8549019607843137, 0.8980392156862745), # 9edae5
1300)
1302_tab20b_data = (
1303 (0.2235294117647059, 0.23137254901960785, 0.4745098039215686 ), # 393b79
1304 (0.3215686274509804, 0.32941176470588235, 0.6392156862745098 ), # 5254a3
1305 (0.4196078431372549, 0.43137254901960786, 0.8117647058823529 ), # 6b6ecf
1306 (0.611764705882353, 0.6196078431372549, 0.8705882352941177 ), # 9c9ede
1307 (0.38823529411764707, 0.4745098039215686, 0.2235294117647059 ), # 637939
1308 (0.5490196078431373, 0.6352941176470588, 0.3215686274509804 ), # 8ca252
1309 (0.7098039215686275, 0.8117647058823529, 0.4196078431372549 ), # b5cf6b
1310 (0.807843137254902, 0.8588235294117647, 0.611764705882353 ), # cedb9c
1311 (0.5490196078431373, 0.42745098039215684, 0.19215686274509805), # 8c6d31
1312 (0.7411764705882353, 0.6196078431372549, 0.2235294117647059 ), # bd9e39
1313 (0.9058823529411765, 0.7294117647058823, 0.3215686274509804 ), # e7ba52
1314 (0.9058823529411765, 0.796078431372549, 0.5803921568627451 ), # e7cb94
1315 (0.5176470588235295, 0.23529411764705882, 0.2235294117647059 ), # 843c39
1316 (0.6784313725490196, 0.28627450980392155, 0.2901960784313726 ), # ad494a
1317 (0.8392156862745098, 0.3803921568627451, 0.4196078431372549 ), # d6616b
1318 (0.9058823529411765, 0.5882352941176471, 0.611764705882353 ), # e7969c
1319 (0.4823529411764706, 0.2549019607843137, 0.45098039215686275), # 7b4173
1320 (0.6470588235294118, 0.3176470588235294, 0.5803921568627451 ), # a55194
1321 (0.807843137254902, 0.42745098039215684, 0.7411764705882353 ), # ce6dbd
1322 (0.8705882352941177, 0.6196078431372549, 0.8392156862745098 ), # de9ed6
1323)
1325_tab20c_data = (
1326 (0.19215686274509805, 0.5098039215686274, 0.7411764705882353 ), # 3182bd
1327 (0.4196078431372549, 0.6823529411764706, 0.8392156862745098 ), # 6baed6
1328 (0.6196078431372549, 0.792156862745098, 0.8823529411764706 ), # 9ecae1
1329 (0.7764705882352941, 0.8588235294117647, 0.9372549019607843 ), # c6dbef
1330 (0.9019607843137255, 0.3333333333333333, 0.050980392156862744), # e6550d
1331 (0.9921568627450981, 0.5529411764705883, 0.23529411764705882 ), # fd8d3c
1332 (0.9921568627450981, 0.6823529411764706, 0.4196078431372549 ), # fdae6b
1333 (0.9921568627450981, 0.8156862745098039, 0.6352941176470588 ), # fdd0a2
1334 (0.19215686274509805, 0.6392156862745098, 0.32941176470588235 ), # 31a354
1335 (0.4549019607843137, 0.7686274509803922, 0.4627450980392157 ), # 74c476
1336 (0.6313725490196078, 0.8509803921568627, 0.6078431372549019 ), # a1d99b
1337 (0.7803921568627451, 0.9137254901960784, 0.7529411764705882 ), # c7e9c0
1338 (0.4588235294117647, 0.4196078431372549, 0.6941176470588235 ), # 756bb1
1339 (0.6196078431372549, 0.6039215686274509, 0.7843137254901961 ), # 9e9ac8
1340 (0.7372549019607844, 0.7411764705882353, 0.8627450980392157 ), # bcbddc
1341 (0.8549019607843137, 0.8549019607843137, 0.9215686274509803 ), # dadaeb
1342 (0.38823529411764707, 0.38823529411764707, 0.38823529411764707 ), # 636363
1343 (0.5882352941176471, 0.5882352941176471, 0.5882352941176471 ), # 969696
1344 (0.7411764705882353, 0.7411764705882353, 0.7411764705882353 ), # bdbdbd
1345 (0.8509803921568627, 0.8509803921568627, 0.8509803921568627 ), # d9d9d9
1346)
1349datad = {
1350 'Blues': _Blues_data,
1351 'BrBG': _BrBG_data,
1352 'BuGn': _BuGn_data,
1353 'BuPu': _BuPu_data,
1354 'CMRmap': _CMRmap_data,
1355 'GnBu': _GnBu_data,
1356 'Greens': _Greens_data,
1357 'Greys': _Greys_data,
1358 'OrRd': _OrRd_data,
1359 'Oranges': _Oranges_data,
1360 'PRGn': _PRGn_data,
1361 'PiYG': _PiYG_data,
1362 'PuBu': _PuBu_data,
1363 'PuBuGn': _PuBuGn_data,
1364 'PuOr': _PuOr_data,
1365 'PuRd': _PuRd_data,
1366 'Purples': _Purples_data,
1367 'RdBu': _RdBu_data,
1368 'RdGy': _RdGy_data,
1369 'RdPu': _RdPu_data,
1370 'RdYlBu': _RdYlBu_data,
1371 'RdYlGn': _RdYlGn_data,
1372 'Reds': _Reds_data,
1373 'Spectral': _Spectral_data,
1374 'Wistia': _wistia_data,
1375 'YlGn': _YlGn_data,
1376 'YlGnBu': _YlGnBu_data,
1377 'YlOrBr': _YlOrBr_data,
1378 'YlOrRd': _YlOrRd_data,
1379 'afmhot': _afmhot_data,
1380 'autumn': _autumn_data,
1381 'binary': _binary_data,
1382 'bone': _bone_data,
1383 'brg': _brg_data,
1384 'bwr': _bwr_data,
1385 'cool': _cool_data,
1386 'coolwarm': _coolwarm_data,
1387 'copper': _copper_data,
1388 'cubehelix': _cubehelix_data,
1389 'flag': _flag_data,
1390 'gist_earth': _gist_earth_data,
1391 'gist_gray': _gist_gray_data,
1392 'gist_heat': _gist_heat_data,
1393 'gist_ncar': _gist_ncar_data,
1394 'gist_rainbow': _gist_rainbow_data,
1395 'gist_stern': _gist_stern_data,
1396 'gist_yarg': _gist_yarg_data,
1397 'gnuplot': _gnuplot_data,
1398 'gnuplot2': _gnuplot2_data,
1399 'gray': _gray_data,
1400 'hot': _hot_data,
1401 'hsv': _hsv_data,
1402 'jet': _jet_data,
1403 'nipy_spectral': _nipy_spectral_data,
1404 'ocean': _ocean_data,
1405 'pink': _pink_data,
1406 'prism': _prism_data,
1407 'rainbow': _rainbow_data,
1408 'seismic': _seismic_data,
1409 'spring': _spring_data,
1410 'summer': _summer_data,
1411 'terrain': _terrain_data,
1412 'winter': _winter_data,
1413 # Qualitative
1414 'Accent': {'listed': _Accent_data},
1415 'Dark2': {'listed': _Dark2_data},
1416 'Paired': {'listed': _Paired_data},
1417 'Pastel1': {'listed': _Pastel1_data},
1418 'Pastel2': {'listed': _Pastel2_data},
1419 'Set1': {'listed': _Set1_data},
1420 'Set2': {'listed': _Set2_data},
1421 'Set3': {'listed': _Set3_data},
1422 'tab10': {'listed': _tab10_data},
1423 'tab20': {'listed': _tab20_data},
1424 'tab20b': {'listed': _tab20b_data},
1425 'tab20c': {'listed': _tab20c_data},
1426}