qi has asked for the wisdom of the Perl Monks concerning the following question:
ie. I get a chart with two data sets on it. However, I want to pass the list of filenames on the command line. Here's the manpage:gnuplot({"title" => "foo"}, [{"type" => "file"}, "cdb.7600.log"], [{"type" => "file"}, "cdb.8299.log"]);
So, it looks to me like I can pass a reference to an array of data sets, where a data set is a hash, filename pair.. Here's my attempt:use Chart::Graph qw(gnuplot); gnuplot(\%global_options, @data_sets); gnuplot(\%global_options, [\%data_set_options, \@matrix], [\%data_set_options, \@x_column, \@y_column] +, [\%data_set_options, < filename >], ... );
But, and here's the rub, the chart I get only ever has the first data set on it. Am I doing something stupid? (I hope so).while($logfile = shift) { push @data_sets, ({"type" => "file"}, $logfile); } gnuplot({"title" => "foo"}, \@data_sets);
Any help would be appreciated, thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stumped by Chart::Graph::Gnuplot parameters
by Masem (Monsignor) on Mar 05, 2001 at 19:07 UTC | |
by qi (Initiate) on Mar 05, 2001 at 19:38 UTC | |
by tye (Sage) on Mar 05, 2001 at 21:09 UTC | |
by qi (Initiate) on Mar 05, 2001 at 19:36 UTC |