Autompg histogram

Download this notebook from GitHub (right-click to download).


Most examples work across multiple plotting backends, this example is also available for:

In [1]:
import holoviews as hv
from holoviews import opts
hv.extension('bokeh')

Declaring data

In [2]:
from bokeh.sampledata.autompg import autompg

autompg_ds = hv.Dataset(autompg)

Plot

In [3]:
hist = autompg_ds.hist(dimension='mpg', groupby='cyl', bin_range=(9, 46), bins=40, adjoin=False)

hist.opts(opts.Histogram(alpha=0.9, width=600))
Out[3]:

Download this notebook from GitHub (right-click to download).