[BACK]Return to gnugraph.trm CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot / term

Diff for /OpenXM_contrib/gnuplot/term/Attic/gnugraph.trm between version 1.1.1.1 and 1.1.1.3

version 1.1.1.1, 2000/01/09 17:01:14 version 1.1.1.3, 2003/09/15 07:09:36
Line 110  TERM_PUBLIC void UP_reset __PROTO((void));
Line 110  TERM_PUBLIC void UP_reset __PROTO((void));
 #ifndef TERM_PROTO_ONLY  #ifndef TERM_PROTO_ONLY
 #ifdef TERM_BODY  #ifdef TERM_BODY
   
   #define DEFAULT_GNUGRAPHFONT "Courier"
 char up_font[MAX_ID_LEN+1] = "Courier"; /* name of font */  
   /* Name of font */
   char up_font[MAX_ID_LEN+1] = DEFAULT_GNUGRAPHFONT;
 int up_fontsize = 10;  int up_fontsize = 10;
   
 /* plot2ps produces a 8.25" x 8.25" square. */  /* plot2ps produces a 8.25" x 8.25" square. */
Line 144  int up_fontsize = 10;
Line 146  int up_fontsize = 10;
   
 enum JUSTIFY up_justify = LEFT;  enum JUSTIFY up_justify = LEFT;
   
 #ifdef GNU_PLOTUTILS  #define ROTATE(angle) pl_textangle(90*angle)
 # define ROTATE(angle) textangle(90*angle)  
 #else  
 # define ROTATE(angle) rotate(0,0,90*angle)  
 #endif  
   
 #ifdef GNU_PLOTUTILS  
 /* We don't include plot.h from plotutils because of  /* We don't include plot.h from plotutils because of
  * the name clash with ../plot.h.   * the name clash with ../plot.h.
  */   */
 extern int openpl __PROTO((void));  extern int pl_openpl __PROTO((void));
 extern int space __PROTO((int, int, int, int));  extern int pl_space __PROTO((int, int, int, int));
 extern int fontname __PROTO((const char *));  extern int pl_fontname __PROTO((const char *));
 extern int fontsize __PROTO((int));  extern int pl_fontsize __PROTO((int));
 extern int erase __PROTO((void));  extern int pl_erase __PROTO((void));
 extern int linemod __PROTO((const char *));  extern int pl_linemod __PROTO((const char *));
 extern int move __PROTO((int, int));  extern int pl_move __PROTO((int, int));
 extern int cont __PROTO((int, int));  extern int pl_cont __PROTO((int, int));
 extern int alabel __PROTO((int, int, const char *));  extern int pl_alabel __PROTO((int, int, const char *));
 extern int textangle __PROTO((int));  extern int pl_textangle __PROTO((int));
 extern int closepl __PROTO((void));  extern int pl_closepl __PROTO((void));
 #endif  /* T.Walter added: */
   extern int pl_parampl __PROTO((const char *parameter, void *value));
   extern int pl_newpl __PROTO((const char *type, FILE *infile, FILE *outfile, FILE *errfile));
   extern int pl_selectpl __PROTO((int handle));
   extern int pl_deletepl __PROTO((int handle));
   extern double pl_ffontsize __PROTO((double size));
   
 TERM_PUBLIC void UP_options()  TERM_PUBLIC void UP_options()
 {  {
Line 194  TERM_PUBLIC void UP_options()
Line 196  TERM_PUBLIC void UP_options()
   
 TERM_PUBLIC void UP_init()  TERM_PUBLIC void UP_init()
 {  {
     openpl();      pl_openpl();
     space(0, 0, UP_SCREENX - 1, UP_SCREENY - 1);      pl_space(0, 0, UP_SCREENX - 1, UP_SCREENY - 1);
     fontname(up_font);      pl_fontname(up_font);
 /*  /*
 #ifdef GNU_PLOTUTILS  #ifdef GNU_PLOTUTILS
         fontsize((int)((up_fontsize / 72.0 * 8.0) * (UP_SCREENY-1)));          fontsize((int)((up_fontsize / 72.0 * 8.0) * (UP_SCREENY-1)));
 #else  #else
 */  */
     fontsize(up_fontsize);      pl_fontsize(up_fontsize);
 /*  /*
 #endif  #endif
 */  */
Line 211  TERM_PUBLIC void UP_init()
Line 213  TERM_PUBLIC void UP_init()
   
 TERM_PUBLIC void UP_graphics()  TERM_PUBLIC void UP_graphics()
 {  {
     erase();      pl_erase();
 }  }
   
   
Line 230  int linetype;
Line 232  int linetype;
   
     if (linetype >= 5)      if (linetype >= 5)
         linetype %= 5;          linetype %= 5;
     linemod(lt[linetype + 2]);      pl_linemod(lt[linetype + 2]);
 }  }
   
   
 TERM_PUBLIC void UP_move(x, y)  TERM_PUBLIC void UP_move(x, y)
 unsigned int x, y;  unsigned int x, y;
 {  {
     move(x + UP_XOFF, y + UP_YOFF);      pl_move(x + UP_XOFF, y + UP_YOFF);
 }  }
   
   
 TERM_PUBLIC void UP_vector(x, y)  TERM_PUBLIC void UP_vector(x, y)
 unsigned int x, y;  unsigned int x, y;
 {  {
     cont(x + UP_XOFF, y + UP_YOFF);      pl_cont(x + UP_XOFF, y + UP_YOFF);
 }  }
   
   
Line 255  char str[];
Line 257  char str[];
     UP_move(x, y);              /* Don't adjust x and y! It's done in UP_move. */      UP_move(x, y);              /* Don't adjust x and y! It's done in UP_move. */
     switch (up_justify) {      switch (up_justify) {
     case LEFT:      case LEFT:
         alabel('l', 'c', str);          pl_alabel('l', 'c', str);
         break;          break;
     case CENTRE:      case CENTRE:
         alabel('c', 'c', str);          pl_alabel('c', 'c', str);
         break;          break;
     case RIGHT:      case RIGHT:
         alabel('r', 'c', str);          pl_alabel('r', 'c', str);
         break;          break;
     }      }
   
Line 283  enum JUSTIFY mode;
Line 285  enum JUSTIFY mode;
   
 TERM_PUBLIC void UP_reset()  TERM_PUBLIC void UP_reset()
 {  {
     closepl();      pl_closepl();
 }  }
   
 #endif /* TERM_BODY */  #endif /* TERM_BODY */

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>