====== Caractéristique d'un générateur ====== import matplotlib.pyplot as plt I = [0.24 ,0.98, 6.29, 25.0, 53.8, 86.5] for i in range(0,len(I)): I[i]=I[i]/1000 U = [1.52, 1.52, 1.51, 1.50, 1.48, 1.45] plt.plot (I,U,'+',color='red') plt.xlabel ("Intensité (A)") plt.ylabel ("Tension (V)") plt.title ("Caractéristique du Générateur") plt.legend (loc='lower left',title="U=f(i)",shadow = True) plt.ylim(0,1.6) plt.xlim(0,0.1) plt.show () donne {{:python:programmes_de_physique_chimie_en_python:e778030c13d93f880d8deb4cb443caf1.png}}