From de84292bb82d268d79e689dbddddd574babf28b1 Mon Sep 17 00:00:00 2001 From: janis Date: Tue, 28 Jun 2022 18:20:23 +0200 Subject: [PATCH] grammar in code updated and fixed bug in fit.py --- BiogasControllerApp-V2.3/config/settings.ini | 2 +- plot_generator/fit.py | 2 +- plot_generator/plot_generator.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BiogasControllerApp-V2.3/config/settings.ini b/BiogasControllerApp-V2.3/config/settings.ini index 1c38166..89889cd 100644 --- a/BiogasControllerApp-V2.3/config/settings.ini +++ b/BiogasControllerApp-V2.3/config/settings.ini @@ -15,5 +15,5 @@ show = 1 [Info] version = V2.3.0 -subversion = +subversion = diff --git a/plot_generator/fit.py b/plot_generator/fit.py index cbb32bc..efdf122 100644 --- a/plot_generator/fit.py +++ b/plot_generator/fit.py @@ -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") diff --git a/plot_generator/plot_generator.py b/plot_generator/plot_generator.py index 543e84a..9072f4a 100644 --- a/plot_generator/plot_generator.py +++ b/plot_generator/plot_generator.py @@ -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