{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "URL: http://bokeh.pydata.org/en/latest/docs/gallery/iris_splom.html\n", "\n", "Most examples work across multiple plotting backends, this example is also available for:\n", "\n", "* [Matplotlib - iris_splom_example](../matplotlib/iris_splot_example.ipynb)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import holoviews as hv\n", "from holoviews import opts\n", "hv.extension('bokeh')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Declaring data" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from bokeh.sampledata.iris import flowers\n", "from holoviews.operation import gridmatrix\n", "\n", "ds = hv.Dataset(flowers)\n", "\n", "grouped_by_species = ds.groupby('species', container_type=hv.NdOverlay)\n", "grid = gridmatrix(grouped_by_species, diagonal_type=hv.Scatter)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Plot" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "grid.opts(opts.Scatter(tools=['hover', 'box_select'], bgcolor='#efe8e2', fill_alpha=0.2, size=4))" ] } ], "metadata": { "language_info": { "name": "python", "pygments_lexer": "ipython3" } }, "nbformat": 4, "nbformat_minor": 2 }