Code: Select all
%
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.13}
\usepackage{pgfplotstable}
\begin{document}
%
\pgfplotstableread{
T I1 I2
305 0.158 0.184
310 0.147 0.175
316 0.135 0.163
320 0.127 0.156
325 0.118 0.146
330 0.107 0.137
336 0.097 0.125
340 0.090 0.116
346 0.081 0.105
350 0.071 0.097
355 0.064 0.089
}\EXPDATA
\begin{tikzpicture}
\begin{axis}
\addplot table [x=T, y=I1] { \EXPDATA } ;
\end{axis}
\end{tikzpicture}
\end{document}
Code: Select all
...
! Undefined control sequence.
\EXPDATA ->\pgfpl@@
{T}\pgfpl@@ {I1}\pgfpl@@ {I2}
l.28 \addplot table [x=T, y=I1] { \EXPDATA } ;
?