} else { if ($measurement == 'cycles') { $graph->title = "\"{$generatorName} graph {$columnName} \\n(Clock cycles)\""; } else { $graph->title = "\"{$generatorName} graph {$columnName} \\n(Abs. time)\""; } } $_algorithms = $algorithms; if ($generator == 'random_list') { $_algorithms = array($veb, $redblack); $graph->xrange = '[0:112000]'; } $match = $generator; if ($generator == 'random') { $match = "random\t"; } foreach ($_algorithms as $algo) { $plot = new Plot(); $plot->datafile = "< grep \"{$algo->selector}_{$match}\" {$file}"; $plot->datamodifiers = "using 2:{$column}"; $plot->style = "{$stdline} '{$algo->color}'"; $plot->title = $algo->name; $graph->addPlot($plot); } // $graph->output($png); // $graph->terminal = "epslatex linewidth 3"; // $graph->output($eps); echo $graph; } } }