@@ -1231,23 +1231,6 @@ def set_visible(self, visible):
1231
1231
for artist in self .artists :
1232
1232
artist .set_visible (visible )
1233
1233
1234
- def draw_rubberband (self , x0 , x1 , y0 , y1 ):
1235
- """Draw a box using the native toolkit given data coordinates
1236
- """
1237
- height = self .canvas .figure .bbox .height
1238
-
1239
- x0 , y0 = self .ax .transData .transform ([x0 , y0 ])
1240
- x1 , y1 = self .ax .transData .transform ([x1 , y1 ])
1241
-
1242
- y1 = height - y1
1243
- y0 = height - y0
1244
-
1245
- w = abs (x1 - x0 )
1246
- h = abs (y1 - y0 )
1247
-
1248
- rect = [int (val )for val in (min (x0 , x1 ), min (y0 , y1 ), w , h )]
1249
- self .canvas .drawRectangle (rect )
1250
-
1251
1234
1252
1235
class SpanSelector (_SelectorWidget ):
1253
1236
"""
@@ -1304,7 +1287,8 @@ def __init__(self, ax, onselect, direction, minspan=None, useblit=False,
1304
1287
2 = center mouse button (scroll wheel)
1305
1288
3 = right mouse button
1306
1289
"""
1307
- _SelectorWidget .__init__ (self , ax , onselect , useblit = useblit , button = button )
1290
+ _SelectorWidget .__init__ (self , ax , onselect , useblit = useblit ,
1291
+ button = button )
1308
1292
1309
1293
if rectprops is None :
1310
1294
rectprops = dict (facecolor = 'red' , alpha = 0.5 )
@@ -1528,7 +1512,8 @@ def __init__(self, ax, onselect, drawtype='box',
1528
1512
2 = center mouse button (scroll wheel)
1529
1513
3 = right mouse button
1530
1514
"""
1531
- _SelectorWidget .__init__ (self , ax , onselect , useblit = useblit , button = button )
1515
+ _SelectorWidget .__init__ (self , ax , onselect , useblit = useblit ,
1516
+ button = button )
1532
1517
1533
1518
self .to_draw = None
1534
1519
0 commit comments