Skip to content
","upvoteCount":2,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

I've been playing around with this for a while, because ideally the plot would be fullscreen.
\nThis works for me, but the result (the panes not retaining designated aspect) is an issue I didn't find how to overcome.

\n
bt = Backtest(...)\nfig = bt.plot(open_browser=False)\nfig.sizing_mode = 'stretch_both'\nfrom bokeh.io import show\nshow(fig)
\n

If anybody finds a way to make them look pretty, please open a PR.

","upvoteCount":1,"url":"https://github.com/kernc/backtesting.py/discussions/1199#discussioncomment-12106044"}}}

Set chart height to full browser window height or at least to a set value #1199

Answered by kernc
AlexStox asked this question in Q&A
Discussion options

You must be logged in to vote

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'
from bokeh.io import show
show(fig)

If anybody finds a way to make them look pretty, please open a PR.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexStox
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kernc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants