使用 PGFplots 绘制图形时出现“TeX 容量超出,抱歉”(可以绘制的最大值是多少)

使用 PGFplots 绘制图形时出现“TeX 容量超出,抱歉”(可以绘制的最大值是多少)

嘿,我有一张图,我想画,但它使用了大约 15k (x,y) 坐标。尝试创建此文档时,我收到此错误,提示超出 tex 容量。有什么方法我仍然可以画它,还是必须减少坐标数?

\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}

相关内容