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

Skip to content

Commit e024ab7

Browse files
committed
fixed a text layout bug where layout was cached between renderers
svn path=/trunk/matplotlib/; revision=5470
1 parent a344337 commit e024ab7

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
@@ -394,7 +394,7 @@ def get_prop_tup(self):
394394
return (x, y, self._text, self._color,
395395
self._verticalalignment, self._horizontalalignment,
396396
hash(self._fontproperties), self._rotation,
397-
self._renderer.dpi
397+
self._renderer.dpi, id(self._renderer)
398398
)
399399

400400
def get_text(self):

0 commit comments

Comments
 (0)