From 09abf1b529b4226f585ecfbb20866715b901755b Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 1 Dec 2021 13:34:22 +0800 Subject: +fpm --- Client/ThirdParty/fpm/accuracy/accuracy.gnuplot | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Client/ThirdParty/fpm/accuracy/accuracy.gnuplot (limited to 'Client/ThirdParty/fpm/accuracy/accuracy.gnuplot') 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 -- cgit v1.1-26-g67d0