59
59
from ..utils import Bunch , _click_ch_name , check_version , logger
60
60
from ._figure import BrowserBase
61
61
from .utils import (
62
+ _BLIT_KWARGS ,
62
63
DraggableLine ,
63
64
_events_off ,
64
65
_fake_click ,
@@ -1129,9 +1130,9 @@ def _create_annotation_fig(self):
1129
1130
self ._select_annotation_span ,
1130
1131
"horizontal" ,
1131
1132
minspan = 0.1 ,
1132
- useblit = True ,
1133
1133
button = 1 ,
1134
1134
props = dict (alpha = 0.5 , facecolor = col ),
1135
+ ** _BLIT_KWARGS ,
1135
1136
)
1136
1137
self .mne .ax_main .selector = selector
1137
1138
self .mne ._callback_ids ["motion_notify_event" ] = self .canvas .mpl_connect (
@@ -1170,7 +1171,7 @@ def _update_annotation_fig(self, *, draw=True):
1170
1171
ax .set_title (title , size = None , loc = "left" )
1171
1172
if len (labels ):
1172
1173
if _OLD_BUTTONS :
1173
- ax .buttons = RadioButtons (ax , labels )
1174
+ ax .buttons = RadioButtons (ax , labels , ** _BLIT_KWARGS )
1174
1175
radius = 0.15
1175
1176
circles = ax .buttons .circles
1176
1177
for circle , label in zip (circles , ax .buttons .labels ):
@@ -1195,7 +1196,9 @@ def _update_annotation_fig(self, *, draw=True):
1195
1196
edgecolor = edgecolors ,
1196
1197
facecolor = facecolors ,
1197
1198
)
1198
- ax .buttons = RadioButtons (ax , labels , radio_props = radio_props )
1199
+ ax .buttons = RadioButtons (
1200
+ ax , labels , radio_props = radio_props , ** _BLIT_KWARGS
1201
+ )
1199
1202
else :
1200
1203
ax .buttons = None
1201
1204
# adjust xlim to keep equal aspect & full width (keep circles round)
@@ -1471,7 +1474,9 @@ def _create_selection_fig(self):
1471
1474
labels = list (selections_dict )
1472
1475
# make & style the radio buttons
1473
1476
activecolor = to_rgb (self .mne .fgcolor ) + (0.5 ,)
1474
- radio_ax .buttons = RadioButtons (radio_ax , labels , activecolor = activecolor )
1477
+ radio_ax .buttons = RadioButtons (
1478
+ radio_ax , labels , activecolor = activecolor , ** _BLIT_KWARGS
1479
+ )
1475
1480
fig .mne .old_selection = 0
1476
1481
if _OLD_BUTTONS :
1477
1482
for circle in radio_ax .buttons .circles :
0 commit comments