diff --git a/scripts/plot_conv_pp_scalars.py b/scripts/plot_conv_pp_scalars.py index db122650..7fbf7a04 100644 --- a/scripts/plot_conv_pp_scalars.py +++ b/scripts/plot_conv_pp_scalars.py @@ -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")