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: 23589
Status: rejected
Priority: 0/
Queue: GDGraph

People
Owner: bwarfield [...] cpan.org
Requestors: scherer [...] doit.wisc.edu
Cc:
AdminCc:

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



Subject: "skip_undef" option does not work in GD::Graph
In GD::Graph (Perl module), setting the "skip_undef" option for "graphs with lines" (and "graphs with points") is NOT working. When I set the skip_undef option to true, as in $my_graph -> set ( skip_undef => 1 ) ; nothing happens. All the lines and points still appear in the graph! They are NOT skipped as the document says they should. Instead of being suppressed, the data points containing "undef" actually appear at the y = 0 position with the "undef" value. Other graphing options do work ok, but no matter what I tried, I could not get this one to work. Thanks in advance for any help you can provide on the problem.
From: scherer [...] doit.wisc.edu
On Fri Nov 24 07:07:20 2006, vscherer wrote: Show quoted text
> In GD::Graph (Perl module), setting the "skip_undef" option > for "graphs with lines" (and "graphs with points") is NOT working. > > When I set the skip_undef option to true, as in > > $my_graph -> set ( skip_undef => 1 ) ; > > nothing happens. All the lines and points still appear in the
graph! Show quoted text
> They are NOT skipped as the document says they should. > > Instead of being suppressed, the data points containing "undef" > actually appear at the y = 0 position with the "undef" value. > > Other graphing options do work ok, but no matter what I tried, > I could not get this one to work. > > Thanks in advance for any help you can provide on the problem.
Since encountering this problem bug, I've done some further checking. Using the various $data->get_min_max_... methods, I found that GD::Graph is treating data points with Y values = "undef" as if that value were the "minimum" Y value (instead of bypassing and skipping the value). It also seems to associate the "undef" Y's with a zero value. -- V.S.
From: scherer [...] doit.wisc.edu
On Fri Nov 24 07:07:20 2006, vscherer wrote: Show quoted text
> In GD::Graph (Perl module), setting the "skip_undef" option > for "graphs with lines" (and "graphs with points") is NOT working. > > When I set the skip_undef option to true, as in > > $my_graph -> set ( skip_undef => 1 ) ; > > nothing happens. All the lines and points still appear in the
graph! Show quoted text
> They are NOT skipped as the document says they should. > > Instead of being suppressed, the data points containing "undef" > actually appear at the y = 0 position with the "undef" value. > > Other graphing options do work ok, but no matter what I tried, > I could not get this one to work. > > Thanks in advance for any help you can provide on the problem.
Haven't heard anything on this yet. Can anyone help?
Sorry, the time to track down and fix new bugs has not been especially available the last few months. I'll look into this when I get the chance, but it may take a little while--it's not a part of the code I've done much work with myself. On Thu Dec 21 17:25:58 2006, vscherer wrote: Show quoted text
> > > Haven't heard anything on this yet. Can anyone help?
I'm very sorry to give you a dusty answer after such a long wait, but I can't actually reproduce your bug. If you look at sample 41 in the "samples" directory, you should find a working example of this option in use--it works for me fairly precisely as documented. Further, when it's turned off, the behavior is not what you describe: it draws a line between the points before and after the undefined one, skipping over the column where the undefined point would appear. Is it possible that you have code somewhere outside the calls to GD::Graph that is inadvertently setting your undef data points to defined-but-0? It's the only explanation I can come up with at this point. If not, can you post a short script that replicates the problem you're seeing? I'd love to fix the problem if it lies within my power, but if I can't reproduce the misbehavior you're seeing, I can't very well fix it either.