Commit 635e4bc6 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

more color maps

parent e622e200
Pipeline #18104 passed with stage
in 11 minutes and 24 seconds
......@@ -129,9 +129,94 @@ def _register_cmaps():
(0.333, 0.5, 0.5),
(0.5, 0.0, 0.0),
(1.0, 1.0, 1.0)) }
fd_cmap = { 'red': ((0.0, 0.35, 0.35),
(0.1, 0.4, 0.4),
(0.2, 0.25, 0.25),
(0.41, 0.47, 0.47),
(0.5, 0.8, 0.8),
(0.56, 0.96, 0.96),
(0.59, 1.0, 1.0),
(0.74, 0.8, 0.8),
(0.8, 0.8, 0.8),
(0.9, 0.5, 0.5),
(1.0, 0.4, 0.4)),
'green':((0.0, 0.0, 0.0),
(0.2, 0.0, 0.0),
(0.362, 0.88, 0.88),
(0.5, 1.0, 1.0),
(0.638, 0.88, 0.88),
(0.8, 0.25, 0.25),
(0.9, 0.3, 0.3),
(1.0, 0.2, 0.2)),
'blue': ((0.0, 0.35, 0.35),
(0.1, 0.4, 0.4),
(0.2, 0.8, 0.8),
(0.26, 0.8, 0.8),
(0.41, 1.0, 1.0),
(0.44, 0.96, 0.96),
(0.5, 0.8, 0.8),
(0.59, 0.47, 0.47),
(0.8, 0.0, 0.0),
(1.0, 0.0, 0.0)) }
fdu_cmap= { 'red': ((0.0, 1.0, 1.0),
(0.1, 0.8, 0.8),
(0.2, 0.65, 0.65),
(0.41, 0.6, 0.6),
(0.5, 0.7, 0.7),
(0.56, 0.96, 0.96),
(0.59, 1.0, 1.0),
(0.74, 0.8, 0.8),
(0.8, 0.8, 0.8),
(0.9, 0.5, 0.5),
(1.0, 0.4, 0.4)),
'green':((0.0, 0.9, 0.9),
(0.2, 0.65, 0.65),
(0.362, 0.95, 0.95),
(0.5, 1.0, 1.0),
(0.638, 0.88, 0.88),
(0.8, 0.25, 0.25),
(0.9, 0.3, 0.3),
(1.0, 0.2, 0.2)),
'blue': ((0.0, 1.0, 1.0),
(0.1, 0.8, 0.8),
(0.2, 1.0, 1.0),
(0.41, 1.0, 1.0),
(0.44, 0.96, 0.96),
(0.5, 0.7, 0.7),
(0.59, 0.42, 0.42),
(0.8, 0.0, 0.0),
(1.0, 0.0, 0.0)) }
pm_cmap = { 'red': ((0.0, 1.0, 1.0),
(0.1, 0.96, 0.96),
(0.2, 0.84, 0.84),
(0.3, 0.64, 0.64),
(0.4, 0.36, 0.36),
(0.5, 0.0, 0.0),
(1.0, 0.0, 0.0)),
'green':((0.0, 0.5, 0.5),
(0.1, 0.32, 0.32),
(0.2, 0.18, 0.18),
(0.3, 0.08, 0.08),
(0.4, 0.02, 0.02),
(0.5, 0.0, 0.0),
(0.6, 0.02, 0.02),
(0.7, 0.08, 0.08),
(0.8, 0.18, 0.18),
(0.9, 0.32, 0.32),
(1.0, 0.5, 0.5)),
'blue': ((0.0, 0.0, 0.0),
(0.5, 0.0, 0.0),
(0.6, 0.36, 0.36),
(0.7, 0.64, 0.64),
(0.8, 0.84, 0.84),
(0.9, 0.96, 0.96),
(1.0, 1.0, 1.0)) }
plt.register_cmap(cmap=LinearSegmentedColormap("Planck-like", planckcmap))
plt.register_cmap(cmap=LinearSegmentedColormap("High Energy", he_cmap))
plt.register_cmap(cmap=LinearSegmentedColormap("Faraday Map", fd_cmap))
plt.register_cmap(cmap=LinearSegmentedColormap("Faraday Uncertainty", fdu_cmap))
plt.register_cmap(cmap=LinearSegmentedColormap("Plus Minus", pm_cmap))
def plot(f, **kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment