Now the numbers on the x-axis are
0, 0.5, 1, 1.5, 2
I want to show integer only:
0, 1, 2
How can I do that? My code:
\begin{tikzpicture}
\begin{axis}[
xlabel=threads,
ylabel=speedup & deviation]
\addplot table[x=thread,y=speedup] {datafile.dat};
\addplot table[x=thread,y=dev] {datafile.dat};
\end{axis}
\end{tikzpicture}
The content of datafile.dat:
thread speedup dev
1 1 0
2 3 1
3 5 0
4 7 1

