Skip to content

Commit

Permalink
confusion is real
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGeis committed Jan 16, 2025
1 parent 29d8c8c commit cd08b65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workflow/scripts/plot_ariadne_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def plot_h2_trade(
):
# load data and convert to TWh
h2_balance = (
df.loc["Trade|Secondary Energy|Hydrogen|Volume"] / TWh2PJ
df.loc["Trade|Secondary Energy|Hydrogen|Volume"] / TWh2PJ * -1
) # exports-imports
h2_import = df.loc["Trade|Secondary Energy|Hydrogen|Gross Import|Volume"] / TWh2PJ
h2_export = h2_balance + h2_import
h2_export = h2_balance - h2_import

fig, ax = plt.subplots(figsize=(6, 4))
ax.bar(h2_import.columns, h2_import.loc["PJ/yr"], color="#f081dc", label="Import")
Expand Down Expand Up @@ -47,12 +47,12 @@ def plot_elec_trade(
):
# load data and convert to TWh
elec_balance = (
df.loc["Trade|Secondary Energy|Electricity|Volume"] / TWh2PJ
df.loc["Trade|Secondary Energy|Electricity|Volume"] / TWh2PJ *-1
) # exports-imports
elec_import = (
df.loc["Trade|Secondary Energy|Electricity|Gross Import|Volume"] / TWh2PJ
)
elec_export = elec_balance + elec_import
elec_export = elec_balance - elec_import

fig, ax = plt.subplots(figsize=(6, 4))
ax.bar(
Expand Down

0 comments on commit cd08b65

Please sign in to comment.