I have the following:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{filecontents}
\begin{filecontents}{testdata.csv}
Probe Mittelwert Standardabweichung
well_PS 100.00 0.00
PL-04-021_3 12.19 2.47
Dextran 104.63 6.28
\end{filecontents}
\pgfplotstableread[col sep=space]{testdata.csv}\datatable
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot table[x=Probe,y=Mittelwert]{\datatable};
\end{axis}
\end{tikzpicture}
\end{document}
But I keep getting errors from pgfplotstable
like
! Package pgfplots Error: Could not read table file 'testdata.csv'. In case you intended to provide inline data: maybe TeX screwed up your end-of-lines? Try `row sep=crcr' and terminate your lines with `\\' (refer to the pgfplotstable manual for details).
What am I doing wrong? Is there a possibility to get more verbose error output?
Update
I found this link which explains how to read a string column, but I fail to read in my .csv file, although hard coded in the .tex it works.