Skip to content

Commit

Permalink
fix legend when plotting on second axes so that it is in front of hist
Browse files Browse the repository at this point in the history
  • Loading branch information
dylansdaniels committed Nov 6, 2024
1 parent ad6a56a commit e30c8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hnn_core/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def plot_spikes_hist(cell_response, trial_idx=None, ax=None, spike_types=None,
handles.extend(handles1)
labels.extend(labels1)

ax.legend(handles, labels, loc='upper left')
ax1.legend(handles, labels, loc='upper left')
else:
ax.legend()

Expand Down

0 comments on commit e30c8c2

Please sign in to comment.