8000 don't hard-code class name in representation · matplotlib/matplotlib@3f78c1d · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f78c1d

Browse files
committed
don't hard-code class name in representation
1 parent ef0d27a commit 3f78c1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,8 @@ class FancyBboxPatch(Patch):
22362236
"""
22372237

22382238
def __str__(self):
2239-
return "FancyBboxPatch(%g,%g;%gx%g)" % (self._x, self._y,
2239+
return self.__class__.__name__ \
2240+
+ "(%g,%g;%gx%g)" % (self._x, self._y,
22402241
self._width, self._height)
22412242

22422243
@docstring.dedent_interpd

0 commit comments

Comments
 (0)
0