color error values in red
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 6 Oct 2020 10:20:57 +0000 (12:20 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 6 Oct 2020 10:20:57 +0000 (12:20 +0200)
gnuplot/axes.gnuplot

index a8fb8d9..264b772 100644 (file)
@@ -12,16 +12,29 @@ set datafile separator ","
 #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"