diff --git a/nnfwtbn/plot.py b/nnfwtbn/plot.py index 6c9fa64d61423120eb9526ebe0364eb8f4df0e59..226e872cadaf6320f0370662cefcf2b602671152 100644 --- a/nnfwtbn/plot.py +++ b/nnfwtbn/plot.py @@ -216,7 +216,7 @@ def hist(dataframe, variable, bins, stacks, selection=None, for i_stack, stack in enumerate(stacks): stack_items = [] if stack in blind and variable.blinding is not None: - c_blind = variable.blinding(variable, bins) + c_blind = variable.blinding(variable, bins[1:-1]) else: c_blind = lambda d: d @@ -260,7 +260,7 @@ def hist(dataframe, variable, bins, stacks, selection=None, # Get denominator hist if denominator in blind and variable.blinding is not None: - c_blind = variable.blinding(variable, bins) + c_blind = variable.blinding(variable, bins[1:-1]) else: c_blind = lambda d: d @@ -279,7 +279,7 @@ def hist(dataframe, variable, bins, stacks, selection=None, numerators_data = [] for i_numerator, numerator in enumerate(numerators): if numerator in blind and variable.blinding is not None: - c_blind = variable.blinding(variable, bins) + c_blind = variable.blinding(variable, bins[1:-1]) else: c_blind = lambda d: d