Skip to content
GitLab
Menu
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
2db99c3e
Commit
2db99c3e
authored
Dec 13, 2021
by
connor.hainje@pnnl.gov
Browse files
Bugfix: colors -> color_list, add support for passing labels as argument
parent
c9295ee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/pidplots/pidplots/likelihood_ratios.py
View file @
2db99c3e
...
...
@@ -2,7 +2,7 @@ from . import const, distributions as dist
def
subplot_likelihood_ratio
(
ax
,
df
,
particle
=
"all"
,
color_list
=
None
,
bin_lims
=
(
0
,
1
),
n_bins
=
30
ax
,
df
,
particle
=
"all"
,
color_list
=
None
,
labels
=
None
,
bin_lims
=
(
0
,
1
),
n_bins
=
30
):
if
particle
in
const
.
PARTICLES
:
data
=
df
[
f
"lr_
{
particle
}
"
].
values
...
...
@@ -17,8 +17,8 @@ def subplot_likelihood_ratio(
data
,
kind
=
particle
,
detectors
=
False
,
labels
=
const
.
PART_PLOT_LABELS
,
color
s
=
color_list
,
labels
=
labels
,
color
_list
=
color_list
,
bin_lims
=
bin_lims
,
n_bins
=
n_bins
,
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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