line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gnuplot::Builder; |
2
|
4
|
|
|
4
|
|
63453
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
101
|
|
3
|
4
|
|
|
4
|
|
21
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
119
|
|
4
|
4
|
|
|
4
|
|
2825
|
use parent qw(Exporter); |
|
4
|
|
|
|
|
1318
|
|
|
4
|
|
|
|
|
22
|
|
5
|
4
|
|
|
4
|
|
3046
|
use Gnuplot::Builder::Script; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
117
|
|
6
|
4
|
|
|
4
|
|
2696
|
use Gnuplot::Builder::Dataset; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
104
|
|
7
|
4
|
|
|
4
|
|
23
|
use Gnuplot::Builder::Process; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
1098
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = "0.29"; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our @EXPORT = our @EXPORT_OK = qw(gscript gfunc gfile gdata ghelp gwait); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub gscript { |
14
|
7
|
|
|
7
|
1
|
1222
|
return Gnuplot::Builder::Script->new(@_); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub gfunc { |
18
|
2
|
|
|
2
|
1
|
403
|
return Gnuplot::Builder::Dataset->new(@_); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub gfile { |
22
|
2
|
|
|
2
|
1
|
402
|
return Gnuplot::Builder::Dataset->new_file(@_); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub gdata { |
26
|
1
|
|
|
1
|
1
|
371
|
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
|
371
|
return Gnuplot::Builder::Process->wait_all(); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
__END__ |