% Author: Dr. Henning Paul, DO9PHB % Year: 2022 \begin{tikzpicture} \begin{axis}[% /pgf/number format/1000 sep={ }, /pgf/number format/use comma, axis lines=middle, axis line style={-Triangle}, ytick style={draw=none}, ymajorgrids=false, yticklabel=\empty, grid style={line width=.1pt, draw=gray!10}, major grid style={line width=.2pt,draw=gray!50}, xticklabels={$0$, $\frac{1}{2} f_\mathrm{A}$, $f_\mathrm{A}$, $\frac{3}{2} f_\mathrm{A}$}, xtick={0,1,2,3}, xmin=-0.1, xmax=3.5, ymin=-0.3, ymax=1.2, xmajorgrids=false, xlabel style={at={(ticklabel* cs:1)},anchor=north east}, ylabel style={at={(ticklabel* cs:1)},anchor=north east}, xlabel=$f$, ylabel=$A$, width=\linewidth*\getDarcImageFactor, height=4cm, scale only axis, ] \addplot[samples=11,domain=0:0.1,smooth] {1.0}; \addplot[samples=81,domain=0.10:0.90,smooth] {1.0}; \addplot[samples=11,domain=0.9:1.0,smooth] {0.5-0.5*cos(deg(x)*10*pi)}; \addplot[samples=200,domain=1.0:3.0,smooth] {0.0}; \node[align=center] at (axis cs: 0.5,0.5) {\footnotesize Passband}; \node at (axis cs: 2,0.2) {\footnotesize Spärrband}; \end{axis} \end{tikzpicture}