#set key top left horizontal
set grid
-set key left
+set key outside tmargin center
+
+#set ylabel "°"
+#set ylabel "deg."
set format x "%H:%M"
+#set arrow 1 from first,3 to last,3 nohead linestyle rgb "#ff0000"
+
set multiplot
set size 1,0.5
set origin 0, 0.5
-plot "axes.txt" using 1:2 with lines title "X angle"
+#set linetype 1 lc 'green'
+set linetype 99 lc 'red'
+
+#plot "axes.txt" using 1:2 with lines title "X angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
+plot "axes.txt" using 1:2:(abs($2) < 3 ? 1: 99) with lines lc variable title "X angle"
set origin 0, 0
-plot "axes.txt" using 1:3 with lines title "Y angle"
+
+#set xlabel "time"
+#plot "axes.txt" using 1:3 with lines title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
+
+plot "axes.txt" using 1:3:(abs($3) < 3 ? 2: 99) with lines lc variable title "Y angle"