Skip to content

Commit

Permalink
update scenario names for electricity for heats
Browse files Browse the repository at this point in the history
  • Loading branch information
yerbol-akhmetov committed Sep 17, 2024
1 parent e5d55b8 commit 25e5b13
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions plots/plot_electricity_for_heat.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_elec_consumption_for_heat(n):

def plot_elec_consumption_for_heat(dict_elec, horizon):
# set heights for each subplots
if "BAU" in dict_elec.keys():
if "BASE 2023" in dict_elec.keys():
heights = [1.5]
else:
heights = [1.4] * 4
Expand All @@ -77,7 +77,7 @@ def plot_elec_consumption_for_heat(dict_elec, horizon):
# axes = [ax1, ax2, ax3, ax4]
gs = gridspec.GridSpec(len(heights), 1, height_ratios=heights)
axes = [fig.add_subplot(gs[i]) for i in range(len(heights))]
if "BAU" in dict_elec.keys():
if "BASE 2023" in dict_elec.keys():
axes = axes * 4
i=0
for name, elec_demand_f_heating in dict_elec.items():
Expand Down Expand Up @@ -107,7 +107,7 @@ def plot_elec_consumption_for_heat(dict_elec, horizon):
if i < 3:
ax.set_xticks([])
ax.set_xlabel("")
if i == 3 or "BAU" in dict_elec.keys():
if i == 3 or "BASE 2023" in dict_elec.keys():
ticks = [i for i in range(where[0], where[1], 48)]
ax.set_xticks(ticks) # Set the tick positions
ticks = [
Expand All @@ -120,7 +120,7 @@ def plot_elec_consumption_for_heat(dict_elec, horizon):

ax.set_xlim([where[0], where[1]-1])
# change name to LR for 2040 and 2050
name = "Limited Renovation and Electric Heating" if name == "Limited Renovation and Cost-Optimal Heating" and planning_horizon in ["2040", "2050"] else name
name = "Limited Renovation & Electrification" if name == "Limited Renovation" and planning_horizon in ["2040", "2050"] else name
ax.set_title(name, fontsize=10)
i+= 1

Expand Down Expand Up @@ -171,12 +171,12 @@ def plot_elec_consumption_for_heat(dict_elec, horizon):

# define scenario namings
if planning_horizon == BAU_HORIZON:
scenarios = {"BAU": "BAU"}
scenarios = {"BAU": "BASE 2023"}
else:
scenarios = {"flexible": "Optimal Renovation and Cost-Optimal Heating",
"retro_tes": "Optimal Renovation and Electric Heating",
"flexible-moderate": "Limited Renovation and Cost-Optimal Heating",
"rigid": "No Renovation and Electric Heating"}
scenarios = {"flexible": "Widespread Renovation",
"retro_tes": "Widespread Renovation & Electrification",
"flexible-moderate": "Limited Renovation",
"rigid": "Business as Usual & Electrification"}

# load networks
networks = {}
Expand Down

0 comments on commit 25e5b13

Please sign in to comment.