PGF 和 TikZ - 尺寸太大

PGF 和 TikZ - 尺寸太大

我一直在使用 LaTeX 编写涉及 MATLAB 代码的报告。为了显示图表,我一直在使用matlab2tikz。现在,这是我的问题;

我的 MATLAB 生成的图表如下所示:

阴谋

matlab2tikz 生成的 TeX 代码如下所示:

\begin{tikzpicture}

\begin{axis}[%
width=11.411cm,
height=8cm,
at={(0cm,0cm)},
scale only axis,
xmin=-3.5,
xmax=0,
ymin=0,
ymax=0.00363510693504221,
axis background/.style={fill=white},
xmajorgrids,
ymajorgrids
]
\addplot [color=mycolor1, forget plot]
  table[row sep=crcr]{%
-3.1    7.84480748378651e-05\\
-3.09624530663329   3.3346096155051e-05\\
-3.0927770900083    2.77555756156289e-17\\
-3.09249061326658   2.42735718568657e-06\\
-3.08873591989987   3.00232213960843e-05\\
-3.08498122653317   5.04933057718943e-05\\

.
.
.

-0.137546933667084  0.00127033315837011\\
-0.133792240300376  0.00139138385307547\\
-0.130037546933667  0.00147074815075676\\
-0.126282853566959  0.00149417736539847\\
-0.12252816020025   0.00144467572293849\\
-0.118773466833542  0.00130203824456698\\
-0.115018773466834  0.00104230702841579\\
-0.111264080100125  0.000637129320870899\\
-0.107509386733417  5.29967618541072e-05\\
-0.107222909991705  6.66133814775094e-16\\
-0.103754693366708  0.000749659959249138\\
-0.1    0.0018175534675211\\
};
\addplot [color=mycolor2, forget plot]
  table[row sep=crcr]{%
0.001708984375  1.001708984375\\
};
\end{axis}
\end{tikzpicture}%

构建脚本时,出现以下错误:

尺寸太大。\endaxis

错误从何而来?我该如何调整代码来解决这个特定问题?

答案1

正如@percusse 在其评论中指出的那样,这个问题的答案相当简单。我猜这是由于 matlab2tikz 脚本造成的,因此实际上不属于 tex.stackexhange。

相关内容