# Plotting topomap using a custom magnetometer layout

**URL:** <https://mne.discourse.group/t/plotting-topomap-using-a-custom-magnetometer-layout/5891>\
**Category:** Support & Discussions\
**Created:** [November 8, 2022, 10:42pm UTC](https://mne.discourse.group/t/plotting-topomap-using-a-custom-magnetometer-layout/5891 "2022-11-08T22:42:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiivana](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/jiivana/32/2052_2.png) [@jiivana](https://mne.discourse.group/u/jiivana)\
**Post date:** [November 8, 2022, 10:42pm UTC](https://mne.discourse.group/t/plotting-topomap-using-a-custom-magnetometer-layout/5891/1 "2022-11-08T22:42:12Z")

</div>

Hi,

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.

Thanks!  
Joonas

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [November 10, 2022, 5:42pm UTC](https://mne.discourse.group/t/plotting-topomap-using-a-custom-magnetometer-layout/5891/2 "2022-11-10T17:42:38Z")

</div>

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 `evoked.info`. 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.

---

<div class="post-metadata">

**Author:** ![jiivana](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/jiivana/32/2052_2.png) [@jiivana](https://mne.discourse.group/u/jiivana)\
**Post date:** [November 18, 2022, 5:18pm UTC](https://mne.discourse.group/t/plotting-topomap-using-a-custom-magnetometer-layout/5891/3 "2022-11-18T17:18:27Z")

</div>

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