Skip Menu |

This queue is for tickets about the GD-3DBarGrapher CPAN distribution.

Report information
The Basics
Id: 42277
Status: resolved
Priority: 0/
Queue: GD-3DBarGrapher

People
Owner: Nobody in particular
Requestors: lhrabal [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.9.5
Fixed in: (no value)



Subject: upper range of Y axis
package GD::3DBarGrapher Version: $GD::3DBarGrapher::VERSION = '0.9.5';^M OS: (the bug is on OS independent) FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE FreeBSD 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE Perl -v: This is perl, v5.8.8 built for i386-freebsd-64int Description: I call procedure many times from one program in the cycle. But only first call determine right "upper range of Y axis". After first call the "Y axis" remains the same. Every next call do not determine new "upper range of Y axis". In other words the procedure creategraph is still remembering the first "upper range of Y axis". Example: foreach $Zak (@Zak) { ... my $htmgraf= creategraph(\@graf, \%options); ... } 1st call: max Y value=645, creategraph set upper range of Y axis to 800; 2nd call: max Y value=100, creategraph set upper range of Y axis to 800; 3rd call: max Y value=1000, creategraph set upper range of Y axis to 800; How to fix: Everything is OK when you make next changes in GD/3DBarGrapher.pm: "my (%dims) = getdimensions();^M" -> "my (%dims) = getdimensions(@data);" "sub getdimensions {^M" -> "sub getdimensions { my (@data)=@_;"
Many thanks for reporting this problem. I noticed while reproducing the bug that background gradient fills were only being drawn on the first graph created in a loop. There may well have been other anomalies too, so I've consequently restructured the script to solve both problems. Version 0.9.6 has been uploaded so should be available on CPAN within a couple of days. On Sat Jan 10 07:22:47 2009, lhrabal wrote: Show quoted text
> package GD::3DBarGrapher > Version: $GD::3DBarGrapher::VERSION = '0.9.5';^M > > OS: (the bug is on OS independent) > FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE > FreeBSD 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE > > Perl -v: > This is perl, v5.8.8 built for i386-freebsd-64int > > Description: > I call procedure many times from one program in the cycle. But only > first call determine right "upper range of Y axis". After first call
the Show quoted text
> "Y axis" remains the same. Every next call do not determine new "upper > range of Y axis". In other words the procedure creategraph is still > remembering the first "upper range of Y axis". > > Example: > foreach $Zak (@Zak) { > ... > my $htmgraf= creategraph(\@graf, \%options); > ... > } > > 1st call: max Y value=645, creategraph set upper range of Y axis to
800; Show quoted text
> 2nd call: max Y value=100, creategraph set upper range of Y axis to
800; Show quoted text
> 3rd call: max Y value=1000, creategraph set upper range of Y axis to
800; Show quoted text
> > How to fix: > Everything is OK when you make next changes in GD/3DBarGrapher.pm: > > "my (%dims) = getdimensions();^M" -> "my (%dims) = getdimensions
(@data);" Show quoted text
> "sub getdimensions {^M" -> "sub getdimensions { my (@data)=@_;" > >