enum_axes

enum_axes(axs, loc, fmt='({})', enum='letters', **kw)[source]

Labels subfigures (axes).

Parameters:
  • axs (iterable[matplotlib.axes.Axes]) – Axes to be labelled.

  • loc (str) – Label location, ‘title’ or a valid loc for matplotlib.offsetbox.AnchoredText.

  • fmt (str, default '({})') – Label format string.

  • enum (str or iterable, default 'letters') – Provides the labels via iteration. Special values: (‘letters’ | ‘numbers’) for (alphabetic | numeric) enumeration.

  • **kw – Keyword arguments for matplotlib.offsetbox.AnchoredText or matplotlib.axes.Axes.set_title.

Returns:

The added labels.

Return type:

list[matplotlib.offsetbox.AnchoredText]