Skip to content

Commit 31594c9

Browse files
Update src/chainconsumer/plotter.py
Co-authored-by: Copilot <[email protected]>
1 parent f1b0db8 commit 31594c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chainconsumer/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ def _plot_bars(
977977
else:
978978
display_bounds = base_bound
979979
intervals = [(display_bounds.lower, display_bounds.upper)]
980-
intervals = np.clip(intervals, a_min=xs.min(), a_max=xs.max())
980+
intervals = [(max(lower, xs.min()), min(upper, xs.max())) for lower, upper in intervals]
981981

982982
for lower, upper_ in intervals:
983983
x = np.linspace(lower, upper_, 1000)

0 commit comments

Comments
 (0)