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