import xarray as xr import hvplot.xarray # noqa air_ds = xr.tutorial.open_dataset('air_temperature').load() air = air_ds.air air_ds air1d = air.sel(lat=40, lon=285) air1d.hvplot() air1d_sel = air1d.sel(time='2013-01') air1d_sel.hvplot(color='purple') * air1d_sel.hvplot.scatter(marker='o', color='blue', size=15) air.lat air.sel(lat=[20, 40, 60], lon=285).hvplot.line() air.sel(time='2013-02-01 00:00', lon=[280, 285]).hvplot.line(y='lat', by='lon', legend='top_right') air2d = air.sel(time='2013-06-01 12:00') air2d.hvplot(width=400) air2d.hvplot.contour(width=400, levels=20) + air2d.hvplot.contourf(width=400, levels=8) air.hvplot() air.hvplot(groupby='time', width=500) air.hvplot(groupby='time', width=600, widget_type='scrubber', widget_location='bottom') air.hvplot.line(width=600) air.sel(lat=[25, 50, 75]).hvplot.kde('air', by='lat', alpha=0.5) air.hvplot.violin('air', by='lat', color='lat', cmap='Category20') air.hvplot.scatter('time', groupby=[], rasterize=True) *\ air.mean(['lat', 'lon']).hvplot.line('time', color='indianred')