priyankgandhi has asked for the wisdom of the Perl Monks concerning the following question:
sub createGraph() { my (@array) = @_; my @values; my @finalResult = {}; foreach my $val (sort { $a <=> $b} @array){ print $val."\n"; @values= split(/\|/, $val); push(@finalResult, [Math::BigFloat->new($values[1]),Math::BigF +loat->new($values[2])]); } my $dataSet = Chart::Gnuplot::DataSet->new( points => \@finalResult, style => "points", title => "$dir" ); $chart->plot2d($dataSet); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Issues with Chart::Gnuplot
by jeanluca (Deacon) on Jul 11, 2009 at 21:20 UTC | |
by GrandFather (Saint) on Jul 11, 2009 at 23:37 UTC |