pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
200 stars 35 forks source link

Problem with combination of \tikzexternalyze and \pause #27

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/27/ Author: debrabant Timestamp: 2010-12-25 14:11:57

\tikzexternalyze seems not to work properly in combination with beamer when using the \pause - command. For example, the following code produces only one slide, but two slides when commenting out \tikzexternalize.

\documentclass{beamer} \usepackage{pgfplots} \pgfplotsset{compat=1.3} \usepgfplotslibrary{external} \tikzexternalize \begin{document} \begin{frame} \begin{tikzpicture} \begin{axis} \addplot coordinates { (1, 2) (3,4) } ; \only<2>{\addplot coordinates { (1, 3) (3,3) } ;} \end{axis} \pause \end{tikzpicture} \end{frame} \end{document}

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/27/#2f93 Author: debrabant Timestamp: 2010-12-25 14:14:43

PS: Of course, thanks a lot for your very valuable work! It's the perfect solution for me when including plots into presentations and papers.

Kristian

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/27/#f688 Author: ludewich Timestamp: 2011-01-09 19:14:57

Dear Kristian,

Thank you for your feedback!

You are right, the inner \only command is skipped over when the external lib is in effect. This is due to the fact the the external lib first replaces the complete tikzpicture enviromnent by an approxipriate \includegraphics. However, the replacement \includegraphics no longer contains the \only command.

The *only* way to solve this issue is to provide a \only<2>{}% *after* the tikzpicture.

There is not much I can do about that, I fear...

Best regards

Christian

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/27/#693a Author: ludewich Timestamp: 2011-01-09 19:14:58