diff --git a/src/ert/gui/tools/plot/plottery/plots/histogram.py b/src/ert/gui/tools/plot/plottery/plots/histogram.py index 5361b8dfb16..2991c0fed34 100644 --- a/src/ert/gui/tools/plot/plottery/plots/histogram.py +++ b/src/ert/gui/tools/plot/plottery/plots/histogram.py @@ -103,8 +103,8 @@ def plotHistogram( else: current_min = data[ensemble.name].min() current_max = data[ensemble.name].max() - minimum = current_min if minimum is None else min(minimum, current_min) # type: ignore - maximum = current_max if maximum is None else max(maximum, current_max) # type: ignore + minimum = current_min if minimum is None else min(minimum, current_min) + maximum = current_max if maximum is None else max(maximum, current_max) max_element_count = max(max_element_count, len(data[ensemble.name].index)) bin_count = ceil(sqrt(max_element_count))