plot: correct h2 map legend overlap, change aggregation of techs
This commit is contained in:
parent
a6ccfc8af9
commit
d26dbcb7fd
@ -19,9 +19,11 @@ def rename_techs_tyndp(tech):
|
|||||||
tech = rename_techs(tech)
|
tech = rename_techs(tech)
|
||||||
if "heat pump" in tech or "resistive heater" in tech:
|
if "heat pump" in tech or "resistive heater" in tech:
|
||||||
return "power-to-heat"
|
return "power-to-heat"
|
||||||
elif tech in ["methanation", "hydrogen storage", "helmeth"]:
|
elif tech in ["H2 Electrolysis", "methanation", "helmeth", "H2 liquefaction"]:
|
||||||
return "power-to-gas"
|
return "power-to-gas"
|
||||||
elif tech in ["OCGT", "CHP", "gas boiler"]:
|
elif tech == "H2":
|
||||||
|
return "H2 storage"
|
||||||
|
elif tech in ["OCGT", "CHP", "gas boiler", "H2 Fuel Cell"]:
|
||||||
return "gas-to-power/heat"
|
return "gas-to-power/heat"
|
||||||
elif "solar" in tech:
|
elif "solar" in tech:
|
||||||
return "solar"
|
return "solar"
|
||||||
@ -29,6 +31,8 @@ def rename_techs_tyndp(tech):
|
|||||||
return "power-to-liquid"
|
return "power-to-liquid"
|
||||||
elif "offshore wind" in tech:
|
elif "offshore wind" in tech:
|
||||||
return "offshore wind"
|
return "offshore wind"
|
||||||
|
elif "CC" in tech or "sequestration" in tech:
|
||||||
|
return "CCS"
|
||||||
else:
|
else:
|
||||||
return tech
|
return tech
|
||||||
|
|
||||||
@ -283,7 +287,7 @@ def plot_h2_map(network):
|
|||||||
l2 = ax.legend(
|
l2 = ax.legend(
|
||||||
handles, labels,
|
handles, labels,
|
||||||
loc="upper left",
|
loc="upper left",
|
||||||
bbox_to_anchor=(0.01, 1.01),
|
bbox_to_anchor=(-0.03, 1.01),
|
||||||
labelspacing=1.0,
|
labelspacing=1.0,
|
||||||
frameon=False,
|
frameon=False,
|
||||||
title='Electrolyzer capacity',
|
title='Electrolyzer capacity',
|
||||||
|
@ -34,11 +34,11 @@ def rename_techs(label):
|
|||||||
rename_if_contains_dict = {
|
rename_if_contains_dict = {
|
||||||
"water tanks": "hot water storage",
|
"water tanks": "hot water storage",
|
||||||
"retrofitting": "building retrofitting",
|
"retrofitting": "building retrofitting",
|
||||||
"H2 Electrolysis": "hydrogen storage",
|
# "H2 Electrolysis": "hydrogen storage",
|
||||||
"H2 Fuel Cell": "hydrogen storage",
|
# "H2 Fuel Cell": "hydrogen storage",
|
||||||
"H2 pipeline": "hydrogen storage",
|
# "H2 pipeline": "hydrogen storage",
|
||||||
"battery": "battery storage",
|
"battery": "battery storage",
|
||||||
"CC": "CC"
|
# "CC": "CC"
|
||||||
}
|
}
|
||||||
|
|
||||||
rename = {
|
rename = {
|
||||||
@ -90,6 +90,7 @@ preferred_order = pd.Index([
|
|||||||
"offshore wind (DC)",
|
"offshore wind (DC)",
|
||||||
"solar PV",
|
"solar PV",
|
||||||
"solar thermal",
|
"solar thermal",
|
||||||
|
"solar rooftop",
|
||||||
"solar",
|
"solar",
|
||||||
"building retrofitting",
|
"building retrofitting",
|
||||||
"ground heat pump",
|
"ground heat pump",
|
||||||
|
Loading…
Reference in New Issue
Block a user