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('bokeh','matplotlib')
Declaring data ¶
In [2]:
from bokeh.sampledata.autompg import autompg
autompg_ds = hv.Dataset(autompg)
Plot ¶
In [3]:
%%opts Histogram (alpha=0.9) [width=600]
autompg_ds.hist(dimension='mpg', groupby='cyl', adjoin=False)
Out[3]:
Download this notebook from GitHub (right-click to download).