replace _ with space in gnuplot title
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 11 Jun 2023 10:32:23 +0000 (12:32 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 11 Jun 2023 10:32:23 +0000 (12:32 +0200)
lib/MojoFacets/Gnuplot.pm

index 1af3cc1..ae8d5f3 100644 (file)
@@ -41,6 +41,7 @@ sub index {
                my @plot;
                foreach ( 1 .. $#$columns ) {
                        my $title = $columns->[$_];
+                       $title =~ s/_/ /g;
                        my $n = $_ + 1 + $spaces;
                        push @plot, qq|"$dir/$url" using 1:$n title "$title" with $with| unless $hide_columns->{ $title };
                }