We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff5925d commit 6917d98Copy full SHA for 6917d98
bindsnet/analysis/plotting.py
@@ -98,13 +98,13 @@ def plot_spikes(
98
if time is None:
99
# Set it for entire duration
100
for key in spikes.keys():
101
- time = (0, spikes[key].shape[1])
+ time = (0, spikes[key].shape[0])
102
break
103
104
# Use all neurons if no argument provided.
105
for key, val in spikes.items():
106
if key not in n_neurons.keys():
107
- n_neurons[key] = (0, val.shape[0])
+ n_neurons[key] = (0, val.shape[1])
108
109
if ims is None:
110
fig, axes = plt.subplots(n_subplots, 1, figsize=figsize)
0 commit comments