grammar in code updated and fixed bug in fit.py

This commit is contained in:
janis
2022-06-28 18:20:23 +02:00
parent 03ed83454e
commit de84292bb8
3 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ plt.annotate(formula, xy=(0.85,60))
plt.grid(True)
plt.show()
saveit = input("Sollen der Graph gespeichert werden? (y/n) ")
saveit = input("Sollen der Graph gespeichert werden? (y/n) ").lower()
if saveit == "y":
plt.savefig("Sonde"+str(n)+".png")
plt.savefig("Sonde"+str(n)+".pdf", format="pdf")

View File

@@ -23,8 +23,8 @@ for i in range(lenght):
plt.plot(x, y, color="MAGENTA")
plt.xlabel("Time")
plt.ylabel("Voltage")
titel = f"GC - Biogasanlage {date}"
plt.title(titel)
title = f"GC - Biogasanlage {date}"
plt.title(title)
plt.grid(True)
if saveit == "y":
pos = 0