@@ -3233,7 +3233,10 @@ def _get_rotation_transform(self):
3233
3233
3234
3234
@property
3235
3235
def corners (self ):
3236
- """Corners of rectangle from lower left, moving clockwise."""
3236
+ """
3237
+ Corners of rectangle in data coordinates from lower left,
3238
+ moving clockwise.
3239
+ """
3237
3240
x0 , y0 , width , height = self ._rect_bbox
3238
3241
xc = x0 , x0 + width , x0 + width , x0
3239
3242
yc = y0 , y0 , y0 + height , y0 + height
@@ -3243,7 +3246,10 @@ def corners(self):
3243
3246
3244
3247
@property
3245
3248
def edge_centers (self ):
3246
- """Midpoint of rectangle edges from left, moving anti-clockwise."""
3249
+ """
3250
+ Midpoint of rectangle edges in data coordiantes from left,
3251
+ moving anti-clockwise.
3252
+ """
3247
3253
x0 , y0 , width , height = self ._rect_bbox
3248
3254
w = width / 2.
3249
3255
h = height / 2.
@@ -3255,15 +3261,15 @@ def edge_centers(self):
3255
3261
3256
3262
@property
3257
3263
def center (self ):
3258
- """Center of rectangle."""
3264
+ """Center of rectangle in data coordinates ."""
3259
3265
x0 , y0 , width , height = self ._rect_bbox
3260
3266
return x0 + width / 2. , y0 + height / 2.
3261
3267
3262
3268
@property
3263
3269
def extents (self ):
3264
3270
"""
3265
- Return (xmin, xmax, ymin, ymax) as defined by the bounding box before
3266
- rotation.
3271
+ Return (xmin, xmax, ymin, ymax) in data coordinates as defined by the
3272
+ bounding box before rotation.
3267
3273
"""
3268
3274
x0 , y0 , width , height = self ._rect_bbox
3269
3275
xmin , xmax = sorted ([x0 , x0 + width ])
@@ -3360,9 +3366,8 @@ def geometry(self):
3360
3366
"""
3361
3367
Return an array of shape (2, 5) containing the
3362
3368
x (``RectangleSelector.geometry[1, :]``) and
3363
- y (``RectangleSelector.geometry[0, :]``) coordinates
3364
- of the four corners of the rectangle starting and ending
3365
- in the top left corner.
3369
+ y (``RectangleSelector.geometry[0, :]``) data coordinates of the four
3370
+ corners of the rectangle starting and ending in the top left corner.
3366
3371
"""
3367
3372
if hasattr (self ._selection_artist , 'get_verts' ):
3368
3373
xfm = self .ax .transData .inverted ()
0 commit comments