# Is there any way to fix topomap plot with mne library in python?

**URL:** <https://mne.discourse.group/t/is-there-any-way-to-fix-topomap-plot-with-mne-library-in-python/3808>\
**Category:** Support & Discussions\
**Created:** [October 14, 2021, 7:44am UTC](https://mne.discourse.group/t/is-there-any-way-to-fix-topomap-plot-with-mne-library-in-python/3808 "2021-10-14T07:44:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![longle1319898](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/longle1319898/32/886_2.png) [@longle1319898](https://mne.discourse.group/u/longle1319898)\
**Post date:** [October 14, 2021, 7:44am UTC](https://mne.discourse.group/t/is-there-any-way-to-fix-topomap-plot-with-mne-library-in-python/3808/1 "2021-10-14T07:44:10Z")

</div>

Hi, I am trying to plot topo map with mne library, but I don’t know why the figure does not contain contour/outlier and nose and ears. Anyone can help me with this issue?  
My code is here:

```python
import mne
fname = "oddball-epo.fif"

epochs = mne.read_epochs(fname,preload=True)

target = epochs["target"].average()
target

standard = epochs["standard"].average()

target.plot_joint()

times = [0, 0.1, 0.2, 0.3, 0.4, 0.5]
times1 = [-0.2,-0.1,0,0.1, 0.2, 0.3, 0.4, 0.5]
target.plot_joint(times)
target.plot_topomap(times1, ch_type='eeg')
target.plot_joint(times1)

```

Resulting images

 ![1](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/a4e2288e2f223f4a147d9f23928b141dae5f4cc9.png)  
Expected result  
 ![2](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/f3b23983473d3527f55aa73636b9634a79129dcc.jpeg)

---

<div class="post-metadata">

**Author:** ![mmagnuski](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mmagnuski/32/153_2.png) [@mmagnuski](https://mne.discourse.group/u/mmagnuski)\
**Post date:** [October 14, 2021, 12:27pm UTC](https://mne.discourse.group/t/is-there-any-way-to-fix-topomap-plot-with-mne-library-in-python/3808/2 "2021-10-14T12:27:09Z")

</div>

If you zoom in on one of the topoplots you will see that the head is about the same size as the Cz channel. This is usually caused by wrong units of the channel positions. For example reading EEGLAB `.set` files likely still incorrectly reads the units of channel position: EEGLAB uses cm but mne assumes meters. As you can expect this leads to channels being meters apart, and the head outline is thus so small it is impossible to see.

To fix this issue you can manipulate the `sphere` argument to increase the radius of the sphere used to draw the head outline. You can also use a small function `fix_ch_pos` I have here: [sarna/utils.py at master · mmagnuski/sarna · GitHub](https://github.com/mmagnuski/sarna/blob/master/sarna/utils.py#L446)

But it would be good to fix the incorrect readout of channel position units. Is it possible that you read the data from `.set` file format before saving to `.fif`?  
In any case, I will try to fix the units issue with eeglab files tomorrow.
