diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-17 23:32:44 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-17 23:32:44 +0300 |
commit | 185a9e4f00d9269a3711ada8ce5daf9de7a8173e (patch) | |
tree | 87d96beb0eab3e5f3ef739042bd3492c44a98e38 /plot.bat | |
parent | median: quicksort instead of .sort() (diff) | |
download | sorting-algorithms-185a9e4f00d9269a3711ada8ce5daf9de7a8173e.tar.gz sorting-algorithms-185a9e4f00d9269a3711ada8ce5daf9de7a8173e.zip |
refactoring + better plot captions
Diffstat (limited to 'plot.bat')
-rw-r--r-- | plot.bat | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -4,7 +4,7 @@ @setlocal enabledelayedexpansion -@set DEFAULT_REPETITIONS=100 +@set DEFAULT_ITERATIONS=100 @set DEFAULT_MIN=0 @set DEFAULT_MAX=200 @@ -12,9 +12,9 @@ @set algorithm=%1 @if not E%2 == E ( - set repetitions=%2 + set iterations=%2 ) else ( - set repetitions=%DEFAULT_REPETITIONS% + set iterations=%DEFAULT_ITERATIONS% ) @if not E%3 == E ( set min=%3 @@ -27,18 +27,18 @@ set max=%DEFAULT_MAX% ) -plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%repetitions%" ^ - -i sorted -o "%algorithm%_%repetitions%_sorted_%min%_%max%.png" ^ +plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%iterations%" ^ + -i ascending -o "%algorithm%_%iterations%_ascending_%min%_%max%.png" ^ || exit /b !errorlevel! -plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%repetitions%" ^ - -i randomized -o "%algorithm%_%repetitions%_randomized_%min%_%max%.png" ^ +plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%iterations%" ^ + -i random -o "%algorithm%_%iterations%_random_%min%_%max%.png" ^ || exit /b !errorlevel! -plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%repetitions%" ^ - -i reversed -o "%algorithm%_%repetitions%_reversed_%min%_%max%.png" ^ +plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%iterations%" ^ + -i descending -o "%algorithm%_%iterations%_descending_%min%_%max%.png" ^ || exit /b !errorlevel! @exit /b :print_usage: -@echo Usage: %0 ALGORITHM [REPETITIONS=%DEFAULT_REPETITIONS% [MIN=%DEFAULT_MIN% [MAX=%DEFAULT_MAX%]]] +@echo Usage: %0 ALGORITHM [ITERATIONS=%DEFAULT_ITERATIONS% [MIN=%DEFAULT_MIN% [MAX=%DEFAULT_MAX%]]] @exit /b 1 |