diff --git a/utils/cgiplotNLT.pl b/utils/cgiplotNLT.pl index d9b61d813f9..0360e4120d8 100755 --- a/utils/cgiplotNLT.pl +++ b/utils/cgiplotNLT.pl @@ -27,6 +27,7 @@ $| = 1; print "Content-type: image/png", "\n\n"; open CMDSTREAM, "|gnuplot"; +#open CMDSTREAM, "|echo"; print CMDSTREAM "set terminal png\n"; print CMDSTREAM "set output\n"; @@ -36,7 +37,7 @@ print CMDSTREAM "\nplot"; for ($iter = 0; $iter < $count; $iter++) { if ($iter) { print CMDSTREAM ","; } - print CMDSTREAM " '-' using 1:2 with lines"; + print CMDSTREAM " '-' using 1:2 title \"" . $q->param('t' . $iter) . "," . $q->param('n' . $iter) . "\"with lines"; } print CMDSTREAM "\n"; diff --git a/utils/webNLT.pl b/utils/webNLT.pl index 7f55b60187c..fb29fd292e2 100755 --- a/utils/webNLT.pl +++ b/utils/webNLT.pl @@ -61,15 +61,18 @@ else { my @names = $q->param('name'); my @tests = $q->param('test'); + print "

"; + print join "
", @names; + print "

"; + print join "
", @tests; + print "

"; $str = "pwd=" . $q->param('pwd'); $count = 0; - while (@names) + foreach $n (@names) { - $n = pop @names; - while (@tests) + foreach $t (@tests) { - $t = pop @tests; - $str .= "&t$count=$t&n$count=$n"; + $str = "$str&t$count=$t&n$count=$n"; $count++; } }