Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff9c545

Browse files
committed
Updated set_text docstring.
1 parent d21cb40 commit ff9c545

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def set_label(self, s):
673673
"""
674674
Set the label to *s* for auto legend.
675675
676-
ACCEPTS: any string
676+
ACCEPTS: string or anything printable with '%s' conversion.
677677
"""
678678
self._label = '%s' % (s, )
679679
self.pchanged()

lib/matplotlib/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def set_label(self, s):
4141
"""
4242
Set the label to *s* for auto legend.
4343
44-
ACCEPTS: any string
44+
ACCEPTS: string or anything printable with '%s' conversion.
4545
"""
4646
self._label = '%s' % (s, )
4747
self.pchanged()

0 commit comments

Comments
 (0)