I'm trying to create a simple plot using pgfplots. I have a problem though that drives me crazy. I'm working on a debian installation and had installed the tex-live version from the repositories. The code below was giving me the following error
! Package pgfkeys Error: I do not know the key '/tikz/nodes near coords' and I am going to ignore it. Perhaps you misspelled it.
I though that the package was outdated and since there was no way to update it otherwise i removed the repo version of tex-live and install the one from their website (version 2011). I'm still getting the same error message though. I have to mention that the same code compiles correctly in my windows installation. Any idea why this might happen?
Code:
\documentclass{article}
\usepackage[a4paper]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{caption}
\usepackage{pgfplots}
\pagestyle{fancy}
\chead{\footnotesize {header title} }
\cfoot{\footnotesize Page \thepage\ of \pageref{LastPage}}
\title{my title}
\author{me}
\begin{document}
\renewcommand{\labelenumi}{[\arabic{enumi}]}
\fontsize{11}{12}
\selectfont
\begin{center}
\begin{tikzpicture}
\begin{axis}
[
ybar,
bar width = 1cm,
xmin=1, xmax=1,
xticklabels={,,},
enlargelimits=0.15,
xlabel={OpenCL implementation},
ylabel={time (sec)},
xtick=data,
nodes near coords
]
\addplot coordinates {(1, 24.0)}; \addlegendentry{Version 1}
\addplot coordinates {(1, 14.5)}; \addlegendentry{Version 2}
\addplot coordinates {(1, 10.0)}; \addlegendentry{Version 3}
\addplot coordinates {(1, 9.6)}; \addlegendentry{Version 4}
\end{axis}
\end{tikzpicture}
\captionof{figure}{Figure caption}
\label{fig:example_caption}
\end{center}
\end{document}

\listfilesto your preamble and check near the end of the.logfile for your version number? – Jake May 2 '12 at 18:41\addledendentryshould be\addlegendentry. – Peter Grill May 2 '12 at 18:43(/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryplotm arks.code.tex File: tikzlibraryplotmarks.code.tex 2008/01/09 v2.00 (rcs-revision 1.1) (/usr/share/texmf/tex/generic/pgf/libraries/pgflibraryplotmarks.code.tex File: pgflibraryplotmarks.code.tex 2007/03/09 v2.00 (rcs-revision 1.5) )))– gkaran89 May 2 '12 at 18:51pdflatexfrom the wrong directory. – Jake May 2 '12 at 19:11