mpl.pyplot.figlegend()¶
-
mpl.pyplot.figlegend(handles, labels, loc, **kwargs)[source]¶ Place a legend in the figure.
- labels
- a sequence of strings
- handles
- a sequence of
Line2DorPatchinstances - loc
- can be a string or an integer specifying the legend location
A
matplotlib.legend.Legendinstance is returned.Example:
figlegend( (line1, line2, line3), ('label1', 'label2', 'label3'), 'upper right' )
See also
legend()