G'day eyncydious,
Welcome to the monastery.
Short of manually scripting out:
$chart->plot2d($val1) if $val == 1; $chart->plot2d($val1,$val2) if $val == 2; $chart->plot2d($val1,$val2,$val3) if $val == 3; etc...
To achieve this, I'd write something like:
my @datasets; for my $i (...) { .... push @datasets, Chart::Gnuplot::DataSet->new(...); $chart->plot2d(@datasets); }
-- Ken
In reply to Re: Populate 2d Chart Using Chart::Gnuplot from a Loop
by kcott
in thread Populate 2d Chart Using Chart::Gnuplot from a Loop
by eyncydious
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |