maybe I do not to see the wood for the trees, but I'm always getting error messages for compiling the following pgf code, while the output looks like the way it should. Does anyone see whats wrong with my code? (download tex-file and test.dat)
\documentclass[
a4paper,
DIV13,
12pt,
oneside,
onecolumn,
]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{pgfplots}
\usepgflibrary{shapes.geometric}
\usetikzlibrary{patterns,arrows}
\pgfplotsset{%
compat=newest,
every axis legend/.append style={draw=none, font=\scriptsize, column sep=5pt},
ymajorgrids=true,
}
\begin{document}
\begin{figure}[htb]
\centering
\footnotesize
\begin{tikzpicture}
\begin{axis}[
enlargelimits=0.2,
ylabel=Altersgruppe,
xlabel=Lautanzahl pro 150 Wörter,
width=9cm,
height=9cm,
ymin=4,
xmin=460,
xmax=620,
enlarge x limits=0.07,
enlarge y limits=0.07
]
\addplot [black, only marks, mark options={scale=1}, mark=*] file {test.dat};
\end{axis}
\end{tikzpicture}
\caption{correlation}
\label{correlation}
\end{figure}
\end{document}