Skip to content

Commit 3fcb4ac

Browse files
committed
REF: Fix multi-scale DatetimeTickFormatter deprecation in Bokeh 3.0
> BokehDeprecationWarning: Passing lists of formats for DatetimeTickFormatter scales was deprecated in Bokeh 3.0. Configure a single string format for each scale Fixes #807
1 parent b8285d4 commit 3fcb4ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backtesting/_plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def plot(*, results: pd.Series,
247247
if is_datetime_index:
248248
fig_ohlc.xaxis.formatter = CustomJSTickFormatter(
249249
args=dict(axis=fig_ohlc.xaxis[0],
250-
formatter=DatetimeTickFormatter(days=['%d %b', '%a %d'],
251-
months=['%m/%Y', "%b'%y"]),
250+
formatter=DatetimeTickFormatter(days='%a, %d %b',
251+
months='%m/%Y'),
252252
source=source),
253253
code='''
254254
this.labels = this.labels || formatter.doFormat(ticks

0 commit comments

Comments
 (0)