8000 ENH: Updated inset locator axes to return a HostAxes by default · matplotlib/matplotlib@5b8ae3d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b8ae3d

Browse files
committed
ENH: Updated inset locator axes to return a HostAxes by default
1 parent 0fad023 commit 5b8ae3d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
#from matplotlib.transforms import IdentityTransform
88

99
import matplotlib.transforms as mtrans
10-
#from matplotlib.axes import Axes
11-
from .mpl_axes import Axes
10+
from .parasite_axes import HostAxes # subclasses mpl_axes
1211

1312
from matplotlib.transforms import Bbox, TransformedBbox, IdentityTransform
1413

@@ -261,7 +260,7 @@ def inset_axes(parent_axes, width, height, loc=1,
261260
**kwargs):
262261

263262
if axes_class is None:
264-
axes_class = Axes
263+
axes_class = HostAxes
265264

266265
if axes_kwargs is None:
267266
inset_axes = axes_class(parent_axes.figure, parent_axes.get_position())
@@ -292,7 +291,7 @@ def zoomed_inset_axes(parent_axes, zoom, loc=1,
292291
**kwargs):
293292

294293
if axes_class is None:
295-
axes_class = Axes
294+
axes_class = HostAxes
296295

297296
if axes_kwargs is None:
298297
inset_axes = axes_class(parent_axes.figure, parent_axes.get_position())

0 commit comments

Comments
 (0)
0