From 1c6b6d8246ff4371971b19b4ae22234905e4f1d0 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 6 Oct 2020 12:20:57 +0200 Subject: [PATCH] color error values in red --- gnuplot/axes.gnuplot | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gnuplot/axes.gnuplot b/gnuplot/axes.gnuplot index a8fb8d9..264b772 100644 --- a/gnuplot/axes.gnuplot +++ b/gnuplot/axes.gnuplot @@ -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" -- 2.20.1