line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
1555
|
use GD::Graph::area; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
require 'save.pl'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
@data = ( |
5
|
|
|
|
|
|
|
["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"], |
6
|
|
|
|
|
|
|
[ 5, 12, 24, 33, 19, 8, 6, 15, 21], |
7
|
|
|
|
|
|
|
[ -1, -2, -5, -6, -3, 1.5, 1, 1.3, 2] |
8
|
|
|
|
|
|
|
); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my $name = 'sample22'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $graph = GD::Graph::area->new; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
print STDERR "Processing $name\n"; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
$graph->set( |
17
|
|
|
|
|
|
|
two_axes => 1, |
18
|
|
|
|
|
|
|
zero_axis => 1, |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
transparent => 0, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$graph->set(rotate_chart => 1) if $name =~ /-h$/; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
$graph->set_legend( 'left axis', 'right axis' ); |
26
|
|
|
|
|
|
|
$graph->plot(\@data); |
27
|
|
|
|
|
|
|
save_chart($graph, $name); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |