出现将“162.0”除以“0.0”和算术溢出的错误 这里我提供了完整的 MWE。使用 Lualatex 进行编译。在我格式化系统之前,它可以完美编译。
\documentclass{article}
\usepackage{pgfplots}
\usepackage{adjustbox}
\usepackage{graphicx}
%
\begin{document}
\begin{figure}
\centering
\resizebox{\columnwidth}{!}{
\begin{tabular}{cccc}
\begin{tikzpicture}
\begin{axis}[
ylabel={Loss Probability},
xlabel={Buffer-Size [bits]},
xmin=0, xmax=14000,
ymin=0, ymax=16E-16,
% xtick={256,512,1024},
legend pos=north east,
]
\addplot[smooth,mark=*,red]
plot coordinates {
%xdn1,plk1
(0,1.46457063425573E-15)(1417.52792188833,1.46458096146691E-15) (2835.05584377667,1.46458096555486E-15)(4252.583765665,1.46458096649354E-15)(5670.11168755333,1.46458096725964E-15)
(7087.63960944166,1.43183666858344E-15) (8505.16753133,1.22606879191838E-15)(9922.69545321833,9.06217570610091E-16) (11340.2233751067,5.78157816036983E-16)(12757.751296995,3.18387938053274E-16)
};
\addlegendentry{H=0.6448}
\addplot[smooth,mark=*,blue]
plot coordinates {
%sxdn1,splk1
(0,1.33698141571304E-15)(1441.50423448193,1.33698201261989E-15)(2883.00846896387,1.33698201109105E-15)(4324.51270344581,1.33698201272183E-15)
(5766.01693792774,1.33698201280592E-15)(7207.52117240968,1.30943528845524E-15)(8649.02540689161,1.12602923890446E-15)(10090.5296413735,8.3685081228585E-16)
(11532.0338758555,5.37500860162994E-16)(12973.5381103374,2.98361672140675E-16)
};
\addlegendentry{H=0.5}
\end{axis}
\end{tikzpicture}
&
%---------------------------------------------------------------------------------------------------------------------------------------------
\begin{tikzpicture}
\begin{axis}[
ylabel={Loss Probability},
xlabel={Buffer-Size [bits]},
xmin=0, xmax=12000,
ymin=0, ymax=14E-16,
% xtick={256,512,1024},
legend pos=north east,
]
\addplot[smooth,mark=*,blue]
plot coordinates {
%sxdn4,splk4
(0,1.10258554578046E-15)(1108.12247574401,1.10258554547488E-15)(2216.24495148803,1.10258554616092E-15)(3324.36742723204,1.10258554615788E-15)
(4432.48990297606,1.06488551692328E-15)(5540.61237872007,9.43932260243838E-16) (6648.73485446408,7.67595585423292E-16)(7756.8573302081,5.72634933511087E-16)
(8864.97980595211,3.91901512487655E-16)(9973.10228169613,2.46053627106834E-16)
};
\addlegendentry{H=0.5}
\end{axis}
\end{tikzpicture}
\\ (a) & (b) & (c) & (d) \\
%---------------------------------------------------------------------------------------------------------------------------------------------
\end{tabular}}
\caption{}
\end{figure}
\end{document}