# getting cmap customization within animate\_topomap

**URL:** <https://mne.discourse.group/t/getting-cmap-customization-within-animate-topomap/5349>\
**Category:** Support & Discussions\
**Created:** [July 29, 2022, 3:57pm UTC](https://mne.discourse.group/t/getting-cmap-customization-within-animate-topomap/5349 "2022-07-29T15:57:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://mne.discourse.group/u/Robert)\
**Post date:** [July 29, 2022, 3:57pm UTC](https://mne.discourse.group/t/getting-cmap-customization-within-animate-topomap/5349/1 "2022-07-29T15:57:20Z")

</div>

Hello there,

I want to animate phase map, so I need to have a cyclic cmap… with plot\_topomap it is fine because cmap is an argument but with animate\_topomap there is no way to customize the cmap…  
I think changing those lines in [mne-python/mne/evoked.py](https://github.com/mne-tools/mne-python/blob/maint/1.0/mne/evoked.py#L523-L583) could get the job done but I am really not sure:

```python
line 523 -> def animate_topomap(self, ch_type=None, times=None, frame_rate=None,
                        butterfly=False, blit=True, show=True, time_unit='s',
                        sphere=None, *, extrapolate=_EXTRAPOLATE_DEFAULT,
                        verbose=None, **cmap=cmap** ):
line 2316 -> def _topomap_animation(evoked, ch_type, times, frame_rate, butterfly, blit,
                       show, time_unit, sphere, extrapolate, *, verbose=None, **cmap=cmap** ):
in _topomap_aniamtion:

line 2361 -> params = dict(data=data, pos=pos, all_times=evoked.times, frame=0,
                  frames=frames, butterfly=butterfly, blit=blit,
                  pause=False, times=times, time_unit=time_unit,
                  clip_origin=clip_origin, **cmap=cmap** )

```

Could you think you could put in your next update ?

Thank you very much !
