mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-12-14 07:46:18 +00:00
Lastprognose entkoppelt, an den Optimierer wird jetzt nur das Array
übergeben. So sind unterschiedliche / eigenen Prognosen möglich
This commit is contained in:
@@ -22,13 +22,13 @@ def visualisiere_ergebnisse(gesamtlast, pv_forecast, strompreise, ergebnisse, d
|
||||
plt.subplot(3, 3, 1)
|
||||
stunden = np.arange(0, prediction_hours)
|
||||
|
||||
|
||||
gesamtlast_array = np.array(gesamtlast)
|
||||
# Einzellasten plotten
|
||||
for name, last_array in gesamtlast.lasten.items():
|
||||
plt.plot(stunden, last_array, label=f'{name} (Wh)', marker='o')
|
||||
#for name, last_array in gesamtlast.lasten.items():
|
||||
plt.plot(stunden, gesamtlast_array, label=f'Last (Wh)', marker='o')
|
||||
|
||||
# Gesamtlast berechnen und plotten
|
||||
gesamtlast_array = gesamtlast.gesamtlast_berechnen()
|
||||
gesamtlast_array = np.array(gesamtlast)
|
||||
plt.plot(stunden, gesamtlast_array, label='Gesamtlast (Wh)', marker='o', linewidth=2, linestyle='--')
|
||||
plt.xlabel('Stunde')
|
||||
plt.ylabel('Last (Wh)')
|
||||
|
||||
Reference in New Issue
Block a user