coincident.plot.plot_dem#
- coincident.plot.plot_dem(da, ax=None, cmap='inferno', title='', add_hillshade=False, downsample_factor=None, **kwargs)[source]#
Map view of DEM with an option to plot a hillshade underneath
- Parameters:
da (xr.DataArray) – A 2d xarray DataArray containing elevation data
ax (plt.Axes | None) – Axis on which to plot the DEM
cmap (str) – Matplotlib colormap to use for the DEM
title (str) – Title of the plot
add_hillshade (bool) – Whether to add a hillshade underneath the DEM
downsample_factor (int | None) – Factor by which to downsample the DEM for plotting to save memory (e.g., 2, 4, etc.)
**kwargs (Any) – Artist properties passed to matplotlib.axes.Axes.imshow (e.g., vmin, vmax, etc.)
- Return type:
plt.Axes
- Returns:
The Axes object with the DEM plot
Notes
alpha=0.5 set by default if you pass in a hillshade.