I plot some points in pgfplots like in the following MWE:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis x line=bottom,
axis y line=left,
xmin=0, xmax=2.5,
ymin=0, ymax=2.5,
xtick=\empty,
ytick=\empty,
xlabel=position $x$,
ylabel=time $t$
]
\addplot [only marks] table {
0.5 1
1.5 1
0.5 2
1.5 2
};
\addplot [only marks, mark=o] table {
1 0.5
2 0.5
1 1.5
2 1.5
};
\end{axis}
\end{tikzpicture}
\end{document}
This gives me the following result:
Now I would like to add a label next to each point. The result should look like this:
How can I do that?