[Tex/LaTex] exceeding memory with tikz (even after externalise)

memorytikz-pgf

The issue is quite simple, I have a bunch of figures being generated with tikz (which in turn calls gnuplot). In order to bypass the memory issue I externalised tikz, which was fine until I tried plotting a larger contour (around 100k points). I now get the "! TeX capacity exceeded, sorry [main memory size=10000000]." error even if I increase the main memory by editing texmf.cnf

I can plot the figure in question with gnuplot independently but would rather have it done within the latex file for easier editing.

Any suggestions?

Best Answer

there appears to be no direct solution, the options are: - either use luatex (see @PaulGaborit's reply) - reduce the number of points to be plotted (see @mirkom's reply) - generate the plot as a standalone file and then include the pdf (see @Rico's reply)

Related Question