diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index 65497349b15a..13c2e4278b45 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -182,7 +182,7 @@ class Text(Artist): _cached = maxdict(50) - def __str__(self): + def __repr__(self): return "Text(%g,%g,%s)" % (self._x, self._y, repr(self._text)) def __init__(self,