You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When plotting the Power Spectral Density (PSD) using mne.time_frequency.Spectrum.plot() or related functions with dB=True and amplitude=True, the decibel scaling appears to be incorrect. This issue arises because the conversion between power and amplitude dB follows different logarithmic relationships, and amplitude requires a factor of 20 in the scaling, whereas power uses a factor of 10 (implement here).
Description
When plotting the Power Spectral Density (PSD) using mne.time_frequency.Spectrum.plot() or related functions with dB=True and amplitude=True, the decibel scaling appears to be incorrect. This issue arises because the conversion between power and amplitude dB follows different logarithmic relationships, and amplitude requires a factor of 20 in the scaling, whereas power uses a factor of 10 (implement here).
Example to reproduce
Expected result
The peak at 10Hz is expected to be$120=20 * log(10^6)$ , but the plot returns 60.
The text was updated successfully, but these errors were encountered: