There was an error while loading. Please reload this page.
1 parent b76a868 commit 3d725eaCopy full SHA for 3d725ea
2 files changed
lib/matplotlib/axes/_axes.py
@@ -485,7 +485,7 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
485
transform = self.transData
486
kwargs.setdefault('label', '_indicate_inset')
487
488
- indicator_patch = mpatches.IndicateInset(
+ indicator_patch = mpatches.InsetIndicator(
489
bounds, inset_ax=inset_ax,
490
facecolor=facecolor, edgecolor=edgecolor, alpha=alpha,
491
zorder=zorder, transform=transform, **kwargs)
lib/matplotlib/patches.py
@@ -4698,7 +4698,7 @@ def draw(self, renderer):
4698
super().draw(renderer)
4699
4700
4701
-class IndicateInset(Rectangle):
+class InsetIndicator(Rectangle):
4702
def __init__(self, bounds, inset_ax=None, **kwargs):
4703
if bounds is None and inset_ax is None:
4704
raise ValueError("At least one of bounds and inset_ax must be supplied")
@@ -4821,7 +4821,7 @@ def draw(self, renderer):
4821
@_api.deprecated(
4822
'3.10',
4823
message=('Since Matplotlib 3.10 indicate_inset_[zoom] returns a single '
4824
- 'IndicateInset patch with a connectors property. From 3.12 it will '
+ 'InsetIndicator patch with a connectors property. From 3.12 it will '
4825
'no longer be possible to unpack the return value into two elements.'))
4826
def __getitem__(self, key):
4827
return [self, self.connectors][key]
0 commit comments