validate: add line plot for price comparison
This commit is contained in:
parent
9dcdb8037e
commit
793573f655
@ -70,10 +70,12 @@ renewable:
|
||||
cutout: europe-2019-era5
|
||||
|
||||
conventional:
|
||||
unit_commitment: false
|
||||
unit_commitment: true
|
||||
dynamic_fuel_price: true
|
||||
nuclear:
|
||||
p_max_pu: "data/nuclear_p_max_pu.csv" # float of file name
|
||||
biomass:
|
||||
p_max_pu: 0.7
|
||||
|
||||
|
||||
load:
|
||||
|
@ -17,9 +17,9 @@ snapshots:
|
||||
inclusive: 'left' # include start, not end
|
||||
|
||||
conventional:
|
||||
unit_commitment: false
|
||||
unit_commitment: true
|
||||
|
||||
solving:
|
||||
options:
|
||||
linearized_unit_commitment: false
|
||||
linearized_unit_commitment: true
|
||||
rolling_horizon: false
|
||||
|
@ -8,7 +8,7 @@ PRODUCTION_PLOTS = [
|
||||
"seasonal_operation_area",
|
||||
]
|
||||
CROSS_BORDER_PLOTS = []
|
||||
PRICES_PLOTS = ["price_bar"]
|
||||
PRICES_PLOTS = ["price_bar", "price_line"]
|
||||
|
||||
|
||||
rule build_electricity_production:
|
||||
|
@ -44,7 +44,6 @@ if __name__ == "__main__":
|
||||
data = pd.concat([historic, optimized], keys=["Historic", "Optimized"], axis=1)
|
||||
data.columns.names = ["Kind", "Country"]
|
||||
|
||||
# %% total production per carrier
|
||||
fig, ax = plt.subplots(figsize=(6, 6))
|
||||
|
||||
df = data.mean().unstack().T
|
||||
@ -52,6 +51,13 @@ if __name__ == "__main__":
|
||||
ax.grid(axis="y")
|
||||
fig.savefig(snakemake.output.price_bar, bbox_inches="tight")
|
||||
|
||||
fig, ax = plt.subplots()
|
||||
|
||||
df = data.groupby(level="Kind", axis=1).mean()
|
||||
df.plot(ax=ax, xlabel="", ylabel="Electricity Price [€/MWh]", alpha=0.8)
|
||||
ax.grid(axis="x")
|
||||
fig.savefig(snakemake.output.price_line, bbox_inches="tight")
|
||||
|
||||
# touch file
|
||||
with open(snakemake.output.plots_touch, "a"):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user