Consider the following example:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc,patterns,decorations.pathmorphing,decorations.markings}
\begin{document}
\begin{tikzpicture}
\foreach \t in {0,...,10} {
\pgfmathparse{8/10*\t};
\draw[color=red,domain=0:\pgfmathresult] plot (\x,{0.5*sin(2*pi*\t/10 r - 0.25*pi*\x r) - 2*\t});
}
\end{tikzpicture}
\end{document}
The point is, that I want use the variable \pgfmathresult in the domain of the plot. However it gives me TeX capacity exceeded, sorry. Any idea how to solve this?
