You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importnumpyasnpimportmnedata_path=mne.datasets.sample.data_path()
subjects_dir=data_path/'subjects'raw_fname=data_path/'MEG'/'sample'/'sample_audvis_raw.fif'# Read the raw dataraw=mne.io.read_raw_fif(raw_fname)
raw.info['bads'] = ['MEG 2443'] # bad MEG channel# Set up the epochingevents=mne.find_events(raw)
# pick data channel typesraw.pick(['meg', 'eeg', 'eog'])
# create epochs, leave room for cutting out edge artifactepochs=mne.Epochs(raw, events, event_id=dict(left_aud=1),
tmin=-0.5, tmax=0.5, baseline=(None, 0),
preload=True, proj=False,
reject=dict(grad=4000e-13, mag=4e-12,
eeg=1e-4, eog=150e-6))
# done with eog nowdelrawepochs.pick(['meg', 'eeg'])
# set average referenceepochs.set_eeg_reference('average', projection=True)
# focus on alpha and beta oscillationsfreqs=np.logspace(*np.log10([8, 35]), num=6)
# select subset of trials for speedepochs=epochs[:10]
# time-frequency decompositionaverage_tfr=mne.time_frequency.tfr_morlet(
epochs, freqs=freqs, n_cycles=freqs/2, return_itc=False,
average=True)
average_tfr.plot_topo()
plotting average_tfr.plot_topo(picks=slice(0, 2)) or slice(0, 5) or even slice(0, 40) yields (partial) topo plots where at least some of the sensors have visible activity. I'm assuming some sort of bad color normalization (across sensors) is the cause, but that's a wild guess.
The text was updated successfully, but these errors were encountered:
MWE adapted from #10920
plotting
average_tfr.plot_topo(picks=slice(0, 2))
orslice(0, 5)
or evenslice(0, 40)
yields (partial) topo plots where at least some of the sensors have visible activity. I'm assuming some sort of bad color normalization (across sensors) is the cause, but that's a wild guess.The text was updated successfully, but these errors were encountered: