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

@@ -15,5 +15,5 @@ show = 1
[Info] [Info]
version = V2.3.0 version = V2.3.0
subversion = subversion =

View File

@@ -40,7 +40,7 @@ plt.annotate(formula, xy=(0.85,60))
plt.grid(True) plt.grid(True)
plt.show() plt.show()
saveit = input("Sollen der Graph gespeichert werden? (y/n) ") saveit = input("Sollen der Graph gespeichert werden? (y/n) ").lower()
if saveit == "y": if saveit == "y":
plt.savefig("Sonde"+str(n)+".png") plt.savefig("Sonde"+str(n)+".png")
plt.savefig("Sonde"+str(n)+".pdf", format="pdf") 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.plot(x, y, color="MAGENTA")
plt.xlabel("Time") plt.xlabel("Time")
plt.ylabel("Voltage") plt.ylabel("Voltage")
titel = f"GC - Biogasanlage {date}" title = f"GC - Biogasanlage {date}"
plt.title(titel) plt.title(title)
plt.grid(True) plt.grid(True)
if saveit == "y": if saveit == "y":
pos = 0 pos = 0