From d1ec685694aff1c0fa87b47fb2ea4775dacf1ea7 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Wed, 15 Sep 2010 21:55:44 -0700 Subject: [PATCH] I now check for defined-ness of the legend instead of its truth. As a result I can now have a '0' legend --- feedGnuplot.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {