Skip to content

Commit 90a6984

Browse files
committed
Merge pull request #6068 from jonchar/text-repr-str-patch
MNT: remane __str__ to __repr__ for Text
2 parents e12d103 + 472d3cb commit 90a6984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class Text(Artist):
182182

183183
_cached = maxdict(50)
184184

185-
def __str__(self):
185+
def __repr__(self):
186186
return "Text(%g,%g,%s)" % (self._x, self._y, repr(self._text))
187187

188188
def __init__(self,

0 commit comments

Comments
 (0)