按照正常的步骤,mne需要创建对应的数据结构,然后绘制头皮图,过程是比较复杂的,所以mne提供了使用eeglab类似的方案进行头皮图绘制的方法,使用他的mne.viz.plot_topomap函数即可
有数据,创建info,作为输入就行
fig, ax = plt.subplots(ncols=2, figsize=(8, 4), gridspec_kw=dict(top=0.9),
sharex=True, sharey=True)
mne.viz.plot_topomap(data1, info, axes=ax[0],
show=False)
mne.viz.plot_topomap(data2, info, axes=ax[1],
show=False)
# add titles
ax[0].set_title('MNE', fontweight='bold')
ax[1].set_title('EEGLAB', fontweight='bold')
结果: