Falsecolor Problem

Hi Axel, hi list,

I just came across a strange behaviour of falsecolor:
the last version of falsecolor.pl (as of January 18) does not show the last
digit of the
lowest value in the legend. I just wanted to get a scale -s 100 -n 10 (i.e.
5, 15, ..., 95)
and here the last line "5" (the only digit in this case) is removed.

I don't work with perl and thus don't really have a clue what's going on.
However,
replacing the lines 280-282

    open PSIGN, "| psign -s -.15 -cf 1 1 1 -cb 0 0 0 -h $sheight > $slabpic";
    print PSIGN "$text";
    close PSIGN;

with the lines as in the version before (v. 2.5)

    $cmd = "echo '$text' | psign -s -.15 -cf 1 1 1 -cb 0 0 0";
    $cmd .= " -h $sheight > $slabpic";
    system $cmd;

solves the problem...

Cheers,
David

Hi David,

Thank you for spotting this bug. It will be fixed in the next HEAD. The bug was caused by a missing new-line in the print statement on line.281:

print PSIGN"$text\n";

It has now been reverted to the older, simpler version which you found in v 2.5, where a system call was used instead.

Cheers

Axel

···

I just came across a strange behaviour of falsecolor:
the last version of falsecolor.pl <http://falsecolor.pl> (as of January
18) does not show the last digit of the
lowest value in the legend. I just wanted to get a scale -s 100 -n 10
(i.e. 5, 15, ..., 95)
and here the last line "5" (the only digit in this case) is removed.

I don't work with perl and thus don't really have a clue what's going
on. However,
replacing the lines 280-282

     open PSIGN,"| psign -s -.15 -cf 1 1 1 -cb 0 0 0 -h $sheight> $slabpic";
     print PSIGN"$text";
     close PSIGN;

with the lines as in the version before (v. 2.5)

     $cmd ="echo'$text' | psign -s -.15 -cf 1 1 1 -cb 0 0 0";
     $cmd .=" -h $sheight> $slabpic";
     system $cmd;

solves the problem...

Cheers,
David

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

I (heart) Perl.

Not.

Randolph

···

On 2012-03-30 17:28:22 +0000, Axel Jacobs said:

Hi David,

Thank you for spotting this bug. It will be fixed in the next HEAD. The
bug was caused by a missing new-line in the print statement on line.281:

print PSIGN"$text\n";

It has now been reverted to the older, simpler version which you found
in v 2.5, where a system call was used instead.

Cheers

Axel

I just came across a strange behaviour of falsecolor:
the last version of falsecolor.pl <http://falsecolor.pl> (as of January
18) does not show the last digit of the
lowest value in the legend. I just wanted to get a scale -s 100 -n 10
(i.e. 5, 15, ..., 95)
and here the last line "5" (the only digit in this case) is removed.

I don't work with perl and thus don't really have a clue what's going
on. However,
replacing the lines 280-282

open PSIGN,"| psign -s -.15 -cf 1 1 1 -cb 0 0 0 -h $sheight> $slabpic";
print PSIGN"$text";
close PSIGN;

with the lines as in the version before (v. 2.5)

$cmd ="echo'$text' | psign -s -.15 -cf 1 1 1 -cb 0 0 0";
$cmd .=" -h $sheight> $slabpic";
system $cmd;

solves the problem...

Cheers,
David

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

--
Randolph M. Fritz