home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume27 / gnuplot3 / patch01 / diffs.patch1 next >
Encoding:
Text File  |  1992-01-17  |  47.4 KB  |  1,491 lines

  1. diff -c -r ./Copyright ../gnuplot3p1/Copyright
  2. *** ./Copyright    Mon Jun  3 17:25:56 1991
  3. --- ../gnuplot3p1/Copyright    Fri Dec 20 12:52:20 1991
  4. ***************
  5. *** 1,5 ****
  6.   /*
  7. !  * Copyright (C) 1986, 1987, 1990   Thomas Williams, Colin Kelley
  8.    *
  9.    * Permission to use, copy, and distribute this software and its
  10.    * documentation for any purpose with or without fee is hereby granted, 
  11. --- 1,5 ----
  12.   /*
  13. !  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  14.    *
  15.    * Permission to use, copy, and distribute this software and its
  16.    * documentation for any purpose with or without fee is hereby granted, 
  17. ***************
  18. *** 11,17 ****
  19.    * distribute the modified code.  Modifications are to be distributed 
  20.    * as patches to released version.
  21.    *  
  22. !  * This software  is provided "as is" without express or implied warranty.
  23.    * 
  24.    *
  25.    * AUTHORS
  26. --- 11,17 ----
  27.    * distribute the modified code.  Modifications are to be distributed 
  28.    * as patches to released version.
  29.    *  
  30. !  * This software is provided "as is" without express or implied warranty.
  31.    * 
  32.    *
  33.    * AUTHORS
  34. ***************
  35. *** 21,27 ****
  36.    * 
  37.    *   Gnuplot 2.0 additions:
  38.    *       Russell Lang, Dave Kotz, John Campbell.
  39.    * 
  40. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  41. !  * 
  42.    */
  43. --- 21,35 ----
  44.    * 
  45.    *   Gnuplot 2.0 additions:
  46.    *       Russell Lang, Dave Kotz, John Campbell.
  47. +  *
  48. +  *   Gnuplot 3.0 additions:
  49. +  *       Gershon Elber and many others.
  50.    * 
  51. !  * Send your comments or suggestions to 
  52. !  *  pixar!info-gnuplot@sun.com.
  53. !  * This is a mailing list; to join it send a note to 
  54. !  *  pixar!info-gnuplot-request@sun.com.  
  55. !  * Send bug reports to
  56. !  *  pixar!bug-gnuplot@sun.com.
  57.    */
  58. diff -c -r ./README.Install ../gnuplot3p1/README.Install
  59. *** ./README.Install    Tue Sep 24 10:14:36 1991
  60. --- ../gnuplot3p1/README.Install    Sun Dec  1 14:47:25 1991
  61. ***************
  62. *** 195,197 ****
  63. --- 195,201 ----
  64.   
  65.   The VMS version looks for the logical name GNUPLOT$HELP to locate 
  66.   the help library.
  67. + The CGI drivers need the CGIPATH environment variable to set the path
  68. + to the CGI agents, and the CGIDISP and/or CGIPRNT environment
  69. + variables to set the output devices.
  70. diff -c -r ./command.c ../gnuplot3p1/command.c
  71. *** ./command.c    Tue Sep 24 09:51:22 1991
  72. --- ../gnuplot3p1/command.c    Sun Dec  1 14:47:28 1991
  73. ***************
  74. *** 633,641 ****
  75.           if (!END_OF_COMMAND && !isstring(c_token)) {
  76.               struct value a;
  77.               ycol = (int)magnitude(const_express(&a));
  78.               if (equals(c_token,":")) {
  79.                   c_token++;      /* skip ":" */
  80. -                 xcol = ycol;
  81.                   ycol = (int)magnitude(const_express(&a));
  82.                   if (equals(c_token,":")) {
  83.                       c_token++;      /* skip ":" */
  84. --- 633,641 ----
  85.           if (!END_OF_COMMAND && !isstring(c_token)) {
  86.               struct value a;
  87.               ycol = (int)magnitude(const_express(&a));
  88. +             xcol = ycol;
  89.               if (equals(c_token,":")) {
  90.                   c_token++;      /* skip ":" */
  91.                   ycol = (int)magnitude(const_express(&a));
  92.                   if (equals(c_token,":")) {
  93.                       c_token++;      /* skip ":" */
  94. ***************
  95. *** 869,884 ****
  96.       for (i = 0; i < npoints; i++) {
  97.          cp = &(curve->points[i]);
  98.          if (cp->type == INRANGE) {
  99. !           y = cp->y;
  100.             if ((autoscale_ly ||
  101. !                inrange(log_y ? pow(10.0, y) : y, ymin, ymax) ||
  102.                  polar)) {
  103.                if (autoscale_ly) {
  104.                   if (y < ymin) ymin = y;
  105.                   if (y > ymax) ymax = y;
  106.                   if (ebars) {
  107. !                     ylow = cp->ylow;
  108. !                     yhigh = cp->yhigh;
  109.                       if (ylow < ymin) ymin = ylow;
  110.                       if (ylow > ymax) ymax = ylow;
  111.                       if (yhigh < ymin) ymin = yhigh;
  112. --- 869,884 ----
  113.       for (i = 0; i < npoints; i++) {
  114.          cp = &(curve->points[i]);
  115.          if (cp->type == INRANGE) {
  116. !           y = log_y ? pow(10.0,cp->y) : cp->y;
  117.             if ((autoscale_ly ||
  118. !                inrange(y, ymin, ymax) ||
  119.                  polar)) {
  120.                if (autoscale_ly) {
  121.                   if (y < ymin) ymin = y;
  122.                   if (y > ymax) ymax = y;
  123.                   if (ebars) {
  124. !                     ylow =  log_y ? pow(10.0,cp->ylow)  : cp->ylow;
  125. !                     yhigh = log_y ? pow(10.0,cp->yhigh) : cp->yhigh;
  126.                       if (ylow < ymin) ymin = ylow;
  127.                       if (ylow > ymax) ymax = ylow;
  128.                       if (yhigh < ymin) ymin = yhigh;
  129. ***************
  130. *** 950,955 ****
  131. --- 950,959 ----
  132.               quotel_str(format, c_token);
  133.               c_token++;    /* skip format */
  134.           }
  135. +     }
  136. +     else {
  137. +         if ( only_z = !parametric )
  138. +         zcol = 1;
  139.       }
  140.   
  141.       switch (mapping3d) {
  142. diff -c -r ./contour.c ../gnuplot3p1/contour.c
  143. *** ./contour.c    Thu Jul 18 13:55:52 1991
  144. --- ../gnuplot3p1/contour.c    Sun Dec  1 14:47:30 1991
  145. ***************
  146. *** 63,68 ****
  147. --- 63,71 ----
  148.   #define abs(x)  ((x) > 0 ? (x) : (-(x)))
  149.   #define sqr(x)  ((x) * (x))
  150.   
  151. + #ifndef AMIGA_AC_5
  152. + extern double sqrt();
  153. + #endif /* not AMIGA_AC_5 */
  154.   typedef double tri_diag[3];         /* Used to allocate the tri-diag matrix. */
  155.   typedef double table_entry[4];           /* Cubic spline interpolation 4 coef. */
  156.   
  157. Common subdirectories: ./demo and ../gnuplot3p1/demo
  158. Common subdirectories: ./docs and ../gnuplot3p1/docs
  159. diff -c -r ./gnuplot.el ../gnuplot3p1/gnuplot.el
  160. *** ./gnuplot.el    Mon Jun  3 17:25:58 1991
  161. --- ../gnuplot3p1/gnuplot.el    Tue Dec 17 15:44:56 1991
  162. ***************
  163. *** 13,23 ****
  164.   ; between the editted file and the plotting program:
  165.   ; 1. send-line-to-gnu-plot - sends a single line to the plotting program for
  166.   ;    execution. The line sent is the line the cursor is on,
  167. ! ;    Bounded to Meta-E be default.
  168.   ; 2. send-region-to-gnu-plot - sends the region from the current mark
  169.   ;    (mark-marker) to current position (point-marker) to the plotting program.
  170.   ;    This function is convenient for sending a large block of commands.
  171. ! ;    Bounded to Meta-R be default.
  172.   ; Both functions checks for existance of a buffer named gnu-plot-program
  173.   ; and a process named "gnu-plot" hooked to it, and will restart a new process
  174.   ; or buffer if none exists. The program to execute as process "gnu-plot" is
  175. --- 13,23 ----
  176.   ; between the editted file and the plotting program:
  177.   ; 1. send-line-to-gnu-plot - sends a single line to the plotting program for
  178.   ;    execution. The line sent is the line the cursor is on,
  179. ! ;    Bounded to Meta-E by default.
  180.   ; 2. send-region-to-gnu-plot - sends the region from the current mark
  181.   ;    (mark-marker) to current position (point-marker) to the plotting program.
  182.   ;    This function is convenient for sending a large block of commands.
  183. ! ;    Bounded to Meta-R by default.
  184.   ; Both functions checks for existance of a buffer named gnu-plot-program
  185.   ; and a process named "gnu-plot" hooked to it, and will restart a new process
  186.   ; or buffer if none exists. The program to execute as process "gnu-plot" is
  187. ***************
  188. *** 57,63 ****
  189.   (defun send-line-to-gnu-plot ()
  190.     "Sends one line of code from current buffer to the GNU-PLOT program.
  191.   
  192. ! Use to execute a line in the GNU-PLOT plotting program. The line send is
  193.   the line the cursor (point) is on.
  194.   
  195.   The GNU-PLOT plotting program buffer name is gnu-plot-program and the 
  196. --- 57,63 ----
  197.   (defun send-line-to-gnu-plot ()
  198.     "Sends one line of code from current buffer to the GNU-PLOT program.
  199.   
  200. ! Use to execute a line in the GNU-PLOT plotting program. The line sent is
  201.   the line the cursor (point) is on.
  202.   
  203.   The GNU-PLOT plotting program buffer name is gnu-plot-program and the 
  204. ***************
  205. *** 124,130 ****
  206.   ;;; execute the program defined by gnu-plot-program.
  207.   ;;;
  208.   (defun make-gnu-plot-buffer ()
  209. !   "Switch to iris-program buffer or create one if none exists"
  210.     (interactive)
  211.     (if (get-buffer "gnu-plot-program")
  212.       (if (not (get-process "gnu-plot"))
  213. --- 124,130 ----
  214.   ;;; execute the program defined by gnu-plot-program.
  215.   ;;;
  216.   (defun make-gnu-plot-buffer ()
  217. !   "Switch to gnu-plot-program buffer or create one if none exists"
  218.     (interactive)
  219.     (if (get-buffer "gnu-plot-program")
  220.       (if (not (get-process "gnu-plot"))
  221. diff -c -r ./help.c ../gnuplot3p1/help.c
  222. *** ./help.c    Wed Jul 24 10:44:30 1991
  223. --- ../gnuplot3p1/help.c    Sun Dec  1 14:47:26 1991
  224. ***************
  225. *** 653,659 ****
  226.       /* built-in dumb pager */
  227.       /* leave room for prompt line */
  228.       if (pagelines >= SCREENSIZE - 2) {
  229. !        printf("Press return for more: ");
  230.          do 
  231.           c = getchar();
  232.          while (c != EOF && c != '\n');
  233. --- 653,659 ----
  234.       /* built-in dumb pager */
  235.       /* leave room for prompt line */
  236.       if (pagelines >= SCREENSIZE - 2) {
  237. !        fprintf(stderr,"Press return for more: ");
  238.          do 
  239.           c = getchar();
  240.          while (c != EOF && c != '\n');
  241. diff -c -r ./internal.c ../gnuplot3p1/internal.c
  242. *** ./internal.c    Thu Aug 22 12:17:44 1991
  243. --- ../gnuplot3p1/internal.c    Sun Dec  1 14:47:31 1991
  244. ***************
  245. *** 54,59 ****
  246. --- 54,60 ----
  247.    * System V and MSC 4.0 call this when they wants to print an error message.
  248.    * Don't!
  249.    */
  250. + #ifndef _CRAY
  251.   #ifdef MSDOS
  252.   #ifdef __TURBOC__
  253.   int matherr()    /* Turbo C */
  254. ***************
  255. *** 76,81 ****
  256. --- 77,83 ----
  257.   {
  258.       return (undefined = TRUE);        /* don't print error message */
  259.   }
  260. + #endif /* not _CRAY */
  261.   
  262.   
  263.   reset_stack()
  264. diff -c -r ./makefile.unx ../gnuplot3p1/makefile.unx
  265. *** ./makefile.unx    Tue Sep 24 10:25:08 1991
  266. --- ../gnuplot3p1/makefile.unx    Sun Dec  1 15:40:43 1991
  267. ***************
  268. *** 1,7 ****
  269.   ############################################################
  270.   #
  271.   # GNUPLOT 3.0 Makefile (Unix X11 Motif/Athena support) for
  272. ! #  Apollo/Sun/Dec5000/IBMrs6000/HP9000/SGI/3B1/386IX
  273.   #
  274.   # Original version by:
  275.   #   oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA)
  276. --- 1,7 ----
  277.   ############################################################
  278.   #
  279.   # GNUPLOT 3.0 Makefile (Unix X11 Motif/Athena support) for
  280. ! #  Apollo/Sun/Dec5000/IBMrs6000/HP9000/SGI/3B1/386IX/Cray
  281.   #
  282.   # Original version by:
  283.   #   oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA)
  284. ***************
  285. *** 203,209 ****
  286.   APOLLO_FLAGS = \
  287.              CFLAGS="$(COPTS) $(OPTIONS)  -DGAMMA=lgamma" \
  288.              LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  289. !            X11INCLUDES="-I/usr/include/X11" \
  290.              X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lX11" \
  291.              PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  292.              X11INSTALL="$(X11INSTALL)" \
  293. --- 203,209 ----
  294.   APOLLO_FLAGS = \
  295.              CFLAGS="$(COPTS) $(OPTIONS)  -DGAMMA=lgamma" \
  296.              LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  297. !            X11INCLUDES="$(X11INCLUDES)" \
  298.              X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lX11" \
  299.              PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  300.              X11INSTALL="$(X11INSTALL)" \
  301. ***************
  302. *** 225,230 ****
  303. --- 225,239 ----
  304.              X11INSTALL="$(X11INSTALL)" \
  305.              TERMFLAGS="-Iterm -DX11"
  306.   
  307. + HP_M_FLAGS = \
  308. +            CFLAGS="$(COPTS) $(OPTIONS) -DMEMSET -DMEMCPY -DGETCWD" \
  309. +            LIBS="-lm" X11FLAGS="-DMOTIF -D_NO_PROTO" \
  310. +            X11INCLUDES="-I/usr/include/Motif1.1 -I/usr/include/Motif1.1/Xm -I/usr/include/X11R4" \
  311. +            X11LIBS="-L/usr/lib/Motif1.1 -L/usr/lib/X11R4 -lXm -lXt -lX11" \
  312. +            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  313. +            X11INSTALL="$(X11INSTALL)" \
  314. +            TERMFLAGS=" -Iterm -DX11"
  315.   SUN_FLAGS = \
  316.              CFLAGS="$(COPTS) $(OPTIONS)" \
  317.              LIBS="-lsuntool -lsunwindow -lpixrect $(LIBS)" \
  318. ***************
  319. *** 251,262 ****
  320.   
  321.   SGIX11_FLAGS = \
  322.              CFLAGS="$(COPTS) $(OPTIONS)" \
  323. !            LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  324.              X11INCLUDES="-I/usr/include/X11 -I/usr/include/X11/Xaw" \
  325.              X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lXext -lX11" \
  326.               PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  327.               X11INSTALL="$(X11INSTALL)" \
  328. !            TERMFLAGS="-Iterm -DX11"
  329.   
  330.   CGI_FLAGS = \
  331.              CFLAGS="$(COPTS) $(OPTIONS) -Dunix" \
  332. --- 260,271 ----
  333.   
  334.   SGIX11_FLAGS = \
  335.              CFLAGS="$(COPTS) $(OPTIONS)" \
  336. !            LIBS="-lgl_s -lm -lc_s" X11FLAGS="$(X11FLAGS)" \
  337.              X11INCLUDES="-I/usr/include/X11 -I/usr/include/X11/Xaw" \
  338.              X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lXext -lX11" \
  339.               PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  340.               X11INSTALL="$(X11INSTALL)" \
  341. !            TERMFLAGS="-Iterm -DX11 -DIRIS4D"
  342.   
  343.   CGI_FLAGS = \
  344.              CFLAGS="$(COPTS) $(OPTIONS) -Dunix" \
  345. ***************
  346. *** 303,314 ****
  347.              TERMFLAGS="$(TERMFLAGS)"
  348.   
  349.   NEXT_FLAGS = \
  350. !            CFLAGS="$(COPTS) -DNOCWDRC -DGAMMA=lgamma -DNEXT" \
  351.              LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  352.              X11INCLUDES=" " X11LIBS=" " PLOTXFLAG=" " \
  353.              GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  354.              TERMFLAGS="-Iterm"
  355.   
  356.   ####################################################################
  357.   # List of object files except version.o
  358.   OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  359. --- 312,348 ----
  360.              TERMFLAGS="$(TERMFLAGS)"
  361.   
  362.   NEXT_FLAGS = \
  363. !            CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT" \
  364.              LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  365.              X11INCLUDES=" " X11LIBS=" " PLOTXFLAG=" " \
  366.              GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  367.              TERMFLAGS="-Iterm"
  368.   
  369. + NEXT_X11_FLAGS = \
  370. +            CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT" \
  371. +            LIBS="-lm" \
  372. +            X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lX11" \
  373. +            X11INCLUDES="$(X11INCLUDES)" X11FLAGS="$(X11FLAGS)" \
  374. +            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  375. +            X11INSTALL="$(X11INSTALL)" \
  376. +            TERMFLAGS="-Iterm -DX11"
  377. + CRAY_FLAGS = \
  378. +        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  379. +        LIBS="-lm" X11FLAGS=" " \
  380. +        X11INCLUDES=" " \
  381. +        X11LIBS=" " \
  382. +        PLOTXFLAG=" " GNUPLOT_X11=" " \
  383. +        X11INSTALL=x11_noinstall \
  384. +        TERMFLAGS="-Iterm"
  385. + CRAY_X11_FLAGS = \
  386. +        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  387. +        LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  388. +        X11INCLUDES="$(X11INCLUDES)" \
  389. +        X11LIBS="$(X11LIBS)" \
  390. +        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  391. +        X11INSTALL=$(X11INSTALL) \
  392. +        TERMFLAGS="-Iterm -DX11"
  393.   ####################################################################
  394.   # List of object files except version.o
  395.   OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  396. ***************
  397. *** 373,379 ****
  398.       @echo 
  399.       @echo "apollo, apollo_motif       for Apollo running SR10.3 with Apollo's X11R3"
  400.       @echo "dec, dec_motif             for Dec3100/5000 running Ultrix 3.1d with MIT's X11R4"
  401. !     @echo "hp                         for HP/9000 700 series running HP/UX 8.0 with MIT's X11R4"
  402.       @echo "sun                        for Sun sparcstation running SunOS 4.1 with suntools (no X11R4) "
  403.       @echo "sun_x11                    for Sun sparcstation running SunOS 4.1 with suntools and X11R4 "
  404.       @echo "sgi                        for Silicon Graphics IRIS4D machines (no X11R4) "
  405. --- 407,413 ----
  406.       @echo 
  407.       @echo "apollo, apollo_motif       for Apollo running SR10.3 with Apollo's X11R3"
  408.       @echo "dec, dec_motif             for Dec3100/5000 running Ultrix 3.1d with MIT's X11R4"
  409. !     @echo "hp, hp_motif               for HP/9000 700 series running HP/UX 8.0 with MIT's X11R4"
  410.       @echo "sun                        for Sun sparcstation running SunOS 4.1 with suntools (no X11R4) "
  411.       @echo "sun_x11                    for Sun sparcstation running SunOS 4.1 with suntools and X11R4 "
  412.       @echo "sgi                        for Silicon Graphics IRIS4D machines (no X11R4) "
  413. ***************
  414. *** 384,389 ****
  415. --- 418,425 ----
  416.       @echo "386ix_x11                  for 386 machines running 386/ix with T.Roell X386"
  417.       @echo "ibmrs6000, ibmrs6000_motif for IBM RS/6000 running Aix 3.1 with IBM's X11R3"
  418.       @echo "x11r4, x11r4_motif         for a generic machine (like a sun or dec) with MIT's X11R4"
  419. +     @echo "cray            for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 (no X11R4)"
  420. +     @echo "cray_x11        for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 with X11R4"
  421.       @echo 
  422.       @echo "Examples:"
  423.       @echo
  424. ***************
  425. *** 401,407 ****
  426.       @echo "         make sgi"
  427.       @echo "         make 3b1"
  428.       @echo "         make 386ix"
  429. !     @echo "         make ibmrs6000    MANDEST='/usr/usr/misc/man/man1' COPTS='-O' "
  430.       @echo 
  431.       @echo "If you just type 'make All' , it will build gnuplot for Unix X11R4/Athena"
  432.       @echo "and the following variables will be used as default:"
  433. --- 437,445 ----
  434.       @echo "         make sgi"
  435.       @echo "         make 3b1"
  436.       @echo "         make 386ix"
  437. !     @echo "         make ibmrs6000    MANDEST='/usr/um/misc/man/man1' COPTS='-O' "
  438. !     @echo "         make cray"
  439. !     @echo "         make cray_x11"
  440.       @echo 
  441.       @echo "If you just type 'make All' , it will build gnuplot for Unix X11R4/Athena"
  442.       @echo "and the following variables will be used as default:"
  443. ***************
  444. *** 450,458 ****
  445. --- 488,502 ----
  446.   hp:
  447.       $(MAKE) $(MFLAGS) $(MY_FLAGS) $(HP_FLAGS)       $(TARGET)
  448.   
  449. + hp_motif:
  450. +     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(HP_M_FLAGS)       $(TARGET)
  451.   next:
  452.       $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_FLAGS)     $(TARGET)
  453.   
  454. + next_x11:
  455. +     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_X11_FLAGS)     $(TARGET)
  456.   sun:
  457.       $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SUN_FLAGS)      $(TARGET)
  458.   
  459. ***************
  460. *** 482,487 ****
  461. --- 526,535 ----
  462.   
  463.   ibmrs6000_motif:
  464.       $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIX_M_FLAGS)    $(TARGET)
  465. + cray:
  466. +     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_FLAGS)     $(TARGET)
  467. + cray_x11:
  468. +     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_X11_FLAGS) $(TARGET)
  469.   
  470.   #############################################################
  471.   # Targets that really do something
  472. ***************
  473. *** 496,502 ****
  474.       $(LD) $(OBJS) version.o $(LIBS) -o gnuplot
  475.   
  476.   doc:
  477. !     ( cd docs; make $(MFLAGS) gnuplot.gih )
  478.   
  479.   gnuplot_x11: gnuplot_x11.c
  480.       $(CC) $(CFLAGS) $(X11FLAGS) $(X11INCLUDES) -o gnuplot_x11 gnuplot_x11.c $(X11LIBS)
  481. --- 544,550 ----
  482.       $(LD) $(OBJS) version.o $(LIBS) -o gnuplot
  483.   
  484.   doc:
  485. !     ( cd docs; $(MAKE) $(MFLAGS) gnuplot.gih )
  486.   
  487.   gnuplot_x11: gnuplot_x11.c
  488.       $(CC) $(CFLAGS) $(X11FLAGS) $(X11INCLUDES) -o gnuplot_x11 gnuplot_x11.c $(X11LIBS)
  489. ***************
  490. *** 527,533 ****
  491.   Install: All man_install $(X11INSTALL) $(LASERGNU)
  492.       cp gnuplot     $(DEST)
  493.       strip $(DEST)/gnuplot
  494. !     (cd docs; make $(MFLAGS) install-unix HELPDEST=$(HELPDEST))
  495.   
  496.   x11_install: gnuplot_x11
  497.       cp gnuplot_x11 $(DEST)
  498. --- 575,581 ----
  499.   Install: All man_install $(X11INSTALL) $(LASERGNU)
  500.       cp gnuplot     $(DEST)
  501.       strip $(DEST)/gnuplot
  502. !     ( cd docs; $(MAKE) $(MFLAGS) install-unix HELPDEST=$(HELPDEST) )
  503.   
  504.   x11_install: gnuplot_x11
  505.       cp gnuplot_x11 $(DEST)
  506. ***************
  507. *** 591,603 ****
  508.   
  509.   clean:
  510.       rm -f *.o *~ *.bak term/*~ term/*.bak
  511. !     (cd docs; make $(MFLAGS) clean)
  512. !     (cd docs/latextut; make $(MFLAGS) clean)
  513.   
  514.   spotless:
  515.       rm -f *.o *~ *.bak term/*~ term/*.bak TAGS gnuplot gnuplot_x11
  516. !     (cd docs; make $(MFLAGS) clean)
  517. !     (cd docs/latextut; make $(MFLAGS) spotless)
  518.   
  519.   ################################################################
  520.   # Making shar files for mailing gnuplot
  521. --- 639,651 ----
  522.   
  523.   clean:
  524.       rm -f *.o *~ *.bak term/*~ term/*.bak
  525. !     ( cd docs; $(MAKE) $(MFLAGS) clean )
  526. !     ( cd docs/latextut; $(MAKE) $(MFLAGS) clean )
  527.   
  528.   spotless:
  529.       rm -f *.o *~ *.bak term/*~ term/*.bak TAGS gnuplot gnuplot_x11
  530. !     ( cd docs; $(MAKE) $(MFLAGS) clean )
  531. !     ( cd docs/latextut; $(MAKE) $(MFLAGS) spotless )
  532.   
  533.   ################################################################
  534.   # Making shar files for mailing gnuplot
  535. diff -c -r ./parse.c ../gnuplot3p1/parse.c
  536. *** ./parse.c    Fri Sep  6 09:00:06 1991
  537. --- ../gnuplot3p1/parse.c    Sun Dec  1 14:47:33 1991
  538. ***************
  539. *** 66,82 ****
  540.   #ifdef __TURBOC__
  541.   void fpe()
  542.   #else
  543. ! #ifdef __ZTC__
  544.   void fpe(an_int)
  545.   int an_int;
  546.   #else
  547. ! #ifdef _CRAY
  548. ! void fpe(an_int)
  549. ! int an_int;
  550.   #else
  551.   fpe()
  552.   #endif
  553. ! #endif
  554.   #endif
  555.   {
  556.   #ifdef PC    /* thanks to lotto@wjh12.UUCP for telling us about this  */
  557. --- 66,81 ----
  558.   #ifdef __TURBOC__
  559.   void fpe()
  560.   #else
  561. ! #if defined( __ZTC__ ) || defined( _CRAY )
  562.   void fpe(an_int)
  563.   int an_int;
  564.   #else
  565. ! #ifdef NEXT
  566. ! void fpe(int an_int)
  567.   #else
  568.   fpe()
  569.   #endif
  570. ! #endif /* __ZTC__ || _CRAY */
  571.   #endif
  572.   {
  573.   #ifdef PC    /* thanks to lotto@wjh12.UUCP for telling us about this  */
  574. diff -c -r ./plot.c ../gnuplot3p1/plot.c
  575. *** ./plot.c    Thu Sep  5 11:19:10 1991
  576. --- ../gnuplot3p1/plot.c    Sun Dec  1 14:47:22 1991
  577. ***************
  578. *** 168,174 ****
  579. --- 168,178 ----
  580.   void inter(an_int)
  581.   int an_int;
  582.   #else
  583. + #ifdef NEXT
  584. + void inter(int an_int)
  585. + #else
  586.   inter()
  587. + #endif
  588.   #endif
  589.   #endif
  590.   {
  591. diff -c -r ./plot.h ../gnuplot3p1/plot.h
  592. *** ./plot.h    Thu Sep  5 11:19:10 1991
  593. --- ../gnuplot3p1/plot.h    Sun Dec  1 14:58:27 1991
  594. ***************
  595. *** 133,138 ****
  596. --- 133,141 ----
  597.   #else
  598.   #if defined( vms ) || defined( _CRAY ) || defined( NEXT )
  599.   #include <float.h>
  600. + #if defined ( NEXT )  /* bug in NeXT OS 2.0 */
  601. + #define DBL_MAX 1.7976931348623157e+308 
  602. + #endif
  603.   #define VERYLARGE DBL_MAX
  604.   #else
  605.   #if defined(AMIGA_AC_5) || defined(AMIGA_LC_5_1)
  606. diff -c -r ./readline.c ../gnuplot3p1/readline.c
  607. *** ./readline.c    Tue Sep 10 15:19:46 1991
  608. --- ../gnuplot3p1/readline.c    Sun Dec  1 14:58:25 1991
  609. ***************
  610. *** 34,40 ****
  611.   #ifdef READLINE
  612.   
  613.   /* a small portable version of GNU's readline */
  614.   /* do not need any terminal capabilities except backspace,
  615.   /* and space overwrites a character */
  616.   
  617. --- 34,41 ----
  618.   #ifdef READLINE
  619.   
  620.   /* a small portable version of GNU's readline */
  621. ! /* this is not the BASH or GNU EMACS version of READLINE due to Copyleft 
  622. !     restrictions */
  623.   /* do not need any terminal capabilities except backspace,
  624.   /* and space overwrites a character */
  625.   
  626. diff -c -r ./scanner.c ../gnuplot3p1/scanner.c
  627. *** ./scanner.c    Thu Sep  5 11:19:12 1991
  628. --- ../gnuplot3p1/scanner.c    Sun Dec  1 15:36:52 1991
  629. ***************
  630. *** 84,105 ****
  631.    *
  632.    *     Scanning is performed by following rules:
  633.    *
  634. !  *        Current char    token should contain
  635.    *     -------------    -----------------------
  636. !  *        1.  alpha        all following alpha-numerics
  637. !  *        2.  digit        0 or more following digits, 0 or 1 decimal point,
  638. !  *                          0 or more digits, 0 or 1 'e' or 'E',
  639. !  *                          0 or more digits.
  640. !  *        3.  ^,+,-,/        only current char
  641. !  *            %,~,(,)
  642. !  *            [,],;,:,
  643. !  *            ?,comma
  644. !  *        4.  &,|,=,*        current char; also next if next is same
  645. !  *        5.  !,<,>        current char; also next if next is =
  646. !  *        6.  ", '        all chars up until matching quote
  647. !  *        7.  #          this token cuts off scanning of the line (DFK).
  648.    *
  649. !  *        white space between tokens is ignored
  650.    */
  651.   scanner(expression)
  652.   char expression[];
  653. --- 84,105 ----
  654.    *
  655.    *     Scanning is performed by following rules:
  656.    *
  657. !  *    Current char    token should contain
  658.    *     -------------    -----------------------
  659. !  *    1.  alpha,_    all following alpha-numerics
  660. !  *    2.  digit    0 or more following digits, 0 or 1 decimal point,
  661. !  *                0 or more digits, 0 or 1 'e' or 'E',
  662. !  *                0 or more digits.
  663. !  *    3.  ^,+,-,/    only current char
  664. !  *        %,~,(,)
  665. !  *        [,],;,:,
  666. !  *        ?,comma
  667. !  *    4.  &,|,=,*    current char; also next if next is same
  668. !  *    5.  !,<,>    current char; also next if next is =
  669. !  *    6.  ", '    all chars up until matching quote
  670. !  *    7.  #        this token cuts off scanning of the line (DFK).
  671.    *
  672. !  *            white space between tokens is ignored
  673.    */
  674.   scanner(expression)
  675.   char expression[];
  676. ***************
  677. *** 122,128 ****
  678.               substitute(&expression[current],MAX_LINE_LEN - current);
  679.               goto again;
  680.           }
  681. !         if (isalpha(expression[current])) {
  682.               SCAN_IDENTIFIER;
  683.           } else if (isdigit(expression[current]) || expression[current] == '.'){
  684.               token[t_num].is_token = FALSE;
  685. --- 122,129 ----
  686.               substitute(&expression[current],MAX_LINE_LEN - current);
  687.               goto again;
  688.           }
  689. !         /* allow _ to be the first character of an identifier */
  690. !         if (isalpha(expression[current]) || expression[current] == '_') {
  691.               SCAN_IDENTIFIER;
  692.           } else if (isdigit(expression[current]) || expression[current] == '.'){
  693.               token[t_num].is_token = FALSE;
  694. diff -c -r ./standard.c ../gnuplot3p1/standard.c
  695. *** ./standard.c    Thu Jul 18 14:02:06 1991
  696. --- ../gnuplot3p1/standard.c    Sun Dec  1 14:58:45 1991
  697. ***************
  698. *** 368,374 ****
  699.   f_atan()
  700.   {
  701.   struct value a;
  702. ! register double x, y;
  703.       (void) pop(&a);
  704.       x = real(&a); y = imag(&a);
  705.       if (y == 0.0)
  706. --- 368,374 ----
  707.   f_atan()
  708.   {
  709.   struct value a;
  710. ! register double x, y, u, v, w, z;
  711.       (void) pop(&a);
  712.       x = real(&a); y = imag(&a);
  713.       if (y == 0.0)
  714. ***************
  715. *** 376,384 ****
  716.       else if (x == 0.0 && fabs(y) == 1.0) {
  717.           undefined = TRUE;
  718.           push(complex(&a,0.0, 0.0));
  719. !     } else
  720. !         push( complex(&a,atan(2*x/(1-x*x-y*y)),
  721. !                 log((x*x+(y+1)*(y+1))/(x*x+(y-1)*(y-1)))/4) );
  722.   }
  723.   
  724.   f_sinh()
  725. --- 376,400 ----
  726.       else if (x == 0.0 && fabs(y) == 1.0) {
  727.           undefined = TRUE;
  728.           push(complex(&a,0.0, 0.0));
  729. !     } else {
  730. !             if (x >= 0) {
  731. !                 u = x;
  732. !             v = y;
  733. !         } else {
  734. !                 u = -x;
  735. !             v = -y;
  736. !         }
  737. !         
  738. !             z = atan(2*u/(1-u*u-v*v));
  739. !         w = log((u*u+(v+1)*(v+1))/(u*u+(v-1)*(v-1)))/4;
  740. !         if (z < 0)
  741. !                 z = z + 2*PI_ON_TWO;
  742. !         if (x < 0) {
  743. !                 z = -z;
  744. !             w = -w;
  745. !         }
  746. !         push( complex(&a,0.5*z, w) );
  747. !     }
  748.   }
  749.   
  750.   f_sinh()
  751. Common subdirectories: ./term and ../gnuplot3p1/term
  752. diff -c -r ./term.c ../gnuplot3p1/term.c
  753. *** ./term.c    Thu Sep  5 11:19:14 1991
  754. --- ../gnuplot3p1/term.c    Sun Dec  1 14:48:26 1991
  755. ***************
  756. *** 298,304 ****
  757.   #include "term/hpljii.trm"
  758.   #endif
  759.   
  760. ! #ifdef HPLJII /* HP LaserJet III in HPGL mode */
  761.   #  ifndef HPGL
  762.   #    define HPGL
  763.   #  endif
  764. --- 298,304 ----
  765.   #include "term/hpljii.trm"
  766.   #endif
  767.   
  768. ! #ifdef HPLJIII /* HP LaserJet III in HPGL mode */
  769.   #  ifndef HPGL
  770.   #    define HPGL
  771.   #  endif
  772. ***************
  773. *** 354,359 ****
  774. --- 354,363 ----
  775.   #include "term/aed.trm"
  776.   #endif /* AED */
  777.   
  778. + #ifdef AIFM
  779. + #include "term/ai.trm"
  780. + #endif /* AIFM */
  781.   #ifdef CGI
  782.   #include "term/cgi.trm"
  783.   #endif /* CGI */
  784. ***************
  785. *** 632,637 ****
  786. --- 636,650 ----
  787.          null_justify_text, do_point, do_arrow}
  788.   #endif
  789.   
  790. + #ifdef AIFM
  791. +     ,{"aifm", "Adobe Illustrator 3.0 Format",
  792. +        AI_XMAX, AI_YMAX, AI_VCHAR, AI_HCHAR, 
  793. +        AI_VTIC, AI_HTIC, AI_options, AI_init, AI_reset, 
  794. +        AI_text, null_scale, AI_graphics, AI_move, AI_vector, 
  795. +        AI_linetype, AI_put_text, AI_text_angle, 
  796. +        AI_justify_text, do_point, do_arrow}
  797. + #endif
  798.   #ifdef APOLLO
  799.          ,{"apollo", "Apollo Graphics Primitive Resource, rescaling of subsequent plots after window resizing",
  800.          0, 0, 0, 0, /* APOLLO_XMAX, APOLLO_YMAX, APOLLO_VCHAR, APOLLO_HCHAR, are filled in at run-time */
  801. ***************
  802. *** 799,811 ****
  803.   #endif
  804.   
  805.   #ifdef HPLJIII
  806. !     ,{"hpljiii_port", "HP laserjet iii (using HPGL plot vectors), portrait mode",
  807.       HPGL_XMAX, HPGL_YMAX, HPGL_VCHAR, HPGL_HCHAR,
  808.       HPGL_VTIC, HPGL_HTIC, options_null, HPLJIII_PORT_init, HPLJIII_reset,
  809.       HPGL_text, null_scale, HPGL_graphics, HPGL_move, HPGL_vector,
  810.       HPGL_linetype, HPGL_put_text, HPGL_text_angle,
  811.       null_justify_text, do_point, do_arrow}
  812. !      ,{"hpljiii_land", "HP laserjet iii (using HPGL plot vectors), landscape mode",
  813.       HPGL_XMAX, HPGL_YMAX, HPGL_VCHAR, HPGL_HCHAR,
  814.       HPGL_VTIC, HPGL_HTIC, options_null, HPLJIII_LAND_init, HPLJIII_reset,
  815.       HPGL_text, null_scale, HPGL_graphics, HPGL_move, HPGL_vector,
  816. --- 812,824 ----
  817.   #endif
  818.   
  819.   #ifdef HPLJIII
  820. !     ,{"pcl5_port", "HP laserjet iii (using HPGL plot vectors), portrait mode",
  821.       HPGL_XMAX, HPGL_YMAX, HPGL_VCHAR, HPGL_HCHAR,
  822.       HPGL_VTIC, HPGL_HTIC, options_null, HPLJIII_PORT_init, HPLJIII_reset,
  823.       HPGL_text, null_scale, HPGL_graphics, HPGL_move, HPGL_vector,
  824.       HPGL_linetype, HPGL_put_text, HPGL_text_angle,
  825.       null_justify_text, do_point, do_arrow}
  826. !      ,{"pcl5_land", "HP laserjet iii (using HPGL plot vectors), landscape mode",
  827.       HPGL_XMAX, HPGL_YMAX, HPGL_VCHAR, HPGL_HCHAR,
  828.       HPGL_VTIC, HPGL_HTIC, options_null, HPLJIII_LAND_init, HPLJIII_reset,
  829.       HPGL_text, null_scale, HPGL_graphics, HPGL_move, HPGL_vector,
  830. ***************
  831. *** 889,895 ****
  832.       ,{"postscript", "PostScript graphics language [mode \042fontname\042 font_size]",
  833.          PS_XMAX, PS_YMAX, PS_VCHAR, PS_HCHAR, 
  834.          PS_VTIC, PS_HTIC, PS_options, PS_init, PS_reset, 
  835. !        PS_text, do_scale, PS_graphics, PS_move, PS_vector, 
  836.          PS_linetype, PS_put_text, PS_text_angle, 
  837.          PS_justify_text, PS_point, do_arrow}
  838.   #endif
  839. --- 902,908 ----
  840.       ,{"postscript", "PostScript graphics language [mode \042fontname\042 font_size]",
  841.          PS_XMAX, PS_YMAX, PS_VCHAR, PS_HCHAR, 
  842.          PS_VTIC, PS_HTIC, PS_options, PS_init, PS_reset, 
  843. !        PS_text, null_scale, PS_graphics, PS_move, PS_vector, 
  844.          PS_linetype, PS_put_text, PS_text_angle, 
  845.          PS_justify_text, PS_point, do_arrow}
  846.   #endif
  847. diff -c -r ./term.h ../gnuplot3p1/term.h
  848. *** ./term.h    Thu Sep  5 11:19:16 1991
  849. --- ../gnuplot3p1/term.h    Sun Dec  1 14:48:24 1991
  850. ***************
  851. *** 102,107 ****
  852. --- 102,108 ----
  853.   #define EPS60        /* Epson-style 60-dot per inch printers */
  854.   #define EPSONP        /* Epson LX-800, Star NL-10, NX-1000 and lots of others */
  855.   #define HPLJII        /* HP LaserJet II */
  856. + #define HPLJIII        /* HP LaserJet III */
  857.   #define LATEX        /* LATEX picture environment */
  858.   
  859.   /* These are for MSDOS only */
  860. diff -c -r ./util.c ../gnuplot3p1/util.c
  861. *** ./util.c    Sun Sep  8 09:01:16 1991
  862. --- ../gnuplot3p1/util.c    Sun Dec  1 15:36:52 1991
  863. ***************
  864. *** 162,168 ****
  865.   int t_num;
  866.   {
  867.       return(token[t_num].is_token &&
  868. !             (isalpha(input_line[token[t_num].start_index])));
  869.   }
  870.   
  871.   
  872. --- 162,169 ----
  873.   int t_num;
  874.   {
  875.       return(token[t_num].is_token &&
  876. !             ((isalpha(input_line[token[t_num].start_index]))||
  877. !              (input_line[token[t_num].start_index] == '_')));
  878.   }
  879.   
  880.   
  881. diff -c -r ./version.c ../gnuplot3p1/version.c
  882. *** ./version.c    Sun Sep 29 18:59:00 1991
  883. --- ../gnuplot3p1/version.c    Mon Dec  2 15:19:41 1991
  884. ***************
  885. *** 35,42 ****
  886.    */
  887.   
  888.   char version[] = "3.0 ";
  889. ! char patchlevel[] = "0, Sep 29 91";
  890. ! char date[] = "Sun Sep 29 16:56:36 1991";
  891.   
  892.   /* override in Makefile */
  893.   #ifndef CONTACT
  894. --- 35,42 ----
  895.    */
  896.   
  897.   char version[] = "3.0 ";
  898. ! char patchlevel[] = "1, Dec 1 91";
  899. ! char date[] = "Sun Dec 1 16:56:36 1991";
  900.   
  901.   /* override in Makefile */
  902.   #ifndef CONTACT
  903. diff -c -r ./demo/world.cor ../gnuplot3p1/demo/world.cor
  904. *** ./demo/world.cor    Thu Jun 27 16:55:42 1991
  905. --- ../gnuplot3p1/demo/world.cor    Sun Dec  1 14:48:17 1991
  906. ***************
  907. *** 34,42 ****
  908.   -84 34         # Atlanta, Georgia
  909.   -84 42         # Univ. of Michigan, Ann Arbor, Michigan
  910.   -86 39         # UCS Indiana (?)
  911.   -88 42         # Arlington Heights, Illinois
  912.   -88 42         # Northwestern University, Evanston, Illinois
  913. - -90 43         # UIUCS, Urabana, Illinois (?)
  914.   -92 30         # Lafayette, Louisiana
  915.   -93 45         # Eagan, Minnesota
  916.   -95 30         # Houston, Texas
  917. --- 34,42 ----
  918.   -84 34         # Atlanta, Georgia
  919.   -84 42         # Univ. of Michigan, Ann Arbor, Michigan
  920.   -86 39         # UCS Indiana (?)
  921. + -88 40         # University of Illinois, Urbana-Champaign, Illinois
  922.   -88 42         # Arlington Heights, Illinois
  923.   -88 42         # Northwestern University, Evanston, Illinois
  924.   -92 30         # Lafayette, Louisiana
  925.   -93 45         # Eagan, Minnesota
  926.   -95 30         # Houston, Texas
  927. diff -c -r ./docs/gnuplot.doc ../gnuplot3p1/docs/gnuplot.doc
  928. *** ./docs/gnuplot.doc    Tue Sep 17 10:21:06 1991
  929. --- ../gnuplot3p1/docs/gnuplot.doc    Sun Dec  1 15:57:55 1991
  930. ***************
  931. *** 145,151 ****
  932.   %Up Arrow@@same as ^P.
  933.   %Down Arrow@@same as ^N.
  934.   %_
  935. ! @end table 
  936.   2 comment
  937.   ?comments
  938.    Comments are supported as follows: a # may appear in most places in a line
  939. --- 145,153 ----
  940.   %Up Arrow@@same as ^P.
  941.   %Down Arrow@@same as ^N.
  942.   %_
  943. ! @end table
  944. !  (The readline function in gnuplot is not the same as the readline used
  945. !  in GNU BASH and GNU EMACS.  It is somewhat compatible however.) 
  946.   2 comment
  947.   ?comments
  948.    Comments are supported as follows: a # may appear in most places in a line
  949. ***************
  950. *** 699,706 ****
  951.   
  952.    A simple example of plotting a 3-d data file is
  953.    
  954.            splot 'glass.dat'
  955.    For more information about 3-d plotting, see `splot`.
  956.   4 using
  957.   ?plot datafile using
  958. --- 701,736 ----
  959.   
  960.    A simple example of plotting a 3-d data file is
  961.    
  962. +          set parametric
  963.            splot 'glass.dat'
  964. !  
  965. !  or
  966. !  
  967. !          set noparametric
  968. !          splot 'datafile.dat'
  969. !  
  970. !  where the file datafile.dat might contain:
  971. !  
  972. !          # The valley of the Gnu.
  973. !          10
  974. !          10
  975. !          10
  976. !  
  977. !          10
  978. !          5
  979. !          10
  980. !  
  981. !          10
  982. !          1
  983. !          10
  984. !  
  985. !          10
  986. !          0
  987. !          10
  988. !  
  989. !  Note datafile.dat defines a 4 by 3 grid ( 4 rows of 3 points each ).
  990. !  Rows are seperated by blank lines.
  991. !  
  992.    For more information about 3-d plotting, see `splot`.
  993.   4 using
  994.   ?plot datafile using
  995. ***************
  996. *** 1929,1936 ****
  997.            set terminal postscript {<mode>} {<color>}
  998.                                    {"<fontname>"} {<fontsize>}
  999.   
  1000. !  where <mode> is `landscape`, `portrait` or `default`. Selecting default
  1001. !  sets all options to their defaults.
  1002.    <color> is either `color` or `monochrome`.
  1003.    "<fontname>" is the name of a valid PostScript font.
  1004.    <fontsize> is the size of the font in PostScript points, before 
  1005. --- 1959,1966 ----
  1006.            set terminal postscript {<mode>} {<color>}
  1007.                                    {"<fontname>"} {<fontsize>}
  1008.   
  1009. !  where <mode> is `landscape`, `portrait`, `eps` or `default`. 
  1010. !  Selecting default sets all options to their defaults.
  1011.    <color> is either `color` or `monochrome`.
  1012.    "<fontname>" is the name of a valid PostScript font.
  1013.    <fontsize> is the size of the font in PostScript points, before 
  1014. ***************
  1015. *** 1939,1954 ****
  1016.    Default size of PostScript plot is landscape mode 10 inches wide 
  1017.    and 7 inches high.
  1018.   
  1019.    Examples:
  1020.    
  1021. -          set size 1,1
  1022.            set term postscript default       # old postscript
  1023.            set term postscript landscape 22  # old psbig
  1024. !          set size 0.5,0.5
  1025. !          set term postscript portrait 14   # old epsf1
  1026. !          set term postscript portrait 22   # old epsf2
  1027. !          set size 1,1; set term post landscape color "Times-Roman" 14 
  1028.    
  1029.   3 tics
  1030.   ?set tics
  1031.   ?show tics
  1032. --- 1969,2015 ----
  1033.    Default size of PostScript plot is landscape mode 10 inches wide 
  1034.    and 7 inches high.
  1035.   
  1036. +  To get EPS output, use the `eps` mode and make only one plot per file.
  1037. +  In `eps` mode the whole plot is halved in size; the fonts are half the 
  1038. +  given size, and the plot is 5 inches wide and 3.5 inches high.
  1039.    Examples:
  1040.    
  1041.            set term postscript default       # old postscript
  1042.            set term postscript landscape 22  # old psbig
  1043. !          set term postscript eps 14   # old epsf1
  1044. !          set term postscript eps 22   # old epsf2
  1045. !          set size 0.7,1.4
  1046. !          set term post portrait color "Times-Roman" 14 
  1047.    
  1048. + 4 aifm
  1049. + ?set terminal aifm
  1050. + ?aifm
  1051. +  Several options may be set in the Adobe Illustrator 3.0 driver.
  1052. +  Syntax:
  1053. +          set terminal aifm {<color>}
  1054. +                                  {"<fontname>"} {<fontsize>}
  1055. +  Selecting default sets all options to their defaults.
  1056. +  <color> is either `color` or `monochrome`.
  1057. +  "<fontname>" is the name of a valid PostScript font.
  1058. +  <fontsize> is the size of the font in PostScript points, before 
  1059. +  scaling by the `set size` command.
  1060. +  Defaults are `monochrome`, "Courier", and 14pt.
  1061. +  Also, since AI does not really support multiple pages, multiple 
  1062. +  graphs will be output directly on one another.  However, each graph 
  1063. +  will be grouped individually, making it easy to separate them inside 
  1064. +  AI (just pick them up and move them).
  1065. +  Examples:
  1066. +  
  1067. +          set term aifm 
  1068. +          set term aifm 22  
  1069. +          set size 0.7,1.4
  1070. +          set term aifm color "Times-Roman" 14 
  1071. +  
  1072.   3 tics
  1073.   ?set tics
  1074.   ?show tics
  1075. ***************
  1076. *** 2457,2464 ****
  1077.    See `show functions` and `show variables`.
  1078.   2 bugs
  1079.   ?bugs
  1080. -  The atan() function does not work correctly for complex arguments.
  1081. -  
  1082.    The bessel functions do not work for complex arguments.
  1083.    
  1084.    The gamma function does not work for complex arguments.
  1085. --- 2518,2523 ----
  1086. Common subdirectories: ./docs/latextut and ../gnuplot3p1/docs/latextut
  1087. Only in ../gnuplot3p1/term: ai.trm
  1088. diff -c -r ./term/amiga.trm ../gnuplot3p1/term/amiga.trm
  1089. *** ./term/amiga.trm    Fri Sep 20 13:31:58 1991
  1090. --- ../gnuplot3p1/term/amiga.trm    Fri Dec 13 12:58:48 1991
  1091. ***************
  1092. *** 47,68 ****
  1093.   #include <intuition/screens.h>
  1094.   #include <graphics/text.h>
  1095.   #include <graphics/gfxbase.h>
  1096. - #define OSCAN_TEXT     (1)                   /*                            */
  1097. - #define SA_Dummy       (TAG_USER + 32)       /* This stuff is temporary    */
  1098. - #define SA_Overscan    (SA_Dummy + 0x0014)   /* until Aztec C implements   */
  1099. - #define STDSCREENWIDTH -1                    /* KS/WB 2.0 support.         */
  1100. - #define TAG_DONE       (0L)                  /*                            */
  1101. - #define TAG_USER       (1L<<31)              /*                            */
  1102. -                                              /*                            */
  1103. - typedef ULONG Tag;                           /*                            */
  1104. -                                              /*                            */
  1105. - struct TagItem                               /*                            */
  1106. -    {                                         /*                            */
  1107. -    Tag   ti_Tag;                             /*                            */
  1108. -    ULONG ti_Data;                            /*                            */
  1109. -    };                                        /*                            */
  1110.   #else
  1111.   /* You will have to use the Kickstart 2.0 header files for this to compile */
  1112.   #include <exec/types.h>
  1113. --- 47,52 ----
  1114. ***************
  1115. *** 159,165 ****
  1116.     }
  1117.     if (IntuitionBase->LibNode.lib_Version <= 34) {
  1118.       /* We compute the vertical resolution for those poor NTSC-souls   :-)   */
  1119. !     if (GfxBase->DisplayFlags && PAL) AMIGA_ymax = 512;
  1120.       else AMIGA_ymax = 400;
  1121.       AMIGA_xmax = 640;
  1122.       AMIGA_NewScreen.Width = AMIGA_xmax;
  1123. --- 143,149 ----
  1124.     }
  1125.     if (IntuitionBase->LibNode.lib_Version <= 34) {
  1126.       /* We compute the vertical resolution for those poor NTSC-souls   :-)   */
  1127. !     if (GfxBase->DisplayFlags & PAL) AMIGA_ymax = 512;
  1128.       else AMIGA_ymax = 400;
  1129.       AMIGA_xmax = 640;
  1130.       AMIGA_NewScreen.Width = AMIGA_xmax;
  1131. ***************
  1132. *** 174,187 ****
  1133.       /* Kickstart 2.0 support */
  1134.       AMIGA_NewScreen.Width = STDSCREENWIDTH;
  1135.       AMIGA_NewScreen.Height = STDSCREENHEIGHT;
  1136. -     /* I had to set TopEdge equal to 1 with my (probably outdated) software */
  1137. -     /* version of Kickstart 2.0 in order for the last line to be displayed */
  1138. -     /* correctly. Remove the next two lines and check if it still works */
  1139. -     /* with newer ROM-versions of Kickstart 2.0 */
  1140. - #ifdef AMIGA_LC_5_1
  1141. -     AMIGA_NewScreen.TopEdge = 1;
  1142. -     AMIGA_NewScreen.LeftEdge = 0;
  1143. - #endif
  1144.       AMIGA_Screen = OpenScreenTagList(&AMIGA_NewScreen,AMIGA_ScrTagList);
  1145.       if (AMIGA_Screen == NULL) {
  1146.         fprintf(stderr,"No Screen\n");
  1147. --- 158,163 ----
  1148. diff -c -r ./term/apollo.trm ../gnuplot3p1/term/apollo.trm
  1149. *** ./term/apollo.trm    Mon Jun  3 11:15:26 1991
  1150. --- ../gnuplot3p1/term/apollo.trm    Sun Dec  1 15:21:18 1991
  1151. ***************
  1152. *** 13,18 ****
  1153. --- 13,19 ----
  1154.       Ray Lischner (uunet!mntgfx!lisch)
  1155.       4 October 1989    file created for GNUplot 1.1
  1156.       26 March 1990    updated for GNUplot 2.0
  1157. +     30 October 1991    fixed minor problem in apollo_tic_sizes
  1158.   */
  1159.   
  1160.   #include <apollo/base.h>
  1161. ***************
  1162. *** 148,155 ****
  1163.       if (tbl->v_tic < APOLLO_VTIC)
  1164.       tbl->v_tic = APOLLO_VTIC;
  1165.       tbl->h_tic = tbl->xmax / 50;
  1166. !     if (tbl->v_tic < APOLLO_HTIC)
  1167. !     tbl->v_tic = APOLLO_HTIC;
  1168.   }
  1169.   
  1170.   /*
  1171. --- 149,156 ----
  1172.       if (tbl->v_tic < APOLLO_VTIC)
  1173.       tbl->v_tic = APOLLO_VTIC;
  1174.       tbl->h_tic = tbl->xmax / 50;
  1175. !     if (tbl->h_tic < APOLLO_HTIC)
  1176. !     tbl->h_tic = APOLLO_HTIC;
  1177.   }
  1178.   
  1179.   /*
  1180. diff -c -r ./term/hp26.trm ../gnuplot3p1/term/hp26.trm
  1181. *** ./term/hp26.trm    Mon Mar 26 16:02:34 1990
  1182. --- ../gnuplot3p1/term/hp26.trm    Sun Dec  1 14:48:28 1991
  1183. ***************
  1184. *** 107,113 ****
  1185.   int x, y;
  1186.   char *str;
  1187.   {
  1188. !     HP26_move(x,y - HP26_VCHAR/2);
  1189.       fputs("\033*dS",outfile);
  1190.       fprintf(outfile,"\033*m3Q\033*l%s\n",str);
  1191.       fputs("\033*dT",outfile);
  1192. --- 107,113 ----
  1193.   int x, y;
  1194.   char *str;
  1195.   {
  1196. !     HP26_move(x,y + HP26_VCHAR/2);
  1197.       fputs("\033*dS",outfile);
  1198.       fprintf(outfile,"\033*m3Q\033*l%s\n",str);
  1199.       fputs("\033*dT",outfile);
  1200. diff -c -r ./term/hpgl.trm ../gnuplot3p1/term/hpgl.trm
  1201. *** ./term/hpgl.trm    Sun Aug 25 13:55:04 1991
  1202. --- ../gnuplot3p1/term/hpgl.trm    Sun Dec  1 14:48:27 1991
  1203. ***************
  1204. *** 59,64 ****
  1205. --- 59,79 ----
  1206.   }
  1207.   
  1208.   
  1209. + HPLJIII_graphics()
  1210. + {
  1211. +     fprintf(outfile,
  1212. +     "\033%0B\nIN;\nSC0,%d,0,%d;\nSR%f,%f;\n",
  1213. +         HPGL_XMAX,HPGL_YMAX,
  1214. +         ((double)(HPGL_HCHAR)*200/3/HPGL_XMAX),
  1215. +         ((double)(HPGL_VCHAR)*100/2/HPGL_YMAX) );
  1216. + /*     1    2             3 
  1217. +     1. reset to power-up defaults
  1218. +     2. set SCaling
  1219. +     3. set character size
  1220. + */
  1221. +     HPGL_ang = 0;
  1222. + }
  1223.   HPGL_graphics()
  1224.   {
  1225.       fprintf(outfile,
  1226. ***************
  1227. *** 75,80 ****
  1228. --- 90,106 ----
  1229.   }
  1230.   
  1231.   
  1232. + HPLJIII_text()
  1233. + {
  1234. +     fputs("PU;\nSP0;\n\033.Z\0",outfile);
  1235. + /*           1    2     3
  1236. +     1. pen up
  1237. +     2. park pen
  1238. +     3. disable eavesdropping
  1239. + */
  1240. +     fputs("\033%0A\033E\n",outfile);
  1241. + }
  1242.   HPGL_text()
  1243.   {
  1244.       fputs("PU;\nSP0;\n\033.Z\0",outfile);
  1245. ***************
  1246. *** 151,155 ****
  1247.   
  1248.   HPLJIII_reset()
  1249.   {
  1250. !     fputs("\033E\n",outfile);
  1251.   }
  1252. --- 177,181 ----
  1253.   
  1254.   HPLJIII_reset()
  1255.   {
  1256. !     fputs("\033%0A\033E\n",outfile);
  1257.   }
  1258. diff -c -r ./term/latex.trm ../gnuplot3p1/term/latex.trm
  1259. *** ./term/latex.trm    Thu Sep  5 11:23:32 1991
  1260. --- ../gnuplot3p1/term/latex.trm    Sun Dec  1 14:48:29 1991
  1261. ***************
  1262. *** 128,133 ****
  1263. --- 128,134 ----
  1264.       fprintf(outfile, 
  1265.             "\\ifx\\plotpoint\\undefined\\newsavebox{\\plotpoint}\\fi\n");
  1266.       LATEX_linetype(-1);
  1267. +     LATEX_size =0;
  1268.   }
  1269.   
  1270.   
  1271. diff -c -r ./term/post.trm ../gnuplot3p1/term/post.trm
  1272. *** ./term/post.trm    Fri Aug 30 09:14:06 1991
  1273. --- ../gnuplot3p1/term/post.trm    Sun Dec  1 14:58:31 1991
  1274. ***************
  1275. *** 25,36 ****
  1276.    * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1277.    *
  1278.    * The 'postscript' driver produces landscape output 10" wide and 7" high.  
  1279. -  * To get a smaller epsf output use 'set size 0.5,0.5', 
  1280. -  * 'set term postscript portrait', make only one plot per file
  1281. -  * and change the first line of the postscript file from
  1282. -  * '%!PS-Adobe-2.0' to '%!PS-Adobe-2.0 EPSF-2.0'
  1283.    * To change font to Times-Roman and font size to 20pts use 
  1284.    * 'set term postscript "Times-Roman" 20'.
  1285.    */
  1286.   
  1287.   
  1288. --- 25,35 ----
  1289.    * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1290.    *
  1291.    * The 'postscript' driver produces landscape output 10" wide and 7" high.  
  1292.    * To change font to Times-Roman and font size to 20pts use 
  1293.    * 'set term postscript "Times-Roman" 20'.
  1294. +  * To get a smaller (5" x 3.5") eps output use 'set term post eps'
  1295. +  * and make only one plot per file.  Font size for eps will be half
  1296. +  * the specified size.
  1297.    */
  1298.   
  1299.   
  1300. ***************
  1301. *** 40,45 ****
  1302. --- 39,46 ----
  1303.   int ps_fontsize = 14;                     /* size of font in pts */
  1304.   BOOLEAN ps_portrait = FALSE;                 /* vertical page */
  1305.   BOOLEAN ps_color = FALSE;
  1306. + BOOLEAN ps_eps = FALSE;    /* Is this for an eps file? */
  1307. +             /* Added by Robert Davis <davis@ecn.purdue.edu> */
  1308.   int ps_page=0;            /* page count */
  1309.   int ps_path_count=0;     /* count of lines in path */
  1310.   int ps_ang=0;            /* text angle */
  1311. ***************
  1312. *** 134,150 ****
  1313. --- 135,161 ----
  1314.       if (!END_OF_COMMAND) {
  1315.           if (almost_equals(c_token,"p$ortrait")) {
  1316.               ps_portrait=TRUE;
  1317. +              ps_eps=FALSE;
  1318.               c_token++;
  1319.           }
  1320.           else if (almost_equals(c_token,"l$andscape")) {
  1321.               ps_portrait=FALSE;
  1322. +              ps_eps=FALSE;
  1323.               c_token++;
  1324.           }
  1325. +          else if (almost_equals(c_token,"e$psf")) {
  1326. +              ps_portrait=TRUE;
  1327. +              ps_eps = TRUE;
  1328. +              c_token++;
  1329. +          }
  1330.           else if (almost_equals(c_token,"d$efault")) {
  1331.               ps_portrait=FALSE;
  1332. +              ps_eps=FALSE;
  1333.               ps_color=FALSE;
  1334.               strcpy(ps_font,"Courier");
  1335.               ps_fontsize = 14;
  1336. +             term_tbl[term].v_char = (unsigned int)(ps_fontsize*PS_SC);
  1337. +             term_tbl[term].h_char = (unsigned int)(ps_fontsize*PS_SC*6/10);
  1338.               c_token++;
  1339.           }
  1340.       }
  1341. ***************
  1342. *** 169,181 ****
  1343.           /* We have font size specified */
  1344.           struct value a;
  1345.           ps_fontsize = (int)real(const_express(&a));
  1346. -         c_token++;
  1347.           term_tbl[term].v_char = (unsigned int)(ps_fontsize*PS_SC);
  1348.           term_tbl[term].h_char = (unsigned int)(ps_fontsize*PS_SC*6/10);
  1349.       }
  1350.   
  1351.       sprintf(term_options,"%s %s \"%s\" %d",
  1352. !         ps_portrait ? "portrait" : "landscape",
  1353.           ps_color ? "color" : "monochrome",ps_font,ps_fontsize);
  1354.   }
  1355.   
  1356. --- 180,191 ----
  1357.           /* We have font size specified */
  1358.           struct value a;
  1359.           ps_fontsize = (int)real(const_express(&a));
  1360.           term_tbl[term].v_char = (unsigned int)(ps_fontsize*PS_SC);
  1361.           term_tbl[term].h_char = (unsigned int)(ps_fontsize*PS_SC*6/10);
  1362.       }
  1363.   
  1364.       sprintf(term_options,"%s %s \"%s\" %d",
  1365. !         ps_eps ? "eps" : (ps_portrait ? "portrait" : "landscape"),
  1366.           ps_color ? "color" : "monochrome",ps_font,ps_fontsize);
  1367.   }
  1368.   
  1369. ***************
  1370. *** 185,203 ****
  1371.   struct termentry *t = &term_tbl[term];
  1372.   int i;
  1373.       ps_page = 0;
  1374. !     fprintf(outfile,"%%!PS-Adobe-2.0\n");
  1375.       fprintf(outfile,"%%%%Creator: gnuplot\n");
  1376.       fprintf(outfile,"%%%%DocumentFonts: %s\n", ps_font);
  1377.       fprintf(outfile,"%%%%BoundingBox: %d %d ", PS_XOFF,PS_YOFF);
  1378.       if (ps_portrait)
  1379.           fprintf(outfile,"%d %d\n", 
  1380. !             (int)(xsize*(PS_XMAX)/PS_SC+0.5+PS_XOFF), 
  1381. !             (int)(ysize*(PS_YMAX)/PS_SC+0.5+PS_YOFF) );
  1382.       else 
  1383.           fprintf(outfile,"%d %d\n", 
  1384. !             (int)(ysize*(PS_YMAX)/PS_SC+0.5+PS_XOFF), 
  1385. !             (int)(xsize*(PS_XMAX)/PS_SC+0.5+PS_YOFF) );
  1386. !     fprintf(outfile,"%%%%Pages: (atend)\n");
  1387.       fprintf(outfile,"%%%%EndComments\n");
  1388.       fprintf(outfile,"/gnudict 40 dict def\ngnudict begin\n");
  1389.       fprintf(outfile,"/Color %s def\n",ps_color ? "true" : "false");
  1390. --- 195,217 ----
  1391.   struct termentry *t = &term_tbl[term];
  1392.   int i;
  1393.       ps_page = 0;
  1394. !     if (!ps_eps)
  1395. !         fprintf(outfile,"%%!PS-Adobe-2.0\n");
  1396. !     else
  1397. !         fprintf(outfile,"%%!PS-Adobe-2.0 EPSF-2.0\n");
  1398.       fprintf(outfile,"%%%%Creator: gnuplot\n");
  1399.       fprintf(outfile,"%%%%DocumentFonts: %s\n", ps_font);
  1400.       fprintf(outfile,"%%%%BoundingBox: %d %d ", PS_XOFF,PS_YOFF);
  1401.       if (ps_portrait)
  1402.           fprintf(outfile,"%d %d\n", 
  1403. !             (int)(xsize*(ps_eps ? 0.5 : 1.0)*(PS_XMAX)/PS_SC+0.5+PS_XOFF), 
  1404. !             (int)(ysize*(ps_eps ? 0.5 : 1.0)*(PS_YMAX)/PS_SC+0.5+PS_YOFF) );
  1405.       else 
  1406.           fprintf(outfile,"%d %d\n", 
  1407. !             (int)(ysize*(ps_eps ? 0.5 : 1.0)*(PS_YMAX)/PS_SC+0.5+PS_XOFF), 
  1408. !             (int)(xsize*(ps_eps ? 0.5 : 1.0)*(PS_XMAX)/PS_SC+0.5+PS_YOFF) );
  1409. !     if (!ps_eps)
  1410. !         fprintf(outfile,"%%%%Pages: (atend)\n");
  1411.       fprintf(outfile,"%%%%EndComments\n");
  1412.       fprintf(outfile,"/gnudict 40 dict def\ngnudict begin\n");
  1413.       fprintf(outfile,"/Color %s def\n",ps_color ? "true" : "false");
  1414. ***************
  1415. *** 217,235 ****
  1416.   {
  1417.   struct termentry *t = &term_tbl[term];
  1418.       ps_page++;
  1419. !     fprintf(outfile,"%%%%Page: %d %d\n",ps_page,ps_page);
  1420.       fprintf(outfile,"gnudict begin\n");
  1421.       fprintf(outfile,"gsave\n");
  1422.       fprintf(outfile,"%d %d translate\n",PS_XOFF,PS_YOFF);
  1423. !     if (ps_portrait) {
  1424. !         fprintf(outfile,"%.3f %.3f scale\n", xsize/PS_SC, ysize/PS_SC);
  1425.       }
  1426. -     else {
  1427. -         fprintf(outfile,"%.3f %.3f scale\n", ysize/PS_SC, xsize/PS_SC);
  1428. -         fprintf(outfile,"90 rotate\n0 %d translate\n", -PS_YMAX);
  1429. -     }
  1430.       fprintf(outfile,"0 setgray\n");
  1431. !     fprintf(outfile,"/%s findfont %d ", ps_font, (t->v_char) );
  1432.       fprintf(outfile,"scalefont setfont\n");
  1433.       fprintf(outfile,"newpath\n");
  1434.       ps_path_count = 0;
  1435. --- 231,248 ----
  1436.   {
  1437.   struct termentry *t = &term_tbl[term];
  1438.       ps_page++;
  1439. !     if (!ps_eps)
  1440. !         fprintf(outfile,"%%%%Page: %d %d\n",ps_page,ps_page);
  1441.       fprintf(outfile,"gnudict begin\n");
  1442.       fprintf(outfile,"gsave\n");
  1443.       fprintf(outfile,"%d %d translate\n",PS_XOFF,PS_YOFF);
  1444. !     fprintf(outfile,"%.3f %.3f scale\n", (ps_eps ? 0.5 : 1.0)/PS_SC,
  1445. !                                          (ps_eps ? 0.5 : 1.0)/PS_SC);
  1446. !     if (!ps_portrait) {
  1447. !         fprintf(outfile,"90 rotate\n0 %d translate\n", (int)(-PS_YMAX*ysize));
  1448.       }
  1449.       fprintf(outfile,"0 setgray\n");
  1450. !     fprintf(outfile,"/%s findfont %d ",ps_font, (t->v_char) );
  1451.       fprintf(outfile,"scalefont setfont\n");
  1452.       fprintf(outfile,"newpath\n");
  1453.       ps_path_count = 0;
  1454. ***************
  1455. *** 246,252 ****
  1456.   PS_reset()
  1457.   {
  1458.       fprintf(outfile,"%%%%Trailer\n");
  1459. !     fprintf(outfile,"%%%%Pages: %d\n",ps_page);
  1460.   }
  1461.   
  1462.   
  1463. --- 259,266 ----
  1464.   PS_reset()
  1465.   {
  1466.       fprintf(outfile,"%%%%Trailer\n");
  1467. !     if (!ps_eps)
  1468. !         fprintf(outfile,"%%%%Pages: %d\n",ps_page);
  1469.   }
  1470.   
  1471.   
  1472.