@@ -212,8 +212,8 @@ def plot(*, results: pd.Series,
212
212
new_bokeh_figure = partial (
213
213
_figure ,
214
214
x_axis_type = 'linear' ,
215
- plot_width = plot_width ,
216
- plot_height = 400 ,
215
+ width = plot_width ,
216
+ height = 400 ,
217
217
tools = "xpan,xwheel_zoom,box_zoom,undo,redo,reset,save" ,
218
218
active_drag = 'xpan' ,
219
219
active_scroll = 'xwheel_zoom' )
@@ -269,7 +269,7 @@ def plot(*, results: pd.Series,
269
269
('Volume' , '@Volume{0,0}' )]
270
270
271
271
def new_indicator_figure (** kwargs ):
272
- kwargs .setdefault ('plot_height ' , 90 )
272
+ kwargs .setdefault ('height ' , 90 )
273
273
fig = new_bokeh_figure (x_range = fig_ohlc .x_range ,
274
274
active_scroll = 'xwheel_zoom' ,
275
275
active_drag = 'xpan' ,
@@ -334,7 +334,7 @@ def _plot_equity_section(is_return=False):
334
334
source .add (equity , source_key )
335
335
fig = new_indicator_figure (
336
336
y_axis_label = yaxis_label ,
337
- ** ({} if plot_drawdown else dict (plot_height = 110 )))
337
+ ** ({} if plot_drawdown else dict (height = 110 )))
338
338
339
339
# High-watermark drawdown dents
340
340
fig .patch ('index' , 'equity_dd' ,
@@ -697,8 +697,8 @@ def plot_heatmaps(heatmap: pd.Series, agg: Union[Callable, str], ncols: int,
697
697
y_range = level2 ,
698
698
x_axis_label = name1 ,
699
699
y_axis_label = name2 ,
700
- plot_width = plot_width // ncols ,
701
- plot_height = plot_width // ncols ,
700
+ width = plot_width // ncols ,
701
+ height = plot_width // ncols ,
702
702
tools = 'box_zoom,reset,save' ,
703
703
tooltips = [(name1 , '@' + name1 ),
704
704
(name2 , '@' + name2 ),
0 commit comments