@rem Copyright 2015 Egor Tensin @rem This file is licensed under the terms of the MIT License. @rem See LICENSE.txt for details. @setlocal enabledelayedexpansion @set DEFAULT_REPETITIONS=100 @set DEFAULT_MIN=0 @set DEFAULT_MAX=200 @if E%1 == E goto :print_usage @set algorithm=%1 @if not E%2 == E ( set repetitions=%2 ) else ( set repetitions=%DEFAULT_REPETITIONS% ) @if not E%3 == E ( set min=%3 ) else ( set min=%DEFAULT_MIN% ) @if not E%4 == E ( set max=%4 ) else ( set max=%DEFAULT_MAX% ) plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%repetitions%" ^ -i sorted -o "%algorithm%_%repetitions%_sorted_%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" ^ || exit /b !errorlevel! plot.py -l "%algorithm%" -a "%min%" -b "%max%" -r "%repetitions%" ^ -i reversed -o "%algorithm%_%repetitions%_reversed_%min%_%max%.png" ^ || exit /b !errorlevel! @exit /b :print_usage: @echo Usage: %0 ALGORITHM [REPETITIONS=%DEFAULT_REPETITIONS% [MIN=%DEFAULT_MIN% [MAX=%DEFAULT_MAX%]]] @exit /b 1