With pgfplots
I'm experiencing some trouble with tick label format with some "higher" value of coordinates. Here a sample code which is working fine:
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{figure}[htbp]
\begin{tikzpicture}
\begin{axis}[yticklabel style={/pgf/number format/.cd,1000 sep={\,}}]
\addplot[red] coordinates{(1, 200) (2, 1500) (3, 9000)};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
But changing the of (3,9000) by (3,10000) generate this error:
! Package pgfkeys Error: I do not know the key '/pgf/number format/at', to which you passed '(0,1)'
What's happening?