def plot_epochs(epochs, picks=None, scalings=None, n_epochs=20, n_channels=20, title=None, events=None, event_colors=None, show=True, block=False):
 epochs.drop_bad()
 scalings = _compute_scalings(scalings, epochs)
 scalings = _handle_default('scalings_plot_raw', scalings)
 projs = epochs.info['projs']
 params = {'epochs': epochs, 'info': copy.deepcopy(epochs.info), 'bad_color': (0.8, 0.8, 0.8), 't_start': 0, 'histogram': None}
 params['label_click_fun'] = partial(_pick_bad_channels, params=params)
 _prepare_mne_browse_epochs(params, projs, n_channels, n_epochs, scalings, title, picks, events=events, event_colors=event_colors)
 _prepare_projectors(params)
 _layout_figure(params)
 callback_close = partial(_close_event, params=params)
 params['fig'].canvas.mpl_connect('close_event', callback_close)
 try:
  plt_show(show, block=block)
 except TypeError:
  plt_show(show)
 return params['fig']

def plot_epochs ( epochs , picks = None , scalings = None , n_epochs = 20 , n_channels = 20 , title = None , events = None , event_colors = None , show = True , block = False ) : epochs . drop_bad ( ) scalings = _compute_scalings ( scalings , epochs ) scalings = _handle_default ( 'scalings_plot_raw' , scalings ) projs = epochs . info [ 'projs' ] params = { 'epochs' : epochs , 'info' : copy . deepcopy ( epochs . info ) , 'bad_color' : ( 0.8 , 0.8 , 0.8 ) , 't_start' : 0 , 'histogram' : None } params [ 'label_click_fun' ] = partial ( _pick_bad_channels , params = params ) _prepare_mne_browse_epochs ( params , projs , n_channels , n_epochs , scalings , title , picks , events = events , event_colors = event_colors ) _prepare_projectors ( params ) _layout_figure ( params ) callback_close = partial ( _close_event , params = params ) params [ 'fig' ] . canvas . mpl_connect ( 'close_event' , callback_close ) try : plt_show ( show , block = block ) except TypeError : plt_show ( show ) return params [ 'fig' ]
visualize epochs .