diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
commit | 00b209240138660db1ded3ef3870023964ce6e4e (patch) | |
tree | 8ffaec780b060bdc478929aa714b8af2ee760671 /code/anatool |
Diffstat (limited to 'code/anatool')
-rwxr-xr-x | code/anatool/plot_spikes | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/code/anatool/plot_spikes b/code/anatool/plot_spikes new file mode 100755 index 0000000..58fe722 --- /dev/null +++ b/code/anatool/plot_spikes @@ -0,0 +1,12 @@ +#!/bin/bash + +( + if [ $# -eq 1 ]; then + echo "set xrange [0:$1]" + fi + if [ $# -eq 2 ]; then + echo "set xrange [$1:$2]" + fi + echo "plot 'spikes.out' using 1:2 with dots" +) | gnuplot -persist + |