尝试在具有 3 种颜色的 3 个不同列中创建具有单个值的乳胶柱形图。
\begin{tikzpicture}
\begin{axis}[
x tick label style={
/pgf/number format/1000 sep=},
ylabel=Accuracy,
enlargelimits=0.05,
legend style={at={(0.5,-0.15)},
anchor=north,legend columns=-1},
ybar interval=0.7,]
\addplot
coordinates {(1930,80)};
\addplot
coordinates {(1930,80)};
\addplot
coordinates {(1930,80)};
\legend{Far,Near,Here}
\end{axis}
\end{tikzpicture}