easysnowdata.plotting.categorical#
- easysnowdata.plotting.categorical(da: DataArray, ax: Any = None, *, legend: bool = True, legend_kwargs: dict[str, Any] | None = None, title: str | None = None, scalebar: bool | dict[str, Any] = True, graticule: bool | dict[str, Any] = True, basemap: Any = False, figsize: tuple[float, float] | None = None, **imshow_kwargs: Any) Any[source]#
Plot a categorical DataArray with one colour per class and a legend.
da must carry CF
flag_values/flag_meanings(and ideallyflag_colors); atimedimension of length one is squeezed. The legend sits outside the axes on the right, listing only the classes present unlesslegend_kwargs={"all_classes": True}.Returns the matplotlib
Axes.
Examples using easysnowdata.plotting.categorical#
Köppen-Geiger climate classification (Beck et al.)
Köppen-Geiger climate classification (Beck et al.)
Sentinel-1 RTC backscatter and local incidence angle
Sentinel-1 RTC backscatter and local incidence angle
Hillshade: Natural Earth shaded relief as a basemap
Hillshade: Natural Earth shaded relief as a basemap