summaryrefslogtreecommitdiff
path: root/examples/spike_sync.py
diff options
context:
space:
mode:
authorMario Mulansky <mario.mulansky@gmx.net>2015-01-28 16:53:48 +0100
committerMario Mulansky <mario.mulansky@gmx.net>2015-01-28 16:53:48 +0100
commitdeb1fb51359085ff5d171e5ffa8cd4c142a4e174 (patch)
tree571208ee90a5079beb8d70f7b6874012f8796fa1 /examples/spike_sync.py
parent27121e76e92a244c484b970f61da990eff19dc1d (diff)
added smoothing functionality to spike sync
Diffstat (limited to 'examples/spike_sync.py')
-rw-r--r--examples/spike_sync.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/spike_sync.py b/examples/spike_sync.py
index a72dbbf..7f9e762 100644
--- a/examples/spike_sync.py
+++ b/examples/spike_sync.py
@@ -32,7 +32,11 @@ plt.figure()
f = spk.spike_sync_profile_multi(spike_trains)
x, y = f.get_plottable_data()
-plt.plot(x, y, '-k', label="SPIKE-Sync profile")
+plt.plot(x, y, '-b', alpha=0.7, label="SPIKE-Sync profile")
+
+x1, y1 = f.get_plottable_data(averaging_window_size=50)
+plt.plot(x1, y1, '-k', lw=2.5, label="averaged SPIKE-Sync profile")
+
print("Average:", f.avrg())