1 gnuplot -persist << EOF
2 set ylabel "altitude (m)"
3 set y2label "velocity (m/s), acceleration(m/s²)"
5 set xtics border out nomirror
6 set ytics border out nomirror
7 set y2tics border out nomirror
8 plot "$1" using 1:3 with lines axes x1y1 title "raw height",\
9 "$1" using 1:5 with lines axes x1y2 title "raw accel",\
10 "$1" using 1:9 with lines axes x1y1 title "height",\
11 "$1" using 1:11 with lines axes x1y2 title "speed",\
12 "$1" using 1:13 with lines axes x1y2 title "accel",\
13 "$1" using 1:15 with lines axes x1y1 title "drogue",\
14 "$1" using 1:17 with lines axes x1y1 title "main",\
15 "$1" using 1:19 with lines axes x1y1 title "error"