Skip to content

Commit a27256e

Browse files
Alexey Peschanykernc
Alexey Peschany
authored andcommitted
ENH: Return plot object in Backtest.plot() (#415)
For amending / bokeh.io.export_png
1 parent 0a76e96 commit a27256e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ def plot(self, *, results: pd.Series = None, filename=None, plot_width=None,
17061706
raise RuntimeError('First issue `backtest.run()` to obtain results.')
17071707
results = self._results
17081708

1709-
plot(
1709+
return plot(
17101710
results=results,
17111711
df=self._data,
17121712
indicators=results._strategy._indicators,

0 commit comments

Comments
 (0)