import matplotlib.pyplot as plt with open("data1.txt","r",encoding="utf-8") as f : lu = f.readlines() T,F,D = [],[],[] for ligne in lu : if not ligne.startswith("#") : t,f,d = [ float(m) for m in ligne.split()] T.append(t) F.append(f) D.append(d) plt.plot(D,F,"om") plt.show()