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

Skip to content

Commit 6f73f06

Browse files
authored
Added RectangleSelector.geometry docstring
Docstring contains details specific to RectangleSelector and does not fully generalize to EllipseSelector.
1 parent 363e25f commit 6f73f06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/widgets.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,6 +2334,11 @@ def _set_active_handle(self, event):
23342334

23352335
@property
23362336
def geometry(self):
2337+
"""
2338+
Returns numpy.ndarray of shape (2,5) containing x (RectangleSelector.geometry[1:])
2339+
and y (RectangleSelector.geometry[0:]) coordinates of the four corners of the rectangle starting
2340+
and ending in the top left corner.
2341+
"""
23372342
if hasattr(self.to_draw, 'get_verts'):
23382343
xfm = self.ax.transData.inverted()
23392344
y, x = xfm.transform(self.to_draw.get_verts()).T

0 commit comments

Comments
 (0)