File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,6 @@ libpng 1.2 (or later)
218
218
Required for compatibility if running on versions of Python before
219
219
Python 3.2.
220
220
221
-
222
221
Optional GUI framework
223
222
^^^^^^^^^^^^^^^^^^^^^^
224
223
Original file line number Diff line number Diff line change @@ -1473,6 +1473,7 @@ def new_axes(self, ax):
1473
1473
transform = trans ,
1474
1474
visible = False ,
1475
1475
** self .rectprops )
1476
+ self .stay_rect .set_animated (False )
1476
1477
self .ax .add_patch (self .stay_rect )
1477
1478
1478
1479
self .ax .add_patch (self .rect )
@@ -1487,7 +1488,10 @@ def _press(self, event):
1487
1488
self .rect .set_visible (self .visible )
1488
1489
if self .span_stays :
1489
1490
self .stay_rect .set_visible (False )
1490
-
1491
+ # really force a draw so that the stay rect is not in
1492
+ # the blit background
1493
+ if self .useblit :
1494
+ self .canvas .draw ()
1491
1495
xdata , ydata = self ._get_data (event )
1492
1496
if self .direction == 'horizontal' :
1493
1497
self .pressv = xdata
@@ -1510,7 +1514,7 @@ def _release(self, event):
1510
1514
self .stay_rect .set_height (self .rect .get_height ())
1511
1515
self .stay_rect .set_visible (True )
1512
1516
1513
- self .canvas .draw ()
1517
+ self .canvas .draw_idle ()
1514
1518
vmin = self .pressv
1515
1519
xdata , ydata = self ._get_data (event )
1516
1520
if self .direction == 'horizontal' :
You can’t perform that action at this time.
0 commit comments