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

Skip to content

Commit 2f0724e

Browse files
committed
Deprecate inset_locator.InsetPosition.
There's Axes.inset_axes which is an exact replacement without the need of actually understanding what an axes locator is, and which is also more general as one can also set a custom transform on inset_axes instead of being limited to the transAxes of a given parent axes. Also the method had never been used in the library or examples, and a test was only ever added in 6dd30a2 (2022).
1 parent a861b8a commit 2f0724e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``inset_location.InsetPosition`` is deprecated
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Use `~.Axes.inset_axes` instead.

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .parasite_axes import HostAxes
1414

1515

16+
@_api.deprecated("3.8", alternative="Axes.inset_axes")
1617
class InsetPosition:
1718
@_docstring.dedent_interpd
1819
def __init__(self, parent, lbwh):

0 commit comments

Comments
 (0)