home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / plplot.lzh / PLPLOT / PLPLOT.LZH / plplot / src / plgspa.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-23  |  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.