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

Skip to content

Commit 472d3cb

Browse files
committed
Text class: removed __str__ method in favor of __repr__.
1 parent 44604ce commit 472d3cb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/matplotlib/text.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ class Text(Artist):
185185
def __repr__(self):
186186
return "Text(%g,%g,%s)" % (self._x, self._y, repr(self._text))
187187

188-
def __str__(self):
189-
return self._text
190-
191188
def __init__(self,
192189
x=0, y=0, text='',
193190
color=None, # defaults to rc params

0 commit comments

Comments
 (0)