home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 344b.lha / plplot_v2.6 / src / plmesh.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-27  |  677 b   |  29 lines

  1. /* Plots a mesh representation of the function z[x][y]. The x values */
  2. /* are stored as x[0..nx-1], the y values as y[0..ny-1], and the */
  3. /* z values are in the 2-d array z[][0..ly-1]. The integer "opt" */
  4. /* specifies: */
  5. /*  opt = 1:  Draw lines parallel to x-axis */
  6. /*  opt = 2:  Draw lines parallel to y-axis */
  7. /*  opt = 3:  Draw lines parallel to both axes */
  8.  
  9. #include "plplot.h"
  10. #ifdef PLSTDC
  11. #include <stdlib.h>
  12. #else
  13. extern void free();
  14. #endif
  15.  
  16. extern PLINT pl3mode;
  17. extern PLINT *oldloview;
  18.  
  19. void plmesh(x,y,z,ly,nx,ny,opt)
  20. PLINT ly, nx, ny, opt;
  21. PLFLT *x, *y, *z;
  22. {
  23.    pl3mode = 1;
  24.    plot3d(x,y,z,ly,nx,ny,opt,0);
  25.  
  26.    free((VOID *)oldloview);
  27.    pl3mode = 0;
  28. }
  29.