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

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

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



Subject: Value goes through top when using two_axes and bar is close to top
In the example below, two_axes is on, show_values is on, there are two datasets (one on each axis), and one of the bars (99) extends close to the top tickmark for its axis (100). Instead of extending the range so that the value can fit nicely in the graph area, the value for the bar partially goes off the top edge of the graph. In fact, if you change the 99 to 100, the bar simply goes all the way to the top, and you can't even see any piece of its value. This problem does not occur when using one-axis mode, even though having an additional dummy axis should not, in principle, affect the first axis. use GD::Graph::bars; my $my_graph = GD::Graph::bars->new; $my_graph->set( two_axes => 1, show_values => 1, ) or warn $my_graph->error; $my_graph->plot( [['foo'],[99],[0]] ) or die $my_graph->error; my $ext = $my_graph->export_format; open OUT, '>', "test2.$ext" or die "Cannot open for write: $!"; binmode OUT; print OUT $my_graph->gd->$ext; close OUT;
Subject: test2.gif
Download test2.gif
image/gif 2.3k
test2.gif
Subject: Value goes through top when bar is close to top
From: justincase [...] yopmail.com
Nevermind, it happens without two_axes too: #!/usr/bin/perl use strict; use warnings; use GD::Graph::bars; my $my_graph = GD::Graph::bars->new; $my_graph->set( show_values => 1, ) or warn $my_graph->error; $my_graph->plot( [['foo'],[99]] ) or die $my_graph->error; my $ext = $my_graph->export_format; open OUT, '>', "test2.$ext" or die "Cannot open for write: $!"; binmode OUT; print OUT $my_graph->gd->$ext; close OUT; On Tue Jul 27 21:54:41 2010, justincase wrote: Show quoted text
> In the example below, two_axes is on, show_values is on, there are two > datasets (one on each axis), and one of the bars (99) extends close to > the top tickmark for its axis (100). Instead of extending the range so > that the value can fit nicely in the graph area, the value for the bar > partially goes off the top edge of the graph. In fact, if you change the > 99 to 100, the bar simply goes all the way to the top, and you can't > even see any piece of its value. > > This problem does not occur when using one-axis mode, even though having > an additional dummy axis should not, in principle, affect the first axis. > > use GD::Graph::bars; > my $my_graph = GD::Graph::bars->new; > $my_graph->set( > two_axes => 1, > show_values => 1, > ) or warn $my_graph->error; > $my_graph->plot( [['foo'],[99],[0]] ) or die $my_graph->error; > my $ext = $my_graph->export_format; > open OUT, '>', "test2.$ext" or die "Cannot open for write: $!"; > binmode OUT; > print OUT $my_graph->gd->$ext; > close OUT;
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.