mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-25 05:44:23 +00:00
grammar in code updated and fixed bug in fit.py
This commit is contained in:
@@ -15,5 +15,5 @@ show = 1
|
|||||||
|
|
||||||
[Info]
|
[Info]
|
||||||
version = V2.3.0
|
version = V2.3.0
|
||||||
subversion =
|
subversion =
|
||||||
|
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user