Anfangs und Endzustand jeder Stunden berücksichtigt.

This commit is contained in:
Bla Bla
2024-08-31 10:40:07 +02:00
parent cfc2a4d0b1
commit 86a31df479
4 changed files with 56 additions and 265 deletions

View File

@@ -113,7 +113,8 @@ def visualisiere_ergebnisse(gesamtlast, pv_forecast, strompreise, ergebnisse, d
plt.subplot(3, 2, 2)
plt.plot(stunden, ergebnisse['akku_soc_pro_stunde'], label='PV Akku (%)', marker='x')
plt.plot(stunden, ergebnisse['E-Auto_SoC_pro_Stunde'], label='E-Auto Akku (%)', marker='x')
plt.legend(loc='upper left')
plt.legend(loc='upper left', bbox_to_anchor=(1, 1)) # Legende außerhalb des Plots platzieren
plt.grid(True, which='both', axis='x') # Grid für jede Stunde
ax1 = plt.subplot(3, 2, 3)
for hour, value in enumerate(discharge_hours):