restructure files into directories by year and "Misc" to ease testing with current...
[fw/tmflights] / Misc / plot
diff --git a/Misc/plot b/Misc/plot
new file mode 100644 (file)
index 0000000..3335dc1
--- /dev/null
+++ b/Misc/plot
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+gnuplot -persist << EOF
+set terminal postscript color solid
+set ylabel "altitude (ft)"
+set y2label "acceleration (g)"
+set xlabel "time (s)"
+set xtics border out nomirror
+set ytics border out nomirror
+set y2tics border out nomirror
+plot "$1" using 1:2 with lines axes x1y1,
+     "$1" using 1:3 with lines axes x1y1,
+     "$1" using 1:4 with lines axes x1
+     "$1" using 1:2 with lines axes x1y2,
+     "
+EOF