Skip to content

Commit 417cad9

Browse files
committed
Fixed bug #1231611
svn path=/trunk/matplotlib/; revision=1536
1 parent f3e02ba commit 417cad9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
New entries should be added at the top
22

3+
2005-07-05 Fixed bug #1231611 in subplots adjust layout. The problem
4+
was that the text cacheing mechanism was not using the
5+
transformation affine in the key. - JDH
36

47
2005-07-05 Fixed default backend import problem when using API (SF bug
58
# 1209354 - see API_CHANGES for more info - JDH

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def draw(self, renderer, *args, **kwargs):
580580
# *copy* of the axis label box because we don't wan't to scale
581581
# the actual bbox
582582
self._update_label_position(ticklabelBoxes, ticklabelBoxes2)
583-
self.label.draw(renderer) # memory leak here, vertical text
583+
self.label.draw(renderer)
584584

585585
self._update_offset_text_position(ticklabelBoxes, ticklabelBoxes2)
586586
self.offsetText.set_text( self.major.formatter.get_offset() )

lib/matplotlib/text.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def __init__(self,
122122
self._bbox = None
123123
self._renderer = None
124124

125+
#self.set_bbox(dict(pad=0))
126+
125127
def _get_multialignment(self):
126128
if self._multialignment is not None: return self._multialignment
127129
else: return self._horizontalalignment
@@ -418,10 +420,11 @@ def get_prop_tup(self):
418420
need to know if the text has changed
419421
"""
420422

421-
x, y = self._transform.xy_tup((self._x, self._y))
422-
return (x, y, self._text, self._color,
423+
return (self._x, self._y, self._text, self._color,
423424
self._verticalalignment, self._horizontalalignment,
424-
hash(self._fontproperties), self._rotation)
425+
hash(self._fontproperties), self._rotation,
426+
self._transform.as_vec6_val(),
427+
)
425428

426429
def get_text(self):
427430
"Get the text as string"

0 commit comments

Comments
 (0)