-
Notifications
You must be signed in to change notification settings - Fork 5
Plot Helper
Functions to represent the Loihi activity (e.g., firing rates, voltages in multiple compartments)
Save a plot in a different filetype.
-
figurematplotlib figure -
directorydirectory to the saved file -
namename of the file -
filetypefile type (only support png or svg)
Generate and save a plot with voltage data plot separately for each compartment on different rows.
-
namename of the file -
directorydirectory to the saved file -
datadata of an CompartmentVoltage Probe -
filetypefile type (only support png or svg)
Generate and save a plot with current data plot separately for each compartment on different rows.
-
namename of the file -
directorydirectory to the saved file -
datadata of an CompartmentCurrent Probe -
filetypefile type (only support png or svg)
Compute firing rate of multiple compartments using a sliding window.
-
datadata of a Spike Probe -
windowwindow size of the sliding window
Compute firing rate of multiple compartments using the time difference between successive spikes.
-
datadata of a Spike Probe
Generate and save a plot with firing rate data plot separately for each compartment on different rows.
-
namename of the file -
directorydirectory to the saved file -
datadata of an Spike Probe -
filetypefile type (only support png or svg) -
enable_gapif or not using time difference between successive spikes to compute firing rate (Default=False) -
windowwindow size of the sliding window (Default=250)
Transform lists with spike times to numpy ndarray with binary spikes on each timestep.
-
spike_timeslists with spike times -
time_stepsnumber of time steps in the simulation
Transform numpy ndarray with binary spikes on each timestep to lists with spike times.
-
datanumpy ndarray with binary spikes on each timestep
Generate and save a spike raster plot of multiple compartments.
-
namename of the file -
directorydirectory to the saved file -
datalists with spike times -
filetypefile type (only support png or svg)
Guangzhi Tang, Arpit Shah, Computational Brain Lab, Computer Science Department, Rutgers University