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

Skip to content

Commit 8a4b2b8

Browse files
committed
Merge branch 'v1.1.x'
2 parents 666d513 + 7f3bac3 commit 8a4b2b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/users/legend_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ axes coordinates.
160160
For example, if you want your axes legend located at the figure corner
161161
(instead of the axes corner)::
162162

163-
l = legend(bbox_to_anchor=(0, 0, 1, 1), transform=gcf().transFigure)
163+
l = legend(bbox_to_anchor=(0, 0, 1, 1), bbox_transform=gcf().transFigure)
164164

165165
Also, you can place above or outer right-hand side of the axes,
166166

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def zoomed_inset_axes(parent_axes, zoom, loc=1,
309309
**axes_kwargs)
310310

311311
axes_locator = AnchoredZoomLocator(parent_axes, zoom=zoom, loc=loc,
312-
bbox_to_anchor=None, bbox_transform=None,
312+
bbox_to_anchor=bbox_to_anchor, bbox_transform=bbox_transform,
313313
**kwargs)
314314
inset_axes.set_axes_locator(axes_locator)
315315

0 commit comments

Comments
 (0)