Skip to content

Commit

Permalink
Don't italicize Hz in PSD y-label (mne-tools#5752)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr authored and agramfort committed Nov 28, 2018
1 parent 400f538 commit d5c52ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/viz/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def _convert_psds(psds, dB, estimate, scaling, unit, ch_names):
ylabel = r'$\mathrm{%s / \sqrt{Hz}}$' % unit
else:
psds *= scaling * scaling
ylabel = r'$\mathrm{%s^2}/Hz}$' % unit
ylabel = r'$\mathrm{%s^2/Hz}$' % unit

if dB:
np.log10(np.maximum(psds, np.finfo(float).tiny), out=psds)
Expand Down

0 comments on commit d5c52ec

Please sign in to comment.