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

  1. /* Simple routine for labelling graphs */
  2.  
  3. #include "plplot.h"
  4.  
  5. void pllab(xlabel, ylabel, tlabel)
  6. char *xlabel, *ylabel, *tlabel;
  7. {
  8.    PLINT level;
  9.  
  10.    glev(&level);
  11.    if (level < 2) plexit("Please set up viewport before calling pllab.");
  12.  
  13.    plmtex("t",(PLFLT)2.0,(PLFLT)0.5,(PLFLT)0.5,tlabel);
  14.    plmtex("b",(PLFLT)3.2,(PLFLT)0.5,(PLFLT)0.5,xlabel);
  15.    plmtex("l",(PLFLT)5.0,(PLFLT)0.5,(PLFLT)0.5,ylabel);
  16. }
  17.