File: points_100.t

package info (click to toggle)
libchart-perl 2.403.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,148 kB
  • sloc: perl: 11,360; makefile: 7
file content (35 lines) | stat: -rw-r--r-- 549 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
#!/usr/bin/perl -w

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

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

my @x;
my @y;

$x[0] = 0;
$y[0] = 0;
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->set ('skip_int_ticks'=> 10);
$g->png("$samples/points_100.png");

print "ok 1\n";

exit(0);