Skip to content

Commit 1cbe0f6

Browse files
committed
improve plots by swapping colors
1 parent bcb4ec8 commit 1cbe0f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/pypsa-de/plot_scenario_comparison.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ def scenario_plot(df, output_dir, var):
3434
)
3535

3636
dfs = []
37-
for file in snakemake.input.exported_variables:
37+
fns = snakemake.input.exported_variables
38+
if "regret_variables" in fns[0]:
39+
# reorder indices of fns as 0312
40+
fns = [fns[i] for i in [0, 3, 2, 1] if i < len(fns)]
41+
for file in fns:
3842
_df = pd.read_excel(
3943
file, index_col=list(range(5)), sheet_name="data"
4044
).droplevel(["Model", "Region"])

0 commit comments

Comments
 (0)