Skip Menu |

This queue is for tickets about the GDGraph CPAN distribution.

Maintainer(s)' notes

There are plenty of good ideas of what people can do published here on the queue. Turning a patch from the tracker into a pull request is not one of them. In order to get maintainers' attention way more quickier, PR should have at least a sample included. We know it's hard to test images generating software, but it doesn't mean we can not test numbers produced by intermediate algorithms used to generate these images, so either a test or a sample.

Report information
The Basics
Id: 2218
Status: resolved
Priority: 1/
Queue: GDGraph

People
Owner: bwarfield [...] cpan.org
Requestors: mverb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.39
Fixed in: 1.4307



Subject: GD::Graph pie leak
From: Richard Sonnen <sonnen@frii.com> Date: Wed, 12 Mar 2003 09:40:56 -0700 To: martien.verbruggen@tradingpost.com.au Subject: GD::Graph pie leak First I'd like to thank you for all your work on the GD::Graph modules. They work beautifully, and have made many of my projects much easier. I have bumped into a minor graphic bug with leaking color on pie charts that I thought I'd pass along. On some 3D pie charts the fill color from one of the pie sections will spill out to the edge of the bounding box for the chart. This code will reliably produce it using version 1.39 of your modules, GD 2.0.11 and FreeBSD version 4.7-RELEASE-p6: ---- #!/usr/bin/perl use strict; use warnings; use GD::Graph::pie; my $graph = GD::Graph::pie->new(200, 200); my $img = $graph->plot([['slice 1', 'slice 2'], [28, 100]]); print $img->png(); ---- A sample of the image is attached. Please let me know if you need any more info, or if I can be of any assistance. Thanks again for a great set of modules. Richard Sonnen -- Richard Sonnen | Front Range Internet, Inc. sonnen@frii.net | www.frii.com info@frii.com Web Programmer | 970-212-0731 800-935-6527
Download leak.png
image/png 2k
leak.png
From: gdaye [...] 163.net
[MVERB - Wed Mar 12 17:32:11 2003]: Show quoted text
> From: Richard Sonnen <sonnen@frii.com> > Date: Wed, 12 Mar 2003 09:40:56 -0700 > To: martien.verbruggen@tradingpost.com.au > Subject: GD::Graph pie leak > > First I'd like to thank you for all your work on the GD::Graph > modules. They work beautifully, and have made many of my projects > much easier. > > I have bumped into a minor graphic bug with leaking color on pie > charts that I thought I'd pass along. On some 3D pie charts the fill > color from one of the pie sections will spill out to the edge of the > bounding box for the chart. > > This code will reliably produce it using version 1.39 of your > modules, GD 2.0.11 and FreeBSD version 4.7-RELEASE-p6: > > ---- > #!/usr/bin/perl > > use strict; > use warnings; > > use GD::Graph::pie; > > my $graph = GD::Graph::pie->new(200, 200); > > my $img = $graph->plot([['slice 1', 'slice 2'], [28, 100]]); > > print $img->png(); > ---- > > A sample of the image is attached. > > Please let me know if you need any more info, or if I can be of any > assistance. Thanks again for a great set of modules. > > Richard Sonnen > > -- > Richard Sonnen | Front Range Internet,
Inc. Show quoted text
> sonnen@frii.net | www.frii.com
info@frii.com Show quoted text
> Web Programmer | 970-212-0731 800-935-
6527 you can add a string is "-1" to the pie.pm at 294 lines,67cols ,then the leak will be good!
From: gdaye [...] 163.net
Show quoted text
> you can add a string is "-1" to the pie.pm at 294 lines,67cols ,then > the leak will be good!
or delete the "$self->{pie_height}/2" ;add the "+1"
From: gdaye [...] 163.net
[guest - Sun Oct 5 06:13:58 2003]: Show quoted text
> > you can add a string is "-1" to the pie.pm at 294 lines,67cols ,then > > the leak will be good!
> or delete the "$self->{pie_height}/2" ;add the "+1"
or delete "$self->{pie_height}/2" at 294lines,45cols ,add "(abs($xe- $fill->[1])<3?1:$self->{pie_height}>2?2:1)" ,try it !ok?