diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-06 21:58:18 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-06 21:58:18 +0200 |
| commit | fb0e8561b974e002eb06c233cb216e2d744d23d4 (patch) | |
| tree | 36a0220d47123185aed5ea06c91b931e5dba6978 | |
| parent | sort out scripts into proper directories (diff) | |
| download | sorting-algorithms-fb0e8561b974e002eb06c233cb216e2d744d23d4.tar.gz sorting-algorithms-fb0e8561b974e002eb06c233cb216e2d744d23d4.zip | |
img/ -> out/
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | scripts/plot.bat | 4 | ||||
| -rwxr-xr-x | scripts/plot.sh | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -1,3 +1,3 @@ +/out/ __pycache__/ *.png -/img/ diff --git a/scripts/plot.bat b/scripts/plot.bat index c76c43a..466d173 100644 --- a/scripts/plot.bat +++ b/scripts/plot.bat @@ -30,14 +30,14 @@ if "%~4" == "" ( ) cd .. -mkdir /p img +mkdir /p out for %%i in (best average worst) do ( plot.py "%algorithm%" ^ --input "%%i" ^ --min "%min%" --max "%max%" ^ --iterations "%iterations%" ^ - --output "img\%algorithm%_%iterations%_%%i_%min%_%max%.png" || exit /b !errorlevel! + --output "out\%algorithm%_%iterations%_%%i_%min%_%max%.png" || exit /b !errorlevel! ) exit /b 0 diff --git a/scripts/plot.sh b/scripts/plot.sh index d310dcd..6b36f4a 100755 --- a/scripts/plot.sh +++ b/scripts/plot.sh @@ -33,7 +33,7 @@ main() { [ "$#" -ge 4 ] && max="$4" cd -- "$script_dir/.." - mkdir -p -- img + mkdir -p -- out local input_kind for input_kind in best average worst; do @@ -43,7 +43,7 @@ main() { --input "$input_kind" \ --min "$min" --max "$max" \ --iterations "$iterations" \ - --output "img/$output_name" + --output "out/$output_name" done } |
