aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plot.bat
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-11-29 10:07:28 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-11-29 10:07:28 +0100
commit06773878629f7436ff1d755f3532a7cfa8afe506 (patch)
tree960222655b7f106963ce432b35a9058e6f123f12 /plot.bat
parentREADME: update (diff)
downloadsorting-algorithms-06773878629f7436ff1d755f3532a7cfa8afe506.tar.gz
sorting-algorithms-06773878629f7436ff1d755f3532a7cfa8afe506.zip
put plots in img/
Diffstat (limited to 'plot.bat')
-rw-r--r--plot.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/plot.bat b/plot.bat
index ba89772..3a2f22d 100644
--- a/plot.bat
+++ b/plot.bat
@@ -29,12 +29,14 @@ if "%~4" == "" (
set "max=%~4"
)
+mkdir /p img
+
for %%i in (best average worst) do (
plot.py "%algorithm%" ^
--input "%%i" ^
--min "%min%" --max "%max%" ^
--iterations "%iterations%" ^
- --output "%algorithm%_%iterations%_%%i_%min%_%max%.png" || exit /b !errorlevel!
+ --output "img\%algorithm%_%iterations%_%%i_%min%_%max%.png" || exit /b !errorlevel!
)
exit /b 0