Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using pgfplots to plot bar charts; when I try to use symbolic labelling for the x coordinates, I get the labels repeating. Any ideas why, the snippet is below.

\begin{figure}[!h]
\centering
\begin{tikzpicture}
\begin{axis}[
x tick label style={
/pgf/number format/1000 sep=},
xlabel={Trace-sets},
ylabel={Number of Reference Points},
enlargelimits=0.15,
symbolic x coords={1, 2, 3},
legend style={at={(0.5,-0.2)},
anchor=north,
legend columns=-1},
ybar=5pt,
bar width=9pt,
nodes near coords,
grid=major
]
\addplot coordinates {(1,166) (2,612) (3,130)};
\addplot coordinates {(1,60) (2,612) (3,46)};
\legend{Offline, Online}
\end{axis}
\end{tikzpicture}
\caption{Number of reference points at which Signal Strengths were sampled}
\end{figure}
share|improve this question

closed as too localized by zeroth, Kurt, lockstep, Stefan Kottwitz Mar 5 '13 at 18:03

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
add xtick=data otherwise additional ticks are added but since you don't have enough tick labels it's repeated for the missing ones. –  percusse Mar 5 '13 at 16:56
    
@percusse, thanks for that –  cobie Mar 5 '13 at 17:04

Browse other questions tagged or ask your own question.