home *** CD-ROM | disk | FTP | other *** search
- #
- # The examples from the Linux Journal Article...
- #
-
- #
- # Example 1
- #
-
- \ cat t.dat
- \ cat gtvec.r | pr -n:2 -t -
-
- rfile gtvec
-
- while (length (line = getline ("t.dat")))
- {
- tdat.[line.[1]] = gtvec (line);
- }
- plpoint (8:1:-1);
- plstyle ("line-point");
- plegend( members (tdat) );
- pltitle ("Test Data");
- plot (tdat);
-
-
- #
- # Example 2
- #
-
- require surspl
-
- z1 = rand(10,10);
- x1 = y1 = 1:10;
- x2 = y2 = 1:10:0.25;
- z2 = surspl (x2, y2, x1, y1, z1);
- plmesh (<< x=x1 ; y=y1 ; z=z1 >>);
- pause ();
- plmesh (<< x=x2 ; y=y2 ; z=z2 >>);
-