From 7db73cad74a7dde4bc4a9d28c8725f8a1aa1fd5c Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Wed, 31 Mar 2021 18:29:10 +0200 Subject: [PATCH] Overwrite y-label if density=True --- nnfwtbn/plot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nnfwtbn/plot.py b/nnfwtbn/plot.py index 18de973..c815b3d 100644 --- a/nnfwtbn/plot.py +++ b/nnfwtbn/plot.py @@ -263,6 +263,9 @@ def hist(dataframe, variable, bins, stacks, selection=None, if isinstance(denominator, int) and stacks[denominator] == stack: denominator = stack + if density: + uhepp_obj.y_label = "Events (a.u.)" + uhepp_obj.ratio_label = ratio_label if ratio_range: uhepp_obj.ratio_min = ratio_range[0] -- GitLab