Here is a minimal example :
\begin{filecontents*}{data.csv}
a,b,c,d
1,4,5,1
2,3,1,5
3,5,6,1
4,1,4,9
5,3,4,7
\end{filecontents*}
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{csvsimple}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw plot coordinates {%
\csvreader[head to column names]{data.csv}{}{(\a,\b) }
};
\end{tikzpicture}
\end{document}
The command \csvreader[head to column names]{data.csv}{}{(\a,\b) } extracts coordinates (columns a and c) from the CSV file data.csv :
(1,4) (2,3) (3,5) (4,1) (5,3)
And yet, it seems that I can't plot the points above using tikz :
Package tikz Error: Cannot parse this coordinate
Any idea ?


pgfplotstable) – Harish Kumar Nov 23 '12 at 2:17csvsimplepackage. Can you make it work if you use it outside the TikZ picture? – percusse Nov 23 '12 at 3:16\begin{tikzpicture} \csvreader[head to column names]{data.csv}{}{% \draw (\a,\b) node {$\times$}; } \end{tikzpicture}will work but I need to draw segments, not points. So I need a way to remember the previous point like in thecsvsimpleexamples (not hard, but I don't know LaTeX that well). – remjg Nov 23 '12 at 11:11