File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ def __init__(
195195 )
196196 self ._in_brain_figure = False
197197
198- self ._renderer .set_interaction (interaction )
199198 self .plotter = self ._renderer .plotter
200199 self .interaction = interaction
201200
@@ -243,6 +242,7 @@ def current_time_func():
243242 subscribe (self , "contours" , self ._on_contours )
244243
245244 if not self ._in_brain_figure :
245+ self ._renderer .set_interaction (interaction )
246246 self ._renderer .set_camera (azimuth = 10 , elevation = 60 , distance = "auto" )
247247 self ._renderer .show ()
248248
Original file line number Diff line number Diff line change 7676link (fig_brain , fig_field )
7777fig_brain .set_time (0.1 ) # updates both source estimate and field lines
7878
79-
8079########################################################################################
8180# Hooking a custom plot into the event system
8281# ===========================================
You can’t perform that action at this time.
0 commit comments