Skip to content

Commit b399e41

Browse files
committed
Adjust histogram boundaries when min==max
1 parent 467863e commit b399e41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ert/gui/tools/plot/plottery/plots/histogram.py

+3
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ def plotHistogram(
133133
),
134134
)
135135
else:
136+
if minimum is not None and maximum is not None and minimum == maximum:
137+
minimum -= 0.1
138+
maximum += 0.1
136139
config.addLegendItem(
137140
ensemble.name,
138141
_plotHistogram(

0 commit comments

Comments
 (0)