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