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

Skip to content

Commit 6ece5ba

Browse files
committed
Fixed minor typo in the __str__ representation of a Text object.
1 parent 84b6f17 commit 6ece5ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Text(Artist):
147147
cached = maxdict(50)
148148

149149
def __str__(self):
150-
return "Text(%g,%g,%s)"%(self._y,self._y,repr(self._text))
150+
return "Text(%g,%g,%s)"%(self._x,self._y,repr(self._text))
151151

152152
def __init__(self,
153153
x=0, y=0, text='',

0 commit comments

Comments
 (0)