Adjust plotting for new CCS scheme

This commit is contained in:
Tom Brown 2019-12-19 11:39:38 +01:00
parent c525e2a6ae
commit eb2fa1b24e
2 changed files with 9 additions and 2 deletions

View File

@ -160,7 +160,7 @@ plotting:
costs_threshold: 1 costs_threshold: 1
energy_max: 15000. energy_max: 20000.
energy_min: -15000. energy_min: -15000.
energy_threshold: 50. energy_threshold: 50.
@ -234,6 +234,7 @@ plotting:
"DAC" : "#E74C3C" "DAC" : "#E74C3C"
"co2 stored" : "#123456" "co2 stored" : "#123456"
"CO2 sequestration" : "#123456" "CO2 sequestration" : "#123456"
"CCS" : "k"
"co2" : "#123456" "co2" : "#123456"
"co2 vent" : "#654321" "co2 vent" : "#654321"
"solid biomass for industry co2 from atmosphere" : "#654321" "solid biomass for industry co2 from atmosphere" : "#654321"
@ -277,6 +278,7 @@ plotting:
"industry new electricity" : "#222222" "industry new electricity" : "#222222"
"process emissions to stored" : "#444444" "process emissions to stored" : "#444444"
"process emissions to atmosphere" : "#888888" "process emissions to atmosphere" : "#888888"
"process emissions" : "#222222"
"transport fuel cell" : "#AAAAAA" "transport fuel cell" : "#AAAAAA"
"biogas" : "#800000" "biogas" : "#800000"
"solid biomass" : "#DAA520" "solid biomass" : "#DAA520"

View File

@ -21,7 +21,8 @@ def rename_techs(label):
rename_if_contains_dict = {"water tanks" : "hot water storage", rename_if_contains_dict = {"water tanks" : "hot water storage",
"retrofitting" : "building retrofitting", "retrofitting" : "building retrofitting",
"H2" : "hydrogen storage", "H2" : "hydrogen storage",
"battery" : "battery storage"} "battery" : "battery storage",
"CCS" : "CCS"}
rename = {"solar" : "solar PV", rename = {"solar" : "solar PV",
"Sabatier" : "methanation", "Sabatier" : "methanation",
@ -133,6 +134,8 @@ def plot_energy():
print(df.sum()) print(df.sum())
print(df)
new_index = (preferred_order&df.index).append(df.index.difference(preferred_order)) new_index = (preferred_order&df.index).append(df.index.difference(preferred_order))
new_columns = df.columns.sort_values() new_columns = df.columns.sort_values()
@ -140,6 +143,8 @@ def plot_energy():
fig, ax = plt.subplots() fig, ax = plt.subplots()
fig.set_size_inches((12,8)) fig.set_size_inches((12,8))
print(df.loc[new_index,new_columns])
df.loc[new_index,new_columns].T.plot(kind="bar",ax=ax,stacked=True,color=[snakemake.config['plotting']['tech_colors'][i] for i in new_index]) df.loc[new_index,new_columns].T.plot(kind="bar",ax=ax,stacked=True,color=[snakemake.config['plotting']['tech_colors'][i] for i in new_index])