Iris example

Download this notebook from GitHub (right-click to download).


URL: http://bokeh.pydata.org/en/latest/docs/gallery/iris.html

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

In [1]:
import holoviews as hv
hv.extension('bokeh')

Defining data

In [2]:
from bokeh.sampledata.iris import flowers
ds = hv.Dataset(flowers)
points = ds.to(hv.Points, ['petal_length', 'petal_width'], groupby='species').overlay()

Plot

In [3]:
points.opts(legend_position='right', toolbar='above', width=400)
Out[3]:

Download this notebook from GitHub (right-click to download).