Skip to content

Commit 767715f

Browse files
committed
DOC: Axes.indicate_inset* methods
1. Method docstring stated that they output a tuple when it was a list; now fixed 2. Docstring for indicate_inset_zoom referred to nonexistent method Axes.inset_rectangle; now correctly refers to Axes.indicate_inset. See issue #14275
1 parent a7b8e3b commit 767715f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,10 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
530530
rectangle_patch : `.Patches.Rectangle`
531531
Rectangle artist.
532532
533-
connector_lines : 4-tuple of `.Patches.ConnectionPatch`
534-
One for each of four connector lines. Two are set with visibility
535-
to *False*, but the user can set the visibility to True if the
533+
connector_lines : list of `.Patches.ConnectionPatch`
534+
One for each of four connector lines.
535+
Two are set with visibility to *False*,
536+
but the user can set the visibility to *True* if the
536537
automatic choice is not deemed correct.
537538
538539
"""
@@ -601,17 +602,17 @@ def indicate_inset_zoom(self, inset_ax, **kwargs):
601602
chosen so as to not overlap with the indicator box.
602603
603604
**kwargs
604-
Other *kwargs* are passed on to `.Axes.inset_rectangle`
605+
Other *kwargs* are passed on to `.Axes.indicate_inset`
605606
606607
Returns
607608
-------
608609
609610
rectangle_patch : `.Patches.Rectangle`
610611
Rectangle artist.
611612
612-
connector_lines : 4-tuple of `.Patches.ConnectionPatch`
613+
connector_lines : list of `.Patches.ConnectionPatch`
613614
One for each of four connector lines. Two are set with visibility
614-
to *False*, but the user can set the visibility to True if the
615+
to *False*, but the user can set the visibility to *True* if the
615616
automatic choice is not deemed correct.
616617
617618
"""

0 commit comments

Comments
 (0)