import hvplot.xarray # noqa
import xarray as xr
ds = xr.tutorial.open_dataset('rasm')
ds
quadmesh
can be slower that image
, but it allows you to plot values on an irregular grid by representing each value as a polygon.
ds.Tair.hvplot.quadmesh(x='xc', y='yc', geo=True, widget_location='bottom')
To reduce the render time or the size of the saved plot, use rasterize
to aggregate the values to the pixel. It is recommended that when rasterizing geo plots, you project before rasterizing, by setting project=True
.
ds.Tair.hvplot.quadmesh(x='xc', y='yc', geo=True, widget_location='bottom', rasterize=True, project=True)