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.

VIZ: EEG sensor locations wrong in inset plots

See original GitHub issue

EEG sensor plot insets seem to be broken in some cases. Here are a couple examples. First, from plot_compare_evokeds:

eeg

Similar problem with `evoked.plot(spatial_colors=True):

evoked_plot_spatial_colors

Compare those to the sensor positions w/r/t the head on mne.channels.make_eeg_layout(raw.info).plot() (raw.plot_sensors() gives similar result):

sphx_glr_working_with_sensor_locations_003

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
larsonercommented, May 16, 2019

I don’t see this as a blocker for 0.18, which we want to get out tomorrow if possible. So moving the milestone to 0.19.

1reaction
larsonercommented, May 28, 2019

Arguably, the behaviour should match, but maybe the behaviour derived from calculating all layouts simultaneously is the better one.

@jona-sassenhagen @drammock can you check my proposal here:

https://github.com/mne-tools/mne-python/issues/3987#issuecomment-298920228

I argue that these plots should always show the sensors reasonably aligned to a ~80cm head. Then it doesn’t matter what subselection, etc. you use. For MEG you align using dev_head_t and for EEG you’re already in head coords so should be fine. It should be more true to the data and head alignment, and avoid these rescaling issues altogether.

Also related: #5472, #5471

Read more comments on GitHub >

github_iconTop Results From Across the Web

mne.viz.plot_compare_evokeds — MNE 1.2.2 documentation
Plot evoked time courses for one or more conditions and/or ... Whether to display an inset showing sensor locations on a head outline....
Read more >
Human Cortical θ during Free Exploration Encodes Space ...
The color represents the EEG signal along the trajectory. All the points labeled w1 are a fixed distance, in both x and y,...
Read more >
Misaligned viz.plot_compare_evokeds - Support & Discussions
Hi, I'm trying to use viz.plot_compare_evokeds to obtain an ERP plot per channel ... how ticks (numbers in the axis) seem to appear...
Read more >
| Power spectra averaged over all active electrode signals ...
The insets show the power spectra of some of the corresponding reference signals. from publication: The Influence of EEG References on the Analysis...
Read more >
Losses resulting from deliberate exploration trigger beta ... - bioRxiv
(A) Timecourses of β-band power averaged over three most significant sensors (shown in the inset at the top). Each graph represents two timecourses...
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