easysnowdata.plotting.legend_handles#
- easysnowdata.plotting.legend_handles(obj: DataArray | dict[str, Any], *, present: set[Any] | None = None) tuple[list[Any], list[str]][source]#
(handles, labels)forax.legendfrom the CF flags (underscores → spaces).present restricts the legend to those flag values (the classes that actually occur in the plotted array).