Autompg violins¶
Download this notebook from GitHub (right-click to download).
Most examples work across multiple plotting backends, this example is also available for:
In [1]:
import holoviews as hv
from holoviews import dim
from bokeh.sampledata.autompg import autompg
hv.extension('bokeh')
Declaring data¶
In [2]:
violin = hv.Violin(autompg, ('yr', 'Year'), ('mpg', 'Miles per Gallon')).redim.range(mpg=(8, 45))
Plot¶
In [3]:
violin.opts(height=500, width=900, violin_fill_color=dim('Year').str(), cmap='Set1')
Out[3]:
Download this notebook from GitHub (right-click to download).