<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> import mne <EOL> from mne import io <EOL> from mne . datasets import sample <EOL> print ( __doc__ ) <EOL> data_path = sample . data_path ( ) <EOL> raw_fname = data_path + '<STR_LIT>' <EOL> raw = io . read_raw_fif ( raw_fname ) <EOL> event_id = <NUM_LIT> <EOL> ecg_events , _ , _ = mne . preprocessing . find_ecg_events ( raw , event_id , <EOL> ch_name = '<STR_LIT>' ) <EOL> picks = mne . pick_types ( raw . info , meg = False , eeg = False , stim = False , eog = False , <EOL> include = [ '<STR_LIT>' ] , exclude = '<STR_LIT>' ) <EOL> tmin , tmax = - <NUM_LIT:0.1> , <NUM_LIT:0.1> <EOL> epochs = mne . Epochs ( raw , ecg_events , event_id , tmin , tmax , picks = picks , <EOL> proj = False ) <EOL> data = epochs . get_data ( ) <EOL> print ( "<STR_LIT>" % len ( data ) ) <EOL> plt . plot ( <NUM_LIT> * epochs . times , np . squeeze ( data ) . T ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . show ( ) </s>
