Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set the background of the graph to white to make it more legible, Xli…
…ff++
  • Loading branch information
MasterDuke17 committed Aug 28, 2016
1 parent f649e15 commit c401d58
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Benchable.p6
Expand Up @@ -191,7 +191,7 @@ Z: loop (my int $x = 0; $x < @commits - 1; $x++) {
}
}

@commits .= map({ self.get-short-commit($_) });
@commits .= map(self.get-short-commit(*));

if @commits >= ITERATIONS {
my $pfilename = 'plot.svg';
Expand All @@ -201,12 +201,13 @@ Z: loop (my int $x = 0; $x < @commits - 1; $x++) {
my @labels = @valid-commits.map({ "$_ ({ .<mean max stddev>.map({ sprintf("%.2f", $_) }).join(',') with %times{$_} })" });

my $plot = SVG::Plot.new(
width => 1000,
height => 800,
width => 1000,
height => 800,
min-y-axis => 0,
:$title,
values => (@values,),
values => (@values,),
:@labels,
background => 'white',
).plot(:lines);

%graph{$pfilename} = SVG.serialize($plot);
Expand Down

0 comments on commit c401d58

Please sign in to comment.