Is it possible to draw a graph with pgfplots
using data from
different files ?
Let say I have two data files : data.dat
and error.dat
and would
like to plot column 1 versus column 0 from data.dat
and add error
bars from error.dat
.
If the data all came from the same file all.dat
, I would use :
\pgfplotstableread{./all.dat}\mytable
\addplot table[x index=0,y index=1, y error index=3]{\mytable};
Best Answer
It is possible. You can make a column from a different table available on the fly using
So, to get something like
you could do something like