KristofferC / PGFPlotsX.jl

Plots in Julia using the PGFPlots LaTeX package
Other
301 stars 40 forks source link

luatex problem with memory. #219

Closed Kelvyn88 closed 4 years ago

Kelvyn88 commented 4 years ago

Hi

I'm trying to plot a very large dataset (8000x101 matrix). With small datasets the package runs without problem. But, when I use the large data set I got:

(I have 32 GB of Ram, julia 1.3.1 on Win10 and the using PGFPlotsX with Plots)

TeX capacity exceeded, sorry [save size=100000]. \@tempswatrue ->\let \if@tempswa \iftrue

l.66724 \end{axis}

If you really absolutely need more capacity, you can ask a wizard to enlarge me.

Here is how much of LuaTeX's memory you used: 25344 strings out of 494300 5552888,63191721 words of node,token memory allocated 5524389 words of node memory still in use: 4 hlist, 1 rule, 7 dir, 66686 glue, 3 kern, 1 glyph, 751024 attribute, 48 glu e_spec, 751024 attribute_list, 6 temp, 11 if_stack, 1 write, 684346 pdf_literal, 2 pdf_colorstack nodes avail lists: 1:7,2:5,4:2,6:11,9:1 28695 multiletter control sequences out of 65536+600000 15 fonts using 510647 bytes 78i,5n,136p,2923b,100000s stack positions out of 5000i,500n,10000p,22389738b,100000s ! ==> Fatal error occurred, no output PDF file produced!

Error showing value of type Plots.Plot{Plots.PGFPlotsXBackend}: ERROR: The latex command lualatex jl_4436.tmp.tex failed

tpapp commented 4 years ago

You can increase the memory of LuaLaTeX (see its docs, search for texmf.cnf), but note that PGFPlots is just not the right platform for this kind of plot.

Incidentally, I find that anything that is too large for lualatex is probably overplotting anyway, and some kind of pre-processing (eg binning) is usually needed to produce a meaningful plot.