Iris example

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 numpy as np
import holoviews as hv
hv.extension('matplotlib')
%output fig='svg'

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(plot=dict(legend_position='right'))
Out[3]:

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