TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to reduce my redundancy when making plots with pgfplots. I want to have a single PDF file, such that I can include them on a per-page basis with graphicx.

The multi class option for the standalone class (the class I'm writing my plots with) looks promising, but instead of treating the plot as a single block, multi treats the plot as a single page. (which I assume is multi's purpose).

As an example, I'd like to achieve a result similar to this PDF file, but with pgfplots (from "A Course on Deterministic Distributed Algorithms" by Jukka Suomela).

MWE Code:

% Remove the `multi` option and the code in between the
% comment bars to achieve the `standalone` default output.
\addplot {x^2};
\addplot {x^2};

MWE Output:

mwe output

share|improve this question
up vote 4 down vote accepted

If you use


rather than multi then you get one plot per page.

You might also be interested in

\tikzexternalize[mode=list and make]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.