# Plot tomomap in epochs

**URL:** <https://mne.discourse.group/t/plot-tomomap-in-epochs/3413>\
**Category:** Support & Discussions\
**Tags:** ﻿source-localization, preprocessing, eeg, visualization, epochs\
**Created:** [July 16, 2021, 2:29pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413 "2021-07-16T14:29:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![isabelceo](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@isabelceo](https://mne.discourse.group/u/isabelceo)\
**Post date:** [July 16, 2021, 2:29pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/1 "2021-07-16T14:29:04Z")

</div>

Hello,

I have the following question, I want to do topomap for my epochs but I don’t need to use _mne.viz.plot\_epochs\_psd\_topomap_

Thank you,

- MNE-Python version: 0.23
- operating system: Windows

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [July 16, 2021, 5:38pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/2 "2021-07-16T17:38:08Z")

</div>

Hello, you can plot topomaps of evoked data instead by doing `epochs.average().plot_topomap()`. Is that what you want?

---

<div class="post-metadata">

**Author:** ![isabelceo](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@isabelceo](https://mne.discourse.group/u/isabelceo)\
**Post date:** [July 17, 2021, 2:26pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/3 "2021-07-17T14:26:17Z")

</div>

Hello Richard,

Ok, I will do it, and if I have another question, I let you know again.  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![isabelceo](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@isabelceo](https://mne.discourse.group/u/isabelceo)\
**Post date:** [July 17, 2021, 2:56pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/4 "2021-07-17T14:56:34Z")

</div>

Richard,  
My data is an EDF file, not fif file to obtain evoked data. Do you knom if I can converte EDF to fif file?

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [July 17, 2021, 3:20pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/5 "2021-07-17T15:20:53Z")

</div>

Hello, I’m not sure I understand the problem. You can read continuous EDF data via [`mne.io.read_raw_edf()`](https://mne.tools/stable/generated/mne.io.read_raw_edf.html)

You can then create epochs from the raw data, and from those epochs, you can generate evoked data.

---

<div class="post-metadata">

**Author:** ![isabelceo](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@isabelceo](https://mne.discourse.group/u/isabelceo)\
**Post date:** [July 17, 2021, 4:07pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/6 "2021-07-17T16:07:23Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/c78ff78f261cd3df58bcba62f290c4a0eb00e961.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/d90fcc782cab2ef851264dd0a6fa02536afa4631.png)  
Dear Richard  
I just did what you say, but I have the following error. Could you know how to fix it?

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [July 17, 2021, 6:27pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/7 "2021-07-17T18:27:36Z")

</div>

To plot a topography, MNE needs to know where each electrode was placed on the head. It seems this information is missing from your data. You need to acquire the montage / channel locations from the EEG cap manufacturer, and read it via [`mne.channels.read_custom_montage()`](https://mne.tools/stable/generated/mne.channels.read_custom_montage.html). Then, you can apply it to your data e.g. via `raw.set_montage()` or `epochs.set_montage()`.

If you used a standard electrode layout, you can use MNE’s built-in locations. For example, if a 10–20 montage was used, you may call `epochs.set_montage('standard_1020')`. For a list of all available built-in montages, see the `Notes` section of [`mne.channels.make_standard_montage()`](https://mne.tools/stable/generated/mne.channels.make_standard_montage.html)

---

<div class="post-metadata">

**Author:** ![isabelceo](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@isabelceo](https://mne.discourse.group/u/isabelceo)\
**Post date:** [July 17, 2021, 9:55pm UTC](https://mne.discourse.group/t/plot-tomomap-in-epochs/3413/8 "2021-07-17T21:55:34Z")

</div>

Thank you Richard, I already did it 😀
