from bokeh.plotting import output_notebook, show, figure, hplot, vplot, gridplot
output_notebook() # set inline output
q = figure(title='This chart appears just right size in notebook but is then too small for slides', width=980, height=500)
q.line(x=[3,2,1], y=[8,3,1])
show(q)
p = figure(title = 'This chart shows full size in slides, but is then small on notebook', width=840, height=500)
p.line(x=[1,2,4], y = [5,3,1])
show(p)
Is Width = 840 the maximum width of a bokeh chart in Jupyter?
r_out = []
for x in range(3):
r = figure(title='Only 840? Titles get very small when combininng charts', width = int(840/3), height = 250)
r.line(x=[5,4,3], y=[8,3,1])
r_out.append(r)
show(gridplot([r_out]))
Can I make the canvas bigger to get bigger charts?
Can I hide the code?
Can I reduce the margin sizes?