plot power ratio by frequency, for each sensor

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