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

  1. /* Gets subpage boundaries in absolute coordinates (mm from bottom */
  2. /* left-hand corner of page) */
  3.  
  4. #include "plplot.h"
  5.  
  6. void plgspa(xmin,xmax,ymin,ymax)
  7. PLFLT *xmin, *xmax, *ymin, *ymax;
  8. {
  9.       PLFLT spdxmi, spdxma, spdymi, spdyma;
  10.       PLINT level;
  11.  
  12.       glev(&level);
  13.       if (level < 1) plexit("Please call plstar before plgspa.");
  14.       gspd(&spdxmi,&spdxma,&spdymi,&spdyma);
  15.       *xmin = dcmmx(spdxmi);
  16.       *xmax = dcmmx(spdxma);
  17.       *ymin = dcmmy(spdymi);
  18.       *ymax = dcmmy(spdyma);
  19. }
  20.