home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume30 / gnuplot3 / patch02e / patch.1
Encoding:
Text File  |  1992-06-19  |  32.4 KB  |  1,052 lines

  1. diff -rc gnuplot/Copyright gnuplot3.2/Copyright
  2. *** gnuplot/Copyright    Sun Jan  5 21:33:12 1992
  3. --- gnuplot3.2/Copyright    Wed Mar 25 07:59:24 1992
  4. ***************
  5. *** 1,5 ****
  6.   /*
  7. !  * Copyright (C) 1986, 1987, 1990, 1991   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, 1992   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. *** 26,35 ****
  19.    *       Gershon Elber and many others.
  20.    * 
  21.    * Send your comments or suggestions to 
  22. !  *  pixar!info-gnuplot@sun.com.
  23.    * This is a mailing list; to join it send a note to 
  24. !  *  pixar!info-gnuplot-request@sun.com.  
  25.    * Send bug reports to
  26. !  *  pixar!bug-gnuplot@sun.com.
  27.    */
  28.   
  29. --- 26,35 ----
  30.    *       Gershon Elber and many others.
  31.    * 
  32.    * Send your comments or suggestions to 
  33. !  *  info-gnuplot@ames.arc.nasa.gov.
  34.    * This is a mailing list; to join it send a note to 
  35. !  *  info-gnuplot-request@ames.arc.nasa.gov.  
  36.    * Send bug reports to
  37. !  *  bug-gnuplot@ames.arc.nasa.gov.
  38.    */
  39.   
  40. Only in gnuplot3.2: EPSView.h
  41. Only in gnuplot3.2: EPSView.m
  42. Only in gnuplot3.2: EpsViewer.h
  43. Only in gnuplot3.2: EpsViewer.m
  44. diff -rc gnuplot/History gnuplot3.2/History
  45. *** gnuplot/History    Thu Sep 19 10:47:22 1991
  46. --- gnuplot3.2/History    Sat May 16 09:53:14 1992
  47. ***************
  48. *** 1,4 ****
  49. --- 1,43 ----
  50.   
  51. +              GNUPLOT 3.2 RELEASE NOTES
  52. + This describes changes to gnuplot since version 3.0.
  53. + Highlights: 
  54. + -----------
  55. + Version 3.1 (also known as version 3.0, patchlevel 1) was a bugfix
  56. + release.  In particular, it corrected the y logscale error.
  57. + Version 3.2 also fixes a number of bugs but contains two major
  58. + changes.  The X11 support, in particular, gnuplot_x11.c was completely
  59. + rewritten to rely solely on X11 intrinsics and no widget libraries.
  60. + This should hopefully make it more portable.  The other major change
  61. + is hidden line removal for explicit 3D surfaces.  
  62. + This release was deliberately limited in scope in order to
  63. + release a new X11 driver and have some hidden line removal capability
  64. + quickly.  Version 3.3 will be a much larger modification.
  65. +                             ACKNOWLEDGEMENTS
  66. + - New generic gnuplot_x11.c, Ed Kubatis <ejk@ux2.ncsa.uiuc.edu>
  67. + - Hidden Line Removal for Explicit Surfaces and IRIX 4.0 fixes,
  68. +   Gershon Elber <gershon@gr.utah.edu>
  69. + - Table Terminal Driver, Kevin Russo <russo@rudedog.nrl.navy.mil>
  70. + - PCL5 driver fixes (HPGL page eject),datafile pipe and README,
  71. +   Alex Woo <woo@ames.arc.nasa.gov>
  72. + - Pbmplus driver & fix to ylog tics, Put FAR pointers in bitmap.c and bitmap.h
  73. +   Russell Lang <rjl@monu1.cc.monash.edu.au>
  74. + - NeXT Console Driver, Nick Strobel <strobel@phast.phys.washington.edu>
  75. + - Fix GNUTERM environment with disk resident BGI drivers,
  76. +   Craig Johnston <johnston@maxwell.ee.washington.edu>
  77. + - Fix tables for troff in doc2ms, Michael Schuh <schuh@ames.arc.nasa.gov>
  78. + - Fix dump when GNUPLOT$HELP undefined, 
  79. +   Wolfgang J. Moeller <moeller@gwdgv1.dnet.gwdg.de>
  80. + - Fix AMIGA segment limits, Carsten Steger <stegerc@informatik.tu-muenchen.de>
  81. + - Bug fix to latex.trm, Rob Cunningham <rkc@xn.ll.mit.edu>
  82. + =========================================================================
  83.                GNUPLOT 3.0 RELEASE NOTES
  84.   
  85.   This describes changes to gnuplot since version 2.02 (ie, 2.0
  86. ***************
  87. *** 255,261 ****
  88.   (David.Kotz@Dartmouth.edu)
  89.   And of course, the vast majority of the program is by Colin Kelley
  90.   and Thomas Williams.
  91. ! (pixar!info-gnuplot@sun.com)
  92.   
  93.   =======================================================================
  94.   
  95. --- 294,300 ----
  96.   (David.Kotz@Dartmouth.edu)
  97.   And of course, the vast majority of the program is by Colin Kelley
  98.   and Thomas Williams.
  99. ! (info-gnuplot@ames.arc.nasa.gov)
  100.   
  101.   =======================================================================
  102.   
  103. diff -rc gnuplot/README gnuplot3.2/README
  104. *** gnuplot/README    Thu Sep 19 10:43:25 1991
  105. --- gnuplot3.2/README    Sat May 16 05:11:18 1992
  106. ***************
  107. *** 1,4 ****
  108. --- 1,35 ----
  109.   
  110. + GNUPLOT is a command-driven interactive function plotting program. It
  111. + is case sensitive (commands and function names written in lowercase
  112. + are not the same as those written in CAPS). All command names may be
  113. + abbreviated, as long as the abbreviation is not ambiguous. Any number
  114. + of commands may appear on a line, separated by semicolons (;).
  115. + Strings are indicated with quotes.  They may be either single or double
  116. + quotation marks, e.g.,
  117. +          load "filename"
  118. +          cd 'dir'
  119. + Any command-line arguments are assumed to be names of files containing
  120. + GNUPLOT commands, with the exception of standard X11 arguments, which
  121. + are processed first. Each file is loaded with the `load` command, in the
  122. + order specified. GNUPLOT exits after the last file is processed.  When
  123. + no load files are named, gnuplot enters into an interactive mode.
  124. + Commands may extend over several input lines, by ending each
  125. + line but the last with a backslash (\). The backslash must be the LAST
  126. + character on each line. The effect is as if the backslash and newline
  127. + were not there. That is, no white space is implied, nor is a comment
  128. + terminated. Therefore, commenting out a continued line comments out
  129. + the entire command (see `comment`).
  130. + For help on any topic, type `help` followed by the name of the topic.
  131. + The new GNUPLOT user should begin by reading about the `plot`
  132. + command (type `help plot`).  The manual for gnuplot can be printed
  133. + either with TeX, troff or nroff.  Look at the docs/Makefile for
  134. + the appropriate option.
  135.                      Where to get updates to GNUPLOT
  136.   
  137.   Congratulations on getting this version of GNUPLOT! Unfortunately, it
  138. ***************
  139. *** 16,32 ****
  140.   prep.ai.mit.edu is NOT an official site, and may not be up to date.
  141.   Also, comp.sources.misc is usually a month or so behind us.
  142.   
  143. ! Date: Wed Sep 18 20:45:52 EDT 1991
  144. ! Version: 3.0
  145.   
  146. ! In general, GNUPLOT 3.0 is available as the file gnuplot3.0.tar.Z.
  147.   There are no patches that bring GNUPLOT 2.02 up to 3.0, so you must
  148. ! obtain the whole new release. Please obtain gnuplot from the site
  149.   nearest you.
  150.   
  151.   USENET users:
  152.   
  153. !     GNUPLOT 3.0 was posted to comp.sources.misc.
  154.   
  155.   
  156.   NORTH AMERICA:
  157. --- 47,67 ----
  158.   prep.ai.mit.edu is NOT an official site, and may not be up to date.
  159.   Also, comp.sources.misc is usually a month or so behind us.
  160.   
  161. ! Date: Sun Mar 1 20:45:52 EDT 1992
  162. ! Version: 3.2
  163.   
  164. ! In general, GNUPLOT 3.2 is available as the file gnuplot3.2.tar.Z.
  165. ! There are patches which bring GNUPLOT 3.0 up to 3.1 and patches
  166. ! which bring GNUPLOT 3.1 up to GNUPLOT 3.2.  The latter are in
  167. ! the file gnuplot3.2.shar.Z.
  168.   There are no patches that bring GNUPLOT 2.02 up to 3.0, so you must
  169. ! obtain the whole new release. 
  170. ! Please obtain gnuplot from the site
  171.   nearest you.
  172.   
  173.   USENET users:
  174.   
  175. !     GNUPLOT 3.2 was posted to comp.sources.misc.
  176.   
  177.   
  178.   NORTH AMERICA:
  179. ***************
  180. *** 33,39 ****
  181.   
  182.        Anonymous ftp to dartmouth.edu (129.170.16.4)
  183.        Fetch
  184. !         pub/gnuplot/gnuplot3.0.tar.Z
  185.        in binary mode.
  186.   
  187.        Users without ftp capability can obtain it through a mail ftp
  188. --- 68,74 ----
  189.   
  190.        Anonymous ftp to dartmouth.edu (129.170.16.4)
  191.        Fetch
  192. !         pub/gnuplot/gnuplot3.2.tar.Z
  193.        in binary mode.
  194.   
  195.        Users without ftp capability can obtain it through a mail ftp
  196. ***************
  197. *** 45,51 ****
  198.            USER ANONYMOUS
  199.            CD pub/gnuplot
  200.            BINARY
  201. !          GET gnuplot3.0.tar.Z
  202.            QUIT
  203.   
  204.   
  205. --- 80,86 ----
  206.            USER ANONYMOUS
  207.            CD pub/gnuplot
  208.            BINARY
  209. !          GET gnuplot3.2.tar.Z
  210.            QUIT
  211.   
  212.   
  213. ***************
  214. *** 52,64 ****
  215.   AUSTRALIA:
  216.   
  217.        Anonymous ftp to monu1.cc.monash.edu.au (130.194.1.101).
  218. !      Fetch pub/gnuplot3.0.tar.Z in binary mode.
  219.   
  220.   
  221.   EUROPE:
  222.   
  223.        Anonymous ftp to irisa.irisa.fr (131.254.2.3).
  224. !      Fetch pub/gnuplot3.0.tar.Z in binary mode.
  225.   
  226.   ----
  227.   
  228. --- 87,99 ----
  229.   AUSTRALIA:
  230.   
  231.        Anonymous ftp to monu1.cc.monash.edu.au (130.194.1.101).
  232. !      Fetch pub/gnuplot3.2.tar.Z in binary mode.
  233.   
  234.   
  235.   EUROPE:
  236.   
  237.        Anonymous ftp to irisa.irisa.fr (131.254.2.3).
  238. !      Fetch pub/gnuplot3.2.tar.Z in binary mode.
  239.   
  240.   ----
  241.   
  242. ***************
  243. *** 68,77 ****
  244.   ----
  245.     CONTACTS:
  246.        Please send any questions or comments to
  247. !         pixar!info-gnuplot@ucbvax.berkeley.edu.
  248.        To join the above mailing list (or get yourself off), mail to
  249. !         pixar!info-gnuplot-request@ucbvax.berkeley.edu.
  250.        Send bug reports and problems to
  251. !         pixar!bug-gnuplot@ucbvax.berkeley.edu.
  252.   
  253.                                           -Thomas Williams-
  254. --- 103,113 ----
  255.   ----
  256.     CONTACTS:
  257.        Please send any questions or comments to
  258. !         info-gnuplot@ames.arc.nasa.gov.
  259.        To join the above mailing list (or get yourself off), mail to
  260. !         info-gnuplot-request@ames.arc.nasa.gov.
  261.        Send bug reports and problems to
  262. !         bug-gnuplot@ames.arc.nasa.gov.
  263.   
  264.                                           -Thomas Williams-
  265. Only in gnuplot3.2: README.3d
  266. Only in gnuplot3.2: README.3p2
  267. diff -rc gnuplot/README.Install gnuplot3.2/README.Install
  268. *** gnuplot/README.Install    Sun Jan  5 21:33:13 1992
  269. --- gnuplot3.2/README.Install    Sat May 16 09:25:12 1992
  270. ***************
  271. *** 16,26 ****
  272.   GNUPLOT has not been tested on Pyramid 90x and IBM PC Microsoft C.
  273.   
  274.   Send your comments, suggestions, or modifications to 
  275. !   pixar!info-gnuplot@sun.com
  276.   This is a mailing list; to join it send a note to 
  277. !   pixar!info-gnuplot-request@sun.com
  278.   Send bug reports to
  279. !   pixar!bug-gnuplot@sun.com
  280.   
  281.                          PREPROCESSOR #DEFINES
  282.   
  283. --- 16,26 ----
  284.   GNUPLOT has not been tested on Pyramid 90x and IBM PC Microsoft C.
  285.   
  286.   Send your comments, suggestions, or modifications to 
  287. !   info-gnuplot@ames.arc.nasa.gov
  288.   This is a mailing list; to join it send a note to 
  289. !   info-gnuplot-request@ames.arc.nasa.gov
  290.   Send bug reports to
  291. !   bug-gnuplot@ames.arc.nasa.gov
  292.   
  293.                          PREPROCESSOR #DEFINES
  294.   
  295. ***************
  296. *** 54,59 ****
  297. --- 54,60 ----
  298.               or term.h
  299.   
  300.      AED         AED 512 and AED 767
  301. +    AIFM        Adobe Illustrator Format
  302.      AMIGASCREEN Amiga custom screen
  303.      APOLLO      Apollo Graphics Primitive Resource (resizable window)
  304.      ATT6300     PC with AT&T 6300 graphics
  305. ***************
  306. *** 76,86 ****
  307. --- 77,90 ----
  308.      HP75        HP7580, and probably other HPs
  309.      HPGL        HP7475 and (hopefully) lots of others
  310.      HPLJII      HP Laserjet II
  311. +    HPLJIII     HP Laserjet III (HPGL/2)
  312.      IMAGEN      Imagen laser printers (300dpi) (requires -Iterm also)
  313.      IRIS4D      IRIS4D series computer
  314.      KERMIT      MS-Kermit Tektronix 4010 emulator
  315.      LATEX       LATEX picture environment
  316. +    LN03P       DEC LN03P laser printer
  317.      NEC         NEC CP6 pinwriter printer
  318. +    PBM         PBMPLUS pbm, pgm, ppm formats
  319.      POSTSCRIPT  Postscript
  320.      PRESCRIBE   Kyocera Laser printer
  321.      QMS         QMS/QUIC laserprinter (Talaris 1200 and others)
  322. Only in gnuplot3.2: README.NeXT
  323. Only in gnuplot: README.patch1
  324. Only in gnuplot3.2: README.x11
  325. diff -rc gnuplot/bitmap.c gnuplot3.2/bitmap.c
  326. *** gnuplot/bitmap.c    Thu Jul 18 11:54:16 1991
  327. --- gnuplot3.2/bitmap.c    Wed Mar 25 07:59:31 1992
  328. ***************
  329. *** 1,6 ****
  330.   /* GNUPLOT - bitmap.c */
  331.   /*
  332. !  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  333.    *
  334.    * Permission to use, copy, and distribute this software and its
  335.    * documentation for any purpose with or without fee is hereby granted, 
  336. --- 1,11 ----
  337. + #ifndef lint
  338. + static char *RCSid = "$Id: bitmap.c,v 3.26 92/03/24 22:34:39 woo Exp Locker: woo $";
  339. + #endif
  340.   /* GNUPLOT - bitmap.c */
  341.   /*
  342. !  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  343.    *
  344.    * Permission to use, copy, and distribute this software and its
  345.    * documentation for any purpose with or without fee is hereby granted, 
  346. ***************
  347. *** 23,33 ****
  348.    *     Russell Lang <rjl@monu1.cc.monash.edu.au>
  349.    * 
  350.    * Send your comments or suggestions to 
  351. !  *  pixar!info-gnuplot@sun.com.
  352.    * This is a mailing list; to join it send a note to 
  353. !  *  pixar!info-gnuplot-request@sun.com.  
  354.    * Send bug reports to
  355. !  *  pixar!bug-gnuplot@sun.com.
  356.    */
  357.   
  358.   /*
  359. --- 28,38 ----
  360.    *     Russell Lang <rjl@monu1.cc.monash.edu.au>
  361.    * 
  362.    * Send your comments or suggestions to 
  363. !  *  info-gnuplot@ames.arc.nasa.gov.
  364.    * This is a mailing list; to join it send a note to 
  365. !  *  info-gnuplot-request@ames.arc.nasa.gov.  
  366.    * Send bug reports to
  367. !  *  bug-gnuplot@ames.arc.nasa.gov.
  368.    */
  369.   
  370.   /*
  371. ***************
  372. *** 72,78 ****
  373.   #define IN(i,size)  ((unsigned)i < (unsigned)size)
  374.   
  375.   /* 5x9 font, bottom row first, left pixel in lsb */
  376. ! char_row fnt5x9[FNT_CHARS][FNT5X9_VBITS] = {
  377.     /* */  {000000,000000,000000,000000,000000,000000,000000,000000,000000},
  378.     /*!*/  {000000,000000,0x0004,000000,0x0004,0x0004,0x0004,0x0004,0x0004},
  379.     /*"*/  {000000,000000,000000,000000,000000,000000,0x000a,0x000a,0x000a},
  380. --- 77,83 ----
  381.   #define IN(i,size)  ((unsigned)i < (unsigned)size)
  382.   
  383.   /* 5x9 font, bottom row first, left pixel in lsb */
  384. ! char_row FAR fnt5x9[FNT_CHARS][FNT5X9_VBITS] = {
  385.     /* */  {000000,000000,000000,000000,000000,000000,000000,000000,000000},
  386.     /*!*/  {000000,000000,0x0004,000000,0x0004,0x0004,0x0004,0x0004,0x0004},
  387.     /*"*/  {000000,000000,000000,000000,000000,000000,0x000a,0x000a,0x000a},
  388. ***************
  389. *** 172,178 ****
  390.   };
  391.   
  392.   /* 9x17 font, bottom row first, left pixel in lsb */
  393. ! char_row fnt9x17[FNT_CHARS][FNT9X17_VBITS] = {
  394.     /* */  {000000,000000,000000,000000,000000,000000,000000,000000,000000,
  395.             000000,000000,000000,000000,000000,000000,000000,000000},
  396.     /*!*/  {000000,000000,000000,000000,0x0010,000000,000000,000000,0x0010,
  397. --- 177,183 ----
  398.   };
  399.   
  400.   /* 9x17 font, bottom row first, left pixel in lsb */
  401. ! char_row FAR fnt9x17[FNT_CHARS][FNT9X17_VBITS] = {
  402.     /* */  {000000,000000,000000,000000,000000,000000,000000,000000,000000,
  403.             000000,000000,000000,000000,000000,000000,000000,000000},
  404.     /*!*/  {000000,000000,000000,000000,0x0010,000000,000000,000000,0x0010,
  405. ***************
  406. *** 368,374 ****
  407.   };
  408.   
  409.   /* 13x25 font, bottom row first, left pixel in lsb */
  410. ! char_row fnt13x25[FNT_CHARS][FNT13X25_VBITS] = {
  411.     /* */  {000000,000000,000000,000000,000000,000000,000000,000000,000000,
  412.             000000,000000,000000,000000,000000,000000,000000,000000,000000,
  413.             000000,000000,000000,000000,000000,000000,000000},
  414. --- 373,379 ----
  415.   };
  416.   
  417.   /* 13x25 font, bottom row first, left pixel in lsb */
  418. ! char_row FAR fnt13x25[FNT_CHARS][FNT13X25_VBITS] = {
  419.     /* */  {000000,000000,000000,000000,000000,000000,000000,000000,000000,
  420.             000000,000000,000000,000000,000000,000000,000000,000000,000000,
  421.             000000,000000,000000,000000,000000,000000,000000},
  422. diff -rc gnuplot/bitmap.h gnuplot3.2/bitmap.h
  423. *** gnuplot/bitmap.h    Mon Jun  3 15:25:57 1991
  424. --- gnuplot3.2/bitmap.h    Wed Mar 25 07:59:32 1992
  425. ***************
  426. *** 1,8 ****
  427.   /* bitmap.h */
  428.   
  429.   /* allow up to 16 bit width for character array */
  430.   typedef unsigned int char_row;
  431. ! typedef char_row * char_box;
  432.   
  433.   #define FNT_CHARS   96      /* Number of characters in the font set */
  434.   
  435. --- 1,18 ----
  436. + /*
  437. +  * $Id: bitmap.h,v 3.26 92/03/24 22:34:16 woo Exp Locker: woo $
  438. +  */
  439.   /* bitmap.h */
  440.   
  441. + #ifdef __TURBOC__
  442. + #define FAR far
  443. + #else
  444. + #define FAR
  445. + #endif
  446.   /* allow up to 16 bit width for character array */
  447.   typedef unsigned int char_row;
  448. ! typedef char_row * FAR char_box;
  449.   
  450.   #define FNT_CHARS   96      /* Number of characters in the font set */
  451.   
  452. ***************
  453. *** 11,17 ****
  454.   #define FNT5X9_VBITS 9 /* actual number of rows of bits per char */
  455.   #define FNT5X9_HCHAR 7 /* horizontal spacing between characters */
  456.   #define FNT5X9_HBITS 5 /* actual number of bits per row per char */
  457. ! extern char_row fnt5x9[FNT_CHARS][FNT5X9_VBITS];
  458.   
  459.   #define FNT9X17 1
  460.   #define FNT9X17_VCHAR 21 /* vertical spacing between characters */
  461. --- 21,27 ----
  462.   #define FNT5X9_VBITS 9 /* actual number of rows of bits per char */
  463.   #define FNT5X9_HCHAR 7 /* horizontal spacing between characters */
  464.   #define FNT5X9_HBITS 5 /* actual number of bits per row per char */
  465. ! extern char_row FAR fnt5x9[FNT_CHARS][FNT5X9_VBITS];
  466.   
  467.   #define FNT9X17 1
  468.   #define FNT9X17_VCHAR 21 /* vertical spacing between characters */
  469. ***************
  470. *** 18,24 ****
  471.   #define FNT9X17_VBITS 17 /* actual number of rows of bits per char */
  472.   #define FNT9X17_HCHAR 13 /* horizontal spacing between characters */
  473.   #define FNT9X17_HBITS 9 /* actual number of bits per row per char */
  474. ! extern char_row fnt9x17[FNT_CHARS][FNT9X17_VBITS];
  475.   
  476.   #define FNT13X25 2
  477.   #define FNT13X25_VCHAR 31 /* vertical spacing between characters */
  478. --- 28,34 ----
  479.   #define FNT9X17_VBITS 17 /* actual number of rows of bits per char */
  480.   #define FNT9X17_HCHAR 13 /* horizontal spacing between characters */
  481.   #define FNT9X17_HBITS 9 /* actual number of bits per row per char */
  482. ! extern char_row FAR fnt9x17[FNT_CHARS][FNT9X17_VBITS];
  483.   
  484.   #define FNT13X25 2
  485.   #define FNT13X25_VCHAR 31 /* vertical spacing between characters */
  486. ***************
  487. *** 25,31 ****
  488.   #define FNT13X25_VBITS 25 /* actual number of rows of bits per char */
  489.   #define FNT13X25_HCHAR 19 /* horizontal spacing between characters */
  490.   #define FNT13X25_HBITS 13 /* actual number of bits per row per char */
  491. ! extern char_row fnt13x25[FNT_CHARS][FNT13X25_VBITS];
  492.   
  493.   
  494.   typedef unsigned char pixels;  /* the type of one set of 8 pixels in bitmap */
  495. --- 35,41 ----
  496.   #define FNT13X25_VBITS 25 /* actual number of rows of bits per char */
  497.   #define FNT13X25_HCHAR 19 /* horizontal spacing between characters */
  498.   #define FNT13X25_HBITS 13 /* actual number of bits per row per char */
  499. ! extern char_row FAR fnt13x25[FNT_CHARS][FNT13X25_VBITS];
  500.   
  501.   
  502.   typedef unsigned char pixels;  /* the type of one set of 8 pixels in bitmap */
  503. diff -rc gnuplot/command.c gnuplot3.2/command.c
  504. *** gnuplot/command.c    Sun Jan  5 21:33:14 1992
  505. --- gnuplot3.2/command.c    Wed Mar 25 07:59:34 1992
  506. ***************
  507. *** 1,6 ****
  508.   /* GNUPLOT - command.c */
  509.   /*
  510. !  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  511.    *
  512.    * Permission to use, copy, and distribute this software and its
  513.    * documentation for any purpose with or without fee is hereby granted, 
  514. --- 1,10 ----
  515. + #ifndef lint
  516. + static char *RCSid = "$Id: command.c,v 3.26 92/03/24 22:34:17 woo Exp Locker: woo $";
  517. + #endif
  518.   /* GNUPLOT - command.c */
  519.   /*
  520. !  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  521.    *
  522.    * Permission to use, copy, and distribute this software and its
  523.    * documentation for any purpose with or without fee is hereby granted, 
  524. ***************
  525. *** 27,37 ****
  526.    *       Gershon Elber and many others.
  527.    * 
  528.    * Send your comments or suggestions to 
  529. !  *  pixar!info-gnuplot@sun.com.
  530.    * This is a mailing list; to join it send a note to 
  531. !  *  pixar!info-gnuplot-request@sun.com.  
  532.    * Send bug reports to
  533. !  *  pixar!bug-gnuplot@sun.com.
  534.    */
  535.   
  536.   #include <stdio.h>
  537. --- 31,41 ----
  538.    *       Gershon Elber and many others.
  539.    * 
  540.    * Send your comments or suggestions to 
  541. !  *  info-gnuplot@ames.arc.nasa.gov.
  542.    * This is a mailing list; to join it send a note to 
  543. !  *  info-gnuplot-request@ames.arc.nasa.gov.  
  544.    * Send bug reports to
  545. !  *  bug-gnuplot@ames.arc.nasa.gov.
  546.    */
  547.   
  548.   #include <stdio.h>
  549. ***************
  550. *** 81,88 ****
  551.   #define HELPFILE "S:gnuplot.gih"
  552.   #else
  553.   #define HELPFILE "docs/gnuplot.gih" /* changed by makefile */
  554. ! #endif
  555. ! #endif
  556.   
  557.   #define inrange(z,min,max) ((min<max) ? ((z>=min)&&(z<=max)) : ((z>=max)&&(z<=min)) )
  558.   
  559. --- 85,92 ----
  560.   #define HELPFILE "S:gnuplot.gih"
  561.   #else
  562.   #define HELPFILE "docs/gnuplot.gih" /* changed by makefile */
  563. ! #endif /* AMIGA_LC_5_1 */
  564. ! #endif /* HELPFILE */
  565.   
  566.   #define inrange(z,min,max) ((min<max) ? ((z>=min)&&(z<=max)) : ((z>=max)&&(z<=min)) )
  567.   
  568. ***************
  569. *** 113,118 ****
  570. --- 117,127 ----
  571.   int vms_vkid; /* Virtual keyboard id */
  572.   #endif
  573.   
  574. + #ifdef unix
  575. + extern FILE *popen();
  576. + static BOOLEAN pipe_open=FALSE;
  577. + #endif
  578.   extern int chdir();
  579.   
  580.   extern double magnitude(),angle(),real(),imag();
  581. ***************
  582. *** 622,627 ****
  583. --- 631,646 ----
  584.   
  585.       quote_str(data_file, c_token);
  586.       this_plot->plot_type = DATA;
  587. +     if( parametric)
  588. +         int_error("Parametric data files not yet implemented",NO_CARET);
  589. + #ifdef unix
  590. +     if ( *data_file == '<' ) {
  591. +           if ((fp = popen(data_file+1,"r")) == (FILE *)NULL)
  592. +             os_error("cannot create pipe; output not changed",c_token);
  593. +         else
  594. +             pipe_open = TRUE;
  595. +     } else
  596. + #endif
  597.       if ((fp = fopen(data_file, "r")) == (FILE *)NULL)
  598.           os_error("can't open data file", c_token);
  599.   
  600. ***************
  601. *** 784,789 ****
  602. --- 803,815 ----
  603.       }
  604.       this_plot->p_count = i;
  605.       cp_extend(this_plot, i);    /* shrink to fit */
  606. + #ifdef unix
  607. +     if ( pipe_open ) {
  608. +         (void) pclose(fp);
  609. +         pipe_open = FALSE;
  610. +     } else
  611. + #endif
  612.       (void) fclose(fp);
  613.   }
  614.   
  615. ***************
  616. *** 913,918 ****
  617. --- 939,952 ----
  618.       quote_str(data_file, c_token);
  619.       this_plot->plot_type = DATA3D;
  620.       this_plot->has_grid_topology = TRUE;
  621. + #ifdef unix
  622. +     if ( *data_file == '<' ) {
  623. +         if ((fp = popen(data_file+1,"r")) == (FILE *)NULL)
  624. +             os_error("cannot create pipe; output not changed",c_token);
  625. +           else
  626. +             pipe_open = TRUE;
  627. +     } else
  628. + #endif
  629.       if ((fp = fopen(data_file, "r")) == (FILE *)NULL)
  630.           os_error("can't open data file", c_token);
  631.   
  632. ***************
  633. *** 1233,1240 ****
  634.           iso_free(this_iso);/* Free last allocation. */
  635.       }
  636.   
  637.       (void) fclose(fp);
  638.       if (this_plot->has_grid_topology) {
  639.               struct iso_curve *new_icrvs = NULL;
  640.           int num_new_iso = this_plot->iso_crvs->p_count,
  641. --- 1267,1281 ----
  642.           iso_free(this_iso);/* Free last allocation. */
  643.       }
  644.   
  645. + #ifdef unix
  646. +     if ( pipe_open ) {
  647. +         (void) pclose(fp);
  648. +         pipe_open = FALSE;
  649. +     } else
  650. + #endif
  651.       (void) fclose(fp);
  652. !       if (this_plot->num_iso_read <= 1)
  653. !           this_plot->has_grid_topology = FALSE;
  654.       if (this_plot->has_grid_topology) {
  655.               struct iso_curve *new_icrvs = NULL;
  656.           int num_new_iso = this_plot->iso_crvs->p_count,
  657. ***************
  658. *** 1331,1337 ****
  659. --- 1372,1425 ----
  660.       }    
  661.   }
  662.   
  663. + print_table()
  664. + {
  665. +     register struct curve_points *this_plot;
  666. +     int i, curve;
  667.   
  668. +    for (this_plot = first_plot, curve = 0; this_plot != NULL;
  669. +        curve++, this_plot = this_plot->next_cp)
  670. +    {
  671. +       fprintf(outfile,"Curve %d, %d points\n", curve, this_plot->p_count);
  672. +       for (i = 0; i < this_plot->p_count; i++) {
  673. +          fprintf(outfile,"%c x=%g y=%g\n",
  674. +                this_plot->points[i].type == INRANGE ? 'i'
  675. +                : this_plot->points[i].type == OUTRANGE ? 'o'
  676. +                : 'u',
  677. +                this_plot->points[i].x,
  678. +                this_plot->points[i].y);
  679. +       }
  680. +       fprintf(outfile,"\n");
  681. +    }
  682. +    fflush(outfile);
  683. + }
  684. + print_3dtable()
  685. + {
  686. +     register struct surface_points *this_3dplot;
  687. +     int i, curve;
  688. +     struct gnuplot_contours *contours;      /* Not NULL If have contours. */
  689. +     struct iso_curve *isocrv;
  690. +     for (this_3dplot = first_3dplot, curve = 0; this_3dplot != NULL;
  691. +        curve++, this_3dplot = this_3dplot->next_sp)
  692. +     {
  693. +       isocrv = this_3dplot->iso_crvs;
  694. +       fprintf(outfile,"Curve %d, %d points\n", curve, isocrv->p_count);
  695. +       for (i = 0; i < isocrv->p_count; i++) {
  696. +          fprintf(outfile,"%c x=%g y=%g z=%g\n",
  697. +                isocrv->points[i].type == INRANGE ? 'i'
  698. +                : isocrv->points[i].type == OUTRANGE ? 'o'
  699. +                : 'u',
  700. +                isocrv->points[i].x,
  701. +                isocrv->points[i].y,
  702. +                isocrv->points[i].z);
  703. +       }
  704. +       fprintf(outfile,"\n");
  705. +    }
  706. +    fflush(outfile);
  707. + }
  708.   /* This parses the plot command after any range specifications. 
  709.    * To support autoscaling on the x axis, we want any data files to 
  710.    * define the x range, then to plot any functions using that range. 
  711. ***************
  712. *** 1704,1710 ****
  713.           parametric_fixup (first_plot, &plot_num, &x_min, &x_max);
  714.       }
  715.   
  716. !     do_plot(first_plot,plot_num,x_min,x_max,y_min,y_max);
  717.       cp_free(first_plot);
  718.       first_plot = NULL;
  719.   }
  720. --- 1792,1801 ----
  721.           parametric_fixup (first_plot, &plot_num, &x_min, &x_max);
  722.       }
  723.   
  724. !     if (strcmp(term_tbl[term].name,"table") == 0)
  725. !         print_table();
  726. !     else
  727. !         do_plot(first_plot,plot_num,x_min,x_max,y_min,y_max);
  728.       cp_free(first_plot);
  729.       first_plot = NULL;
  730.   }
  731. ***************
  732. *** 1869,1877 ****
  733.                    (this_plot->plot_style == ERRORBARS) )
  734.                       if (crnt_param == 0)
  735.                           point_num +=
  736. !                             1 + (draw_contour != 0);
  737.               if (crnt_param == 0)
  738. !                 line_num += 1 + (draw_contour != 0);
  739.   
  740.               tp_3d_ptr = &(this_plot->next_sp);
  741.           }
  742. --- 1960,1970 ----
  743.                    (this_plot->plot_style == ERRORBARS) )
  744.                       if (crnt_param == 0)
  745.                           point_num +=
  746. !                             1 + (draw_contour != 0)
  747. !                               + (hidden3d != 0);
  748.               if (crnt_param == 0)
  749. !                 line_num += 1 + (draw_contour != 0)
  750. !                               + (hidden3d != 0);
  751.   
  752.               tp_3d_ptr = &(this_plot->next_sp);
  753.           }
  754. ***************
  755. *** 2257,2263 ****
  756.           }
  757.       }
  758.   
  759. !     do_3dplot(first_3dplot,plot_num,x_min,x_max,y_min,y_max,z_min,z_max);
  760.       sp_free(first_3dplot);
  761.       first_3dplot = NULL;
  762.   }
  763. --- 2350,2359 ----
  764.           }
  765.       }
  766.   
  767. !     if (strcmp(term_tbl[term].name,"table") == 0)
  768. !        print_3dtable();
  769. !     else
  770. !        do_3dplot(first_3dplot,plot_num,x_min,x_max,y_min,y_max,z_min,z_max);
  771.       sp_free(first_3dplot);
  772.       first_3dplot = NULL;
  773.   }
  774. ***************
  775. *** 2594,2599 ****
  776. --- 2690,2725 ----
  777.       while (new_list->next_sp != NULL)
  778.           new_list = new_list->next_sp;
  779.       new_list->next_sp = free_head;
  780. +       if (lxmax - lxmin < zero) {
  781. +           if (fabs(lxmax) < zero) {
  782. +               lxmin = -1.0;
  783. +               lxmax = 1.0;
  784. +           }
  785. +           else {
  786. +               lxmin *= 0.9;
  787. +               lxmax *= 1.1;
  788. +           }
  789. +       }
  790. +       if (lymax - lymin < zero) {
  791. +           if (fabs(lymax) < zero) {
  792. +               lymin = -1.0;
  793. +               lymax = 1.0;
  794. +           }
  795. +           else {
  796. +               lymin *= 0.9;
  797. +               lymax *= 1.1;
  798. +           }
  799. +       }
  800. +       if (lzmax - lzmin < zero) {
  801. +           if (fabs(lzmax) < zero) {
  802. +               lzmin = -1.0;
  803. +               lzmax = 1.0;
  804. +           }
  805. +           else {
  806. +               lzmin *= 0.9;
  807. +               lzmax *= 1.1;
  808. +           }
  809. +       }
  810.   
  811.   /* Report the overall graph mins and maxs. */
  812.       if (autoscale_lx) {
  813. ***************
  814. *** 2739,2745 ****
  815.       help_desc.dsc$w_length = strlen(help);
  816.       if ((vaxc$errno = lbr$output_help(lib$put_output,0,&help_desc,
  817.           &helpfile_desc,0,lib$get_input)) != SS$_NORMAL)
  818. !             os_error("can't open GNUPLOT$HELP");
  819.   }
  820.   
  821.   
  822. --- 2865,2871 ----
  823.       help_desc.dsc$w_length = strlen(help);
  824.       if ((vaxc$errno = lbr$output_help(lib$put_output,0,&help_desc,
  825.           &helpfile_desc,0,lib$get_input)) != SS$_NORMAL)
  826. !             os_error("can't open GNUPLOT$HELP",NO_CARET);
  827.   }
  828.   
  829.   
  830. ***************
  831. *** 2882,2888 ****
  832.      if(fexecv(parms[0],parms) < 0)
  833.   #else
  834.      if (system(input_line + 1))
  835. ! #endif
  836.         os_error("system() failed",NO_CARET);
  837.   }
  838.   
  839. --- 3008,3014 ----
  840.      if(fexecv(parms[0],parms) < 0)
  841.   #else
  842.      if (system(input_line + 1))
  843. ! #endif /* AMIGA_AC_5 */
  844.         os_error("system() failed",NO_CARET);
  845.   }
  846.   
  847. ***************
  848. *** 3087,3093 ****
  849.               if (more && interactive)
  850.               fputs("> ", stderr);
  851.           } while(more);
  852. ! #ifndef __ZTC
  853.       }
  854.   #endif
  855.   }
  856. --- 3213,3219 ----
  857.               if (more && interactive)
  858.               fputs("> ", stderr);
  859.           } while(more);
  860. ! #ifndef __ZTC__
  861.       }
  862.   #endif
  863.   }
  864. diff -rc gnuplot/contour.c gnuplot3.2/contour.c
  865. *** gnuplot/contour.c    Sun Jan  5 21:33:16 1992
  866. --- gnuplot3.2/contour.c    Wed Mar 25 07:59:35 1992
  867. ***************
  868. *** 1,6 ****
  869.   /* GNUPLOT - contour.c */
  870.   /*
  871. !  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  872.    *
  873.    * Permission to use, copy, and distribute this software and its
  874.    * documentation for any purpose with or without fee is hereby granted, 
  875. --- 1,10 ----
  876. + #ifndef lint
  877. + static char *RCSid = "$Id: contour.c,v 3.26 92/03/24 22:35:54 woo Exp Locker: woo $";
  878. + #endif
  879.   /* GNUPLOT - contour.c */
  880.   /*
  881. !  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  882.    *
  883.    * Permission to use, copy, and distribute this software and its
  884.    * documentation for any purpose with or without fee is hereby granted, 
  885. ***************
  886. *** 21,31 ****
  887.    *       Gershon Elber
  888.    * 
  889.    * Send your comments or suggestions to 
  890. !  *  pixar!info-gnuplot@sun.com.
  891.    * This is a mailing list; to join it send a note to 
  892. !  *  pixar!info-gnuplot-request@sun.com.  
  893.    * Send bug reports to
  894. !  *  pixar!bug-gnuplot@sun.com.
  895.    */
  896.   
  897.   #include <stdio.h>
  898. --- 25,35 ----
  899.    *       Gershon Elber
  900.    * 
  901.    * Send your comments or suggestions to 
  902. !  *  info-gnuplot@ames.arc.nasa.gov.
  903.    * This is a mailing list; to join it send a note to 
  904. !  *  info-gnuplot-request@ames.arc.nasa.gov.  
  905.    * Send bug reports to
  906. !  *  bug-gnuplot@ames.arc.nasa.gov.
  907.    */
  908.   
  909.   #include <stdio.h>
  910. diff -rc gnuplot/corplot.c gnuplot3.2/corplot.c
  911. *** gnuplot/corplot.c    Thu Jul 18 11:56:08 1991
  912. --- gnuplot3.2/corplot.c    Wed Mar 25 07:59:36 1992
  913. ***************
  914. *** 1,6 ****
  915.   /* GNUPLOT - corplot.c */
  916.   /*
  917. !  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  918.    *
  919.    * Permission to use, copy, and distribute this software and its
  920.    * documentation for any purpose with or without fee is hereby granted, 
  921. --- 1,10 ----
  922. + #ifndef lint
  923. + static char *RCSid = "$Id: corplot.c,v 3.26 92/03/24 22:36:10 woo Exp Locker: woo $";
  924. + #endif
  925.   /* GNUPLOT - corplot.c */
  926.   /*
  927. !  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  928.    *
  929.    * Permission to use, copy, and distribute this software and its
  930.    * documentation for any purpose with or without fee is hereby granted, 
  931. ***************
  932. *** 27,37 ****
  933.    *       Gershon Elber and many others.
  934.    * 
  935.    * Send your comments or suggestions to 
  936. !  *  pixar!info-gnuplot@sun.com.
  937.    * This is a mailing list; to join it send a note to 
  938. !  *  pixar!info-gnuplot-request@sun.com.  
  939.    * Send bug reports to
  940. !  *  pixar!bug-gnuplot@sun.com.
  941.    */
  942.   #include <stdio.h>
  943.   #include <process.h>
  944. --- 31,41 ----
  945.    *       Gershon Elber and many others.
  946.    * 
  947.    * Send your comments or suggestions to 
  948. !  *  info-gnuplot@ames.arc.nasa.gov.
  949.    * This is a mailing list; to join it send a note to 
  950. !  *  info-gnuplot-request@ames.arc.nasa.gov.  
  951.    * Send bug reports to
  952. !  *  bug-gnuplot@ames.arc.nasa.gov.
  953.    */
  954.   #include <stdio.h>
  955.   #include <process.h>
  956. Common subdirectories: gnuplot/demo and gnuplot3.2/demo
  957. Common subdirectories: gnuplot/docs and gnuplot3.2/docs
  958. diff -rc gnuplot/eval.c gnuplot3.2/eval.c
  959. *** gnuplot/eval.c    Thu Jul 18 11:56:29 1991
  960. --- gnuplot3.2/eval.c    Wed Mar 25 07:59:36 1992
  961. ***************
  962. *** 1,6 ****
  963.   /* GNUPLOT - eval.c */
  964.   /*
  965. !  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  966.    *
  967.    * Permission to use, copy, and distribute this software and its
  968.    * documentation for any purpose with or without fee is hereby granted, 
  969. --- 1,10 ----
  970. + #ifndef lint
  971. + static char *RCSid = "$Id: eval.c,v 3.26 92/03/24 22:34:32 woo Exp Locker: woo $";
  972. + #endif
  973.   /* GNUPLOT - eval.c */
  974.   /*
  975. !  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  976.    *
  977.    * Permission to use, copy, and distribute this software and its
  978.    * documentation for any purpose with or without fee is hereby granted, 
  979. ***************
  980. *** 27,37 ****
  981.    *       Gershon Elber and many others.
  982.    * 
  983.    * Send your comments or suggestions to 
  984. !  *  pixar!info-gnuplot@sun.com.
  985.    * This is a mailing list; to join it send a note to 
  986. !  *  pixar!info-gnuplot-request@sun.com.  
  987.    * Send bug reports to
  988. !  *  pixar!bug-gnuplot@sun.com.
  989.    */
  990.   
  991.   #include <stdio.h>
  992. --- 31,41 ----
  993.    *       Gershon Elber and many others.
  994.    * 
  995.    * Send your comments or suggestions to 
  996. !  *  info-gnuplot@ames.arc.nasa.gov.
  997.    * This is a mailing list; to join it send a note to 
  998. !  *  info-gnuplot-request@ames.arc.nasa.gov.  
  999.    * Send bug reports to
  1000. !  *  bug-gnuplot@ames.arc.nasa.gov.
  1001.    */
  1002.   
  1003.   #include <stdio.h>
  1004. diff -rc gnuplot/gnuplot.el gnuplot3.2/gnuplot.el
  1005. *** gnuplot/gnuplot.el    Sun Jan  5 21:33:16 1992
  1006. --- gnuplot3.2/gnuplot.el    Wed Mar 25 07:59:37 1992
  1007. ***************
  1008. *** 5,11 ****
  1009.   ;         Computer Science Dept.
  1010.   ;         University of Utah
  1011.   ; Date:    Tue May 14 1991
  1012. ! ; Copyright (c) 1991, Gershon Elber
  1013.   ;
  1014.   ; This file defines an environment to run edit and execute GNU-PLOT programs.
  1015.   ; Such a program should have a '.gp' extension in order it to be in
  1016. --- 5,11 ----
  1017.   ;         Computer Science Dept.
  1018.   ;         University of Utah
  1019.   ; Date:    Tue May 14 1991
  1020. ! ; Copyright (c) 1991, 1992, Gershon Elber
  1021.   ;
  1022.   ; This file defines an environment to run edit and execute GNU-PLOT programs.
  1023.   ; Such a program should have a '.gp' extension in order it to be in
  1024.