#! /bin/sh
gcc -Wall -o test libsat-fft-test.c libsat.c libsat.h
./test

echo "set terminal png xffffff
set yrange [-2:2]
set style line 1 lt 1 pt 1

set output \"./img0.png\"
plot \"./data\" using 1 title \"\" with linespoints linestyle 1

set output \"./img1.png\"
plot \"./data2\" using 1 title \"\" with linespoints linestyle 1

set output \"./img2.png\"
plot \"./data3\" using 1 title \"\" with linespoints linestyle 1" | gnuplot

