# plot power ratio by frequency, for each sensor

**URL:** <https://mne.discourse.group/t/plot-power-ratio-by-frequency-for-each-sensor/8094>\
**Category:** Support & Discussions\
**Tags:** time-frequency, visualization\
**Created:** [January 5, 2024, 11:36pm UTC](https://mne.discourse.group/t/plot-power-ratio-by-frequency-for-each-sensor/8094 "2024-01-05T23:36:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sushi](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Sushi](https://mne.discourse.group/u/Sushi)\
**Post date:** [January 5, 2024, 11:36pm UTC](https://mne.discourse.group/t/plot-power-ratio-by-frequency-for-each-sensor/8094/1 "2024-01-05T23:36:02Z")

</div>

Hello all,  
I want to plot the power ratio of two different conditions per sensor.  
I do the following steps:

1. calculate PSD1 (condition1) :PSD1= raw1.compute\_psd();
2. calculate PSD2 (condition2) : PSD2=raw2.compute\_psd();  
now, I want to calculate the PSD1/PSD2 for each sensor and plot this as a function of frequency (also for each sensor). The final output should be the power ratio by frequency for each sensor.  
Can you please help me with that?

Thank you!

- MNE version:1.6.0
- operating system: Windows 10
