8000 Added RectangleSelector.geometry docstring by tropfcode · Pull Request #9031 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Added RectangleSelector.geometry docstring #9031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix PEP8 issues
  • Loading branch information
dstansby committed Aug 29, 2017
commit 82f1465ea69bfead1793b6018b6c32b63b554234
8 changes: 4 additions & 4 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2335,12 +2335,12 @@ def _set_active_handle(self, event):
@property
def geometry(self):
"""
Returns numpy.ndarray of shape (2,5) containing
x (RectangleSelector.geometry[1,:]) and
y (RectangleSelector.geometry[0,:])
Returns numpy.ndarray of shape (2,5) containing
x (``RectangleSelector.geometry[1,:]``) and
y (``RectangleSelector.geometry[0,:]``)
coordinates of the four corners of the rectangle starting
and ending in the top left corner.
"""
"""
if hasattr(self.to_draw, 'get_verts'):
xfm = self.ax.transData.inverted()
y, x = xfm.transform(self.to_draw.get_verts()).T
Expand Down
0