Skip to content

Commit

Permalink
Merge pull request #341 from rl-institut/fix/plot_all_resources
Browse files Browse the repository at this point in the history
Fix by adapting output path handling
  • Loading branch information
MaGering authored Sep 11, 2023
2 parents 8bdc70c + da8760c commit 8ab28c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/plot_conv_pp_scalars.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,7 @@ def plot_grouped_bar(ax, df, color_dict, unit, stacked=False):
# TODO: Check if oemoflex' function can be imported and used here
plot_grouped_bar(ax, df_pivot, COLORS, UNIT)

plt.savefig(target + config.settings.general.plot_filetype, bbox_inches="tight")
# Create the target path according to file type set in settings
target_path = target.split(".")[0] + config.settings.general.plot_filetype

plt.savefig(target_path, bbox_inches="tight")

0 comments on commit 8ab28c7

Please sign in to comment.