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.
1 parent 5e02f50 commit df4b02dCopy full SHA for df4b02d
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
@@ -43,7 +43,10 @@ def set_label(self, s):
43
44
45
46
47
48
49
50
51
52
def add_callback(self, func):
0 commit comments