Skip to content

Commit

Permalink
Merge pull request #50 from didi-hou/Code_improvement
Browse files Browse the repository at this point in the history
Code improvement
  • Loading branch information
shimoura authored Nov 16, 2023
2 parents 93d6eba + 2495b8a commit 24ddc06
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import matplotlib.pyplot as pl

def plot_instan_mean_firing_rate(M):
def plot_firing_rate(M):
# load spike data and calculate instantaneous and mean firing rates
data = np.loadtxt(M.simulation.data_dir + '/recordings/' + M.simulation.label + "-spikes-1-0.dat", skiprows=3)
tsteps, spikecount = np.unique(data[:,1], return_counts=True)
Expand Down
2 changes: 2 additions & 0 deletions figures/MAM2EBRAINS/M2E_visualize_resting_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,11 @@ def plot_resting_state(M, data_path, raster_areas=['V1', 'V2', 'FEF']):
ax.set_ylim((0., len(M.structure['V1']) + .5))

x_max = 220.
# x_max = 100.
ax.set_xlim((-1., x_max))
ax.set_xlabel(r'Rate (spikes/s)', labelpad=-0.1)
ax.set_xticks([0., 50., 100.])
# ax.set_xticks([0., 25., 50., 75., 100.])

# print("plotting Synchrony")

Expand Down
103 changes: 52 additions & 51 deletions multi-area-model.ipynb

Large diffs are not rendered by default.

0 comments on commit 24ddc06

Please sign in to comment.