File: points_100.t

package info (click to toggle)
libchart-perl 2.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,356 kB
  • ctags: 140
  • sloc: perl: 6,573; makefile: 40
file content (25 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (3)
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
use Chart::Points;
use strict;

print "1..1\n";
my $g;

my @x;
my @y;

for ( my $i = 9; $i < 100; $i++) {
   $x[$i] = $i;
   $y[$i] = $i/10;
}
$g = Chart::Points->new;
$g->add_dataset (@x);
$g->add_dataset (@y);

$g->set ('title' => 'Points Chart with 100 Points');
$g->set ('skip_x_ticks'=> 10);
$g->png ("samples/points_100.png");

print "ok 1\n";

exit (0);