line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
1922
|
use GD::Graph::points; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
require 'save.pl'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
print STDERR "Processing sample31\n"; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
@data = ( |
7
|
|
|
|
|
|
|
["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"], |
8
|
|
|
|
|
|
|
[ 5, 12, 24, 33, 19, 8, 6, 15, 21], |
9
|
|
|
|
|
|
|
[ 1, 2, 5, 6, 3, 1.5, undef, 3, 4], |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
$my_graph = new GD::Graph::points(); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$my_graph->set( |
15
|
|
|
|
|
|
|
x_label => 'X Label', |
16
|
|
|
|
|
|
|
y_label => 'Y label', |
17
|
|
|
|
|
|
|
title => 'A Points Graph', |
18
|
|
|
|
|
|
|
y_max_value => 40, |
19
|
|
|
|
|
|
|
y_tick_number => 8, |
20
|
|
|
|
|
|
|
y_label_skip => 2, |
21
|
|
|
|
|
|
|
legend_placement => 'RC', |
22
|
|
|
|
|
|
|
long_ticks => 1, |
23
|
|
|
|
|
|
|
marker_size => 6, |
24
|
|
|
|
|
|
|
markers => [ 9, 10, 1, 7, 5 ], |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
transparent => 0, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$my_graph->set_legend( qw( one two ) ); |
30
|
|
|
|
|
|
|
$my_graph->plot(\@data); |
31
|
|
|
|
|
|
|
save_chart($my_graph, 'sample31'); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |