1

我正在尝试使用 mne 库绘制地形图,但我不知道为什么该图不包含轮廓/异常值以及鼻子和耳朵。任何人都可以帮助我解决这个问题吗?我的代码在这里:

import mne
fname = "oddball-epo.fif"

epochs = mne.read_epochs(fname,preload=True)

target = epochs["target"].average()
target

standard = epochs["standard"].average()

target.plot_joint()

times = [0, 0.1, 0.2, 0.3, 0.4, 0.5]
times1 = [-0.2,-0.1,0,0.1, 0.2, 0.3, 0.4, 0.5]
target.plot_joint(times)
target.plot_topomap(times1, ch_type='eeg')
target.plot_joint(times1)

它是结果图像 结果图像 和预期结果 预期结果

4

1 回答 1

0

如果这只是一个绘图问题,您可以通过将 dict topomap_args传递给plot_joint来调整拓扑图设置。定义轮廓的是“轮廓”参数,它可以是“裙子”或“头部”。所有 topomap 参数都可以在文档中找到。

target.plot_joint(topomap_args = {'outlines':'skirt'})

如果还是不能解决,可能是传感器模板的问题,检查是否正确:

epochs.plot_sensors()

如果它不是您期望的那样,您可以通过设置新的蒙太奇来修复它(可用选项

epochs.info.set_montage('standard_1020')
于 2021-10-19T14:03:14.827 回答