Skip to content

Instantly share code, notes, and snippets.

@neworderofjamie
Created March 7, 2022 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neworderofjamie/4b08bdc87c8fc5897dfaf5c706031447 to your computer and use it in GitHub Desktop.
Save neworderofjamie/4b08bdc87c8fc5897dfaf5c706031447 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
spikes = np.loadtxt("spikes.csv", delimiter=",")
voltages = np.loadtxt("voltages.csv", delimiter=",")
fig, axes = plt.subplots(5, sharex=True)
for i in range(4):
axes[i].plot(voltages[:,0], voltages[:,i+1])
axes[4].scatter(spikes[:,0], spikes[:,1], s=2)
axes[0].set_ylabel("Regular V [mV]")
axes[1].set_ylabel("Fast V [mV]")
axes[2].set_ylabel("Chattering V [mV]")
axes[3].set_ylabel("Bursting V [mV]")
axes[4].set_xlabel("T [ms]")
axes[4].set_ylabel("Spike indices")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment