I'd like to plot some measured values with TikZ, but despite "calling" LuaLaTeX I get the error message that TeX's main memory is exceeded. I can compile the plots under LuaLaTeX but it doesn't work with LaTeX calling LuaLaTeX. What can I do except deleting some values?
TeX capacity exceeded, sorry [main memory size=3000000].
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{external}
\tikzset{external/system call={lualatex
\tikzexternalcheckshellescape -halt-on-error -interaction=batchmode
-jobname "\image" "\texsource"}}
\tikzexternalize[shell escape=-enable-write18]
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
width=5cm,
height=10cm,
at={(0.790898in,0.967508in)},
scale only axis,
xlabel={$x~\rightarrow$},
ylabel={$y~\rightarrow$},
legend style={legend cell align=left,align=left,draw=black}
]
\addplot [color=gray,line width=.45pt,mark size=.45pt,only marks,mark=*,mark options={solid}]
table [ x expr=\thisrow{tmess}*1e6, y=uoutmess, col sep=comma] {tmessuoutmess.csv};
\addlegendentry{Messung};
\addplot [color=black,solid,line width=1.5pt]
table [x expr=\thisrow{tapprox}*1e6, y=uoutapprox, col sep=comma] {tapproxuoutapprox.csv};
\addlegendentry{Approximation};
\addplot [color=black,loosely dotted,line width=1.5pt]
table [x expr=\thisrow{tsim}*1e6,y=uoutsim, col sep=comma] {tsimuoutsim.csv};
\addlegendentry{Simulation};
\end{axis}
\end{tikzpicture}
\end{document}
Values:
http://www72.zippyshare.com/v/QUAuSl3J/file.html

pdflatexwith the-shell-escape. I'm no expert in MiKTeX, but-src shell-escapelooks suspicious and it should probably be-shell-escape. – egreg Mar 06 '15 at 20:40pdflatex --shell-escape <document>on the command line. If it still fails show the complete log-file. – Ulrike Fischer Mar 07 '15 at 10:48pdflatexfrom one version to calllualatexfrom a different one, is it? That is, from what you say, you are not mixing different distributions. You just have different distributions installed and can switch between them. – cfr Mar 07 '15 at 12:08