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

Skip to content

Commit 508c78c

Browse files
committed
Use string location in example
1 parent d2ab91a commit 508c78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/axes_grid1/inset_locator_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def add_sizebar(ax, size):
3131
# second subplot
3232
ax2.set_aspect(1.)
3333

34-
axins = zoomed_inset_axes(ax2, 0.5, loc=1) # zoom = 0.5
34+
axins = zoomed_inset_axes(ax2, 0.5, loc='upper right') # zoom = 0.5
3535
# fix the number of ticks on the inset axes
3636
axins.yaxis.get_major_locator().set_params(nbins=7)
3737
axins.xaxis.get_major_locator().set_params(nbins=7)

0 commit comments

Comments
 (0)