bokeh.models
Interfacebokeh.models.annotations
bokeh.models.axes
bokeh.models.callbacks
bokeh.models.formatters
bokeh.models.glyphs
bokeh.models.grids
bokeh.models.map_plots
bokeh.models.mappers
bokeh.models.markers
bokeh.models.plots
bokeh.models.ranges
bokeh.models.renderers
bokeh.models.sources
bokeh.models.tickers
bokeh.models.tools
bokeh.models.widget
bokeh.models.widgets.buttons
bokeh.models.widgets.dialogs
bokeh.models.widgets.groups
bokeh.models.widgets.icons
bokeh.models.widgets.inputs
bokeh.models.widgets.layouts
bokeh.models.widgets.markups
bokeh.models.widgets.panels
bokeh.models.widgets.tables
bokeh.validation
Package
bokeh.plotting
Interfacebokeh.charts
Interface
< dot_chart | back to Gallery | iris_scatter_chart >
from bokeh.charts import Histogram
from bokeh.sampledata.autompg import autompg as df
from bokeh.charts import defaults, vplot, hplot, show, output_file
defaults.width = 450
defaults.height = 350
# input options
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")
output_file("histograms.html")
show(
vplot(
hplot(hist, hist2, hist3),
hplot(hist4, hist5)
)
)