# Mask-enabled plot\_topomap for TFR's and	plot\_compare\_evoked for TFR's

**URL:** <https://mne.discourse.group/t/mask-enabled-plot-topomap-for-tfrs-and-plot-compare-evoked-for-tfrs/2350>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [October 22, 2020, 9:26am UTC](https://mne.discourse.group/t/mask-enabled-plot-topomap-for-tfrs-and-plot-compare-evoked-for-tfrs/2350 "2020-10-22T09:26:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 22, 2020, 9:26am UTC](https://mne.discourse.group/t/mask-enabled-plot-topomap-for-tfrs-and-plot-compare-evoked-for-tfrs/2350/1 "2020-10-22T09:26:27Z")

</div>

External Email - Use Caution

Hello List,  
I am trying to apply spatio-temporal clustering to the averaged TFR values.  
I am following the same steps as shown in the example:  
[https://mne.tools/stable/auto\_tutorials/stats-sensor-space/plot\_stats\_spatio\_temporal\_cluster\_sensors.html](https://mne.tools/stable/auto_tutorials/stats-sensor-space/plot_stats_spatio_temporal_cluster_sensors.html),  
only difference is i am trying the steps on TFR's instead of evoked.  
I faced two difficulties during execution:  
1. When we do the plot\_topomap for TFR's, there is no "mask" parameter,  
because of which I was unable to display the significant sensors only (like  
shown in the MNE example). Is there any way to plot only the significant  
sensors using plot\_topomap when used on TFR's?  
2. To plot the power (TFR's) pertaining to different conditions I used  
plot\_compare-evoked, for which I created a dummy EvokedArray (using  
mne.EvokedArray) and placed the power data for each condition. Plot showed  
up the values in 1e15 range whereas the actual power values are in 1e-1  
range. Is there any way we can plot the power like we plot the evoked using  
the single function? Or am I doing something wrong?

It will be of great help, if you can suggest to me the solution.  
Thank You

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 22, 2020, 8:35pm UTC](https://mne.discourse.group/t/mask-enabled-plot-topomap-for-tfrs-and-plot-compare-evoked-for-tfrs/2350/2 "2020-10-22T20:35:00Z")

</div>

External Email - Use Caution

hi Pooja,

I am trying to apply spatio-temporal clustering to the averaged TFR values.

> I am following the same steps as shown in the example:  
> [Page Redirection](https://mne.tools/stable/auto_tutorials/stats-sensor-space/plot_stats_spatio_temporal_cluster_sensors.html),  
> only difference is i am trying the steps on TFR's instead of evoked.  
> I faced two difficulties during execution:  
> 1. When we do the plot\_topomap for TFR's, there is no "mask" parameter,  
> because of which I was unable to display the significant sensors only (like  
> shown in the MNE example). Is there any way to plot only the significant  
> sensors using plot\_topomap when used on TFR's?

I am not sure what you expect to see.

> 2. To plot the power (TFR's) pertaining to different conditions I used  
> plot\_compare-evoked, for which I created a dummy EvokedArray (using  
> mne.EvokedArray) and placed the power data for each condition. Plot showed  
> up the values in 1e15 range whereas the actual power values are in 1e-1  
> range. Is there any way we can plot the power like we plot the evoked using  
> the single function? Or am I doing something wrong?

mne plot functions use the channel types to scale the data during plotting.

maybe you can write your own plotting function using just matplotlib?

Alex

> It will be of great help, if you can suggest to me the solution.  
> Thank You
> 
> --  
> Thank You  
> Pooja Prabhu
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Mne\_analysis mailing list  
> Mne\_analysis at nmr.mgh.harvard.edu  
> [Mne\_analysis Info Page](https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis)

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20201022/2e6cf7f9/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201022/2e6cf7f9/attachment.html)
