Ask a Question related to PERL Modules, Design and Development.
-
gvl #1
Perl GD::Graph module: bug?
While producing HTML Image MAP for the graph, I have found that th
first line in linespoints graph type has suspicious coordinates o
first line in graph. Values were obtained by calling
my @hotspost = $graph->gethotspot(1);
my $k = 0;
foreach my $point (@hotspots)
{
print("Name:$point->[0], X1:$point->[1],
Y1:$point->[2], X2:$point->[3], Y2:$point->[4],
Mark:@marks[$k]\n");
$k++;
}
Here are the results:
Name:line, X1:120, Y1:387, X2:120, Y2:387, Mark:7
Name:line, X1:120, Y1:387, X2:139, Y2:387, Mark:11
Name:line, X1:139, Y1:387, X2:157, Y2:387, Mark:19
Name:line, X1:157, Y1:387, X2:176, Y2:387, Mark:23
. . .
etc.
As you can see, X2 is equal to X1 for the first (!). So, the fist lin
has zero length and is always masked and hidden and overwritten by th
second line.
Is it a kind if bug? If yes - where in GD::Graph module source cod
should I correct it?
Thank you in advance
-
gv
-----------------------------------------------------------------------
Posted via [url]http://www.codecomments.co[/url]
-----------------------------------------------------------------------
gvl Guest
-
Graph.0.69 Module---how to get a DAG from graph with cycles
Here I use an example to illustrate the problem I met when using Graph Theory Module: I have a directed graph looks like the following (see the... -
Do we need Graph::Clique module?
Hi, I am planning to implement an extension to Greg Bacon's implementation on clique reduction in a graph: ... -
perl module for rendering molecular interaction network graph??
Hi list, Is there any perl module to render a molecular interaction network graph to an image dynamically, that is, to represent molecular... -
Proposed new module Graph::Timeline
I am currently looking to create a Graph::Timeline module (similar in some respects to Image::Timeline) that would allow rendering timelines as... -
Request for help in using GD::Graph module (y label and undef related)
Hello, I'm writing perl scripts that utilize GD::Graph module to generate 3 types of graphs: bar, lines, linespoint and my question is specific... -
Martien Verbruggen #2
Re: Perl GD::Graph module: bug?
On Tue, 03 Aug 2004 19:42:15 GMT,
gvl <gvl.1afkho@mail.codecomments.com> wrote:
This is probably a bug. As stated in the documentation, the whole> my @hotspost = $graph->gethotspot(1);
> my $k = 0;
> foreach my $point (@hotspots)
> {
> print("Name:$point->[0], X1:$point->[1],
> Y1:$point->[2], X2:$point->[3], Y2:$point->[4],
> Mark:@marks[$k]\n");
> $k++;
> }
>
> Here are the results:
>
> Name:line, X1:120, Y1:387, X2:120, Y2:387, Mark:7
> Name:line, X1:120, Y1:387, X2:139, Y2:387, Mark:11
> Name:line, X1:139, Y1:387, X2:157, Y2:387, Mark:19
> Name:line, X1:157, Y1:387, X2:176, Y2:387, Mark:23
> . . .
> etc.
>
> As you can see, X2 is equal to X1 for the first (!). So, the fist line
> has zero length and is always masked and hidden and overwritten by the
> second line.
>
> Is it a kind if bug? If yes - where in GD::Graph module source code
> should I correct it?
hotspot thing is rather experimental still.
You probably need to fix it in the get_hotspot function, or track back
from there. I'll add this as a possible bug to my ever growing list of
things to do.
Martien
--
|
Martien Verbruggen | If at first you don't succeed, try again.
Trading Post Australia | Then quit; there's no use being a damn fool
| about it.
Martien Verbruggen Guest



Reply With Quote

