diff options
Diffstat (limited to 'Client/ThirdParty/fpm/accuracy/accuracy.gnuplot')
-rw-r--r-- | Client/ThirdParty/fpm/accuracy/accuracy.gnuplot | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Client/ThirdParty/fpm/accuracy/accuracy.gnuplot b/Client/ThirdParty/fpm/accuracy/accuracy.gnuplot new file mode 100644 index 0000000..53cb2ce --- /dev/null +++ b/Client/ThirdParty/fpm/accuracy/accuracy.gnuplot @@ -0,0 +1,27 @@ +#!/usr/bin/gnuplot +set terminal png size 430,300 font "Arial,8" +set datafile separator "," +set datafile missing "-" +set key noenhanced +set key autotitle columnhead +set colors classic +set format y "%g%%" + +SERIES=ARG1 +DATA_FILE=SERIES.".csv" + +if (ARG2 eq "trig") { + # Trig functions range from -pi to pi + set xtics pi + set format x '%.0Pπ' + set xrange [-pi:pi] +} + +err(x,real) = (real != 0) ? abs((x - real)/real) * 100 : (x != 0) ? "-" : 0; + +set output "accuracy-".SERIES.".png" +set title 'Δ '.SERIES + +plot DATA_FILE using 1:(err($6,$2)) with linespoints, \ + DATA_FILE using 1:(err($5,$2)) with linespoints, \ + DATA_FILE using 1:(err($7,$2)) with linespoints |