\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee410.tikz}
\begin{document}
\begin{tikzpicture}[x=0.75cm, y=1.1cm]
  \draw[->] (-0.3,0) -- (9,0) node[right] {$n$};
  \draw[->] (0,-1.4) -- (0,1.5);
  \draw[dim, dashed, domain=0:8.2, samples=80] plot (\x, {cos(deg(2*pi*\x/8))});
  % samples that repeat (period of 8 samples)
  \foreach \n in {0,...,8}
    \draw[stem] (\n,0) -- (\n,{cos(deg(2*pi*\n/8))});
  % samples at a spacing that never lines up again
  \foreach \k in {0,...,6} {
    \pgfmathsetmacro\t{0.55+1.1314*\k}
    \draw[gagray, line width=0.9pt, -{Circle[length=3.6pt]}] (\t,0) -- (\t,{cos(deg(2*pi*\t/8))});
  }
  \draw[dimarrow] (0,-0.2) -- (1,-0.2);
  \node[note, align=left, anchor=north west] at (0.05,-0.3) {sampling\\period};
  \node[note, anchor=west] at (3.4,1.2) {periodic!};
  \node[font=\small, gagray, anchor=west] at (8.3,-0.6) {aperiodic!};
\end{tikzpicture}
\end{document}
