In [ ]:
import hvplot.xarray  # noqa

Similar to image, contourf displays values on a 2d grid. But it first segments data into various levels.

In [ ]:
import xarray as xr

ds = xr.tutorial.open_dataset('air_temperature')
ds
In [ ]:
ds.hvplot.contourf()

There are lots of options exposed to control the style and contents of the contourf plot:

In [ ]:
ds.mean(dim='time').hvplot.contourf(z='air', x='lon', y='lat', levels=20,
                                    clabel='T [K]', label='Mean Air temperature [K]',
                                    cmap='fire')

Geographic Data

In [ ]:
ds.hvplot.contourf(levels=20, geo=True, coastline=True, widget_location='left_top')