\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../dsp.tikz}
\begin{document}
\begin{tikzpicture}
\begin{scope}[x=0.9cm, y=0.9cm]
  \draw[->] (-4.8,0) -- (4.9,0) node[right, font=\small]{$f$ (kHz)};
  \draw[->] (0,-0.1) -- (0,1.9) node[above, font=\small]{$|X_\mathrm{s}(f)|$, $f_\mathrm{s} = 8000$ Hz};
  \fill[gafill, draw=gaaccent] (3,0) -- (3.15,0.9) -- (3.85,1.2) -- (4,0) -- cycle;
  \fill[gafill, draw=gaaccent] (-4,0) -- (-3.85,1.2) -- (-3.15,0.9) -- (-3,0) -- cycle;
  \foreach \f in {-4,-3,3,4} \draw (\f,0.08) -- (\f,-0.08) node[below, font=\footnotesize]{$\f$};
  \draw[dimarrow] (3,1.55) -- node[above, font=\footnotesize]{$B$} (4,1.55);
  \node[below, font=\footnotesize, align=center] at (4,-0.45) {$\frac{f_\mathrm{s}}{2}$};
  \node[below, font=\footnotesize, align=center] at (-4,-0.45) {$-\frac{f_\mathrm{s}}{2}$};
\end{scope}
\node[font=\small] at (0,-1.6) {$\Downarrow$ \ $M = 4$ decimation};
\begin{scope}[x=0.9cm, y=0.9cm, yshift=-4.2cm]
  \draw[->] (-4.8,0) -- (4.9,0) node[right, font=\small]{$f$ (kHz)};
  \draw[->] (0,-0.1) -- (0,1.9) node[above, font=\small]{$|X_\mathrm{s}(f)|$, $f_\mathrm{s} = 2000$ Hz};
  \fill[gafill, draw=gaaccent] (-5,0) -- (-4.85,0.9) -- (-4.15,1.2) -- (-4,0) -- cycle;
  \fill[gafill, draw=gaaccent] (-3,0) -- (-2.85,0.9) -- (-2.15,1.2) -- (-2,0) -- cycle;
  \fill[gafill, draw=gaaccent] (-1,0) -- (-0.85,0.9) -- (-0.15,1.2) -- (0,0) -- cycle;
  \fill[gafill, draw=gaaccent] (1,0) -- (1.15,0.9) -- (1.85,1.2) -- (2,0) -- cycle;
  \fill[gafill, draw=gaaccent] (3,0) -- (3.15,0.9) -- (3.85,1.2) -- (4,0) -- cycle;
  \fill[gafill, draw=gaaccent] (-4,0) -- (-3.85,1.2) -- (-3.15,0.9) -- (-3,0) -- cycle;
  \fill[gafill, draw=gaaccent] (-2,0) -- (-1.85,1.2) -- (-1.15,0.9) -- (-1,0) -- cycle;
  \fill[gafill, draw=gaaccent] (0,0) -- (0.15,1.2) -- (0.85,0.9) -- (1,0) -- cycle;
  \fill[gafill, draw=gaaccent] (2,0) -- (2.15,1.2) -- (2.85,0.9) -- (3,0) -- cycle;
  \fill[gafill, draw=gaaccent] (4,0) -- (4.15,1.2) -- (4.85,0.9) -- (5,0) -- cycle;
  \foreach \f in {-4,-2,2,4} \draw (\f,0.08) -- (\f,-0.08) node[below, font=\footnotesize]{$\f$};
\end{scope}
\end{tikzpicture}
\end{document}
