# Specify vmin vmax color range in animated topomap

**URL:** <https://mne.discourse.group/t/specify-vmin-vmax-color-range-in-animated-topomap/5019>\
**Category:** Support & Discussions\
**Tags:** visualization\
**Created:** [June 8, 2022, 12:36pm UTC](https://mne.discourse.group/t/specify-vmin-vmax-color-range-in-animated-topomap/5019 "2022-06-08T12:36:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdussard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cdussard/32/312_2.png) [@cdussard](https://mne.discourse.group/u/cdussard)\
**Post date:** [June 8, 2022, 12:36pm UTC](https://mne.discourse.group/t/specify-vmin-vmax-color-range-in-animated-topomap/5019/1 "2022-06-08T12:36:06Z")

</div>

Hello,

I’m trying to export animated versions of EEG topomaps, using the _mne.Evoked.animate\_topomap_ function. I can’t seem to find a way to specify the bounds of the colormap range.  
I used to use the vmin and vmax parameters of the _mne.viz.plot\_topomap function_, for the static image but I can’t find the equivalent in the animated version.  
Is there any way to do achieve that ? 🙂

- MNE version: e.g. 0.3.1
- operating system: Windows 10

```python
av_power = mne.time_frequency.read_tfrs("../AV_TFR/...")[0]

def animate_topo(data,tmin,tmax,step):
    data.crop(fmin=8,fmax=30)
    
    data_8_30 = np.mean(data.data,axis=1)
    
    epo = EvokedArray(data_8_30, data.info)
    
    times = np.arange(tmin,tmax,step)
    fig,anim = epo.animate_topomap(times=times, ch_type='eeg', frame_rate=3, time_unit='s', blit=False,show=False)
    raw_signal.plot(block=True)
    return anim

anim = animate_topo(av_power ,6,24,1)
anim.save('animation.gif', writer='imagemagick', fps=3)

```

---

<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:** [June 8, 2022, 8:07pm UTC](https://mne.discourse.group/t/specify-vmin-vmax-color-range-in-animated-topomap/5019/2 "2022-06-08T20:07:24Z")

</div>

Hello, it appears this is currently not supported. Can you open a feature request on our GitHub issue tracker?

> [@cdussard](#):
>
> ```python
> epo = EvokedArray(data_8_30, data.info)
> 
> ```

btw you probably shouldn’t call the `EvokedArray` instance `epo` 🙂

Best wishes,  
Richard

---

<div class="post-metadata">

**Author:** ![cdussard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cdussard/32/312_2.png) [@cdussard](https://mne.discourse.group/u/cdussard)\
**Post date:** [June 9, 2022, 9:27am UTC](https://mne.discourse.group/t/specify-vmin-vmax-color-range-in-animated-topomap/5019/3 "2022-06-09T09:27:04Z")

</div>

Hello,  
Thank you for your fast answer, I opened a feature request [here](https://github.com/mne-tools/mne-python/issues/10725) 🙂  
Good catch, I’ll fix it right away 🙈
