I'm using another language to generate a latex file, specifically a document with a tikz picture. The picture contains about 2000 straight line segments, (+ nodes) but it produces the error
! TeX capacity exceeded, sorry [.6=200000].
(it still works with about 1500 segments).
But I think it surely should be possible to create way more complex graphics than that, but if so, how?
I am using pdflatex from MikTex on Windows.
This is the code I used:
\documentclass[a4paper]{article}
\usepackage[margin=1cm]{geometry}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\begin{document}
\begin{center}
\begin{figure}
\begin{tikzpicture}[scale=14]
\draw[-,very thin](0.0:0.4)-- +(0.0:0.2)+(0.0:0.22)node{$1$}
(108.371:0.4)-- +(108.37:0.184)+(108.37:0.201)node{$2$};
%...more line segments
\end{tikzpicture}
\end{figure}
\end{center}
\end{document}
figurefloat van not be insidebegin{center} ... \end{center}... correct is\begin{figure} \centering \begin{tikzpicture}[scale=14] \draw[very thin](0.0:0.4)-- +(0.0:0.2)+(0.0:0.22) node{$1$} (108.371:0.4)-- +(108.37:0.184)+(108.37:0.201) node{$2$}; %...more line segments \end{tikzpicture} \end{figure}. – Zarko May 28 '17 at 19:27\draw plot file{…}I can draw some 5000 line segments. Maybe you can provide your data in an external file and plot it from there. (Needs a recent TeX dist, I know it does not work with a 2012 one.) How old is your installation? Have you tried some of the capacity increasing tricks, i.e. allocate more memory to TeX? – Huang_d May 29 '17 at 07:52