replace _ with space in gnuplot title
[MojoFacets.git] / 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 };
                }