I am trying to make the thickness of the ticks equal to the axis line thickness. That is what I have so far:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=Binding Energy (eV),
ylabel=Intensity (a.\,u.),
xtick pos=left,
x dir= reverse,
ytick = \empty,
every x tick/.style={color=black, thin},
tick align=outside,
xlabel near ticks,
ylabel near ticks,
xmin = 96,
xmax = 108
]
%\addplot[mark=none] table[x=BE,y=cnts] {si2p.txt};
% This data looks similar:
\addplot[mark=none, smooth] table[x=BE,y=cnts] {
BE cnts
95 1
98 1
99 10
99.5 5
100 6
101 2
108 2
};
\end{axis}
\end{tikzpicture}
\end{document}
But if you take a closer look on the ticks on the outside, you'll see that they are somehow clipped or a least thinner. They are also black so the style seems to work for them.
Is this a bug or can I change the clipping region? And as a second question: is thin
the correct value for the thickness?
xshift=-.5\pgflinewidth
. Then the last tick line is clearly seen in full-width. – Qrrbrbirlbel Jan 13 '13 at 12:10