I have a document with a lot of tikzpicture made with pgfplots, most of them take data from files so the compilation may be very long. In order to have only a draft I would like to have blank images with same dimension of the full ones.
Until now I used a trick of having a tikzpicture with an empty axis environment of the same dimensions of the original one and with some if statements I included the blank or the full image like this:
\newcommand{\img}{Y} % immages Y(es) or N(o)
...
\begin{figure}
\centering
\ifthenelse{\equal{\img}{Y}}{%
\input{Immagini/full.tex}}{%
\input{Immagini/empty.tex}}
\caption{caption}
\end{figure}
file full.tex
\begin{tikzpicture}
\begin{axis}[height=9cm, width=.8\textwidth]
\addplot table [x index=0, y index=2] {dati.dat};
\end{axis}
\end{tikzpicture}
file empty.tex
\begin{tikzpicture}
\begin{axis}[height=9cm, width=.8\textwidth]
\end{axis}
\end{tikzpicture}
But today I read this question How I can speed up the compilation of a document with multiple images? and now I would like to know if there is a similar way to the draft option of the package graphicx that does the same thing with tikzpicture.


tikzpicture draftyou can see more. – percusse Jun 28 '13 at 12:18externallibrary, which compiles yourtikzpictures into external PDFs that then only have to be included in your final document? – Jake Jun 28 '13 at 12:40