I'm looking for whether the graph of topologist's sine curve and closed topologist's sine curve are closed or not. But due to some misconception, I'm facing problems with this.
$\underline{\text{Question} : 1}$ Here it proves that if $f\colon X\to Y$ continuous and $Y$ is Hausdorff, then the graph $G_f$ of $f$ is closed.
$f(x)=\sin\frac1x,x\in(0,1]$ is continuous and $\mathbb R^2$ is Hausdorff, this means $G_f$ is closed, but $G_f\ne\bar{G_f}$, implying $G_f$ is not closed.
$\underline{\text{Question} : 2}$ Here it proves that the graph $G_f$ of $f\colon X\to Y$ is closed in $X\times Y$, then $f$ is continuous if $Y$ is compact.
The closed topologist's sine curve is closed in $\mathbb R^2$. If we take a compact subset of $\mathbb R^2$ containing this graph, for example take $[-\frac12,1]\times[-2,2]$, then the whole curve lies there. And hence $f\colon[0,1]\to Y$ is continuous, which is surely not.
As a beginner in topology, I'm certainly missing something, but can't able to see what. It would be great if someone please point out where I'm going wrong.