Boxplot chart

URL: http://bokeh.pydata.org/en/latest/docs/gallery/boxplot_chart.html

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

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

Declaring data

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

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

Plot

In [3]:
plot_opts = dict(bgcolor='white', aspect=2, fig_size=200)
boxwhisker(plot=plot_opts)
Out[3]:

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