From 93dcdbd462c3fc22f58c7f49003941f0487b8465 Mon Sep 17 00:00:00 2001 From: Andrew <15331990+ahuang11@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:04:08 -0700 Subject: [PATCH] Change to line plot --- overview/xarray-in-45-min.ipynb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/overview/xarray-in-45-min.ipynb b/overview/xarray-in-45-min.ipynb index 032ad197..ec45424d 100644 --- a/overview/xarray-in-45-min.ipynb +++ b/overview/xarray-in-45-min.ipynb @@ -1105,9 +1105,16 @@ "outputs": [], "source": [ "import hvplot.xarray\n", + "import xarray as xr\n", "\n", - "ds.isel(time=slice(0, 10)).air.hvplot(\n", - " groupby=\"time\", clim=(270, 300), widget_location='bottom', dynamic=False\n", + "ds = xr.tutorial.open_dataset(\"air_temperature\")\n", + "ds.mean(\"time\").hvplot(\n", + " groupby=\"lat\",\n", + " hover=\"vline\",\n", + " responsive=True,\n", + " dynamic=False,\n", + " ylim=(240, 310),\n", + " min_height=350,\n", ")" ] },