Created with Gnuplot 4.4.0 -- and modified after export.
<source enclose="div" line lang="gnuplot">
reset
set terminal svg size 1000,618
set output "Fouriersynthese.svg"
set multiplot layout 4,4
unset key
set border 3
set size ratio 0.6180339887
set zeroaxis lt -1
set lmargin 10
set rmargin 2
set tmargin 1
set bmargin 3
set yr [-1.5:1.5]
set xr [0:7]
set samples 10000
set xtics out 5
set mxtics 5
set ytics out 1
set mytics 4
row 1
set xlabel "t"
set ylabel "U"
plot 4/pi*sin(x)
plot 4/pi*sin(x)
plot 4/pi*sin(x)
set yr [0:1.5]
set xr [0:8]
set xlabel "f"
plot '-' with impulses lw 2
1 1.273239545
e
set yr [-1.5:1.5]
set xr [0:7]
row 2
set xlabel "t"
plot 4/(3*pi)*sin(3*x)
plot 4/pi*sin(x), 4/(3*pi)*sin(3*x)
plot 4/pi*sin(x) + 4/(3*pi)*sin(3*x)
set yr [0:1.5]
set xr [0:8]
set xlabel "f"
plot '-' with impulses lw 2
1 1.273239545
3 0.424413182
e
set yr [-1.5:1.5]
set xr [0:7]
row 3
set xlabel "t"
plot 4/(5*pi)*sin(5*x)
plot 4/pi*sin(x), 4/(3*pi)*sin(3*x), 4/(5*pi)*sin(5*x)
plot 4/pi*sin(x)+ 4/(3*pi)*sin(3*x) + 4/(5*pi)*sin(5*x)
set yr [0:1.5]
set xr [0:8]
set xlabel "f"
plot '-' with impulses lw 2
1 1.273239545
3 0.424413182
5 0.254647909
e
set yr [-1.5:1.5]
set xr [0:7]
row 4
set xlabel "t"
plot 4/(7*pi)*sin(7*x)
plot 4/pi*sin(x), 4/(3*pi)*sin(3*x), 4/(5*pi)*sin(5*x), 4/(7*pi)*sin(7*x)
plot 4/pi*sin(x)+ 4/(3*pi)*sin(3*x) + 4/(5*pi)*sin(5*x) + 4/(7*pi)*sin(7*x)
set yr [0:1.5]
set xr [0:8]
set xlabel "f"
plot '-' with impulses lw 2
1 1.273239545
3 0.424413182
5 0.254647909
7 0.181891364
e
unset multiplot
set terminal windows
reset
clear
</syntaxhighlight>
ਲਸੰਸ
I, the copyright holder of this work, hereby publish it under the following licenses:
{{Information |Description={{en|1=Fourier analysis of a square wave.}} {{de|1=Fourieranalyse eines Rechtecksignals.}} |Source={{own}}, SVG Version of File:Fouriersynthese.png |Author=René Schwarz |Date=2010-08-16 |Permission=