File: direction_3.t

package info (click to toggle)
libchart-perl 2.4.10ds1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,900 kB
  • ctags: 245
  • sloc: perl: 11,697; makefile: 6
file content (35 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/perl -w

use Chart::Direction;

print "1..1\n";

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

$g->add_dataset( 0,  100, 50, 200, 280, 310 );
$g->add_dataset( 30, 40,  20, 35,  45,  20 );

$g->add_dataset( 10, 110, 60, 210, 290, 320 );
$g->add_dataset( 30, 40,  20, 35,  45,  20 );

$g->add_dataset( 20, 120, 70, 220, 300, 330 );
$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_3.png");

print "ok 1\n";

exit(0);