I'm writing some lua
code that outputs a table saved to a file that is then read by \pgfplotstableread{myfile.dat}\mytable
. I'd like to avoid two steps: saving to a file and reading with \pgfplotstableread
. So, my option is to "write" directly \mytable
on lua
side. But I don't know how tables are stored internally by pgfplotstable
. I did some experiment:
\documentclass{article}
\usepackage{pgfplotstable}
\pgfplotstableread[col sep=comma]{
Name, Age, stDev
Adam, 15, 3
Eve, 12, 1
}\mytable
\begin{document}
\show\mytable
\end{document}
This results in:
> \mytable=macro:
->\pgfpl@@ {Name}\pgfpl@@ {Age}\pgfpl@@ {stDev}.
So I guess the other lines are stored in other macros. My question is how?
\pgfplotstablegetelem{⟨row⟩}{⟨col⟩}\of⟨table⟩
.