-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolormaps.py
29 lines (27 loc) · 1.09 KB
/
colormaps.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import matplotlib.pyplot as plt
cdict = {'red': [(0.0, 0.0000, 0.0000),
(0.125, 0.000, 0.000),
(0.5, 1.0000, 1.0000),
(0.875, 0.900, 0.900),
(1.0, 0.6000, 0.6000)],
'green': [(0.0, 0.3270, 0.3270),
(0.125, 0.545, 0.545),
(0.5, 1.0000, 1.0000),
(0.875, 0.490, 0.490),
(1.0, 0.3270, 0.3270)],
'blue': [(0.0, 0.3270, 0.3270),
(0.125, 0.545, 0.545),
(0.5, 1.0000, 1.0000),
(0.875, 0.000, 0.000),
(1.0, 0.0000, 0.0000)]}
plt.register_cmap(name='CyOrDark', data=cdict)
cdictbr = {'red': [(0.0, 0.2039, 0.2039),
(0.5, 1.0000, 1.0000),
(1.0, 0.9059, 0.9059)],
'green': [(0.0, 0.5961, 0.5961),
(0.5, 1.0000, 1.0000),
(1.0, 0.2980, 0.2980)],
'blue': [(0.0, 0.8588, 0.8588),
(0.5, 1.0000, 1.0000),
(1.0, 0.2353, 0.2353)]}
plt.register_cmap(name='BlueRed', data=cdictbr)