atomica.plotting.relabel_legend

atomica.plotting.relabel_legend(figs, labels)[source]

Change the labels on an existing legend

Parameters
  • figs – Figure, or list of figures, to change labels in

  • labelslist of labels the same length as the number of legend labels OR a dict of labels where the key is the index

of the labels to change. The dict input option makes it possible to change only a subset of the labels.

Return type

None