PSTH plot does not work
Closed this issue · 3 comments
When I try to plot a psth diagram as in the Jeffress tutorial, I get the attached error.
psth = plotting.PSTH(spiketrain, binsize=5)
psth.show_plot(neuron_indices=[8, 9, 10])
plt.show()
Machine: Windows 64 bit, Python3
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "jeffress_test1.py", line 41, in
psth.show_plot(neuron_indices=[8, 9, 10])
File \Python34\site-packages\neurons\plo
tting.py", line 72, in show_plot
axis.hist(times, bins, histtype='bar', stacked=True, fill=True, facecolor='g
reen', alpha=0.5, zorder=0)
File \site-packages\matplotlib\axes_axes.py", l
ine 5597, in hist
raise ValueError("x must have at least one data point")
ValueError: x must have at least one data point
Should be corrected in c177a51
Before closing the issue let's test this on a Windows machine before
Tested on a windows machine last week, looks good so far.