question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default standard_1020 montage contains realistic, not template positions

See original GitHub issue

Describe the bug

On the current master (i.e., after #7066) frontal EEG channels are drawn outside of the head in topoplots.

Steps to reproduce

The simplest variant is probably mne.viz.plot_montage(mne.channels.make_standard_montage('standard_1020')) Naturally it also occurs in plot_topomap and is particularly suboptimal for outline='head' and extrapolate='head'.

Expected results

I would expect the head circumference to intersect the positions of the outer AF, F, FT, … PO, O electrodes. This would match previous behavior and common plots (e.g., the 10-05 paper http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.116.7379&rep=rep1&type=pdf or https://github.com/sappelhoff/eeg_positions).

Actual results

image

Hence, the head seems to be shifted vertically (T9 and T10 are also not vertically centered with respect to the ears).

Additionally, the comment in the extrapolation snippet https://mne.tools/dev/auto_examples/visualization/plot_evoked_topomap.html suggests that changing the sphere diameter has an influence, but it didn’t result in any changes for me.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:36 (36 by maintainers)

github_iconTop GitHub Comments

2reactions
hoechenbergercommented, Jan 20, 2021

Wow, that’s… that’s horrible!!?

2reactions
drammockcommented, Mar 16, 2020

if we do so we should probably just get rid of standard_1020 altogether and have standard_1020_sphere and standard_1020_realistic as the new options to force people to be explicit about their choice.

👍 for this suggestion. It’s disruptive, but IMO that’s better than silently having old code make plots look different enough to cause people to get annoyed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default standard_1020 montage contains realistic, not ...
Describe the bug. On the current master (i.e., after #7066) frontal EEG channels are drawn outside of the head in topoplots.
Read more >
mne.channels.make_standard_montage - MNE-Python
The head size (radius, in meters) to use for spherical montages. Can be None to not scale the read sizes. 'auto' (default) will...
Read more >
Montage correction for misplaced cap - MNE Forum - Discourse
Once the channels are renamed you can load a standard (template) montage again and the positions will correspond better to the actual positions....
Read more >
Reading channel locations in MNE Python - Stack Overflow
Or alternatively, how to manually create the locations based on the coordinates from EEG.chanlocs? I have also tried to use the default montage...
Read more >
Template 2-D layouts for plotting - FieldTrip toolbox
Note that the electrode positions are the same as for the DCCN customized version, but that the channel order is different. The MPI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found