From 06773878629f7436ff1d755f3532a7cfa8afe506 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 29 Nov 2023 10:07:28 +0100 Subject: put plots in img/ --- plot.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plot.sh') diff --git a/plot.sh b/plot.sh index 884661c..60bad3a 100755 --- a/plot.sh +++ b/plot.sh @@ -32,15 +32,17 @@ main() { local max="$default_max" [ "$#" -ge 4 ] && max="$4" + mkdir -p -- "$script_dir/img" + local input_kind for input_kind in best average worst; do - local output_path="$script_dir/${algorithm}_${iterations}_${input_kind}_${min}_${max}.png" + local output_name="${algorithm}_${iterations}_${input_kind}_${min}_${max}.png" python "$script_dir/plot.py" \ "$algorithm" \ --input "$input_kind" \ --min "$min" --max "$max" \ --iterations "$iterations" \ - --output "$output_path" + --output "$script_dir/img/$output_name" done } -- cgit v1.2.3