Boxplot

The plot that is missing in the built-ins

Bokeh does not have a built-in boxplot like matplotlib. Good practise is to create a class based on the example script from the gallary, import this in your script and use this class in your script. An example of such a class is to be found at https://github.com/fenna/BFVM19PROG1/blob/main/scripts/boxplot.py

The class can be used as follow:

b = Helper.Boxplot(df = df[['Hours', 'Breakfast']], 
                   value = 'Hours', by = 'Breakfast')
p = b.boxplot()
show(p)
bokeh boxplot of hours grouped by breakfast

Last updated

Was this helpful?