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: 40745
Status: open
Priority: 0/
Queue: GDGraph

People
Owner: Nobody in particular
Requestors: perluser [...] mikus.sk
Cc:
AdminCc:

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



Subject: two_axes works only if numeric
Date: Fri, 7 Nov 2008 16:04:54 +0100
To: bug-GDGraph [...] rt.cpan.org
From: Andrej Mikus <perluser [...] mikus.sk>
* a concise description of the buggy behavior and how it differs * from what you expected, Noticed a problem that my values for Y2 axis are not printed if two_axes option is not numeric but a different true value (string). Based on the documentation and comments in the code I expect that true/false is significant, not the value itself. For some reason the value is used in numeric calculations leading to a bug. * the versions of Perl, GD::Graph and GD that you are using, $ perl -MGD::Graph -e 'print qq/$GD::Graph::VERSION\n/' 1.44 * a short demonstration script that shows the bug in action, two_axes => $p_col{$alias}, use_axis => \@ua, y2_label => '%', * a patch that fixes it. :-) *** axestype.pm.orig Tue Nov 4 09:48:17 2008 --- axestype.pm Fri Nov 7 15:54:55 2008 *************** *** 662,668 **** # Do some sanity checks $s->{two_axes} = 0 if $s->{_data}->num_sets < 2 || $s->{two_axes} < 0; ! $s->{two_axes} = 1 if $s->{two_axes} > 1; delete $s->{y_label2} unless $s->{two_axes}; --- 662,668 ---- # Do some sanity checks $s->{two_axes} = 0 if $s->{_data}->num_sets < 2 || $s->{two_axes} < 0; ! $s->{two_axes} = 1 if $s->{two_axes}; delete $s->{y_label2} unless $s->{two_axes}; * Workaround: two_axes => $p_col{$alias} && 1, use_axis => \@ua, y2_label => '%',
Subject: New GD::Graph co-maintainer and new release on CPAN
Hello, You recieved this message as you filed a bug report or feature request against GD::Graph module on CPAN. My name is Ruslan and I'm new co-maintainer of the module. I've updated the module to 1.45 with doc changes and released it to CPAN. See distribution status [1]. I have TODO list for several releases, so if your ticket was a patch then turning it into a nice pull request may expedite inclusion :) [1] http://search.cpan.org/~ruz/GDGraph-1.45/Graph.pm#DISTRIBUTION_STATUS -- Best regards, Ruslan.