Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93dcdbd

Browse files
authored
Change to line plot
1 parent 7c1d59b commit 93dcdbd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

overview/xarray-in-45-min.ipynb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,9 +1105,16 @@
11051105
"outputs": [],
11061106
"source": [
11071107
"import hvplot.xarray\n",
1108+
"import xarray as xr\n",
11081109
"\n",
1109-
"ds.isel(time=slice(0, 10)).air.hvplot(\n",
1110-
" groupby=\"time\", clim=(270, 300), widget_location='bottom', dynamic=False\n",
1110+
"ds = xr.tutorial.open_dataset(\"air_temperature\")\n",
1111+
"ds.mean(\"time\").hvplot(\n",
1112+
" groupby=\"lat\",\n",
1113+
" hover=\"vline\",\n",
1114+
" responsive=True,\n",
1115+
" dynamic=False,\n",
1116+
" ylim=(240, 310),\n",
1117+
" min_height=350,\n",
11111118
")"
11121119
]
11131120
},

0 commit comments

Comments
 (0)