In the usual topology. In particular, is the graph of the function $f: (-\pi/2, \pi/2) \to \mathbb{R}$, where $f(x) = \tan(x)$, closed?
edit: in the generic case is already clear for me that it is not, for example, the graph of $f(x) = e^{-x}, x>0$. But still, I'm curious about the particular case above. Or something like the graph of $e^x$, on the entire line.
In general, the graph of a continuous function over a closed subset of $\mathbb{R}$ is closed.
To show this, suppose $f : C \to \mathbb{R}$ is continuous, and $(x_n, f(x_n)) \to (x, y)$. Then $x_n \to x$. Since $C$ is closed, we have $x \in C$. Since $f$ is continuous on $C$, we have $f(x_n) \to f(x)$. But $f(x_n) \to y$ too, since $(x_n, f(x_n)) \to (x, y)$. Therefore, by uniqueness of limits, $y = f(x)$, hence $(x, y)$ is in the graph of $f$.
Try thinking of counterexamples where $C$ is not closed, or when $f$ is not continuous.