I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use pgfplots for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric.
Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures.
Having studied the pgfplots documentation, I haven't found a draft mode, but I'm interested in knowing if one could be created.
I'm envisaging something similar to the draft mode of the graphicx package, in which graphics are not included, and blank boxes are put in their place.
Some things I've considered:
- the
standalonedocumentclass; but with about 1500 figures, wouldn't this mean over-modulization? tikzexternalize, but this still requires an initial 'monster' compilation to get the images externalized before thedraftoption could be invoked
Here's a MWE to play with
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\end{document}
renewenvironmentthetikzpictureto nothing or\drawonly a rectangle? – percusse Jun 19 '12 at 20:28makefileoption enables "draft". Just use/tikz/external/mode=list and make. This will generate dummy text on each picture and add text instead. This also enables one to generate the 1500 pictures in parallel. :) – nickpapior Jun 20 '12 at 14:36\pgfkeys{/pgf/images/include external/.code={\includegraphics{#1}}}your solution would allow real draft mode - it would externalize the graphics, but would not reinclude them - only boxes of the right size (using the draft mode of thegraphicspackage) – Christian Feuersänger Jun 20 '12 at 20:31