Box Plot#
A grouped box and whisker plot comparing flipper length distributions by species and sex.
import hvplot.pandas # noqa
df = hvplot.sampledata.penguins('pandas')
df.hvplot.box(
y='flipper_length_mm',
by=['species', 'sex'],
title='Grouped Box Plot (Bokeh)',
ylabel='Flipper Length (mm)',
)
import hvplot.pandas # noqa
hvplot.extension('matplotlib')
df = hvplot.sampledata.penguins('pandas')
df.hvplot.box(
y='flipper_length_mm',
by=['species', 'sex'],
title='Grouped Box Plot (Matplotlib)',
ylabel='Flipper Length (mm)',
)
See also
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.