import hvplot.xarray # noqa
Similar to image
, contourf
displays values on a 2d grid. But it first segments data into various levels.
import xarray as xr
ds = xr.tutorial.open_dataset('air_temperature')
ds
ds.hvplot.contourf()
There are lots of options exposed to control the style and contents of the contourf
plot:
ds.mean(dim='time').hvplot.contourf(z='air', x='lon', y='lat', levels=20,
clabel='T [K]', label='Mean Air temperature [K]',
cmap='fire')
ds.hvplot.contourf(levels=20, geo=True, coastline=True, widget_location='left_top')