aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--src/f1_dft.gnuplot5
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8c77b48..9fd14fb 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,9 @@ f1 : src/f1.f90
res/f1_original.txt : f1
./f1 > res/f1_original.txt
+res/f1_dft.txt : f1
+ ./f1 dft > res/f1_dft.txt
+
res/%.png : src/%.gnuplot res/%.txt
gnuplot -c $<
diff --git a/src/f1_dft.gnuplot b/src/f1_dft.gnuplot
new file mode 100644
index 0000000..216be5a
--- /dev/null
+++ b/src/f1_dft.gnuplot
@@ -0,0 +1,5 @@
+set terminal png size 1440, 900
+set output 'res/f1_dft.png'
+set logscale y
+set xrange [0:1000]
+plot 'res/f1_dft.txt' title 'dft' with lines \ No newline at end of file