Skip to content

Commit 717a83f

Browse files
committed
fix window_extent of AxesImage
1 parent fbfa28d commit 717a83f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def __init__(self, ax,
935935
def get_window_extent(self, renderer=None):
936936
x0, x1, y0, y1 = self._extent
937937
bbox = Bbox.from_extents([x0, y0, x1, y1])
938-
return bbox.transformed(self.axes.transData)
938+
return bbox.transformed(self.get_transform())
939939

940940
def make_image(self, renderer, magnification=1.0, unsampled=False):
941941
# docstring inherited

0 commit comments

Comments
 (0)