[Tex/LaTex] pgfplots figures in publications

pgfplots

Journals usually ask for the figures in a publication to be in some specific formats (e.g. eps, svg, tiff etc). Now that I have used pgfplots to make all the figures in my article, what is the best course of action to convert all of the figures to e.g. eps? Should I use some kind of an external tool to extract all the figures (gpdfx, inkscape etc) from the current article and the convert them to the correct format, and then use \includegraphics to include them again? A lot of tedious work, surely there is a better option?

Best Answer

Actually, thanks to percusse's comment, I researched the pgfplots' externalize library and found that adding these two lines

\usepgfplotslibrary{external}
\tikzexternalize

to my preamble did just what I wanted for no effort at all!

(Ryan's answer is also great, and thanks to him, but this is a better way.)

Related Question