Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f5893ce

Browse filesBrowse 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
Copy full SHA for f5893ce

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.