diff --git a/feedGnuplot.pl b/feedGnuplot.pl index 1a722af..91902a9 100755 --- a/feedGnuplot.pl +++ b/feedGnuplot.pl @@ -515,8 +515,8 @@ sub newCurve $idx = $#curves; } - if($title) { $opts = "title \"$title\" $opts" } - else { $opts = "notitle $opts" } + if(defined $title) { $opts = "title \"$title\" $opts" } + else { $opts = "notitle $opts" } if( defined $newpoint ) {