So, I'm drawing graphs using TikZ and pgfplots for my lecture notes. My question is about the two coordinate systems that are used in the following code:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis lines = center, xlabel = $x$, ylabel =$y$, ymax=3, ymin=-1, xmax=5, xmin=-1 ,samples=500, ytick={1,2}, xtick={1,2,3,4}]
% Code for the graph.
\addplot[blue, domain=2.05:4.5, thick] {-x + 4};
\addplot[blue, domain=-0.5:1.95, thick] {x};
\draw[blue] (300,297) circle[radius=1.5pt];
\node[above right] at (300,297) {\footnotesize $y=f(x)$};
\end{axis}
\end{tikzpicture}
\end{document}
Question: Why is it that the lines of the graph can be drawn with the coordinates of the axes, but the coordinates of the nodes have to be specified using some other system?
Question: What is the other system? Is it easy to say where (0,0) in the "node system" is with respect to (0,0) on the axes?
Ideally I would like to be able to use the axes coordinates for all aspects of the diagram. But, any help at all would be great!
Thanks in advance.

\pgfplotsset{compat=1.11}, axis coordinates are used for\node,\draw, etc. as well. – Torbjørn T. May 03 '21 at 22:26