Preamble
import mne
Dataset
Download sample data from Mike Cohen.
raw = mne.io.read_epochs_eeglab('sampleEEGdata.mat', verbose=False)
values = (raw.get_data().mean(axis=0).squeeze())
Plotting
All Channels in Time Domain (Butterfly Plot)
evoked = mne.EvokedArray(values, raw.info, tmin=-1)
evoked.plot(spatial_colors=True, time_unit='ms');
Single Channel (P1) in Time Domain
evoked = mne.EvokedArray(values, raw.info, tmin=-1)
evoked.pick_channels(['P1'])
evoked.plot(time_unit='ms');
Need more than one channel to make topography for eeg. Disabling interactivity.
Multiple Channels (FC6, T8, P1) in Time Domain
evoked = mne.EvokedArray(values, raw.info, tmin=-1) # Convert it to an EvokedArray
evoked.pick_channels(['FC6', 'T8', 'P1'])
fig = evoked.plot(spatial_colors=True, time_unit='ms');