Violin plot example - created function to plot violin plots

I’ve seen a number of requests for violin plots in Bokeh. I needed a violin plot for a work project, so I built one. I built it as a simple function with a minimum of one argument (a data series). The function returns a Bokeh figure object.

You can get the code (including complete example and test data) here: CodeExamples/Violin at master · MikeWoodward/CodeExamples · GitHub

Here’s a picture of the violin plot.


Just as an FYI, Holoviews (which builds on Bokeh) supports a violin plot type:

Violin — HoloViews 1.14.4 documentation