File: direction_4.t

package info (click to toggle)
libchart-perl 2.403.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,148 kB
  • sloc: perl: 11,360; makefile: 7
file content (41 lines) | stat: -rw-r--r-- 956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/perl -w

BEGIN { unshift @INC, 'lib', '../lib'}
use Chart::Direction;
use File::Temp 0.19;
my $samples = File::Temp->newdir();

print "1..1\n";

$g = Chart::Direction->new( 500, 500 );

$g->add_dataset( 210, 220, 200, 215, 225, 200 );
$g->add_dataset( 30,  40,  20,  35,  45,  20 );

$g->add_dataset( 30, 40, 20, 35, 45, 20 );
$g->add_dataset( 30, 40, 20, 35, 45, 20 );

$g->add_dataset( 120, 130, 110, 125, 135, 110 );
$g->add_dataset( 30,  40,  20,  35,  45,  20 );

$g->add_dataset( 300, 310, 290, 305, 315, 290 );
$g->add_dataset( 30,  40,  20,  35,  45,  20 );

$g->set(
    'title'           => 'Direction Demo',
    'angle_interval'  => 45,
    'precision'       => 0,
    'arrow'           => 'true',
    'point'           => 'false',
    'include_zero'    => 'true',
    'pairs'           => 'true',
    'legend'          => 'none',
    'grey_background' => 'false',
);

$g->png("$samples/direction_4.png");

print "ok 1\n";

exit(0);