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, **imshow_kwargs: Any) Any[source]#

Plot a categorical DataArray with one color per class and a legend.

Returns the matplotlib Axes. da must carry CF flag_values / flag_meanings (and ideally flag_colors); a time dimension of length one is squeezed.