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 a7ec9d3

Browse filesBrowse files
authored
Merge pull request #9031 from tropfcode/Rectangle-Selector-geometry-docstring
Added RectangleSelector.geometry docstring
2 parents 0817c66 + 82f1465 commit a7ec9d3
Copy full SHA for a7ec9d3

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.