From a2f1053c8de77e083e451770980c8c29548fef14 Mon Sep 17 00:00:00 2001 From: xjules Date: Tue, 15 Oct 2024 15:12:48 +0200 Subject: [PATCH] Adjust histogram boundaries when min==max --- src/ert/gui/tools/plot/plottery/plots/histogram.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ert/gui/tools/plot/plottery/plots/histogram.py b/src/ert/gui/tools/plot/plottery/plots/histogram.py index 0eaa504c69f..1c250ffdfca 100644 --- a/src/ert/gui/tools/plot/plottery/plots/histogram.py +++ b/src/ert/gui/tools/plot/plottery/plots/histogram.py @@ -133,6 +133,9 @@ def plotHistogram( ), ) else: + if minimum is not None and maximum is not None and minimum == maximum: + minimum -= 0.1 + maximum += 0.1 config.addLegendItem( ensemble.name, _plotHistogram(