altos/plottest: Make linewidth bigger
[fw/altos] / src / test / plottest
1 #!/bin/bash
2
3 LINEWIDTH=2
4
5 gnuplot -persist << EOF
6 set title "$1"
7 set ylabel "altitude (m)"
8 set y2label "velocity (m/s), acceleration(m/s²)"
9 set xlabel "time (s)"
10 set xtics border out nomirror
11 set ytics border out nomirror
12 set y2tics border out nomirror
13 set style line 1 linewidth $LINEWIDTH
14 set style line 2 linewidth $LINEWIDTH
15 set style line 3 linewidth $LINEWIDTH
16 set style line 4 linewidth $LINEWIDTH
17 set style line 5 linewidth $LINEWIDTH
18 set style line 6 linewidth $LINEWIDTH
19 set style line 7 linewidth $LINEWIDTH dashtype 2
20 set style line 8 linewidth $LINEWIDTH dashtype 2
21 set style line 9 linewidth $LINEWIDTH dashtype 2
22 set style line 10 linewidth $LINEWIDTH dashtype 2
23 plot "$1" using 1:3 with lines axes x1y1 title "raw height" ls 1,\
24 "$1" using 1:5 with lines axes x1y2 title "raw accel" ls 2,\
25 "$1" using 1:7 with lines axes x1y2 title "accel speed" ls 3,\
26 "$1" using 1:11 with lines axes x1y1 title "height" ls 4,\
27 "$1" using 1:13 with lines axes x1y2 title "speed" ls 5,\
28 "$1" using 1:15 with lines axes x1y2 title "accel" ls 6,\
29 "$1" using 1:19 with lines axes x1y1 title "drogue" ls 7,\
30 "$1" using 1:21 with lines axes x1y1 title "main" ls 8,\
31 "$1" using 1:23 with lines axes x1y1 title "error" ls 9,\
32 "$1" using 1:9 with lines axes x1y2 title "state" ls 10
33 EOF