Gnuplot-Builder
view release on metacpan or search on metacpan
lib/Gnuplot/Builder/Dataset.pm view on Meta::CPAN
The second argument (C<$writer>) is a code-ref that you have to call to write inline data.
$dataset->set_data(sub {
my ($dataset, $writer) = @_;
foreach my $x (1 .. 3) {
my $y = $x * 10;
$writer->("$x $y\n");
}
});
This allows for very large inline data streaming directly into the gnuplot process.
If you don't pass any data to C<$writer>, it means the C<$dataset> doesn't have inline data at all.
=back
=head2 $dataset = $dataset->write_data_to($writer)
Write the inline data using the C<$writer>.
This method is required by plotting methods of L<Gnuplot::Builder::Script>.
lib/Gnuplot/Builder/Process.pm view on Meta::CPAN
The command and arguments to run a gnuplot process.
By default, it's C<("gnuplot", "--persist")>.
You can also set this variable by the environment variable
C<PERL_GNUPLOT_BUILDER_PROCESS_COMMAND>.
=head2 $ENCODING
If set, L<Gnuplot::Builder> encodes the script string in the specified encoding just before streaming into the gnuplot process.
You can specify any encoding names recognizable by L<Encode> module.
By default it's C<undef>, meaning it doesn't encode the script.
You can also set this variable by the environment variable
C<PERL_GNUPLOT_BUILDER_PROCESS_ENCODING>.
=head2 $MAX_PROCESSES
Maximum number of gnuplot processes that can run in parallel.
( run in 0.450 second using v1.01-cache-2.11-cpan-4d50c553e7e )