In my plots, I have one bar (labelled dummy below) whose tick label needs to be typeset differently. Here's my current attempt (and minimal example), which doesn't quite work yet:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{etoolbox}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ybar,
symbolic x coords={foo,bar,dummy},
xtick=data,
xticklabel={\ifdefstrequal{\tick}{dummy}{\textcolor{gray}{\tick}}{\tick}}]
\addplot coordinates {
(foo,2)
(bar,4)
(dummy,3)
};
\end{axis}
\end{tikzpicture}
\end{document}
Now, I definitely need matching on the symbolic x coords name; comparing the \ticknum is unfortunately not an option, as the position of the dummy bar changes from plot to plot, and I don't want to touch the definition of xticklabel each time. So is there a way to do an appropriate string comparison with \tick?

coordinates, or do they come in a file/table? – Jake Apr 15 '12 at 14:16coordinates. If the solution would work fortabletoo, however, that would be great. – Andreas Apr 15 '12 at 14:33