diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2016-03-09 13:40:43 +0100 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2016-03-09 13:40:43 +0100 |
commit | d2c74dd69e4464fb3b0be6ff7218b1e7df5e895b (patch) | |
tree | 6d63e2fe7bf9805ab6358e31bd0a641d58e40c87 /examples/plot.py | |
parent | f7b90618f01d4dbf015b3d21c6c06dec8d26bd9f (diff) | |
parent | ee0e980b72c299eed12b7a3afc542fc470dd6d98 (diff) |
Unified interface
Diffstat (limited to 'examples/plot.py')
-rw-r--r-- | examples/plot.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/plot.py b/examples/plot.py index 1922939..a0e04da 100644 --- a/examples/plot.py +++ b/examples/plot.py @@ -24,7 +24,8 @@ spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", for (i, spike_train) in enumerate(spike_trains): plt.scatter(spike_train, i*np.ones_like(spike_train), marker='|') -f = spk.isi_profile(spike_trains[0], spike_trains[1]) +# profile of the first two spike trains +f = spk.isi_profile(spike_trains, indices=[0, 1]) x, y = f.get_plottable_data() plt.figure() @@ -32,7 +33,7 @@ plt.plot(x, np.abs(y), '--k', label="ISI-profile") print("ISI-distance: %.8f" % f.avrg()) -f = spk.spike_profile(spike_trains[0], spike_trains[1]) +f = spk.spike_profile(spike_trains, indices=[0, 1]) x, y = f.get_plottable_data() plt.plot(x, y, '-b', label="SPIKE-profile") |