coincident.plot.plot_dem#

coincident.plot.plot_dem(da, ax=None, cmap='inferno', title='', da_hillshade=None, **kwargs)#

Map view of DEM with an option to plot a hillshade underneath

Parameters:
  • da (xarray.core.dataarray.DataArray) – A 2d xarray DataArray containing elevation data

  • ax (matplotlib.axes._axes.Axes) – Axis on which to plot the DEM

  • cmap (str) – Matplotlib colormap to use for the DEM

  • title (str) – Title of the plot

  • da_hillshade (xarray.core.dataarray.DataArray | None) – A 2d xarray DataArray containing hillshade data

  • cmin (float | None) – Minimum value for the elevation colorbar

  • cmax (float | None) – Maximum value for the elevation colorbar

  • **kwargs (Any) – Artist properties passed to matplotlib.axes.Axes.imshow (e.g., vmin, vmax, etc.)

Returns:

The Axes object with the DEM plot

Return type:

plt.Axes

Notes

alpha=0.5 set by default if you pass in a hillshade.