Skip to content
Snippets Groups Projects
Commit a12ab798 authored by Patrick Ecker's avatar Patrick Ecker
Browse files

fix for the empty plots

parent f3f06a6d
Branches
No related tags found
1 merge request!63Low level cut study
......@@ -63,6 +63,8 @@ class LowLevelCutPlotter:
save_path = os.path.join(self.target_path, f"{key}_{new_cut_info.cut_name}_evaluation.pdf")
output.update({f"{key}_{new_cut_info.cut_name}_evaluation": save_path})
plt.cla()
plt.title(cut_info.cut_str, loc="center")
plt.title(channel, loc="right")
plt.savefig(save_path)
continue
......@@ -80,7 +82,7 @@ class LowLevelCutPlotter:
histtype="stepfilled",
stacked=True,
lw=1.5,
color=[KITColors.kit_green, KITColors.kit_red],
color=[KITColors.kit_brown, KITColors.kit_cyan],
label=["Background", "Signal"]
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment