Skip to content

Commit

Permalink
Update PSD plot in gui _viz_manager so that min/max frequency are set…
Browse files Browse the repository at this point in the history
… according to the plot config rather than being hard coded (#914)
  • Loading branch information
dylansdaniels authored Oct 22, 2024
1 parent d7aad96 commit 8643a04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hnn_core/gui/_viz_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ def _update_ax(fig, ax, single_simulation, sim_name, plot_type, plot_config):

elif plot_type == 'PSD':
if len(dpls_copied) > 0:
min_f = plot_config['min_spectral_frequency']
max_f = plot_config['max_spectral_frequency']
color = ax._get_lines.get_next_color()
dpls_copied[0].plot_psd(fmin=0, fmax=50, ax=ax, color=color,
dpls_copied[0].plot_psd(fmin=min_f, fmax=max_f, ax=ax, color=color,
label=sim_name, show=False)

elif plot_type == 'spectrogram':
Expand Down

0 comments on commit 8643a04

Please sign in to comment.