I am trying to plot a load displacement curve using pgfplots. I am getting the following error message. "TeX capacity exceeded, sorry [main memory size=3000000]"

I am trying to find a solution to this problem. please help. Many thanks in advance.


\usepackage{amsmath, amssymb}

\begin{tikzpicture}[every mark/.append style={mark size=1pt}]
\begin{axis}[xmin=0, xmax=25, ymin=0, ymax=200, width = 8cm, height = 7cm, xtick align =inside, ytick align =inside, ytick distance=40, xtick distance =5, minor x tick num={1}, minor y tick num={1}, xlabel = True strain, ylabel= {True stress (MPa)}, legend style= {nodes={scale=0.5, transform shape}, legend pos= north east, legend cell align={left}}, y tick label style = {/pgf/number format/.cd,
        use comma,
        1000 sep={}, set decimal separator={.}, fixed,
            fixed zerofill,
         \addplot[black, sharp plot, mark=none] table [x=a, y=b]{L_D_9C.txt};\addlegendentry{9C};



closed as unclear what you're asking by user36296, Phelype Oleinik, Mensch, Stefan Pinnow, Troy Apr 2 '18 at 15:35

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    What's the content of L_D_9C.txt? – Teepeemm Mar 8 '18 at 20:09
  • Hi Teepeemm, I am comparatively new to this forum and was wondering how to attach the text file. couldn't find any option to attach the file – Tasnuva Mar 8 '18 at 20:14
  • @Tasnuva Just paste it as text, the same way you have pasted your LaTeX document. – ShreevatsaR Mar 8 '18 at 20:24
  • You can add the text file to your MWE (provided it is not overly long) by sandwiching it between \begin{filecontents}{L_D_9C.txt} and \end{filecontents}. – user121799 Mar 8 '18 at 20:24
  • And if it is overly long, try to figure out which parts of the document you need to get the error to occur, and paste just that. – Teepeemm Mar 8 '18 at 20:43

Browse other questions tagged or ask your own question.