Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.3k
-
Hi guys, is there a way to override 'plot' method to make the scalable height of the chart or at least to set some height? |
BetaWas this translation helpful?Give feedback.
All reactions
I've been playing around with this for a while, because ideally the plot would be fullscreen.
This works for me, but the result (the panes not retaining designated aspect) is an issue I didn't find how to overcome.
bt=Backtest(...)fig=bt.plot(open_browser=False)fig.sizing_mode='stretch_both'frombokeh.ioimportshowshow(fig)
If anybody finds a way to make them look pretty, please open a PR.
Replies: 3 comments 1 reply
-
Referring to thedocumentation of Backtesting.py, it states that 'The height is currently non-adjustable.' Therefore, you likely won't be able to achieve your desired outcome using the built-inbt.plot(). Alternatively, you might consider exporting the necessary data to Excel to create the chart. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Well, thank you, I saw and read this in the documentation before posting the question here. But still think there is a way to override the library method. I tried a few approaches and they didn't work. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I've been playing around with this for a while, because ideally the plot would be fullscreen. bt=Backtest(...)fig=bt.plot(open_browser=False)fig.sizing_mode='stretch_both'frombokeh.ioimportshowshow(fig) If anybody finds a way to make them look pretty, please open a PR. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I've attempted to solve this by making the individual chart components flexible. PR:#1302 |
BetaWas this translation helpful?Give feedback.