我有以下图表
\documentclass{article}
\usepackage{pgfplots}
% example data file
\usepackage{filecontents}
\begin{filecontents}{datafile.dat}
thread speedup dev
1 1 0
2 3 1
3 5 0
4 7 1
\end{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=threads,
ylabel=speedup \& deviation,
xtick={1,...,4}]
\addplot table[x=thread,y=speedup] {datafile.dat};
\addplot table[x=thread,y=dev] {datafile.dat};
\end{axis}
\end{tikzpicture}
\end{document}
如您所见,我希望 x 刻度位于 x 轴(y=0)上,并且我还想删除该框?有什么建议吗?