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

Skip to content

Commit 88b68a6

Browse files
committed
FIX: improve Text repr to not error if non-float x and y.
1 parent 4966c3f commit 88b68a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Text(Artist):
132132
_cached = cbook.maxdict(50)
133133

134134
def __repr__(self):
135-
return "Text(%g,%g,%s)" % (self._x, self._y, repr(self._text))
135+
return "Text(%s, %s, %s)" % (self._x, self._y, repr(self._text))
136136

137137
def __init__(self,
138138
x=0, y=0, text='',

0 commit comments

Comments
 (0)