Dear Rufus Wilson, this sounds like a bug: both packages struggle to overwrite the \label functionality, and only one of them succeeds.
The following workaround compiles and appears to work. Could you verify that it does what you intend to do? \documentclass[11pt]{beamer} \usepackage[latin1]{inputenc} \usepackage{tikz} \usepackage{pgfplots} \usepackage{animate} \let\XXXlabel=\label \begin{document} \begin{frame} \frametitle{mwe} \begin{animateinline}[]{3} \multiframe{4}{iIdPic=1+1}{ \begin{tikzpicture}[scale=0.6] \let\label=\XXXlabel \begin{axis}[ytick=\empty,xmin=0,xmax=5,hide x axis] \addplot+[mark=none] {3*x+\iIdPic}; \label{Temp\iIdPic} \end{axis} \end{tikzpicture} } \end{animateinline} \end{frame} \end{document} If so, I can think of a workaround in the pgfplots package. Kind regards Christian Am 18.03.2014 19:47, schrieb Rufus Wilson: > Dear Dr Feuersanger, > > I have encountered a bug when using pgfplots with the animate package. > You will find a minimal working example below. It is creating an > animation where a diagonal line is sliding through the graph. And I > wanted to have the legend set accordingly. I need the label as I have > several axis environment to better show the evolution of values > (different scales). > > > \documentclass[11pt]{beamer} > \usepackage[latin1]{inputenc} > \usepackage{tikz} > \usepackage{pgfplots} > \usepackage{animate} > \begin{document} > \begin{frame} > \frametitle{mwe} > \begin{animateinline}[]{3} > \multiframe{4}{iIdPic=1+1}{ > \begin{tikzpicture}[scale=0.6] > \begin{axis}[ytick=\empty,xmin=0,xmax=5,hide x axis] > \addplot+[mark=none] {3*x+\iIdPic}; > \label{Temp\iIdPic} > \end{axis} > \end{tikzpicture} > } > \end{animateinline} > \end{frame} > \end{document} > > > Have I done something wrong? > > Thank you for your help, > Cédric > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features