File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ package Benchable;
25
25
use parent ' Perl6IRCBotable' ;
26
26
27
27
use Cwd qw( cwd abs_path) ;
28
+ use Encode qw( encode_utf8 decode_utf8) ;
28
29
use File::Temp qw( tempfile tempdir) ;
29
30
use List::Util qw( min) ;
30
31
use Chart::Gnuplot;
@@ -96,7 +97,12 @@ sub process_message {
96
97
my ($gfh , $gfilename ) = tempfile(SUFFIX => ' .svg' , UNLINK => 1);
97
98
my $chart = Chart::Gnuplot-> new(
98
99
output => $gfilename ,
99
- terminal => ' svg mousing' ,
100
+ encoding => ' utf8' ,
101
+ title => {
102
+ text => encode_utf8($body =~ s / "/ \\ "/ g ),
103
+ enhanced => ' off' ,
104
+ },
105
+ # terminal => 'svg mousing',
100
106
xlabel => ' Commits' ,
101
107
ylabel => ' Seconds' ,
102
108
xtics => { labels => [map { " '$commits [$_ ]' $_ " } 0..$#commits ], },
You can’t perform that action at this time.
0 commit comments