Interactive plots using hvplot#

Xarray’s builtin plotting functionality wraps matplotlib.

The holoviews ecosystem provides the hvplot package to allow easy visualization of xarray (and other) objects. These plots build on Bokeh.

hvplot makes uses of xarray’s accessor interface. This means that all xarray objects gain a .hvplot attribute that lets you access .hvplot functionality as easily as you would use .plot. All you need to do is import hvplot.xarray

For more, see hvplot’s documentation

import as ccrs
import hvplot.xarray
import xarray as xr