显示“失控争吵?”错误

显示“失控争吵?”错误
\documentclass[25pt]{article}
\usepackage{animate}
\usepackage{tikz}
\usepackage{pgfplots}

\begin{document}
\begin{frame}

\begin{animateinline}[loop, controls]{4}

\newcounter{x}
\setcounter{x}{0}

\whiledo{\arabic{x} < 1.7}

\begin{tikzpicture}
\begin{axis}[ymax = 10, ymin = -1, title = Parallelogram Law]

\addplot[color = red, thick, domain = 0 : pi/2, samples=9]{(0,0)--(cos(deg(x)),sin(deg(x))};
\addplot[]{(0,0)--(2,0)};
\addplot[]{(2,0)--(2+cos(deg(x)),sin(deg(x))};
\addplot[]{(cos(deg(x)),sin(deg(x))--(2+cos(deg(x)),sin(deg(x))};
\addplot[]{(0,0)--(2+cos(deg(x)),sin(deg(x))};


\end{axis}
\end{tikzpicture}

\end{animateinline}


\end{frame}
\end{document}

相关内容