We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf03b63 commit 5ca9a59Copy full SHA for 5ca9a59
backtesting/_plotting.py
@@ -588,7 +588,8 @@ def __eq__(self, other):
588
figs_above_ohlc.append(_plot_drawdown_section())
589
590
if plot_pl:
591
- figs_above_ohlc.append(_plot_pl_section())
+ fig_pl = _plot_pl_section()
592
+ figs_above_ohlc.append(fig_pl)
593
594
if plot_volume:
595
fig_volume = _plot_volume_section()
@@ -611,6 +612,8 @@ def __eq__(self, other):
611
612
613
custom_js_args = dict(ohlc_range=fig_ohlc.y_range,
614
source=source)
615
+ if plot_pl:
616
+ custom_js_args.update(pl_range=fig_pl.y_range)
617
618
custom_js_args.update(volume_range=fig_volume.y_range)
619
indicator_ranges = {}
0 commit comments