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]:
grid.options('Scatter', bgcolor='#efe8e2', alpha=0.2, size=4)
WARNING:root:main: Option 'size' for Scatter type not valid for selected backend ('matplotlib'). Option only applies to following backends: ['bokeh']
Out[3]:

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