\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee410.tikz}
\begin{document}
\begin{tikzpicture}
\begin{axis}[sig, width=7cm, height=4.2cm, xmin=-1.2, xmax=4.2, ymin=-0.3, ymax=2.6, xlabel={$t$}, ylabel={$x(t)$},
    xtick={1,2,3}, ytick={2}]
  \addplot coordinates {(-1.2,0) (0,0) (2,2) (3,0) (4.2,0)};
  \draw[dim, dashed] (axis cs:0,2) -- (axis cs:2,2) -- (axis cs:2,0);
  \node[note, above left] at (axis cs:1,1) {$t$};
  \node[note, above right] at (axis cs:2.5,1) {$-2t+6$};
  \node[note, above] at (axis cs:-0.6,0) {$0$};
  \node[note, above] at (axis cs:3.6,0) {$0$};
  \node[below left, font=\small] at (axis cs:0,0) {$0$};
\end{axis}
\end{tikzpicture}
\end{document}
