Plotting topomap using a custom magnetometer layout


I have created a custom layout for OPM data. I would like to plot topomap of evoked response using that layout but I don’t know how to do it.

For example, evoked.plot_topomap() does not accept layout as a parameter.


hmm. I don’t think this is possible. You could try using mne.viz.plot_topomap() instead of the evoked method… it takes data (numpy array) and pos (x,y sensor positions) instead of inferring the x,y positions from the 3D channel locations in You will lose the convenience of being able to specify times, so if you wanted that you’d need to do a for-loop over the times you want and extract data at each time.

Thank you! With mne.viz.plot_topomap() I could achieve what I wanted.