Version 2.2.4
matplotlib

matplotlib.artist.Artist.get_label

Artist.get_label()[source]

Get the label used for this artist in the legend.