Skip to content

Commit

Permalink
tweak plots
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Mar 26, 2024
1 parent 626479f commit e5161d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions specparam/objs/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion specparam/plts/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion specparam/plts/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit e5161d0

Please sign in to comment.