I am loading quite a few data files via \pgfplotstableread, but do not further use them via pgfplots. I just kept them in the preamble and switched to plotting them in a standalone document. But now I've run my main document again, I've got:
PGFPlots: reading {xxxxxxxxx/xxxxxxxxx/xxxxxxxxx.csv}
PGFPlots: reading {xxxxxxxxx/xxxxxxxxx/xxxxxxxxx.csv}
Runaway definition?
->
! TeX capacity exceeded, sorry [main memory size=5000000].
\pgfplotsapplistXpushback@smallbufoverfl ...@toka
\the \t@pgfplots@tokb }\ex...
l.87 ...sv}{\xxxxxxxxxWordWordWordxxxxxxxx}
^^M
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
Kind of looks like I forgot to close some bracket somewhere. However on first check that does not seem to be the case. Is the loading of the data files already too much and should I outsource that?
edit (2016-07-13)
In hindsight, I could have edited this into the post way earlier but unfortunately, as I am not that active anymore, I just caught wind of this question's popularity. So ultimately, I plotted the graphs and figures, respectively, one-by-one in an external file (with the help of the standalone class). For huge data, I used LuaLaTeX. To get a proper start for this, these might help: