Debian Codegraph @

t/t4.t

raw symbols SCIP
1 use strictscip-perl cpan PGPLOT 2.36 strict/; use warningsscip-perl cpan PGPLOT 2.36 warnings/;
2 use Test::Morescip-perl cpan PGPLOT 2.36 Test/More/;
3 use Configscip-perl cpan PGPLOT 2.36 Config/;
4 # Stop f77-linking causing spurious undefined symbols (alpha)
5 $ENVscip-perl cpan PGPLOT 2.36 main/`%ENV`.{'PERL_DL_NONLAZY'}=0 if $Configscip-perl cpan PGPLOT 2.36 main/`%Config`.{'osname'} eq "dec_osf";
6 requirescip-perl cpan PGPLOT 2.36 main/require(). PGPLOT;
7
8 my $dev = $ENVscip-perl cpan PGPLOT 2.36 main/`%ENV`.{PGPLOT_DEV} || '/NULL';
9
10 $ENVscip-perl cpan PGPLOT 2.36 main/`%ENV`.{PGPLOT_XW_WIDTH}=0.3;
11
12 notescip-perl cpan PGPLOT 2.36 main/note(). "Testing greyscale, contour and vector routines";
13
14 # Read in image (int*2)
15
16 my $img="";
17 openscip-perl cpan PGPLOT 2.36 main/open(). my $fh, "test.img" or diescip-perl cpan PGPLOT 2.36 main/die(). "Data file test.img not found: $!";
18 binmodescip-perl cpan PGPLOT 2.36 main/binmode(). $fh if $^Oscip-perl cpan PGPLOT 2.36 main/`$^O`. =~ /mswin32/i;
19 readscip-perl cpan PGPLOT 2.36 main/read().($fh, $img, 32768);
20 closescip-perl cpan PGPLOT 2.36 main/close(). $fh or diescip-perl cpan PGPLOT 2.36 main/die(). "Can't close test.img: $!";
21
22 notescip-perl cpan PGPLOT 2.36 main/note(). lengthscip-perl cpan PGPLOT 2.36 main/length().($img)," bytes read\n";
23
24 my @image = unpackscip-perl cpan PGPLOT 2.36 main/unpack().("n*",$img);
25
26 note $#imagescip-perl cpan PGPLOT 2.36 main/`$#image`.+1," element image stored\n";
27
28 PGPLOT::pgbeginscip-perl cpan PGPLOT 2.36 PGPLOT/pgbegin().(0,$dev,1,1);
29
30 notescip-perl cpan PGPLOT 2.36 main/note(). "Plotting...\n";
31
32 PGPLOT::pgsciscip-perl cpan PGPLOT 2.36 PGPLOT/pgsci().(3);
33 PGPLOT::pgwnadscip-perl cpan PGPLOT 2.36 PGPLOT/pgwnad().(12000,13000,13000,12000);
34
35 my @tr=(12000,8,0,12000,0,8);
36 PGPLOT::pggrayscip-perl cpan PGPLOT 2.36 PGPLOT/pggray().(\@image,128,128,1,128,1,128,5000,0,\@tr);
37 PGPLOT::pglabelscip-perl cpan PGPLOT 2.36 PGPLOT/pglabel().("\\ga","\\gd","Galaxy");
38 PGPLOT::pgtboxscip-perl cpan PGPLOT 2.36 PGPLOT/pgtbox().("ZYHBCNST",0,0,"ZYDBCNST",0,0);
39
40 PGPLOT::pgwedgscip-perl cpan PGPLOT 2.36 PGPLOT/pgwedg().('R', 2, 5, 5000, 0, 'Counts');
41
42 PGPLOT::pgsciscip-perl cpan PGPLOT 2.36 PGPLOT/pgsci().(4); PGPLOT::pgslsscip-perl cpan PGPLOT 2.36 PGPLOT/pgsls().(1);
43 my @cont = (-1,1000,2000,3000,4000,5000);
44 PGPLOT::pgconsscip-perl cpan PGPLOT 2.36 PGPLOT/pgcons().(\@image, 128, 128, 1,128,1,128, \@cont, 6, \@tr);
45 PGPLOT::pgwnadscip-perl cpan PGPLOT 2.36 PGPLOT/pgwnad().(0,1000,0,1000);
46
47 @tr=(0,100,0,0,0,100);
48 PGPLOT::pgsahscip-perl cpan PGPLOT 2.36 PGPLOT/pgsah().(1,30,0.5);
49 PGPLOT::pgsciscip-perl cpan PGPLOT 2.36 PGPLOT/pgsci().(2);
50 PGPLOT::pgvectscip-perl cpan PGPLOT 2.36 PGPLOT/pgvect().([(30) x 100], [(50) x 100], 10, 10, 1,9,1,9, 1, 1, \@tr, -10000);
51
52 PGPLOT::pgendscip-perl cpan PGPLOT 2.36 PGPLOT/pgend().();
53
54 pass;
55 done_testing;