\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../dsp.tikz}
\begin{document}
\begin{tikzpicture}
\begin{axis}[dsp, axis lines=left, width=8.5cm, height=4.4cm, xmin=0, xmax=1000, ymin=-80, ymax=8, ytick={0,-20,...,-80},
    xlabel={$f$ (Hz)}, ylabel={$|H|$ (dB)}, legend style={font=\footnotesize, draw=none, fill=white, at={(0,0)}, anchor=south west}, legend cell align=left]
  \addplot[gaaccent, line width=1pt] table[x=f, y=window] {fir.dat}; \addlegendentry{window method (Hamming)}
  \addplot[black, line width=1pt] table[x=f, y=remez] {fir.dat}; \addlegendentry{Parks-McClellan (Remez)}
\end{axis}
\end{tikzpicture}
\end{document}
