summaryrefslogtreecommitdiffstats
path: root/Master/Modellbildung_und_Simulation/Aufgabenblatt1/DFTApp/spectrum.plt
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Modellbildung_und_Simulation/Aufgabenblatt1/DFTApp/spectrum.plt')
-rw-r--r--Master/Modellbildung_und_Simulation/Aufgabenblatt1/DFTApp/spectrum.plt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/Modellbildung_und_Simulation/Aufgabenblatt1/DFTApp/spectrum.plt b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/DFTApp/spectrum.plt
new file mode 100644
index 0000000..ab4eaf1
--- /dev/null
+++ b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/DFTApp/spectrum.plt
@@ -0,0 +1,23 @@
+set terminal wxt
+set terminal wxt font "/Library/Fonts/Sans Serif, 11"
+set multiplot
+set size 1.0,0.5
+set datafile separator ";"
+set xlabel "freq. [Hz]"
+set origin 0.0,0.0
+plot "spectrum.csv" using 1:2 title "Amplitude" with lines
+set origin 0.0,0.5
+plot "spectrum.csv" using 1:3 lt 3 title "Phase" with lines
+unset multiplot
+
+set output "spectrum.png"
+set terminal png font "/Library/Fonts/Sans Serif, 11"
+set multiplot
+set size 1.0,0.5
+set datafile separator ";"
+set xlabel "freq. [Hz]"
+set origin 0.0,0.0
+plot "spectrum.csv" using 1:2 title "Amplitude" with lines
+set origin 0.0,0.5
+plot "spectrum.csv" using 1:3 lt 3 title "Phase" with lines
+replot