File: scatter.sl

package info (click to toggle)
slxfig 0.2.0~.138-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: sh: 3,086; ansic: 598; makefile: 265; php: 6
file content (13 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
require ("xfig");
require ("rand");

public define slsh_main ()
{
   variable w = xfig_plot_new (14,14);
   variable x = rand_gauss (1.0, 10000);
   variable y = rand_gauss (1.0, 10000);
   w.world (-5,5,-5,5);
   w.plot (x,y;sym="point",size=0.1);
   w.add_object (xfig_new_text ("\\large points"), 0.25, 0.75 ; world00);
   w.render ("scatter.png");
}