Skip to content

Commit

Permalink
fix: GUI dipole plot bug. Refactored GUI color cycling to for matplot…
Browse files Browse the repository at this point in the history
…lib 8.x deprecation of ax._get_lines.prop_cycler.
  • Loading branch information
gtdang committed Dec 7, 2023
1 parent 1216038 commit d3ec97e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hnn_core/gui/_viz_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _update_ax(fig, ax, single_simulation, sim_name, plot_type, plot_config):

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

Expand All @@ -175,7 +175,7 @@ def _update_ax(fig, ax, single_simulation, sim_name, plot_type, plot_config):
else:
label = sim_name

color = next(ax._get_lines.prop_cycler)['color']
color = ax._get_lines.get_next_color()
if plot_type == 'current dipole':
plot_dipole(dpls_copied,
ax=ax,
Expand Down

0 comments on commit d3ec97e

Please sign in to comment.