add_unique_figure_legend#
- add_unique_figure_legend(fig: Figure, axes: Axes | np.ndarray[Any, Axes]) None[source]#
Add a legend with unique elements sorted by label to a figure.
The handles and labels are extracted from the
axes- Parameters:
fig (Figure) – Figure to add the legend to.
axes (Axes | np.ndarray[Any, Axes]) – Axes plotted on the figure.
See also
plot_fit_overview