\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee410.tikz}
\begin{document}
\begin{tikzpicture}
% X(w) = tau sinc(w tau / 2 pi), drawn with tau = 1; the x axis is w in units of 2 pi / tau
\begin{axis}[sig, width=7cm, height=3.8cm, xmin=-4.3, xmax=4.6, ymin=0, ymax=1.25,
  xtick=\empty, ytick=\empty, xlabel={$\omega$}, ylabel={$|X(\omega)|$}]
  \addplot[gaaccent, line width=1.1pt, domain=-4.2:4.2, samples=400] {abs(sin(deg(pi*x))/(pi*x))};
  \node[font=\small, anchor=north west] at (axis cs:0,0) {$0$};
\end{axis}
% phase: 0 where sinc > 0, -pi (w > 0) and +pi (w < 0) where sinc < 0
\begin{axis}[sig, at={(7.6cm,0)}, width=7cm, height=3.8cm, xmin=-4.3, xmax=4.6, ymin=-1.3, ymax=1.3,
  xtick=\empty, ytick=\empty, xlabel={$\omega$}, ylabel={$\angle X(\omega)$}]
  \addplot[gaaccent, line width=1.1pt] coordinates {(-4.2,0) (-4,0) (-4,1) (-3,1) (-3,0) (-2,0) (-2,1) (-1,1) (-1,0) (1,0) (1,-1) (2,-1) (2,0) (3,0) (3,-1) (4,-1) (4,0) (4.2,0)};
\end{axis}
\end{tikzpicture}
\end{document}
