Skip to content

Commit 4bf1f13

Browse files
committed
REF: Constrain max plot zoom to min interval
1 parent f29d27d commit 4bf1f13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backtesting/_plotting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def plot(*, results: pd.Series,
200200

201201
fig_ohlc = new_bokeh_figure(
202202
x_range=Range1d(index[0], index[-1],
203+
min_interval=10,
203204
bounds=(index[0] - pad,
204205
index[-1] + pad)) if index.size > 1 else None)
205206
figs_above_ohlc, figs_below_ohlc = [], []

0 commit comments

Comments
 (0)