Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5da2d9d + 9c7ff84 commit a9dcdfdCopy full SHA for a9dcdfd
lib/matplotlib/artist.py
@@ -686,7 +686,10 @@ def set_label(self, s):
686
687
ACCEPTS: string or anything printable with '%s' conversion.
688
"""
689
- self._label = '%s' % (s, )
+ if s is not None:
690
+ self._label = '%s' % (s, )
691
+ else:
692
+ self._label = None
693
self.pchanged()
694
695
def get_zorder(self):
lib/matplotlib/container.py
@@ -44,7 +44,10 @@ def set_label(self, s):
44
45
46
47
48
49
50
51
52
53
def add_callback(self, func):
0 commit comments