|
Posted by gvl on August 3, 2004, 8:42 pm
Please log in for more thread options
While producing HTML Image MAP for the graph, I have found that the
first line in linespoints graph type has suspicious coordinates of
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 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?
Thank you in advance!
--
gvl
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
|
|
Posted by Martien Verbruggen on August 10, 2004, 2:42 am
Please log in for more thread options
On Tue, 03 Aug 2004 19:42:15 GMT,
> 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?
This is probably a bug. As stated in the documentation, the whole
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.
|
| Similar Threads | Posted | | Graph.0.69 Module---how to get a DAG from graph with cycles | January 23, 2006, 2:50 pm |
| Name for a new Tk Graph module | April 4, 2007, 6:17 am |
| GD::Graph - how to get rid of leading gap in line graph? | October 1, 2004, 10:56 am |
| Do we need Graph::Clique module? | November 10, 2004, 2:58 pm |
| Graph Path Module | April 14, 2008, 5:37 am |
| "diameter", "has_a_cycle" problems in Graph-0.76 module | July 12, 2006, 4:32 am |
| GD::GRAPH two_axes | December 8, 2004, 6:01 pm |
| GD::Graph isn't numeric etc. | January 26, 2005, 7:43 pm |
| GD graph, Several Colors per Bar? | May 30, 2005, 6:52 pm |
| GD::Graph => How to set maximum value manually on Y ? | October 6, 2004, 6:35 pm |
|