Skip to content

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