[Graph-dev] varying number of data sets
David Moore
dmoore at caida.org
Sat Sep 27 18:48:23 PDT 2003
On Sat, Sep 27, 2003 at 05:24:59PM -0700, J. J. Yuan wrote:
> I wonder how people handle situations where the number of data sets vary
> from one situation to another?
>
> I am new to the mailing list, and I don't know how to read archives. So,
> I don't know if this question has been answered before. I apologize if
> this is a redundant question.
I usually build up a list of the datasets programatically:
Loop over whatever you are working with:
push @datasets, [{
"title" => "dataset $N",
"style" => "lines",
"type" => "matrix",
},
\@data_for_this_one];
Then call:
gnuplot({ "title" => "graph title",
"logscale y" => 1,
},
@datasets);
More information about the Graph-dev
mailing list