Skip to content

Commit 3b74729

Browse files
committed
ENH: Reduce height of indicator charts, introduce an overridable global
1 parent 7431063 commit 3b74729

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backtesting/_plotting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def lightness(color, lightness=.94):
111111

112112

113113
_MAX_CANDLES = 10_000
114+
_INDICATOR_HEIGHT = 50
114115

115116

116117
def _maybe_resample_data(resample_rule, df, indicators, equity_data, trades):
@@ -295,7 +296,7 @@ def plot(*, results: pd.Series,
295296
('Volume', '@Volume{0,0}')]
296297

297298
def new_indicator_figure(**kwargs):
298-
kwargs.setdefault('height', 90)
299+
kwargs.setdefault('height', _INDICATOR_HEIGHT)
299300
fig = new_bokeh_figure(x_range=fig_ohlc.x_range,
300301
active_scroll='xwheel_zoom',
301302
active_drag='xpan',

0 commit comments

Comments
 (0)