From da27f2e5da56b1705509e301328c1867f1a39a3c Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Mon, 14 Jan 2019 16:57:46 +0000 Subject: [PATCH] Updated and fixed issues in documentation --- examples/gallery/bokeh/xarray_image.ipynb | 2 +- .../gallery/matplotlib/xarray_image.ipynb | 2 +- examples/user_guide/Gridded_Datasets_II.ipynb | 19 ------------------- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/examples/gallery/bokeh/xarray_image.ipynb b/examples/gallery/bokeh/xarray_image.ipynb index 4d3c2f7c..809502c0 100644 --- a/examples/gallery/bokeh/xarray_image.ipynb +++ b/examples/gallery/bokeh/xarray_image.ipynb @@ -28,7 +28,7 @@ "outputs": [], "source": [ "ensemble = xr.open_dataset('../../data/ensemble.nc')\n", - "dataset = gv.Dataset(ensemble, ['longitude', 'latitude', 'time'], crs=crs.PlateCarree())\n", + "dataset = gv.Dataset(ensemble, ['longitude', 'latitude', 'time'], 'surface_temperature', crs=crs.PlateCarree())\n", "images = dataset.to(gv.Image)\n", "# Equivalent full definition:\n", "# images = dataset.to(gv.Image, ['longitude', 'latitude'], 'surface_temperature', 'time')" diff --git a/examples/gallery/matplotlib/xarray_image.ipynb b/examples/gallery/matplotlib/xarray_image.ipynb index 64b3b20b..7493a3d8 100644 --- a/examples/gallery/matplotlib/xarray_image.ipynb +++ b/examples/gallery/matplotlib/xarray_image.ipynb @@ -28,7 +28,7 @@ "outputs": [], "source": [ "ensemble = xr.open_dataset('../../data/ensemble.nc')\n", - "dataset = gv.Dataset(ensemble, ['longitude', 'latitude', 'time'], crs=crs.PlateCarree())\n", + "dataset = gv.Dataset(ensemble, ['longitude', 'latitude', 'time'], 'surface_temperature', crs=crs.PlateCarree())\n", "images = dataset.to(gv.Image)\n", "# Equivalent full definition:\n", "# images = dataset.to(gv.Image, ['longitude', 'latitude'], 'surface_temperature', 'time')" diff --git a/examples/user_guide/Gridded_Datasets_II.ipynb b/examples/user_guide/Gridded_Datasets_II.ipynb index d64612f2..ca6859cd 100644 --- a/examples/user_guide/Gridded_Datasets_II.ipynb +++ b/examples/user_guide/Gridded_Datasets_II.ipynb @@ -285,25 +285,6 @@ "curves.opts(width=600, height=400, legend_position='right', toolbar='above')" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Aggregating coordinates\n", - "\n", - "Another option is to aggregate over certain dimensions, so that we can get an idea of distributions of temperatures across all latitudes and longitudes. Here we compute the mean temperature and standard deviation by latitude and longitude, casting the resulting collapsed view to a Spread Element:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "hv.Spread(dataset.aggregate('latitude', np.mean, np.std)) +\\\n", - "hv.Spread(dataset.aggregate('longitude', np.mean, np.std))" - ] - }, { "cell_type": "markdown", "metadata": {},