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

Skip to content

Commit 229a49a

Browse files
authored
Merge pull request #27446 from meeseeksmachine/auto-backport-of-pr-27397-on-v3.8.x
Backport PR #27397 on branch v3.8.x (SpanSelector widget: Improve doc for `extents`)
2 parents 818307f + 842d05f commit 229a49a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/matplotlib/widgets.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2915,7 +2915,12 @@ def _snap(values, snap_values):
29152915

29162916
@property
29172917
def extents(self):
2918-
"""Return extents of the span selector."""
2918+
"""
2919+
(float, float)
2920+
The values, in data coordinates, for the start and end points of the current
2921+
selection. If there is no selection then the start and end values will be
2922+
the same.
2923+
"""
29192924
if self.direction == 'horizontal':
29202925
vmin = self._selection_artist.get_x()
29212926
vmax = vmin + self._selection_artist.get_width()

0 commit comments

Comments
 (0)