diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-29 10:07:28 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-29 10:07:28 +0100 |
commit | 06773878629f7436ff1d755f3532a7cfa8afe506 (patch) | |
tree | 960222655b7f106963ce432b35a9058e6f123f12 /plot.sh | |
parent | README: update (diff) | |
download | sorting-algorithms-06773878629f7436ff1d755f3532a7cfa8afe506.tar.gz sorting-algorithms-06773878629f7436ff1d755f3532a7cfa8afe506.zip |
put plots in img/
Diffstat (limited to '')
-rwxr-xr-x | plot.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 } |