def _plot_update_evoked_topo_proj(params, bools):
 evokeds = [e.copy() for e in params['evokeds']]
 fig = params['fig']
 projs = [proj for (proj, b) in zip(params['projs'], bools) if b]
 params['proj_bools'] = bools
 for e in evokeds:
  e.add_proj(projs, remove_existing=True)
  e.apply_proj()
 for ax in fig.axes[0]._mne_axs:
  for (line, evoked) in zip(ax.data_lines, evokeds):
   line.set_ydata((ax.y_t + (ax.y_s * evoked.data[ax._mne_ch_idx])))
 fig.canvas.draw()

def _plot_update_evoked_topo_proj ( params , bools ) : evokeds = [ e . copy ( ) for e in params [ 'evokeds' ] ] fig = params [ 'fig' ] projs = [ proj for ( proj , b ) in zip ( params [ 'projs' ] , bools ) if b ] params [ 'proj_bools' ] = bools for e in evokeds : e . add_proj ( projs , remove_existing = True ) e . apply_proj ( ) for ax in fig . axes [ 0 ] . _mne_axs : for ( line , evoked ) in zip ( ax . data_lines , evokeds ) : line . set_ydata ( ( ax . y_t + ( ax . y_s * evoked . data [ ax . _mne_ch_idx ] ) ) ) fig . canvas . draw ( )
update topo sensor plots .