Commit 2ac70dfb authored by connor.hainje@pnnl.gov's avatar connor.hainje@pnnl.gov
Browse files

Update make_linear_colormap to have slightly higher 'high' value

parent ff80b957
...@@ -13,7 +13,7 @@ _det_cmap = sns.cubehelix_palette( ...@@ -13,7 +13,7 @@ _det_cmap = sns.cubehelix_palette(
) )
DETECTORS = { DETECTORS = {
"SVD": "black", "SVD": "gray",
"CDC": _det_cmap[0], "CDC": _det_cmap[0],
"TOP": _det_cmap[1], "TOP": _det_cmap[1],
"ARICH": _det_cmap[2], "ARICH": _det_cmap[2],
...@@ -50,7 +50,7 @@ def make_colormap(color_list, detectors=True): ...@@ -50,7 +50,7 @@ def make_colormap(color_list, detectors=True):
return cmap return cmap
def make_linear_colormap(color, cmap_name="custom_cmap", low=0.3, high=0.8): def make_linear_colormap(color, cmap_name="custom_cmap", low=0.3, high=0.9):
from matplotlib.colors import to_rgba, rgb_to_hsv, hsv_to_rgb from matplotlib.colors import to_rgba, rgb_to_hsv, hsv_to_rgb
hsv = rgb_to_hsv(to_rgba(color, alpha=1)[:3]) hsv = rgb_to_hsv(to_rgba(color, alpha=1)[:3])
......
Supports Markdown
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