Skip Menu |

This queue is for tickets about the Bio-Graphics CPAN distribution.

Report information
The Basics
Id: 45532
Status: resolved
Priority: 0/
Queue: Bio-Graphics

People
Owner: LDS [...] cpan.org
Requestors: dmaszle [...] mendelbio.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.93
Fixed in: (no value)



Subject: _draw_scale carps error when min == max
In Glyph::xyplot, when the wig is very flat, for example with a smoothed or filtered output, min == max and an ugly error message is produced at the end of _draw_scale() instead of an empty plot. Something like the following removes the error, but produced an unfortunate looking plot: Replace: while ($height/(($max-$min)/$interval) < 2) { $interval *= 10 } my $y_scale = $height/(($max-$min)/$interval); With: my $y_scale = $height*$interval; # probably a better choice than this if ($max-$min != 0) { while ($height/(($max-$min)/$interval) < 2) { $interval *= 10 } $y_scale = $height/(($max-$min)/$interval); }
Fixed in version 1.94.