Skip to content

Commit

Permalink
refactor: set line lengths to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed Oct 25, 2024
1 parent 30fa1bb commit be192f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hnn_core/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,12 +609,13 @@ def plot_spikes_raster(cell_response, trial_idx=None, ax=None, show=True,
events.append(
ax.eventplot(cell_type_times, lineoffsets=cell_type_ypos,
color=color,
label=cell_type, linelengths=5))
label=cell_type, linelengths=1))
else:
# Blank plot for no spiking
events.append(
ax.eventplot([-1], lineoffsets=[-1],
color=color,
label=cell_type, linelengths=5))
label=cell_type, linelengths=1))

ax.legend(handles=[e[0] for e in events], loc=1)
ax.set_xlabel('Time (ms)')
Expand Down

0 comments on commit be192f3

Please sign in to comment.