Skip to content

Commit 27e9a4c

Browse files
committed
FIX: update spine positions before gett extents
1 parent 4bc1ca9 commit 27e9a4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/spines.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ def get_patch_transform(self):
146146
else:
147147
return super().get_patch_transform()
148148

149+
def get_window_extent(self, renderer=None):
150+
# make sure the location is updated so that transforms etc are
151+
# correct:
152+
self._adjust_location()
153+
return self.get_path().get_extents(self.get_transform())
154+
149155
def get_path(self):
150156
return self._path
151157

0 commit comments

Comments
 (0)