line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gnuplot::Builder; |
2
|
4
|
|
|
4
|
|
64718
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
106
|
|
3
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
121
|
|
4
|
4
|
|
|
4
|
|
2831
|
use parent qw(Exporter); |
|
4
|
|
|
|
|
1271
|
|
|
4
|
|
|
|
|
22
|
|
5
|
4
|
|
|
4
|
|
3076
|
use Gnuplot::Builder::Script; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
120
|
|
6
|
4
|
|
|
4
|
|
2757
|
use Gnuplot::Builder::Dataset; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
102
|
|
7
|
4
|
|
|
4
|
|
23
|
use Gnuplot::Builder::Process; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
1054
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = "0.31"; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our @EXPORT = our @EXPORT_OK = qw(gscript gfunc gfile gdata ghelp gwait); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub gscript { |
14
|
7
|
|
|
7
|
1
|
1505
|
return Gnuplot::Builder::Script->new(@_); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub gfunc { |
18
|
2
|
|
|
2
|
1
|
392
|
return Gnuplot::Builder::Dataset->new(@_); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub gfile { |
22
|
2
|
|
|
2
|
1
|
420
|
return Gnuplot::Builder::Dataset->new_file(@_); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub gdata { |
26
|
1
|
|
|
1
|
1
|
394
|
return Gnuplot::Builder::Dataset->new_data(@_); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub ghelp { |
30
|
0
|
|
|
0
|
1
|
0
|
my (@help_args) = @_; |
31
|
|
|
|
|
|
|
return Gnuplot::Builder::Process->with_new_process(do => sub { |
32
|
0
|
|
|
0
|
|
0
|
my $writer = shift; |
33
|
0
|
|
|
|
|
0
|
$writer->("help"); |
34
|
0
|
|
|
|
|
0
|
foreach my $arg (@help_args) { |
35
|
0
|
|
|
|
|
0
|
$writer->(" $arg"); |
36
|
|
|
|
|
|
|
} |
37
|
0
|
|
|
|
|
0
|
$writer->("\n"); |
38
|
0
|
|
|
|
|
0
|
}); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub gwait { |
42
|
1
|
|
|
1
|
1
|
360
|
return Gnuplot::Builder::Process->wait_all(); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
__END__ |