Suppose that the graph of the function
\(h\) is given by
The values on the horizontal axis are the elements in the domain of \(h\text{.}\) So its domain is
\begin{equation*}
\mathbb{Z}_{10}=\{0,1,2,3,4,5,6,7,8,9\}\text{.}
\end{equation*}
The values on the vertical axis form the codomain. So the codomain of \(h\) is
\begin{equation*}
\mathbb{Z}_{5}=\{0,1,2,3,4\}\text{.}
\end{equation*}
The graph of \(h\) is made of the black pixels in the Cartesian product \(\mathbb{Z}_{10}\times\mathbb{Z}_5\text{.}\) The graph of \(h\) is
\begin{equation*}
\{ (x,h(x)) \mid x \in A \} = \{
(0,2),
(1,0),(2,0),
(3,1),
(4,0),
(5,1),
(6,0),
(7,4),(8,4),(9,3)
\}.
\end{equation*}
The graph of \(h\) contains pairs of the form \((x,h(x))\text{,}\) where \(x\) is in the domain of \(h\text{.}\) This lets us read each value \(h(x)\) from the plot.