matplotlib.artist.Artist.set_label

Artist.set_label(self, s)[source]

Set a label that will be displayed in the legend.

Parameters:
sobject

s will be converted to a string by calling str.