home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / gle / util / contour / plotfor.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-29  |  694 b   |  40 lines

  1. /* some emulation routines for the calcomp plotting calls */
  2.  
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <ctype.h>
  6. #include <string.h>
  7. #include <assert.h>
  8. #include <math.h>
  9.  
  10. #define true (!false)
  11. #define false 0
  12.  
  13. /*main(int argc, char **argv)
  14. */
  15.  
  16. number(float *x, float *y, float *z, float *v, float *c1, long *c2)
  17. {    
  18.     printf("! Number %g %g %g {%g} %g %d \n",x,y,z,v,c1,c2);
  19.     
  20. }
  21. symbol(float *x, float *y, float *z, char *s, float *c1, long *c2)
  22. {    
  23.     
  24. }
  25. plot(float *x1, float *y1, int *cmd)
  26. {
  27.     switch (*cmd) {
  28.       case 2:
  29.         printf("aline %g %g \n",*x1,*y1);
  30.         break;
  31.       case 3:
  32.         printf("amove %g %g \n",*x1,*y1);
  33.         break;
  34.       default:
  35.         printf("! %d %g %g \n",*cmd,*x1,*y1);
  36.         break;
  37.     }
  38. }
  39.  
  40.