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
hv.extension('matplotlib')

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), adjoin=False)

hist.opts(aspect=2, fig_size=200)
Out[3]:

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