in reply to Populate 2d Chart Using Chart::Gnuplot from a Loop
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Populate 2d Chart Using Chart::Gnuplot from a Loop
by Anonymous Monk on May 06, 2015 at 23:33 UTC | |
by goutham (Initiate) on Jun 15, 2015 at 13:54 UTC | |
|
Re^2: Populate 2d Chart Using Chart::Gnuplot from a Loop
by goutham (Initiate) on Jun 15, 2015 at 13:55 UTC | |
by kcott (Archbishop) on Jun 16, 2015 at 03:10 UTC |