I have faced an error when running file .tex using MiKTeX.
TeX capacity exceeded, sorry [main memory size=3000000]
I already tried to use many solutions including the following: How to expand TeX's "main memory size"? (pgfplots memory overload)
As said in the link, I tried to solve by using
\usepgfplotslibrary{external}
\usepgfplotslibrary[external]
\tikzexternalize
and -shell-escape
However, it did not work in my case.
This is my code for plotting:
\begin{figure}[!ht]
\centering
\input{figs/aa/aa.tex}
\caption{aa}
\label{fig:aa}
\end{figure}
aa.tex is the file that I exported from MATLAB using Matlab2tikz.
In my latex file, I also plot figures from another Matlab2tikz files. But only have error with aa.tex file. So I thought file its size is too large.
This is the file: https://drive.google.com/open?id=0Bx6bUTVOinyybXNhWjBteVNzYmc
Can anybody help?
Thank you so much !
every nth point={}key to reduce the amount of data that is actually plotted. Decimation may however not always be applicable. Recently, another user had the same issue. Here was strategy in my thesis to solve such problems https://tex.stackexchange.com/a/536662/141947 – BambOo Apr 12 '20 at 20:38