Code: Select all
\begin{tikzpicture}[only marks, scale=1.0]
\draw plot[mark=*, mark size=3pt] file {divergence.dat};
\draw[->] (0,-12) -- coordinate (x axis mid) (25,-12);
\draw[->] (0,-12) -- coordinate (y axis mid)(0,-2);
\foreach \x in {0, 5,10,15,20,25}
\draw [xshift=0](\x,-12) -- (\x,-12.1)
node[anchor=north] {$\x$};
\foreach \y in {-12, -10, -8, -6, -4, -2}
\draw (0,\y) -- (-0.1,\y) node[anchor=east] {$\y$};
\node[below=1cm] at (x axis mid) {$N$};
\node[left=2cm,rotate=90] at (y axis mid) {$\log\text{Error}$};
\end{tikzpicture}
Code: Select all
1 -4.77517
2 -6.46093
3 -7.73634
4 -8.71971
5 -9.47605
6 -10.0466
7 -10.4598
...
How would I do that?