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

Skip to content

Commit f6514d5

Browse files
matt256rcomer
authored andcommitted
bug fix inserted
1 parent 4fda5ff commit f6514d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __call__(self, ax, renderer):
7373
bbox = self.get_window_extent(renderer)
7474
px, py = self.get_offset(bbox.width, bbox.height, 0, 0, renderer)
7575
bbox_canvas = Bbox.from_bounds(px, py, bbox.width, bbox.height)
76-
tr = ax.figure.transFigure.inverted()
76+
tr = ax.figure.transSubfigure.inverted()
7777
return TransformedBbox(bbox_canvas, tr)
7878

7979

@@ -388,7 +388,6 @@ def inset_axes(parent_axes, width, height, loc='upper right',
388388
inset_axes : *axes_class*
389389
Inset axes object created.
390390
"""
391-
392391
if axes_class is None:
393392
axes_class = HostAxes
394393
if axes_kwargs is None:

0 commit comments

Comments
 (0)