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


In [ ]:
import holoviews as hv
from bokeh.sampledata.autompg import autompg

hv.extension('matplotlib')
hv.output(size=300, fig='svg')

Declaring data


In [ ]:
violin = hv.Violin(autompg, ('yr', 'Year'), ('mpg', 'Miles per Gallon')).redim.range(mpg=(8, 45))

Plot


In [ ]:
violin.opts(aspect=1.5)