Autompg histogram

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

In [1]:
import numpy as np
import pandas as pd
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]:
%%opts Histogram [fig_size=200 aspect=2]
autompg_ds.hist(dimension='mpg', groupby='cyl', adjoin=False)
Out[3]:

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