Skip to content

Commit

Permalink
Adjust histogram boundaries when min==max
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Oct 17, 2024
1 parent 40e078a commit b97fc39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ert/gui/tools/plot/plottery/plots/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b97fc39

Please sign in to comment.