1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| if SizeOf_DATA_CURVE.shape[1] == 2:
print("Classic caulking curve, opened file: "+Curve+' ('+SELECTED_LINE+' '+Cell_folder+')')
if not 'FILE VERSION' in TextFileContainer.get("1.0", "2.0"):
plt.title(TextFileContainer.get("1.0", "2.0"))
else:
plt.title(TextFileContainer.get("2.0", "3.0"))
plt.plot(data[:,0] , data[:,1], label='Courbe '+Curve+' ('+SELECTED_LINE+' '+Cell_folder+')')
if Fant==1:
print(Santgr)
plt.text(Santgr, Fantgr, r'Fantgr')
if Fm==1:
print(Smax)
plt.text(Smax, Fmax, r'Fmax')
if Fg==1:
print(Fgrad)
plt.text(Sgrad, Fgrad, r'Fgrad')
if Fgr==1:
print(Sgrd)
plt.text(Sgrd, Fgrd, r'Fgrd')
if Fw==1:
print(Swp)
plt.text(Swp, Fwp, r'Fwp')
plt.legend()
plt.show()
elif SizeOf_DATA_CURVE.shape[1] == 3:
print("Calibration curve, opened file: "+Curve+' ('+SELECTED_LINE+' '+Cell_folder+')')
if not 'FILE VERSION' in TextFileContainer.get("1.0", "2.0"):
plt.title(TextFileContainer.get("1.0", "2.0"))
else:
plt.title(TextFileContainer.get("2.0", "3.0"))
plt.plot(data[:,0] , data[:,1], color='blue', label="Courbe capteur station")
plt.plot(data[:,0] , data[:,2], color='orange', label="Courbe capteur étalon")
plt.legend()
plt.show() |
Partager