'Set the label to *s* for auto legend.
ACCEPTS: string or anything printable with \'%s\' conversion.'

def set_label(self, s):

    if (s is not None):
        self._label = (u'%s' % (s,))
    else:
        self._label = None
    self.pchanged()
