mapshader.transforms.canvas_like#

mapshader.transforms.canvas_like(dataarray)[source]#

Get a datashader.Canvas according to a xarray.DataArray features.

Parameters:

dataarray (xarray.DataArray) – The input datasource.

Returns:

canvas – An abstract canvas representing the space in which to bin.

Return type:

datashader.Canvas