How does the package omit empty space on bokeh plot? #435
Unanswered
wolfcuring
asked this question in
Q&A
Replies: 1 comment 1 reply
-
backtesting.py/backtesting/_plotting.py Lines 244 to 255 in 4f21a65 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When plotting a timeseries, bokeh leaves empty space where there is no data, for example in the weekend.
The regular solution is to have a major_label_overrides method. While this leaves further issue if you want to add another line, like a sma.
I read kernc's code, but did not figure out how he handled this. The only thing I noticed is to set x_axis_type='linear'. But I don't think this is the whole logic.
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions