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

Skip to content

Commit bb29f57

Browse files
committed
Merged revisions 7633 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7633 | leejjoon | 2009-09-03 23:35:25 -0400 (Thu, 03 Sep 2009) | 1 line fix a bug in axes_grid.inset_locator.inset_axes ........ svn path=/trunk/matplotlib/; revision=7634
1 parent 5bbf7d3 commit bb29f57

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/mpl_toolkits/axes_grid/inset_locator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ def inset_axes(parent_axes, width, height, loc=1,
271271
axes_class = Axes
272272

273273
if axes_kwargs is None:
274-
inset_axes = Axes(parent_axes.figure, parent_axes.get_position())
274+
inset_axes = axes_class(parent_axes.figure, parent_axes.get_position())
275275
else:
276-
inset_axes = Axes(parent_axes.figure, parent_axes.get_position(),
277-
**axes_kwargs)
276+
inset_axes = axes_class(parent_axes.figure, parent_axes.get_position(),
277+
**axes_kwargs)
278278

279279
axes_locator = AnchoredSizeLocator(parent_axes.bbox,
280280
width, height,

0 commit comments

Comments
 (0)