@@ -1013,32 +1013,36 @@ def _reflow_param_docstring(docstring, has_first_line=True, width=75):
10131013
10141014_dB = """
10151015dB : bool
1016- Whether to plot on a decibel-like scale. If ``True``, plots
1017- 10 × log₁₀({quantity}){caveat}.{extra}
1016+ Whether to plot on a decibel scale. If ``True``, plots
1017+ 10 × log₁₀({quantity}){ampl}{ caveat}.{extra}
10181018"""
1019- _ignored_if_normalize = " Ignored if ``normalize=True``."
1020- _psd = "spectral power"
1019+ _psd = "spectral_power/Hz"
10211020
1021+ # for the legacy func/methods:
10221022docdict ["dB_plot_psd" ] = """\
10231023 dB : bool
1024- Plot Power Spectral Density (PSD), in units (amplitude**2/Hz (dB)) if
1025- ``dB=True``, and ``estimate='power'`` or ``estimate='auto'``. Plot PSD
1026- in units (amplitude**2/Hz) if ``dB=False`` and,
1027- ``estimate='power'``. Plot Amplitude Spectral Density (ASD), in units
1028- (amplitude/sqrt(Hz)), if ``dB=False`` and ``estimate='amplitude'`` or
1029- ``estimate='auto'``. Plot ASD, in units (amplitude/sqrt(Hz) (dB)), if
1030- ``dB=True`` and ``estimate='amplitude'``.
1024+ Plot power spectral density (PSD) in units (dB/Hz) if ``dB=True`` and
1025+ ``estimate='power'``. Plot PSD in units (amplitude**2/Hz) if
1026+ ``dB=False`` and ``estimate='power'``. Plot amplitude spectral density (ASD) in
1027+ units (amplitude/sqrt(Hz)) if ``dB=False`` and ``estimate='amplitude'``.
1028+ Plot ASD in units (dB/sqrt(Hz)) if ``dB=True`` and ``estimate='amplitude'``.
10311029"""
10321030docdict ["dB_plot_topomap" ] = _dB .format (
10331031 quantity = _psd ,
1034- caveat = " following the application of ``agg_fun``" ,
1035- extra = _ignored_if_normalize ,
1032+ ampl = "" ,
1033+ caveat = ", following the application of ``agg_fun``" ,
1034+ extra = " Ignored if ``normalize=True``." ,
1035+ )
1036+ docdict ["dB_spectrum_plot" ] = _dB .format (
1037+ quantity = _psd ,
1038+ ampl = ", or 20 × log₁₀(spectral amplitude/√Hz) if ``amplitude=True``" ,
1039+ caveat = "" ,
1040+ extra = "" ,
10361041)
1037- docdict ["dB_spectrum_plot" ] = _dB .format (quantity = _psd , caveat = "" , extra = "" )
10381042docdict ["dB_spectrum_plot_topo" ] = _dB .format (
1039- quantity = _psd , caveat = "" , extra = _ignored_if_normalize
1043+ quantity = _psd , ampl = "" , caveat = "" , extra = ""
10401044)
1041- docdict ["dB_tfr_plot_topo " ] = _dB .format (quantity = "data" , caveat = "" , extra = "" )
1045+ docdict ["dB_tfr_plot " ] = _dB .format (quantity = "data" , ampl = " " , caveat = "" , extra = "" )
10421046
10431047_data_template = """
10441048data : ndarray, shape ({})
0 commit comments