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
{{ message }}
Repository navigation
VIZ: EEG sensor locations wrong in inset plots #6304
@massich I don't know the layout plotting code well enough to say whether they're related. But these examples should make a good test case for whatever fix comes in for #5190 (or vice versa)
@jona-sassenhagen to me the issue is that the same set of EEG sensors nearly fills the head with raw.plot_sensors() or mne.channels.make_eeg_layout(raw.info).plot() but appear clustered at the crown of the head in the insets in evoked.plot() or plot_compare_evokeds() calls. IMO they should look the same.
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.
Activity
larsoner commentedon 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.
massich commentedon May 17, 2019
Is this related to #5190 ?
drammock commentedon May 17, 2019
@massich I don't know the layout plotting code well enough to say whether they're related. But these examples should make a good test case for whatever fix comes in for #5190 (or vice versa)
jona-sassenhagen commentedon May 28, 2019
Isn't the issue simply that layouts are calculated using both MEG and EEG channels, and EEG channels (in this specific montage) don't go as deep?
In which case this might be working as it should be.
drammock commentedon May 28, 2019
@jona-sassenhagen to me the issue is that the same set of EEG sensors nearly fills the head with
raw.plot_sensors()ormne.channels.make_eeg_layout(raw.info).plot()but appear clustered at the crown of the head in the insets inevoked.plot()orplot_compare_evokeds()calls. IMO they should look the same.jona-sassenhagen commentedon May 28, 2019
Not sure how to deal with that. One issue here is that we make no absolute guarantees here. Consider
outlines='skirt'.Arguably, the behaviour should match, but maybe the behaviour derived from calculating all layouts simultaneously is the better one.
larsoner commentedon May 28, 2019
@jona-sassenhagen @drammock can you check my proposal here:
#3987 (comment)
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_tand 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
drammock commentedon Jun 4, 2019
adding another test case for #5472. Would be really nice to be able to do plots like this in the tutorials.
agramfort commentedon Jun 4, 2019
larsoner commentedon Jun 4, 2019
I started looking at one point and it was a bit of a nightmare. But I'll see if I can look again soon
massich commentedon Jun 5, 2019
so did I when I started digitization I expect
plot_sensorsto get simplified with the refactorings.