In [2]:
from bokeh.io import output_notebook
from bokeh.resources import INLINE
output_notebook(resources=INLINE)
In [3]:
from bokeh.models.widgets import Panel, Tabs
from bokeh.plotting import figure, show
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
p = figure(plot_width=600, plot_height=300, tools=["pan, hover, reset"],
y_range=(1, 8), y_axis_label='asdasd', toolbar_location='above', logo=None,)
p.line(x, y, line_width=2)
p1 = figure(plot_width=600, plot_height=300, tools=["pan, hover, reset"],
y_range=(1, 8), y_axis_label='asdasd', toolbar_location='above', logo=None,)
p1.line(x, y, line_width=2)
t = Tabs(tabs=[Panel(child=p, title='asd'), Panel(child=p1, title='asdasd')])
show(t)
In [4]:
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
p = figure(plot_width=400, plot_height=300, tools=["pan, hover, reset"],
y_range=(1, 8), y_axis_label='asdasd', toolbar_location='above', logo=None)
p.line(x, y, line_width=2)
show(p)
In [ ]: