File: points_100.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 (32 lines) | stat: -rw-r--r-- 452 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
#!/usr/bin/perl -w

use Chart::Points;
use strict;

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);