I wan't to draw tikz picture based on data loaded from pgf table. Can I somehow use it like standard \foreach
?
\foreach \i/\j in {\mytable} \draw...
What I found is \pgfplotstableforeachcolumn
but it iterates in wrong dimension and makes column as one.
I was thinking about typesetting the table \pgfplotstabletypeset
but it looks like there is no way to get rid of tabular environment out of it.
Are there any ready made ways to iterate over the pgfplotstable? It there way to typeset it in format required by tikz foreach?
\documentclass{article}\usepackage{tikz}\usepackage{pgfplots}\usepackage{pgfplotstable}\begin{document}\pgfplotstableread{1 22 3}\loadedtable% Should behave like this:\begin{tikzpicture}\foreach \i/\j \in {1/2,2/3}\draw (0,0) -- (\i,\j);\end{tikpicture}% and look like this\begin{tikzpicture}\magic_pgf_tables_foreach \i/\j \in \loadedtable\draw (0,0) -- (\i,\j);\end{tikpicture}% or this\begin{tikzpicture}\foreach \i/\j \in {\magic_pgftable2\loadedtable}\draw (0,0) -- (\i,\j);\end{tikpicture}\end{document}