I'm reading in a file and then breaking it down into sections (looping through) and then trying to graph each section. The graph for the first time through works fine but any additional iteration is keeping the data values from the initial dataset. I don't believe there's an error in my code as I'm able to print each (successive) dataset. Now, per GD::Graph documentation there's a know bug: GD::Graph objects cannot be reused. To create a new plot, you have to create a new GD::Graph object." However, "my $graph= GD::Graph::linespoints->new(900,500);" is not creating a new object (other than the initial object). I have also set $graph to "undef", with no remedy. Can one chart multiple datasets (successively) using GD::GRAPH or would an individual program need to be run for each dataset? I've found the same problem on a few other sites but it has never been addressed. thanks

In reply to GD::GRAPH:linespoints problem by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.