The Problem
I'm trying to create a diagram that is similar to this diagram generated by the matlab command waterfall():
The data for it is stored in a csv file. In this case it's 129 columns of data, the first one is just an index, the others contain the data for the 128 lines. The data used in the above image can be found in this pastebin.
What I've Tried
\documentclass[crop, tikz]{standalone}
\usepackage{pgfplots}
\pgfplotstableread[col sep = comma]{data.csv}\mydata
\begin{document}
\begin{tikzpicture}
\begin{axis}[
no markers,
xmin = 0, xmax = 140,
ymin = 0, ymax = 150,
zmin = 0, zmax = 0.07,
x dir = reverse]
\addplot table[x = 1, y index = {0}, z index = {1}]{\mydata};
\addplot table[x = 2, y index = {0}, z index = {2}]{\mydata};
\end{axis}
\end{tikzpicture}
\end{document}
Basically, I'm trying to give each line a fixed x value and have it read the y and z values from the csv. For now I'm trying to add a few lines manually. Later I'd like to generate the addplot entries using some kind of for loop that.
