TransWikia.com

"TeX capacity exceeded, sorry" when drawing graph with PGFplots (whats the max that can be drawn)

TeX - LaTeX Asked by etrusks on May 25, 2021

Hey I have this graph I’m trying to draw but it uses about 15k (x,y) coordinates. When trying to create this document I’m getting this error that tex capacity is exceeded. Is there any way I can still draw it or I must reduce coordinate count?

documentclass[landscape]{standalone}  %landscape
usepackage{pgfplots}
pgfplotsset{compat=1.8}
usepgfplotslibrary{groupplots}
pagenumbering{gobble}
definecolor{my_col}{RGB}{56, 181, 64}
begin{document}
begin{tikzpicture}
begin{axis}[
    extra y ticks = {0},
    extra y tick labels = ,
    extra y tick style  = { grid = major },
    width=30cm,height=20cm,
    xmin=0,    xmax=15909,
    xtick={1,1591,3181,4771,6361,7951,9541,11131,12721,14311,15909},
    ytick={-35.2,-31.2,-27.3,-23.3,-19.4,-15.4,-11.4,-7.5,-3.5,0.4,4.4,8.4,12.3,16.3,20.2,24.2,28.2,32.1,36.1,40,44},
    yticklabel pos=right
    ]
addplot+ [
line width=2pt,
my_col,
mark=none,
sharp plot
] table {table.dat};
end{axis}
pgfresetboundingbox
path
  (current axis.south west) -- ++(-0.4in,-0.4in)
  rectangle (current axis.north east) -- ++(0.4in,0.4in);
end{tikzpicture}
end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP