import numpy as np import matplotlib.pyplot as plt with open("data1.txt","r",encoding="utf-8") as f : lu = f.readlines() data,nb_com = [],0 for ligne in lu : try : data.append([ float(m) for m \ in ligne.split()]) except : nb_com += 1 print(nb_com,"ligne(s) de commentaires") tab = np.array(data) print("Tableau lu de taille",tab.shape) plt.plot(tab[:,2],tab[:,1],"om") plt.show()