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

Skip to content

Commit f5893ce

Browse files
authored
Merge pull request #9212 from matplotlib/auto-backport-of-pr-9031
Backport PR #9031 on branch v2.1.x
2 parents 172daf8 + 9149d8c commit f5893ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/widgets.py

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

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

0 commit comments

Comments
 (0)