Iris splom example

URL: http://bokeh.pydata.org/en/latest/docs/gallery/iris_splom.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')

Declaring data

In [2]:
from bokeh.sampledata.iris import flowers
from holoviews.operation import gridmatrix

ds = hv.Dataset(flowers)

grouped_by_species = ds.groupby('species', container_type=hv.NdOverlay)
grid = gridmatrix(grouped_by_species, diagonal_type=hv.Scatter)

Plot

In [3]:
plot_opts = dict(bgcolor='#efe8e2')
style = dict(alpha=0.2, size=4)

grid({'Scatter': {'plot': plot_opts, 'style': style}})
Out[3]:

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