I'd like to show a function using different values for it's domain, like "zooming out" over a series of frames. Using the following code, both the text before the plot and the plot's axes/frame jump around across the frames:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\begin{document}
\begin{frame}
text
\begin{center}
\begin{tikzpicture}
\begin{axis}[
scaled ticks=false,
ticklabel style={/pgf/number format/fixed,/pgf/number format/1000 sep={\,}},
width=11cm,
height=6cm
]
\only<1>{ \addplot [domain=0:5] {x^3}; }
\only<2>{ \addplot [domain=0:15] {x^3}; }
\only<3>{ \addplot [domain=0:100] {x^3}; }
\only<4>{ \addplot [domain=0:1000] {x^3}; }
\end{axis}
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}
Note that the different slides should actually change their x axis's maximum, ie. the first slide should show the function with the domain 0:5 scaled to the plot's width. I need this since the "zooming out" effect is required to show some details of the function that start to be invisible in the larger domains.
Avoiding jumping frames in beamer suggests using overlayarea, with which I was able to avoid the jumping text, but doesn't change anything for the plot's contents.
Is there any way to force all addplot commands to produce the same size, ideally with the plots' (0,0) points being in the same place across all frames?
