Deux possibilités :
- Si votre table a des en-têtes `x=header1,y=header2`
- autrement `x index=0,y index=1`
---
Avec `mesures_absorbance_20190627.txt`:
longueur absorbance aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp
280 2.6938 2.6271 2.7157 2.6846 2.8565 2.8021 2.8623 2.8604 2.8017 2.827 2.8851 2.8386 2.666 2.6367 2.6787 2.6408 2.7708
290 1.2445 1.1963 1.2467 1.2272 1.3649 1.3348 1.4062 1.4219 1.3842 1.4222 1.46 1.4357 1.2334 1.2004 1.227 1.1958 1.3192
300 0.7214 0.7064 0.7423 0.7367 0.8551 0.8341 0.8952 0.9419 0.9189 0.9627 0.9919 0.983 0.7342 0.7162 0.7291 0.7237 0.8293
----
\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\usepackage[a4paper,left=10mm,right=10mm,top=20mm,bottom=20mm]{geometry}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot[mark=*,mark size=2pt,blue,thick,smooth] table [col sep=space,x=dof,y=L2]
{
dof L2 Lmax maxlevel
5 8.31160034e-02 1.80007647e-01 2
17 2.54685628e-02 3.75580565e-02 3
49 7.40715288e-03 1.49212716e-02 4
};
sep=space,x=longueur,y=absorbance]{mesures_absorbance_20190627.txt};
\addplot[mark=*,mark size=2pt,red,thick,smooth] table [col sep=space,x=dof,y=Lmax]
{
dof L2 Lmax maxlevel
5 8.31160034e-02 1.80007647e-01 2
17 2.54685628e-02 3.75580565e-02 3
49 7.40715288e-03 1.49212716e-02 4
}; sep=space,x=longueur,y=aaa]{mesures_absorbance_20190627.txt};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}
\addplot[mark=*,mark size=2pt,blue,thick,smooth] table [col sep=space,x index=0,y index=1,header=false]
{
5 8.31160034e-02 1.80007647e-01 2
17 2.54685628e-02 3.75580565e-02 3
49 7.40715288e-03 1.49212716e-02 4
};
index=1] {mesures_absorbance_20190627.txt};
\addplot[mark=*,mark size=2pt,red,thick,smooth] table [col sep=space,x index=0,y index=2,header=false]
{
5 8.31160034e-02 1.80007647e-01 2
17 2.54685628e-02 3.75580565e-02 3
49 7.40715288e-03 1.49212716e-02 4
}; index=2]{mesures_absorbance_20190627.txt};
\end{axis}
\end{tikzpicture}
\end{document}