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
plotting: topomap electrode positions change depending on number of channels #5190
When using topoplot functions in MNE, I run into problems with the electrode positions that are plotted. Namely, when using the code below, the resulting sensor plots should look identical for the electrodes in chan_selection. However, this is not the case:
I am aware of a bunch of related issues (e.g., #4880). Issue #3987 seems to be the central issue for this problem ... is anyone working on this currently? It seems like a pretty crucial problem to be solved, given that topoplots are a very common visualization in our domain.
Is this perhaps even affecting the interpolation of voltages across the scalp? Or is this problem merely distorting the "plotted dots" symbolizing the electrodes?
PS: When I use real data and mne.viz.plot_evoked_topomap, I get yet another image for the same electrodes:
This will fix issues like evoked.plot_topo() and evoked.pick_channels(evoked.ch_names(:10)) not having the 10 sensors in the same position (which is a bit crazy IMO).
For now, is there a workaround, I could use? I tried supplying a head_pos = dict(center=(0., 0.), scale=(1., 1.)) with different scales, AND in conjunction with specifying a layout derived from an info object. However, the results are not really satisfactory and it feels like fishing around ...
On this note ... what is the difference between layout and montage?
Basically montage / DigMontage / physical locations are to be used anytime sensors are shown relative to a head. layout is to be used to separate sensors to facilitate subselection by groups e.g. in raw.plot. But this is still TODO, we are not consistent with this yet.
Activity
larsoner commentedon May 6, 2018
#5085
sappelhoff commentedon May 6, 2018
Mmmh okay, those are a lot of scattered issues :-) but it seems like you are working on it.
Especially this point (quoting @larsoner)
For now, is there a workaround, I could use? I tried supplying a
head_pos = dict(center=(0., 0.), scale=(1., 1.))with different scales, AND in conjunction with specifying a layout derived from an info object. However, the results are not really satisfactory and it feels like fishing around ...On this note ... what is the difference between layout and montage?
agramfort commentedon May 6, 2018
larsoner commentedon May 6, 2018
Yes passively currently but hopefully actively again soon.
You have the right idea, but it won't work properly yet because the interpolation is still done over the entire head (kind of nonsensically).
I have updated my plan for this here:
#3987 (comment)
Basically
montage/DigMontage/ physical locations are to be used anytime sensors are shown relative to a head.layoutis to be used to separate sensors to facilitate subselection by groups e.g. inraw.plot. But this is still TODO, we are not consistent with this yet.WIP: Fix mne-tools#5190