home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume8 / gnuplot1.10A / part01 / bitgraph.trm < prev    next >
Encoding:
Text File  |  1989-09-09  |  1.0 KB  |  59 lines

  1. /* thanks to dukecdu!evs (Ed Simpson) for the BBN BitGraph driver */
  2. #define BG_XMAX                 768 /* width of plot area */
  3. #define BG_YMAX                 768 /* height of plot area */
  4. #define BG_SCREEN_HEIGHT    1024 /* full screen height */
  5.  
  6. #define BG_XLAST     (BG_XMAX - 1)
  7. #define BG_YLAST     (BG_YMAX - 1)
  8.  
  9. #define BG_VCHAR    16
  10. #define BG_HCHAR     9
  11. #define BG_VTIC         8
  12. #define BG_HTIC         8    
  13.  
  14.  
  15. #define BG_init TEK40init
  16.  
  17. #define BG_graphics TEK40graphics
  18.  
  19.  
  20. #define BG_linetype TEK40linetype
  21.  
  22. #define BG_move TEK40move
  23.  
  24. #define BG_vector TEK40vector
  25.  
  26.  
  27. BG_text()
  28. {
  29.     BG_move(0, BG_SCREEN_HEIGHT - 2 * BG_VCHAR);
  30.     fprintf(outfile,"\037");
  31. /*                   1
  32.     1. into alphanumerics
  33. */
  34. }
  35.  
  36.  
  37. BG_lrput_text(row,str)
  38. unsigned int row;
  39. char str[];
  40. {
  41.     BG_move(BG_XMAX - BG_HTIC - BG_HCHAR*(strlen(str)+1),
  42.         BG_VTIC + BG_VCHAR*(row+1));
  43.     fprintf(outfile,"\037%s\n",str);
  44. }
  45.  
  46.  
  47. BG_ulput_text(row,str)
  48. unsigned int row;
  49. char str[];
  50. {
  51.     BG_move(BG_HTIC, BG_YMAX - BG_VTIC - BG_VCHAR*(row+1));
  52.     fprintf(outfile,"\037%s\n",str);
  53. }
  54.  
  55.  
  56. #define BG_reset TEK40reset
  57.  
  58.  
  59.