2121from ..utils import (GetEpochsMixin , _build_data_frame ,
2222 _check_pandas_index_arguments , _check_pandas_installed ,
2323 _check_sphere , _time_mask , _validate_type , fill_doc ,
24- logger , object_diff , verbose , warn )
24+ legacy , logger , object_diff , verbose , warn )
2525from ..utils .check import (_check_fname , _check_option , _import_h5io_funcs ,
2626 _is_numeric , check_fname )
2727from ..utils .misc import _pl
@@ -40,6 +40,7 @@ def _identity_function(x):
4040class SpectrumMixin ():
4141 """Mixin providing spectral plotting methods to sensor-space containers."""
4242
43+ @legacy (alt = '.compute_psd().plot()' )
4344 @verbose
4445 def plot_psd (self , fmin = 0 , fmax = np .inf , tmin = None , tmax = None , picks = None ,
4546 proj = False , reject_by_annotation = True , * , method = 'auto' ,
@@ -116,6 +117,7 @@ def plot_psd(self, fmin=0, fmax=np.inf, tmin=None, tmax=None, picks=None,
116117 exclude = exclude , axes = ax , show = show )
117118 return fig
118119
120+ @legacy (alt = '.compute_psd().plot_topo()' )
119121 @verbose
120122 def plot_psd_topo (self , tmin = None , tmax = None , fmin = 0 , fmax = 100 , proj = False ,
121123 * , method = 'auto' , dB = True , layout = None , color = 'w' ,
@@ -157,6 +159,7 @@ def plot_psd_topo(self, tmin=None, tmax=None, fmin=0, fmax=100, proj=False,
157159 dB = dB , layout = layout , color = color , fig_facecolor = fig_facecolor ,
158160 axis_facecolor = axis_facecolor , axes = axes , block = block , show = show )
159161
162+ @legacy (alt = '.compute_psd().plot_topomap()' )
160163 @verbose
161164 def plot_psd_topomap (self , bands = None , tmin = None , tmax = None , proj = False ,
162165 method = 'auto' , ch_type = None , * , normalize = False ,
0 commit comments