home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / quickplot / part2 / testprogs.d / lineh.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  273 b   |  22 lines

  1. /* hoizontal line across bottom of plot space */
  2.  
  3. main(argc,argv)
  4. int argc;
  5. char **argv;
  6. {
  7.     int x0,x1,y0,y1;
  8.  
  9.     x0 = 0;
  10.     y0 = 0;
  11.     x1 = 2000;
  12.     y1 = 2000;
  13.     space(x0,y0,2000,2000);
  14.     move(x0,y0);
  15.     label("+");
  16.     move(x1,y0);
  17.     label("+");
  18.     line(x0,y0,x1,y0);
  19.     erase();
  20.     exit(0);
  21. }
  22.