2012-07-02 02:17:19 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# tools/ant-cl/plot-diag - Plot the output of ant-cl -D >file
|
|
|
|
#
|
|
|
|
# Written 2012 by Werner Almesberger
|
|
|
|
# Copyright 2012 Werner Almesberger
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
|
|
|
|
if [ -z "$1" -o ! -r "$1" ]; then
|
|
|
|
echo "usage: $0 file" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
gnuplot -p \
|
|
|
|
-e 'set style data lines' \
|
|
|
|
-e 'unset key' \
|
2012-07-06 20:15:13 +03:00
|
|
|
-e "set title '$1 (`stat -c '%y' \"$1\" | sed 's/\..*//'`)'" \
|
|
|
|
-e 'set xlabel "Pattern"' \
|
|
|
|
-e 'set ylabel "AVcc (V)"' \
|
2012-07-02 02:17:19 +03:00
|
|
|
-e "plot '$1' using 0:2, '$1' using 0:3, '$1' using 0:4, '$1' using 0:5,
|
2012-07-06 20:04:07 +03:00
|
|
|
'$1' using 0:2 with impulses lt 7"
|