Is there a way to add a file path prefix (ideally defined by a key) to the "argument" of \addplot table. Something like
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{%
table file path/.initial = {./}}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\pgfplotsset{%
table file path = {./cvsfile/}}
% Plot ./cvsfile/myfile
\addplot table {myfile};
\end{axis}
\end{tikzpicture}
\end{document}
pgfplotstableshared.code.texwhere\pgfplotstableread@filenameis defined. I'll try later today. – cjorssen May 13 '13 at 12:04\let\pgfplotstableread@openfile@i\pgfplotstableread@openfile \def\pgfplotstableread@openfile{\edef\pgfplotstableread@filename{\pgfkeysvalueof{/pgfplots/table file path}\pgfplotstableread@filename}\pgfplotstableread@openfile@i}. Thanks again for digging the code to the right place. – cjorssen May 13 '13 at 19:28