diff --git a/specparam/objs/time.py b/specparam/objs/time.py index dddb3583..5d7da71a 100644 --- a/specparam/objs/time.py +++ b/specparam/objs/time.py @@ -33,6 +33,7 @@ def decorated(*args, **kwargs): return decorated + @replace_docstring_sections([docs_get_section(SpectralModel.__doc__, 'Parameters'), docs_get_section(SpectralModel.__doc__, 'Notes')]) class SpectralTimeModel(SpectralGroupModel): diff --git a/specparam/plts/event.py b/specparam/plts/event.py index 8d650851..756ed948 100644 --- a/specparam/plts/event.py +++ b/specparam/plts/event.py @@ -54,7 +54,7 @@ def plot_event_model(event_model, **plot_kwargs): figsize=plot_kwargs.pop('figsize', [10, 4 + 4 * n_bands])) axes = cycle(axes) - xlim = [0, event_model.n_time_windows] + xlim = [0, event_model.n_time_windows - 1] # 01: aperiodic params alabels = ['offset', 'knee', 'exponent'] if has_knee else ['offset', 'exponent'] diff --git a/specparam/plts/time.py b/specparam/plts/time.py index 84523d45..a3b9b8ac 100644 --- a/specparam/plts/time.py +++ b/specparam/plts/time.py @@ -52,7 +52,7 @@ def plot_time_model(time_model, **plot_kwargs): figsize=plot_kwargs.pop('figsize', [10, 4 + 2 * n_bands])) axes = cycle(axes) - xlim = [0, time_model.n_time_windows] + xlim = [0, time_model.n_time_windows - 1] # 01: aperiodic parameters ap_params = [time_model.time_results['offset'],