Skip to content

Commit

Permalink
fix cmap bug, better title for trace
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Oct 5, 2023
1 parent 5febd23 commit 74217bf
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/spikeanalysis/spike_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def plot_zscores(
indices=indices,
show_stim=show_stim,
)

self.cmap = None

if indices:
return sorted_cluster_ids

Expand Down Expand Up @@ -164,6 +167,8 @@ def plot_raw_firing(
sorted_cluster_ids = self._plot_scores(
data="raw-data", figsize=figsize, sorting_index=sorting_index, bar=bar, indices=indices, show_stim=show_stim
)

self.cmap = None

if indices:
return sorted_cluster_ids
Expand Down Expand Up @@ -808,7 +813,7 @@ def plot_response_trace(
response[neuron, trial, :],
ebars=None,
color=color,
stim=stimulus,
stim=f'{stimulus}: {self.data.cluster_ids[neuron]}: {trial}',
show_stim=show_stim,
stim_lines=current_length,
)
Expand All @@ -822,7 +827,7 @@ def plot_response_trace(
avg_response,
ebars=ebars,
color=color,
stim=stimulus,
stim=f'{stimulus}: neuron: {self.data.cluster_ids[neuron]}',
show_stim=show_stim,
stim_lines=current_length,
)
Expand All @@ -832,7 +837,7 @@ def plot_response_trace(
avg_response,
ebars=None,
color=color,
stim=stimulus,
stim=f'{stimulus}: neuron: {self.data.cluster_ids[neuron]}',
show_stim=show_stim,
stim_lines=current_length,
)
Expand All @@ -846,7 +851,7 @@ def plot_response_trace(
avg_response,
ebars=ebars,
color=color,
stim=stimulus,
stim=f'{stimulus} event number {trial}',
show_stim=show_stim,
stim_lines=current_length,
)
Expand All @@ -856,7 +861,7 @@ def plot_response_trace(
avg_response,
ebars=None,
color=color,
stim=stimulus,
stim=f'{stimulus} event number {trial}',
show_stim=show_stim,
stim_lines=current_length,
)
Expand Down

0 comments on commit 74217bf

Please sign in to comment.