Skip to content

Commit

Permalink
Minor change of allowing an optional "display" argument to the plots …
Browse files Browse the repository at this point in the history
…script.
  • Loading branch information
Thomas Nowotny committed Feb 6, 2021
1 parent c40c690 commit ffe6135
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exp1_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
from helper import *

def exp1_plots(state_bufs, spike_t, spike_ID, plot_raster, plot_sdf, t_total, dt, n_glo, n, N, dirname, label):
def exp1_plots(state_bufs, spike_t, spike_ID, plot_raster, plot_sdf, t_total, dt, n_glo, n, N, dirname, label,display= True):
dirname= dirname+"/"
dt_sdf= 1.0
sigma_sdf= 300.0
Expand Down Expand Up @@ -65,4 +65,5 @@ def exp1_plots(state_bufs, spike_t, spike_ID, plot_raster, plot_sdf, t_total, dt
plt.savefig(dirname+label+"_"+pop+"_sdftraces.png",dpi=300)

# Show plot
plt.show()
if display:
plt.show()

0 comments on commit ffe6135

Please sign in to comment.