8000 Merge pull request #27397 from judfs/doc_spanselector · matplotlib/matplotlib@b19a5b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit b19a5b8

Browse files
authored
Merge pull request #27397 from judfs/doc_spanselector
SpanSelector widget: Improve doc for `extents`
2 parents 273a268 + 72a18cc commit b19a5b8

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
@@ -2855,7 +2855,12 @@ def _snap(values, snap_values):
28552855

28562856
@property
28572857
def extents(self):
2858-
"""Return extents of the span selector."""
2858+
"""
2859+
(float, float)
2860+
The values, in data coordinates, for the start and end points of the current
2861+
selection. If there is no selection then the start and end values will be
2862+
the same.
2863+
"""
28592864
if self.direction == 'horizontal':
28602865
vmin = self._selection_artist.get_x()
28612866
vmax = vmin + self._selection_artist.get_width()

0 commit comments

Comments
 (0)
0