File: C:/Users/fred/anaconda3/Lib/site-packages/holoviews/examples/gallery/demos/bokeh/iris_example.ipynb
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"URL: https://docs.bokeh.org/en/2.4.1/docs/gallery/iris.html\n",
"\n",
"Most examples work across multiple plotting backends, this example is also available for:\n",
"\n",
"* [Matplotlib - iris_example](../matplotlib/iris_example.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import holoviews as hv\n",
"hv.extension('bokeh')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Defining data"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from bokeh.sampledata.iris import flowers\n",
"ds = hv.Dataset(flowers)\n",
"points = ds.to(hv.Points, ['petal_length', 'petal_width'], groupby='species').overlay()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Plot"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"points.opts(legend_position='right', toolbar='above', width=400)"
]
}
],
"metadata": {
"language_info": {
"name": "python",
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}