Skip to content

Commit

Permalink
correct wrong sign
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGeis committed Jan 16, 2025
1 parent 542864d commit 29d8c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/scripts/plot_ariadne_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def plot_h2_trade(
df.loc["Trade|Secondary Energy|Hydrogen|Volume"] / TWh2PJ
) # 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 @@ -52,7 +52,7 @@ def plot_elec_trade(
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 29d8c8c

Please sign in to comment.