我稍后在 \addplot 之后使用 \label 来构建自定义图例,但出现此错误:
! Missing number, treated as zero.
<to be read again>
\c@section
l.17 \label{plot1}
;
源代码:
\begin{tikzpicture}
\begin{axis}[
width=0.951\fwidth,
height=\fheight,
at={(0\fwidth,0\fheight)},
]
\addplot []
table[row sep=crcr]{%
-6.0000 -4.0899\\
-3.0000 0.6108\\
-1.0000 2.3684\\
1.0000 4.0699\\
3.0000 5.6297\\
};
\label{plot1};
\end{axis};
\end{tikzpicture}