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


In [ ]:
import holoviews as hv
hv.extension('matplotlib')
hv.output(fig='svg')

Declaring data


In [ ]:
from bokeh.sampledata.autompg import autompg as df

title = "MPG by Cylinders and Data Source, Colored by Cylinders"
boxwhisker = hv.BoxWhisker(df, ['cyl', 'origin'], 'mpg', label=title)

Plot


In [ ]:
boxwhisker.opts(bgcolor='white', aspect=2, fig_size=200)