Root/
| Source at commit 0f17c404d2bf724b17d8443d6b76701f50be673d created 11 years 6 days ago. By Werner Almesberger, BOOKSHELF: add data sheets of parts for next Tornado iteration | |
|---|---|
| 1 | #!/bin/sh |
| 2 | # |
| 3 | # tools/ant-cl/plot-diag - Plot the output of ant-cl -D >file |
| 4 | # |
| 5 | # Written 2012 by Werner Almesberger |
| 6 | # Copyright 2012 Werner Almesberger |
| 7 | # |
| 8 | # This program is free software; you can redistribute it and/or modify |
| 9 | # it under the terms of the GNU General Public License as published by |
| 10 | # the Free Software Foundation; either version 2 of the License, or |
| 11 | # (at your option) any later version. |
| 12 | # |
| 13 | |
| 14 | if [ -z "$1" -o ! -r "$1" ]; then |
| 15 | echo "usage: $0 file" 1>&2 |
| 16 | exit 1 |
| 17 | fi |
| 18 | gnuplot -p \ |
| 19 | -e 'set style data lines' \ |
| 20 | -e 'unset key' \ |
| 21 | -e "set title '$1 (`stat -c '%y' \"$1\" | sed 's/\..*//'`)'" \ |
| 22 | -e 'set xlabel "Pattern"' \ |
| 23 | -e 'set ylabel "AVcc (V)"' \ |
| 24 | -e "plot '$1' using 0:2, '$1' using 0:3, '$1' using 0:4, '$1' using 0:5, |
| 25 | '$1' using 0:2 with impulses lt 7" |
| 26 | |
Branches:
master
tornado-v1
