atomica.plotting.relabel_legend¶
- atomica.plotting.relabel_legend(figs, labels)[source]¶
Change the labels on an existing legend
- Return type:
- Parameters:
figs – Figure, or list of figures, to change labels in
labels – list 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.