I'm creating a beamer presentation and I want to animate a plot with pgfplots. This is a MWE of the graphics:
\documentclass{beamer}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{frame}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[%
width=2in,
height=2in,
scale only axis,
minor tick num=10,
xmin=1,
xmax=10,
ymin=1,
ymax=10,
axis x line*=bottom,
axis y line*=left,
]
\plot[mark=*, mark options={fill=black}]
coordinates{
(1, 1)
(2, 2)
(3, 3)
(4, 4)
(5, 5)
(6, 6)
(7, 7)
(8, 8)
(9, 9)
(10, 10)
};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\end{document}
I want to see the points appearing consecutive as animation. I don't know how to do this, any one can help me? Thanks in advance.