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

Bugfix: colors -> color_list, add support for passing labels as argument

parent c9295ee2
......@@ -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,
colors=color_list,
labels=labels,
color_list=color_list,
bin_lims=bin_lims,
n_bins=n_bins,
)
......
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