Perl GD::Graph module: bug?

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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: ...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Perl GD::Graph module: bug?

    On Tue, 03 Aug 2004 19:42:15 GMT,
    gvl <gvl.1afkho@mail.codecomments.com> wrote:
    > 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.
    Martien Verbruggen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139