A lot of code about pgfplots I found (also here on tex.stack) was using \thisrowno{} to address specific rows of a table. All of these had no additional pakages loaded than I do in the following example. But I get the error that \thisrowno is an undefined control sequence. What am I missing and/or doing wrong?
\documentclass{article}
\usepackage{pgfplots}
\usepackage{filecontents}
\pgfplotsset{compat=newest}
\begin{filecontents}{data.dat}
0.0 1
0.1 23
0.2 4
0.3 35
\end{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot table [x=\thisrowno{1}, y=\thisrowno{0}] {data.dat};
\end{axis}
\end{tikzpicture}
\end{document}
