Aggiunta generazione grafico
This commit is contained in:
@@ -53,7 +53,18 @@ result_ac_energies_to_csv_df = suppress_printing(simulate_unstacked_productivity
|
|||||||
print("Valore massimo:",max(result_ac_energies_to_csv_df.gen_pv_100_kWp)) # print the maximum value of the generated energy
|
print("Valore massimo:",max(result_ac_energies_to_csv_df.gen_pv_100_kWp)) # print the maximum value of the generated energy
|
||||||
print("Somma totale:",sum(result_ac_energies_to_csv_df.gen_pv_100_kWp)) # print the total sum of the generated energy
|
print("Somma totale:",sum(result_ac_energies_to_csv_df.gen_pv_100_kWp)) # print the total sum of the generated energy
|
||||||
result_ac_energies_to_csv_df.to_csv(path_export, encoding='utf-8')
|
result_ac_energies_to_csv_df.to_csv(path_export, encoding='utf-8')
|
||||||
os.startfile(path_export)
|
|
||||||
|
# GENERAZIONE GRAFICO
|
||||||
|
import plotly.express as px
|
||||||
|
# Supponendo che la colonna di interesse sia 'gen_pv_100_kWp'
|
||||||
|
fig = px.line(
|
||||||
|
result_ac_energies_to_csv_df,
|
||||||
|
x=result_ac_energies_to_csv_df.index,
|
||||||
|
y='gen_pv_100_kWp',
|
||||||
|
title='Produttività Fotovoltaica nel Tempo',
|
||||||
|
labels={'gen_pv_100_kWp': 'Energia [kWh]', 'index': 'Data/Ora'}
|
||||||
|
)
|
||||||
|
fig.show()
|
||||||
|
|
||||||
if joePlaying:
|
if joePlaying:
|
||||||
joe.terminate()
|
joe.terminate()
|
||||||
|
|||||||
Reference in New Issue
Block a user