5959from ..utils import Bunch , _click_ch_name , check_version , logger
6060from ._figure import BrowserBase
6161from .utils import (
62+ _BLIT_KWARGS ,
6263 DraggableLine ,
6364 _events_off ,
6465 _fake_click ,
@@ -1129,9 +1130,9 @@ def _create_annotation_fig(self):
11291130 self ._select_annotation_span ,
11301131 "horizontal" ,
11311132 minspan = 0.1 ,
1132- useblit = True ,
11331133 button = 1 ,
11341134 props = dict (alpha = 0.5 , facecolor = col ),
1135+ ** _BLIT_KWARGS ,
11351136 )
11361137 self .mne .ax_main .selector = selector
11371138 self .mne ._callback_ids ["motion_notify_event" ] = self .canvas .mpl_connect (
@@ -1170,7 +1171,7 @@ def _update_annotation_fig(self, *, draw=True):
11701171 ax .set_title (title , size = None , loc = "left" )
11711172 if len (labels ):
11721173 if _OLD_BUTTONS :
1173- ax .buttons = RadioButtons (ax , labels )
1174+ ax .buttons = RadioButtons (ax , labels , ** _BLIT_KWARGS )
11741175 radius = 0.15
11751176 circles = ax .buttons .circles
11761177 for circle , label in zip (circles , ax .buttons .labels ):
@@ -1195,7 +1196,9 @@ def _update_annotation_fig(self, *, draw=True):
11951196 edgecolor = edgecolors ,
11961197 facecolor = facecolors ,
11971198 )
1198- ax .buttons = RadioButtons (ax , labels , radio_props = radio_props )
1199+ ax .buttons = RadioButtons (
1200+ ax , labels , radio_props = radio_props , ** _BLIT_KWARGS
1201+ )
11991202 else :
12001203 ax .buttons = None
12011204 # adjust xlim to keep equal aspect & full width (keep circles round)
@@ -1471,7 +1474,9 @@ def _create_selection_fig(self):
14711474 labels = list (selections_dict )
14721475 # make & style the radio buttons
14731476 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+ )
14751480 fig .mne .old_selection = 0
14761481 if _OLD_BUTTONS :
14771482 for circle in radio_ax .buttons .circles :
0 commit comments