Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Connor Hainje
pidanalysis
Commits
2ac70dfb
Commit
2ac70dfb
authored
Dec 13, 2021
by
connor.hainje@pnnl.gov
Browse files
Update make_linear_colormap to have slightly higher 'high' value
parent
ff80b957
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/pidplots/pidplots/colors.py
View file @
2ac70dfb
...
...
@@ -13,7 +13,7 @@ _det_cmap = sns.cubehelix_palette(
)
DETECTORS
=
{
"SVD"
:
"
black
"
,
"SVD"
:
"
gray
"
,
"CDC"
:
_det_cmap
[
0
],
"TOP"
:
_det_cmap
[
1
],
"ARICH"
:
_det_cmap
[
2
],
...
...
@@ -50,7 +50,7 @@ def make_colormap(color_list, detectors=True):
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
hsv
=
rgb_to_hsv
(
to_rgba
(
color
,
alpha
=
1
)[:
3
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment