In [ ]:
from bokeh.charts import Histogram
from bokeh.sampledata.autompg import autompg as df
from bokeh.charts import defaults, vplot, hplot, show, output_notebook
In [ ]:
output_notebook()
In [ ]:
defaults.width = 450
defaults.height = 350
In [ ]:
hist = Histogram(df['mpg'], title="df['mpg']")
hist2 = Histogram(df, 'displ', title="df, 'displ'")
hist3 = Histogram(df, values='hp', title="df, values='hp'")
hist4 = Histogram(df, values='hp', color='cyl',
title="df, values='hp', color='cyl'", legend='top_right')
hist5 = Histogram(df, values='mpg', bins=50,
title="df, values='mpg', bins=50")
In [ ]:
show(
vplot(
hplot(hist, hist2, hist3),
hplot(hist4, hist5)
)
)
In [ ]: