Skip to content

Commit 4273421

Browse files
committed
Tweak y-axis label
1 parent 729ce25 commit 4273421

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mne/viz/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,10 @@ def _convert_psds(
24452445
if dB:
24462446
np.log10(np.maximum(psds, np.finfo(float).tiny), out=psds)
24472447
psds *= coef
2448-
ylabel = r"$\mathrm{dB}\ $" + ylabel
2448+
if estimate == "amplitude":
2449+
ylabel = r"$\mathrm{dB/\sqrt{Hz}}$"
2450+
else:
2451+
ylabel = r"$\mathrm{dB/Hz}$"
24492452
ylabel = "Power (" + ylabel if estimate == "power" else "Amplitude (" + ylabel
24502453
ylabel += ")"
24512454

0 commit comments

Comments
 (0)