home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume30 / gnuplot3 / patch02a < prev    next >
Encoding:
Text File  |  1992-06-18  |  53.9 KB  |  1,808 lines

  1. Newsgroups: comp.sources.misc
  2. From: woo@ra-next.arc.nasa.gov (Alex Woo)
  3. Subject:  v30i054:  gnuplot3 - interactive function plotting utility, Patch02a/7
  4. Message-ID: <csm-v30i054=gnuplot3.163807@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: 37203953b07cd2edc7ee58ee5bd1d617
  6. Date: Sun, 14 Jun 1992 21:38:55 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: woo@ra-next.arc.nasa.gov (Alex Woo)
  10. Posting-number: Volume 30, Issue 54
  11. Archive-name: gnuplot3/patch02a
  12. Environment: UNIX, MS-DOS, VMS
  13. Patch-To: gnuplot3: Volume 24, Issue 23-48
  14.  
  15. Below is the official patch2 for gnuplot 3.0 (which makes it 3.2)
  16. This is the official release of GNUPLOT.3.2.  It is available in either
  17. a patch or tar archive.  Sites for the retrieval are listed in the
  18. README.   Below are the modifications and contributors to this release.
  19. The patch files patch.[1-7] need to be applied with the p1 flag
  20.  
  21. (with csh or tcsh the following will apply the patches)
  22. %cd gnuplot
  23. %foreach f (patch.*)
  24. >patch -p1 <  $f
  25. >end
  26.  
  27.  What is Gnuplot 3.1?
  28.  --------------------
  29. Gnuplot is a command-line driven interactive function plotting utility
  30. for UNIX, MSDOS, and VMS platforms.  The software is copyrighted but
  31. freely distributed (i.e., you don't have to pay for it).  It was
  32. originally intended as graphical program which would allow scientists
  33. and students to visualize mathematical functions and data.  Additions
  34. to this version of the software allow plots of three-dimensional
  35. functions and data files.  Gnuplot supports many different types of
  36. terminals, plotters, and printers and is easily extensible to include
  37. new devices.  [ The "GNU" in Gnuplot is NOT related to the Free
  38. Software Foundation, the naming is just a coincidence (and a long
  39. story). Thus gnuplot is not covered by the Gnu copyleft, but rather
  40. by its own copyright statement, included in all source code files.]
  41.  
  42. Alex Woo
  43. --------------------------------
  44. #! /bin/sh
  45. # This is a shell archive.  Remove anything before this line, then feed it
  46. # into a shell via "sh file" or similar.  To overwrite existing files,
  47. # type "sh file -c".
  48. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  49. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  50. # Contents:  README.patch2 EpsViewer.h README.3d README.3p2 README.NeXT
  51. #   README.x11 demo/hidden.demo patch.7
  52. # Wrapped by woo@ames.arc.nasa.gov. on Thu May 28 22:44:39 1992
  53. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  54. echo If this archive is complete, you will see the following message:
  55. echo '          "shar: End of archive 1 (of 7)."'
  56. if test -f 'README.patch2' -a "${1}" != "-c" ; then 
  57.   echo shar: Will not clobber existing file \"'README.patch2'\"
  58. else
  59.   echo shar: Extracting \"'README.patch2'\" \(2920 characters\)
  60.   sed "s/^X//" >'README.patch2' <<'END_OF_FILE'
  61. XThis is the official release of GNUPLOT.3.2.  It is available in either
  62. Xa patch or tar archive.  Sites for the retrieval are listed in the
  63. XREADME.   Below are the modifications and contributors to this release.
  64. XThe patch files patch.[1-7] need to be applied with the p1 flag
  65. X
  66. X(with csh or tcsh the following will apply the patches)
  67. X%cd gnuplot
  68. X%foreach f (patch.*)
  69. X>patch -p1 <  $f
  70. X>end
  71. X
  72. X
  73. XThanks  ---  Alex Woo
  74. X
  75. X* Subject: New generic gnuplot_x11.c 
  76. X  Name: Ed Kubatis
  77. X  Email: ejk@ux2.ncsa.uiuc.edu
  78. X
  79. X* Subject: Hidden Line Removal for Explicit Surfaces and IRIX 4.0 fixes.
  80. X  Name: Gershon Elber
  81. X  Email: gershon@gr.utah.edu
  82. X
  83. X* Subject: Table Terminal Driver.
  84. X  Name: Kevin Russo
  85. X  Email: russo@rudedog.nrl.navy.mil
  86. X
  87. X* Subject: PCL5 driver fixes (HPGL page eject),datafile pipe and README.
  88. X  Name: Alex Woo
  89. X  Email: woo@ames.arc.nasa.gov
  90. X
  91. X* Subject: Pbmplus driver and fix to y log tics.
  92. X  Name: Russell Lang 
  93. X  Email: rjl@monu1.cc.monash.edu.au  
  94. X
  95. X* Subject: NeXT Console Driver.
  96. X  Name: Nick Strobel 
  97. X  Email: strobel@phast.phys.washington.edu
  98. X
  99. X* Subject: Fix GNUTERM environment with disk resident BGI drivers
  100. X  Name: Craig Johnston
  101. X  Email: johnston@maxwell.ee.washington.edu
  102. X
  103. X* Subject: Fix tables for troff in doc2ms
  104. X  Name: Michael Schuh
  105. X  Email: schuh@ames.arc.nasa.gov
  106. X
  107. X* Subject: Fix dump when GNUPLOT$HELP undefined
  108. X  Name: Wolfgang J. Moeller
  109. X  Email: moeller@gwdgv1.dnet.gwdg.de 
  110. X  
  111. X* Subject: Fix AMIGA segment limits
  112. X  Name: Carsten Steger
  113. X  Email: stegerc@informatik.tu-muenchen.de
  114. X  
  115. X* Subject: Put FAR pointers in bitmap.c and bitmap.h
  116. X  Name: Russell Lang 
  117. X  Email: rjl@monu1.cc.monash.edu.au  
  118. X  
  119. X* Subject: Bug fix to latex.trm 
  120. X  Name: Rob Cunningham
  121. X  Email: rkc@xn.ll.mit.edu
  122. X----------------------------------------------------------------------------
  123. X
  124. X                   GNUPLOT 3.1 Patch
  125. X
  126. XThis package provides the upgrade of gnuplot 3.0 to patch level 1.
  127. XBelow are the contributers to this upgrade and the modifications made.
  128. X
  129. XThank you all
  130. X
  131. XGershon
  132. X
  133. X----------------------------------------------------------------------------
  134. X
  135. X* Subject: Y log / postscript eps fix
  136. X  Name: Russell Lang
  137. X  Email: rjl@monu1.cc.monash.edu.au
  138. X
  139. X* Subject: HP26 driver to lift text.
  140. X  Name: Bruce Lueckenhoff
  141. X  Email: luechen@cis.udel.edu
  142. X
  143. X* Subject: CRAY prt, UIUC coordinates.
  144. X  Name: Daniel Lewart
  145. X  Email: d-lewart@uiuc.edu
  146. X
  147. X* Subject: AI device
  148. X  Name:    Ray Ghanbari
  149. X  Email: ray@mtl.mit.edu
  150. X
  151. X* Subject: HP_MOTIF on a Snake, X11 for Next
  152. X  Name: Alex Woo
  153. X  Email: woo@ra-next.arc.nasa.gov
  154. X
  155. X* Subject: Mod. to LaTeX for multiple curves/plots, complex atan function fix.
  156. X  Name: Ray Toy???
  157. X  Email: toy@soho.crd.ge.com
  158. X
  159. X* Subject: Fix the "splot 'file.dat'" with only z values.
  160. X  Name: Gershon Elber
  161. X  Email: gershon@gr.utah.edu
  162. X
  163. X* Subject: Underscore prefixed names.
  164. X  Name: Tom Tkacik
  165. X  Email: tkacik@hobbes.cs.gmr.com
  166. X
  167. X* Subject: Amiga port
  168. X  Name: Carsten Steger 
  169. X  Email: stegerc@informatik.tu-muenchen.de
  170. END_OF_FILE
  171.   if test 2920 -ne `wc -c <'README.patch2'`; then
  172.     echo shar: \"'README.patch2'\" unpacked with wrong size!
  173.   fi
  174.   # end of 'README.patch2'
  175. fi
  176. if test -f 'EpsViewer.h' -a "${1}" != "-c" ; then 
  177.   echo shar: Will not clobber existing file \"'EpsViewer.h'\"
  178. else
  179.   echo shar: Extracting \"'EpsViewer.h'\" \(467 characters\)
  180.   sed "s/^X//" >'EpsViewer.h' <<'END_OF_FILE'
  181. X/*
  182. X * $Id: EpsViewer.h,v 3.24 1992/02/29 16:27:40 woo Exp woo $
  183. X *
  184. X * $Log: EpsViewer.h,v $
  185. X * Revision 3.24  1992/02/29  16:27:40  woo
  186. X * gnuplot3.2, beta 4
  187. X *
  188. X */
  189. X
  190. X#import <appkit/Application.h>
  191. X#import <appkit/graphics.h>
  192. X#import <dpsclient/dpsclient.h>
  193. X#import <appkit/Window.h>
  194. X
  195. X@interface EpsViewer:Application
  196. X{
  197. X    id theNewWin;
  198. X}
  199. X
  200. X- windowCreate:(NXCoord)width Height:(NXCoord)height;
  201. X- (NXRect *)nextRectForWidth:(NXCoord)width Height:(NXCoord)height;
  202. X
  203. X@end
  204. X
  205. X
  206. END_OF_FILE
  207.   if test 467 -ne `wc -c <'EpsViewer.h'`; then
  208.     echo shar: \"'EpsViewer.h'\" unpacked with wrong size!
  209.   fi
  210.   # end of 'EpsViewer.h'
  211. fi
  212. if test -f 'README.3d' -a "${1}" != "-c" ; then 
  213.   echo shar: Will not clobber existing file \"'README.3d'\"
  214. else
  215.   echo shar: Extracting \"'README.3d'\" \(5930 characters\)
  216.   sed "s/^X//" >'README.3d' <<'END_OF_FILE'
  217. X
  218. X           A tutorial on explicit/parametric
  219. X                   and
  220. X            everything you did not dare to ask
  221. X                  about
  222. X               curves and surfaces
  223. X                    in
  224. X                  gnuplot
  225. X
  226. XSeveral types of curves and surface are supported in gnuplot. Of those
  227. Xnot every operation is supported for every curve or surface type and it
  228. Xcan be therefore useful to understand the different types, their advantages
  229. Xand limitations.
  230. X
  231. XCurves in gnuplot are almost always planar (with one exception which we
  232. Xwill deal with in the end) and are assumed to be in the XY plane.
  233. XTherefore only X and Y coordinates are needed for plotting curves.
  234. XThe simplest curve is the `explicit function`. This curve is in fact a
  235. Xfunction and for each given x, there is one and only one y value associated
  236. Xwith it. A gnuplot example for such type is `plot sin(x)` or
  237. X`plot "datafile" using 1". Note the later is using only a single column from
  238. Xthe data file which is assumed to be the y values.
  239. X
  240. XAlternatively one can define a `parametric curve` form. In this case
  241. Xx and y are both functions of a third free parameter t, while independent
  242. Xof each other. A circle can be expressed parametrically as x = cos(t),
  243. Xy = sin(t) and be plotted using gnuplot as
  244. X'set parametric; plot cos(t),sin(t)'.
  245. XThis form is not a function since there can be unlimited number of y values
  246. Xassociated with same x. Furthermore the explicit form is a special case of
  247. Xthe parametric representation by letting x equal to t. The curve y = sin(x)
  248. Xcan be written in parametric form as y = sin(t), x = t.
  249. X
  250. XWe are used to think of the plane in cartesian coordinate system.
  251. XIn practice, some coordinate systems may be easier to use then others
  252. Xunder some circumstances. The polar form uses a different basis
  253. Xto span the XY plane. In this representation the cartesian x coordinate
  254. Xis equal to r cos(t) and the cartesian y coordinate is equal to r sin(t).
  255. XTo draw a unit circle using the polar coordinate system in gnuplot use the
  256. Xfollowing simple command: 'set polar; plot 1'. To better understand this
  257. Xexplicit form lets backup a little.
  258. XWhen we plot a regular explicit function like `y = sin(x)` we march in equal
  259. Xsteps in x, evaluate the provided function and plot a piecewise linear curve
  260. Xbetween the sampled points approximating the real function. In the polar
  261. Xexplicit form we do exactly the same thing, but we march along the angular
  262. Xdirection - we turn around the origin, computing the length of the radius
  263. Xat that angle. Since for the unit circle, this radius is a constant 1,
  264. X`plot 1` in polar form plots a circle (if t domain is from 0 or 2Pi).
  265. XNote the polar form is explicit in that for each angle there is only a
  266. Xsingle radius.
  267. X
  268. XSurprisingly (or maybe not so surprising) surfaces share the same
  269. Xrepresentations. Since surfaces are two dimensional entities, they
  270. Xrequire two free parameters (like t for curves).
  271. X
  272. XA surface explicit function uses x and y as the free parameters. For
  273. Xeach such pair it provides a single z value. An example for this form
  274. Xcan be `splot sin(sqrt(x**2+y**2))/sqrt(x**2+y**2)` for a three dimensional
  275. Xsinc function or `splot 'datafile' using 1`. As for curves, the single column
  276. Xused from the data file defines the function value or z in this case.
  277. XThe order of the x and y function values is very strict in this form and
  278. Xsimply defines a rectangular grid in the XY plane. Fortunately this
  279. Xstrict form allows us to apply a very simplistic hidden line algorithm
  280. Xcalled "the floating horizon". This hidden line algorithm exploits the
  281. Xrectangular XY domain of the surface and therefore may be used for this
  282. Xtype of surfaces only. Since in gnuplot this is the only form of hidden
  283. Xlines removing algorithm provided, only explicit surfaces may have their
  284. Xhidden lines removed.
  285. X
  286. XParametric surfaces are the exact extension for explicit surfaces as in
  287. Xthe curves case. the x, y, and z are defined in terms of two new free
  288. Xvariables and are totally independent of each other as x(u, v), y(u, v),
  289. Xand z(u, v). Again the explicit surface is a special case of the parametric
  290. Xrepresentation where x = u, and y = v. Examples for plotting parametric
  291. Xsurfaces in gnuplot can be `splot cos(u)*cos(v),cos(u)*sin(v),sin(u)` which
  292. Xdefines a sphere, or `splot "datafile" using 1:2:3`. Since these are
  293. Xparametric surfaces, gnuplot must be informed to handle them by issuing
  294. X`set parametric`.
  295. X
  296. XThe curve polar form takes the obvious extensions in the surface world.
  297. XThe first possible extension is spherical coordinate system, while the
  298. Xsecond is the cylinderical one. These modes currently work for data files
  299. Xonly and both requires two parameters, teta and phi for mapping onto the
  300. Xunit sphere, and teta and z form mapping on a unit radius cylinder as follow:
  301. X
  302. X    Spherical coord.            Cylin. coord.
  303. X    ----------------            -------------
  304. X    x = cos( theta ) * cos( phi )        x = cos( theta )
  305. X    y = sin( theta ) * cos( phi )        y = sin( theta )
  306. X    z = sin( phi )                z = z
  307. X
  308. XThis subject brings us back to non planar curves. When surfaces are displayed
  309. Xunder gnuplot, isocurves are actually getting plotted. An isocurve is a
  310. Xcurve on the surface in which one of the two free parameters of the
  311. Xsurface is fixed. For example the u isolines of a surface are drawn by
  312. Xsetting u to be fixed and varying v along the entire v domain. The v isolines
  313. Xare similarly drawn by fixing v. When data files are specified they are
  314. Xclassified internally into two types. A surface is tagged to have grid
  315. Xtopology if all its specified isolines are of the same length. A data mesh
  316. Xof five isolines, seven points each is an example. In such a case the
  317. Xsurface cross isolines are drawn as well. Seven isolines with five points
  318. Xeach will be automatically created and drawn for grid type data. If
  319. Xhowever, isolines of different length are found in the data, it is
  320. Xtagged as nongrid surface and in fact is nothing more than a collection
  321. Xof three dimensional curves. only the provided data is plotted in that
  322. Xcase (see world.demo for a such an example).
  323. X
  324. END_OF_FILE
  325.   if test 5930 -ne `wc -c <'README.3d'`; then
  326.     echo shar: \"'README.3d'\" unpacked with wrong size!
  327.   fi
  328.   # end of 'README.3d'
  329. fi
  330. if test -f 'README.3p2' -a "${1}" != "-c" ; then 
  331.   echo shar: Will not clobber existing file \"'README.3p2'\"
  332. else
  333.   echo shar: Extracting \"'README.3p2'\" \(2920 characters\)
  334.   sed "s/^X//" >'README.3p2' <<'END_OF_FILE'
  335. XThis is the official release of GNUPLOT.3.2.  It is available in either
  336. Xa patch or tar archive.  Sites for the retrieval are listed in the
  337. XREADME.   Below are the modifications and contributors to this release.
  338. XThe patch files patch.[1-7] need to be applied with the p1 flag
  339. X
  340. X(with csh or tcsh the following will apply the patches)
  341. X%cd gnuplot
  342. X%foreach f (patch.*)
  343. X>patch -p1 <  $f
  344. X>end
  345. X
  346. X
  347. XThanks  ---  Alex Woo
  348. X
  349. X* Subject: New generic gnuplot_x11.c 
  350. X  Name: Ed Kubatis
  351. X  Email: ejk@ux2.ncsa.uiuc.edu
  352. X
  353. X* Subject: Hidden Line Removal for Explicit Surfaces and IRIX 4.0 fixes.
  354. X  Name: Gershon Elber
  355. X  Email: gershon@gr.utah.edu
  356. X
  357. X* Subject: Table Terminal Driver.
  358. X  Name: Kevin Russo
  359. X  Email: russo@rudedog.nrl.navy.mil
  360. X
  361. X* Subject: PCL5 driver fixes (HPGL page eject),datafile pipe and README.
  362. X  Name: Alex Woo
  363. X  Email: woo@ames.arc.nasa.gov
  364. X
  365. X* Subject: Pbmplus driver and fix to y log tics.
  366. X  Name: Russell Lang 
  367. X  Email: rjl@monu1.cc.monash.edu.au  
  368. X
  369. X* Subject: NeXT Console Driver.
  370. X  Name: Nick Strobel 
  371. X  Email: strobel@phast.phys.washington.edu
  372. X
  373. X* Subject: Fix GNUTERM environment with disk resident BGI drivers
  374. X  Name: Craig Johnston
  375. X  Email: johnston@maxwell.ee.washington.edu
  376. X
  377. X* Subject: Fix tables for troff in doc2ms
  378. X  Name: Michael Schuh
  379. X  Email: schuh@ames.arc.nasa.gov
  380. X
  381. X* Subject: Fix dump when GNUPLOT$HELP undefined
  382. X  Name: Wolfgang J. Moeller
  383. X  Email: moeller@gwdgv1.dnet.gwdg.de 
  384. X  
  385. X* Subject: Fix AMIGA segment limits
  386. X  Name: Carsten Steger
  387. X  Email: stegerc@informatik.tu-muenchen.de
  388. X  
  389. X* Subject: Put FAR pointers in bitmap.c and bitmap.h
  390. X  Name: Russell Lang 
  391. X  Email: rjl@monu1.cc.monash.edu.au  
  392. X  
  393. X* Subject: Bug fix to latex.trm 
  394. X  Name: Rob Cunningham
  395. X  Email: rkc@xn.ll.mit.edu
  396. X----------------------------------------------------------------------------
  397. X
  398. X                   GNUPLOT 3.1 Patch
  399. X
  400. XThis package provides the upgrade of gnuplot 3.0 to patch level 1.
  401. XBelow are the contributers to this upgrade and the modifications made.
  402. X
  403. XThank you all
  404. X
  405. XGershon
  406. X
  407. X----------------------------------------------------------------------------
  408. X
  409. X* Subject: Y log / postscript eps fix
  410. X  Name: Russell Lang
  411. X  Email: rjl@monu1.cc.monash.edu.au
  412. X
  413. X* Subject: HP26 driver to lift text.
  414. X  Name: Bruce Lueckenhoff
  415. X  Email: luechen@cis.udel.edu
  416. X
  417. X* Subject: CRAY prt, UIUC coordinates.
  418. X  Name: Daniel Lewart
  419. X  Email: d-lewart@uiuc.edu
  420. X
  421. X* Subject: AI device
  422. X  Name:    Ray Ghanbari
  423. X  Email: ray@mtl.mit.edu
  424. X
  425. X* Subject: HP_MOTIF on a Snake, X11 for Next
  426. X  Name: Alex Woo
  427. X  Email: woo@ra-next.arc.nasa.gov
  428. X
  429. X* Subject: Mod. to LaTeX for multiple curves/plots, complex atan function fix.
  430. X  Name: Ray Toy???
  431. X  Email: toy@soho.crd.ge.com
  432. X
  433. X* Subject: Fix the "splot 'file.dat'" with only z values.
  434. X  Name: Gershon Elber
  435. X  Email: gershon@gr.utah.edu
  436. X
  437. X* Subject: Underscore prefixed names.
  438. X  Name: Tom Tkacik
  439. X  Email: tkacik@hobbes.cs.gmr.com
  440. X
  441. X* Subject: Amiga port
  442. X  Name: Carsten Steger 
  443. X  Email: stegerc@informatik.tu-muenchen.de
  444. END_OF_FILE
  445.   if test 2920 -ne `wc -c <'README.3p2'`; then
  446.     echo shar: \"'README.3p2'\" unpacked with wrong size!
  447.   fi
  448.   # end of 'README.3p2'
  449. fi
  450. if test -f 'README.NeXT' -a "${1}" != "-c" ; then 
  451.   echo shar: Will not clobber existing file \"'README.NeXT'\"
  452. else
  453.   echo shar: Extracting \"'README.NeXT'\" \(1407 characters\)
  454.   sed "s/^X//" >'README.NeXT' <<'END_OF_FILE'
  455. X    This directory contains version 2 of the additional files
  456. Xyou'll need to get gnuplot3.0 to display it's postscript directly to a
  457. Xwindow instead of going through the klunky process of writing the
  458. Xpostscript to a file and launching Previewer to view the file.  Note
  459. Xthat all input is still done at the shell level! Fancier NeXTStep
  460. Xinterfaces will be a future project.
  461. X
  462. X    This version is faster and leaner than the old method.  It
  463. Xalso does not eat up swap space like the older version (this was
  464. Xparticularly noticeable when doing animation-like plots).  To do this
  465. XI used DPS function calls instead of creating a NXImage and
  466. Xcompositing the stream of commands. I based my code on the program
  467. Xcalled "epsview" in the hackkit tar file on the archive servers.
  468. X
  469. X    The next_dps.trm (next terminal) is basically the post.trm
  470. X(postscript terminal) with the fprintf replaced by DPSPrintf and
  471. Xoutfile by the DPSContext d.  You'll also see that I also used some
  472. Xcode (with modifications) from David S. Joerg's MovieApp.  Using the
  473. XDPS functions enabled me to slim down the EpsViewer.[hm] and
  474. XEPSView.[hm] files.
  475. X
  476. X    No claim is made to code elegance or to it being a good example of
  477. Xobjective-c coding.  This is my first (well, second, sort of) objective-c 
  478. Xprogram. It seems to work for me. Any constructive criticism would be 
  479. Xappreciated.  I can be reached at strobel@phast.phys.washington.edu
  480. X
  481. Xcheers!
  482. X
  483. Xnick strobel
  484. X
  485. END_OF_FILE
  486.   if test 1407 -ne `wc -c <'README.NeXT'`; then
  487.     echo shar: \"'README.NeXT'\" unpacked with wrong size!
  488.   fi
  489.   # end of 'README.NeXT'
  490. fi
  491. if test -f 'README.x11' -a "${1}" != "-c" ; then 
  492.   echo shar: Will not clobber existing file \"'README.x11'\"
  493. else
  494.   echo shar: Extracting \"'README.x11'\" \(4308 characters\)
  495.   sed "s/^X//" >'README.x11' <<'END_OF_FILE'
  496. X
  497. XNotes on the new X11 features are attached. 
  498. X
  499. XEd
  500. X----------------------------------
  501. XEd Kubaitis (ejk@ux2.cso.uiuc.edu)
  502. XComputing & Communications Services Office - University of Illinois, Urbana
  503. X
  504. X===============================================================================
  505. XGnuplot_x11 for 3.2
  506. X-------------------
  507. X
  508. XNew features
  509. X------------
  510. X   o CRIPPLED_SELECT build option for SVR3 platforms with incomplete
  511. X     or faulty implementations of BSD select().
  512. X
  513. X   o Xlib only
  514. X
  515. X     X11 support no longer requires Athena or Motif libraries and
  516. X     include files. This makes life easier for people on platforms
  517. X     with Open Look only. It also simplifies X11 tailoring on all
  518. X     platforms. Oh yes, and the gnuplot_x11 executable is smaller
  519. X     (~43K instead of ~500K on RS/6000.)
  520. X
  521. X     makefile.unx has been edited to remove references to Athena &
  522. X     Motif. Also, with the exception of the HP definition (where it
  523. X     appeared to be intentionally specific to R4) all references to 
  524. X     X11R4 have also been removed since this version should work without 
  525. X     changes on R3, R4, or R5.
  526. X
  527. X   o Grayscale handling
  528. X
  529. X     * grayscale displays get monochrome rendering by default
  530. X
  531. X     * '-gray' option & resource forces grayscale rendering on grayscale
  532. X       or color displays.
  533. X
  534. X     * '-mono' option forces monochrome rendering on color displays.
  535. X
  536. X     * special grayscale resources (separate from color)
  537. X
  538. X   o Miscellaneous
  539. X
  540. X     * By default, the window is no longer momentarily cleared when
  541. X       a new plot is displayed. The new plot "silently" replaces the
  542. X       previous one.  I found this useful when running some of the demos, 
  543. X       such as contours.demo, where a plot "adds" a feature to
  544. X       the one before (gnuplot "movies" anyone?;-).
  545. X
  546. X       However, a "-clear" command line-option and "gnuplot*clear: on"
  547. X       restores the momentary clear that was there previously.
  548. X
  549. X     * Added ptx_x11 and convex_x11 machine options to makefile.unx.
  550. X
  551. X     * There is an X11FLAGS option (-DOLD_SELECT) for old 4.2 BSD systems
  552. X       (such as SunOS 3.5) which don't have the FD_XXX macros that
  553. X       go with select().
  554. X
  555. X
  556. XA few words about CRIPPLED_SELECT
  557. X---------------------------------
  558. XI closely reviewed four different ways people had devised for dealing with 
  559. Xthe "select error" problem encountered on some SVR3 platforms. I had one 
  560. Xsuch platform (Sequent Dynix/PTX) available for testing. Unfortunately 3 of 
  561. Xthe four ways that had been submitted did not work for PTX (which has 
  562. Xproblems with non-blocking I/O and Unix domain sockets as well as select). 
  563. XThe fourth way worked there but it used SV STREAMS and I had no way to 
  564. Xverify that it would also work on all the other platforms that encountered 
  565. Xthe problem.
  566. X
  567. XWhat was done instead was to use a temporary file instead of a pipe for
  568. Xgnuplot->gnuplot_x11 communication when CRIPPLED_SELECT is used. This is 
  569. Xlike a sledgehammer - crude but (hopefully) robust. It should work on any 
  570. Xplatform with open(), read(), write(), close(), unlink(), getpid(), and 
  571. Xgetppid().
  572. X
  573. XResponse time is not bad with CRIPPLED_SELECT. Timings on an RS/6000 
  574. Xfor all.demo (hitting RETURN as soon as a plot appears) indicate that 
  575. XCRIPPLED_SELECT only adds an average of .5 seconds to response time, 
  576. Xabout what one would expect given the 1 second timer used. And curiously, 
  577. XCRIPPLED_SELECT used 30% less CPU than the default mode.
  578. X
  579. XTesting
  580. X-------
  581. XThe new gnuplot_x11 was tested here on the following platforms:
  582. X
  583. X   o IBM RS/6000 AIX 3.1.6 (IBM X11R3)
  584. X   o IBM RS/6000 AIX 3.1.6 (MIT X11R4)
  585. X   o Apollo 400s DomainOS 10.3 (Apollo X11R3)
  586. X   o Sun SPARC SunOS 4.1.1-GFX-Rev2 (X11R?)
  587. X   o Vax BSD 4.3 Reno (X11R5)
  588. X   o Vax Ultrix-32 V3.0 Rev 64 (MIT X11R4)
  589. X   o Sun 3/50 SunOS 3.5 (MIT X11R4)
  590. X   o Sun 3/60 SunOS 4.1 (MIT X11R4)
  591. X   o NeXT (X11 R?)
  592. X   o Convex C2 9.0 OS (MIT X11R5)
  593. X   o Sequent Dynix 3.1 (MIT X11R5)
  594. X   o Sequent Dynix/PTX (MIT X11R5)
  595. X   o Cray 2 - Unicos 5+?
  596. X   o Cray Y-MP - Unicos 5+?
  597. X
  598. XAnd with the following servers:
  599. X
  600. X   o NCD 19 monochrome (NCD X11R3)
  601. X   o Visual X-15 monochrome (Visual X11R4)
  602. X   o Sun 3/50 monochrome (MIT X11R4)
  603. X   o IBM XStation 120 grayscale (IBM X11R4)
  604. X   o Visual Turbo X-19 grayscale (Visual X11R4)
  605. X   o IBM XStation 120 color (IBM X11R4)
  606. X   o Sun 3/60 color (MIT X11R4)
  607. X   o IBM XStation 130 1.3 (IBM X11R4)
  608. X
  609. END_OF_FILE
  610.   if test 4308 -ne `wc -c <'README.x11'`; then
  611.     echo shar: \"'README.x11'\" unpacked with wrong size!
  612.   fi
  613.   # end of 'README.x11'
  614. fi
  615. if test -f 'demo/hidden.demo' -a "${1}" != "-c" ; then 
  616.   echo shar: Will not clobber existing file \"'demo/hidden.demo'\"
  617. else
  618.   echo shar: Extracting \"'demo/hidden.demo'\" \(1023 characters\)
  619.   sed "s/^X//" >'demo/hidden.demo' <<'END_OF_FILE'
  620. X#
  621. X# $Id$
  622. X#
  623. X# $Log$
  624. X#
  625. Xset samples 20
  626. Xset isosamples 20
  627. Xset hidden3d
  628. Xset title "Hidden line removal of explicit surfaces"
  629. X
  630. X
  631. Xset xrange [-3:3]
  632. Xset yrange [-2:2]
  633. Xsplot 1 / (x*x + y*y + 1)
  634. Xpause -1 "Hit return to continue (1)"
  635. X
  636. Xset xrange [-1:1]
  637. Xset yrange [-1:1]
  638. Xsplot x*y / (x**2 + y**2 + 0.1)
  639. Xpause -1 "Hit return to continue (2)"
  640. X
  641. Xset view 70,45
  642. Xset nocontour
  643. Xset xrange [-3:3]
  644. Xset yrange [-3:3]
  645. Xsplot sin(x*x + y*y) / (x*x + y*y)
  646. Xpause -1 "Hit return to continue (3)"
  647. X
  648. Xset view 60,30
  649. Xset xrange [-3:3]
  650. Xset yrange [-3:3]
  651. Xsplot sin(x) * cos(y)
  652. Xpause -1 "Hit return to continue (4)"
  653. X
  654. Xset view 75,230
  655. Xset contour
  656. Xreplot
  657. Xpause -1 "Hit return to continue (5)"
  658. X
  659. Xset view 80,30,1,1
  660. Xset data style lines
  661. Xset autoscale
  662. Xsplot "glass.dat" using 1
  663. Xpause -1 "Hit return to continue (6)"
  664. X
  665. Xset view 50,
  666. Xset grid
  667. Xreplot
  668. Xpause -1 "Hit return to continue (7)"
  669. X
  670. Xset nocontour
  671. Xset nogrid
  672. Xset nohidden3d
  673. Xset samples 100
  674. Xset isosamples 10
  675. Xset view 60,30,1,1
  676. Xset xrange [-10:10]
  677. Xset yrange [-10:10]
  678. Xset zrange [-10:10]
  679. Xset auto
  680. Xset title "" 0,0
  681. X
  682. X
  683. END_OF_FILE
  684.   if test 1023 -ne `wc -c <'demo/hidden.demo'`; then
  685.     echo shar: \"'demo/hidden.demo'\" unpacked with wrong size!
  686.   fi
  687.   # end of 'demo/hidden.demo'
  688. fi
  689. if test -f 'patch.7' -a "${1}" != "-c" ; then 
  690.   echo shar: Will not clobber existing file \"'patch.7'\"
  691. else
  692.   echo shar: Extracting \"'patch.7'\" \(28597 characters\)
  693.   sed "s/^X//" >'patch.7' <<'END_OF_FILE'
  694. Xdiff -rc gnuplot/term/hp2648.trm gnuplot3.2/term/hp2648.trm
  695. X*** gnuplot/term/hp2648.trm    Mon Mar 26 15:02:34 1990
  696. X--- gnuplot3.2/term/hp2648.trm    Wed Mar 25 08:00:43 1992
  697. X***************
  698. X*** 1,6 ****
  699. X  /* GNUPLOT -  hp2648.trm */
  700. X  /*
  701. X!  * Copyright (C) 1990   
  702. X   *
  703. X   * Permission to use, copy, and distribute this software and its
  704. X   * documentation for any purpose with or without fee is hereby granted, 
  705. X--- 1,10 ----
  706. X+ /*
  707. X+  * $Id: hp2648.trm,v 3.26 92/03/24 22:34:55 woo Exp Locker: woo $
  708. X+  */
  709. X+ 
  710. X  /* GNUPLOT -  hp2648.trm */
  711. X  /*
  712. X!  * Copyright (C) 1990, 1991, 1992   
  713. X   *
  714. X   * Permission to use, copy, and distribute this software and its
  715. X   * documentation for any purpose with or without fee is hereby granted, 
  716. X***************
  717. X*** 22,28 ****
  718. X   * AUTHORS
  719. X   *  Russell Lang
  720. X   * 
  721. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  722. X   * 
  723. X   */
  724. X  
  725. X--- 26,32 ----
  726. X   * AUTHORS
  727. X   *  Russell Lang
  728. X   * 
  729. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  730. X   * 
  731. X   */
  732. X  
  733. Xdiff -rc gnuplot/term/hpgl.trm gnuplot3.2/term/hpgl.trm
  734. X*** gnuplot/term/hpgl.trm    Sun Jan  5 21:33:33 1992
  735. X--- gnuplot3.2/term/hpgl.trm    Wed Mar 25 08:00:44 1992
  736. X***************
  737. X*** 1,6 ****
  738. X  /* GNUPLOT - hpgl.trm */
  739. X  /*
  740. X!  * Copyright (C) 1990   
  741. X   *
  742. X   * Permission to use, copy, and distribute this software and its
  743. X   * documentation for any purpose with or without fee is hereby granted, 
  744. X--- 1,10 ----
  745. X+ /*
  746. X+  * $Id: hpgl.trm,v 3.26 92/03/24 22:34:56 woo Exp Locker: woo $
  747. X+  */
  748. X+ 
  749. X  /* GNUPLOT - hpgl.trm */
  750. X  /*
  751. X!  * Copyright (C) 1990, 1991, 1992   
  752. X   *
  753. X   * Permission to use, copy, and distribute this software and its
  754. X   * documentation for any purpose with or without fee is hereby granted, 
  755. X***************
  756. X*** 22,28 ****
  757. X   * AUTHORS
  758. X   *  Colin Kelley, Thomas Williams, Russell Lang
  759. X   * 
  760. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  761. X   * 
  762. X   */
  763. X  
  764. X--- 26,32 ----
  765. X   * AUTHORS
  766. X   *  Colin Kelley, Thomas Williams, Russell Lang
  767. X   * 
  768. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  769. X   * 
  770. X   */
  771. X  
  772. X***************
  773. X*** 29,34 ****
  774. X--- 33,41 ----
  775. X  #define HPGL_XMAX 15200
  776. X  #define HPGL_YMAX 10000
  777. X  
  778. X+ #define PCL_XMAX 10000
  779. X+ #define PCL_YMAX  7500
  780. X+ 
  781. X  #define HPGL_XLAST (HPGL_XMAX - 1)
  782. X  #define HPGL_YLAST (HPGL_XMAX - 1)
  783. X  
  784. X***************
  785. X*** 38,43 ****
  786. X--- 45,55 ----
  787. X  #define HPGL_VTIC    (HPGL_YMAX/70)        
  788. X  #define HPGL_HTIC    (HPGL_YMAX/70)        
  789. X  
  790. X+ #define PCL_VCHAR    (PCL_YMAX/100*32/10) /* 3.2% */
  791. X+ #define PCL_HCHAR    (PCL_XMAX/100*12/10) /* 1.2% */
  792. X+ #define PCL_VTIC    (PCL_YMAX/70)        
  793. X+ #define PCL_HTIC    (PCL_YMAX/70)        
  794. X+ 
  795. X  int HPGL_ang = 0;
  796. X  
  797. X  HPGL_init()
  798. X***************
  799. X*** 48,72 ****
  800. X  */
  801. X  }
  802. X  
  803. X! HPLJIII_PORT_init()
  804. X  {
  805. X!       fputs("\033E\033&l1X\033&l0O\033%0B;PW0.15\n",outfile);
  806. X  }
  807. X  
  808. X! HPLJIII_LAND_init()
  809. X  {
  810. X      fputs("\033E\033&l1X\033&l1O\033%0B;PW0.15\n",outfile);
  811. X  }
  812. X  
  813. X  
  814. X! HPLJIII_graphics()
  815. X  {
  816. X      fprintf(outfile,
  817. X      "\033%0B\nIN;\nSC0,%d,0,%d;\nSR%f,%f;\n",
  818. X!         HPGL_XMAX,HPGL_YMAX,
  819. X!         ((double)(HPGL_HCHAR)*200/3/HPGL_XMAX),
  820. X!         ((double)(HPGL_VCHAR)*100/2/HPGL_YMAX) );
  821. X! /*     1    2             3 
  822. X      1. reset to power-up defaults
  823. X      2. set SCaling
  824. X      3. set character size
  825. X--- 60,101 ----
  826. X  */
  827. X  }
  828. X  
  829. X! PCL_PORT_init()
  830. X  {
  831. X!       fputs("\033E\033&l1X\033&l0O\033&2A\033%0B;PW0.15\n",outfile);
  832. X! /*           1      2       3       4     5     6
  833. X!     1. reset the printer
  834. X!     2. one copy
  835. X!     3. portrait orientation
  836. X!     4. use letter paper
  837. X!     5. enter HP-GL/2 with old pen position
  838. X!     6. Pen Width
  839. X! */
  840. X  }
  841. X  
  842. X! PCL_LAND_init()
  843. X  {
  844. X      fputs("\033E\033&l1X\033&l1O\033%0B;PW0.15\n",outfile);
  845. X+ /*
  846. X+                  1      2       3       4     5
  847. X+     1. reset the printer
  848. X+     2. one copy
  849. X+     3. landscape orientation
  850. X+     4. enter HP-GL/2 with old pen position
  851. X+     5. Pen Width
  852. X+ */
  853. X  }
  854. X  
  855. X  
  856. X! PCL_graphics()
  857. X  {
  858. X      fprintf(outfile,
  859. X      "\033%0B\nIN;\nSC0,%d,0,%d;\nSR%f,%f;\n",
  860. X!         PCL_XMAX,PCL_YMAX,
  861. X!         ((double)(PCL_HCHAR)*200/3/PCL_XMAX),
  862. X!         ((double)(PCL_VCHAR)*100/2/PCL_YMAX) );
  863. X! /*     0         1    2             3 
  864. X!     0. enter HPGL/2 mode
  865. X      1. reset to power-up defaults
  866. X      2. set SCaling
  867. X      3. set character size
  868. X***************
  869. X*** 90,96 ****
  870. X  }
  871. X  
  872. X  
  873. X! HPLJIII_text()
  874. X  {
  875. X      fputs("PU;\nSP0;\n\033.Z\0",outfile);
  876. X  /*           1    2     3
  877. X--- 119,125 ----
  878. X  }
  879. X  
  880. X  
  881. X! PCL_text()
  882. X  {
  883. X      fputs("PU;\nSP0;\n\033.Z\0",outfile);
  884. X  /*           1    2     3
  885. X***************
  886. X*** 98,104 ****
  887. X      2. park pen
  888. X      3. disable eavesdropping
  889. X  */
  890. X!     fputs("\033%0A\033E\n",outfile);
  891. X  }
  892. X  
  893. X  HPGL_text()
  894. X--- 127,138 ----
  895. X      2. park pen
  896. X      3. disable eavesdropping
  897. X  */
  898. X!     fputs("\n\033%1A\n\033&l0H\0",outfile);
  899. X! /*               1    2      3
  900. X!     1. enter PCL
  901. X!     2. eject page
  902. X!     3. reset printer
  903. X! */
  904. X  }
  905. X  
  906. X  HPGL_text()
  907. X***************
  908. X*** 156,162 ****
  909. X--- 190,207 ----
  910. X      fprintf(outfile,"LB%s\003\n",str);
  911. X  }
  912. X  
  913. X+ PCL_put_text(x,y,str)
  914. X+ int x, y;
  915. X+ char *str;
  916. X+ {
  917. X+         if (HPGL_ang == 1)
  918. X+                 HPGL_move(x + PCL_VCHAR/4,y);
  919. X+         else
  920. X+                 HPGL_move(x,y - PCL_VCHAR/4);
  921. X+         fprintf(outfile,"LB%s\003\n",str);
  922. X+ }
  923. X  
  924. X+ 
  925. X  int HPGL_text_angle(ang)
  926. X  int ang;
  927. X  {
  928. X***************
  929. X*** 170,181 ****
  930. X      return TRUE;
  931. X  }
  932. X  
  933. X- 
  934. X  HPGL_reset()
  935. X  {
  936. X  }
  937. X  
  938. X! HPLJIII_reset()
  939. X  {
  940. X!     fputs("\033%0A\033E\n",outfile);
  941. X  }
  942. X--- 215,229 ----
  943. X      return TRUE;
  944. X  }
  945. X  
  946. X  HPGL_reset()
  947. X  {
  948. X+        fprintf(outfile,"PG;\n");
  949. X+        /*  This HPGL command is ignored in HPGL/2 */
  950. X  }
  951. X  
  952. X! 
  953. X! PCL_reset()
  954. X  {
  955. X!     fputs("\033%0A\033&l0H\033E\n",outfile);
  956. X! /*         PCL mode   eject reset  */
  957. X  }
  958. Xdiff -rc gnuplot/term/hpljii.trm gnuplot3.2/term/hpljii.trm
  959. X*** gnuplot/term/hpljii.trm    Tue Jun 18 10:21:24 1991
  960. X--- gnuplot3.2/term/hpljii.trm    Wed Mar 25 08:00:45 1992
  961. X***************
  962. X*** 1,6 ****
  963. X  /* GNUPLOT - hpljii.trm */
  964. X  /*
  965. X!  * Copyright (C) 1990   
  966. X   *
  967. X   * Permission to use, copy, and distribute this software and its
  968. X   * documentation for any purpose with or without fee is hereby granted, 
  969. X--- 1,10 ----
  970. X+ /*
  971. X+  * $Id: hpljii.trm,v 3.26 92/03/24 22:34:57 woo Exp Locker: woo $
  972. X+  */
  973. X+ 
  974. X  /* GNUPLOT - hpljii.trm */
  975. X  /*
  976. X!  * Copyright (C) 1990, 1991, 1992   
  977. X   *
  978. X   * Permission to use, copy, and distribute this software and its
  979. X   * documentation for any purpose with or without fee is hereby granted, 
  980. X***************
  981. X*** 24,30 ****
  982. X   *  Russell Lang
  983. X   *  Maurice Castro
  984. X   *
  985. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  986. X   * 
  987. X   */
  988. X  
  989. X--- 28,34 ----
  990. X   *  Russell Lang
  991. X   *  Maurice Castro
  992. X   *
  993. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  994. X   * 
  995. X   */
  996. X  
  997. Xdiff -rc gnuplot/term/imagen.trm gnuplot3.2/term/imagen.trm
  998. X*** gnuplot/term/imagen.trm    Tue Aug 13 15:26:35 1991
  999. X--- gnuplot3.2/term/imagen.trm    Wed Mar 25 08:00:46 1992
  1000. X***************
  1001. X*** 1,6 ****
  1002. X  /* GNUPLOT - imagen.trm */
  1003. X  /*
  1004. X!  * Copyright (C) 1990   
  1005. X   *
  1006. X   * Permission to use, copy, and distribute this software and its
  1007. X   * documentation for any purpose with or without fee is hereby granted, 
  1008. X--- 1,10 ----
  1009. X+ /*
  1010. X+  * $Id: imagen.trm,v 3.26 92/03/24 22:35:33 woo Exp Locker: woo $
  1011. X+  */
  1012. X+ 
  1013. X  /* GNUPLOT - imagen.trm */
  1014. X  /*
  1015. X!  * Copyright (C) 1990, 1991, 1992   
  1016. X   *
  1017. X   * Permission to use, copy, and distribute this software and its
  1018. X   * documentation for any purpose with or without fee is hereby granted, 
  1019. X***************
  1020. X*** 22,28 ****
  1021. X   * AUTHORS
  1022. X   *   Paul E. McKenney, David Kotz
  1023. X   * 
  1024. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1025. X   * 
  1026. X   */
  1027. X  
  1028. X--- 26,32 ----
  1029. X   * AUTHORS
  1030. X   *   Paul E. McKenney, David Kotz
  1031. X   * 
  1032. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1033. X   * 
  1034. X   */
  1035. X  
  1036. Xdiff -rc gnuplot/term/impcodes.h gnuplot3.2/term/impcodes.h
  1037. X*** gnuplot/term/impcodes.h    Mon Mar 26 15:03:20 1990
  1038. X--- gnuplot3.2/term/impcodes.h    Wed Mar 25 08:00:46 1992
  1039. X***************
  1040. X*** 1,4 ****
  1041. X--- 1,8 ----
  1042. X  /*
  1043. X+  * $Id: impcodes.h,v 3.26 92/03/24 22:35:32 woo Exp Locker: woo $
  1044. X+  */
  1045. X+ 
  1046. X+ /*
  1047. X   * Copyright (c) 1985 Regents of the University of California.
  1048. X   * All rights reserved.  The Berkeley software License Agreement
  1049. X   * specifies the terms and conditions for redistribution.
  1050. Xdiff -rc gnuplot/term/iris4d.trm gnuplot3.2/term/iris4d.trm
  1051. X*** gnuplot/term/iris4d.trm    Fri Jul 12 10:57:02 1991
  1052. X--- gnuplot3.2/term/iris4d.trm    Wed Mar 25 08:00:47 1992
  1053. X***************
  1054. X*** 1,6 ****
  1055. X  /* GNUPLOT - iris4d.trm */
  1056. X  /*
  1057. X!  * Copyright (C) 1990   
  1058. X   *
  1059. X   * Permission to use, copy, and distribute this software and its
  1060. X   * documentation for any purpose with or without fee is hereby granted, 
  1061. X--- 1,10 ----
  1062. X+ /*
  1063. X+  * $Id: iris4d.trm,v 3.26 92/03/24 22:35:35 woo Exp Locker: woo $
  1064. X+  */
  1065. X+ 
  1066. X  /* GNUPLOT - iris4d.trm */
  1067. X  /*
  1068. X!  * Copyright (C) 1990, 1991, 1992   
  1069. X   *
  1070. X   * Permission to use, copy, and distribute this software and its
  1071. X   * documentation for any purpose with or without fee is hereby granted, 
  1072. X***************
  1073. X*** 24,30 ****
  1074. X   *           (Applied Research Corporation) 7/1/89
  1075. X   *           INTERNET: merritt@iris613.gsfc.nasa.gov
  1076. X   * 
  1077. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1078. X   * 
  1079. X   */
  1080. X  
  1081. X--- 28,34 ----
  1082. X   *           (Applied Research Corporation) 7/1/89
  1083. X   *           INTERNET: merritt@iris613.gsfc.nasa.gov
  1084. X   * 
  1085. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1086. X   * 
  1087. X   */
  1088. X  
  1089. Xdiff -rc gnuplot/term/kyo.trm gnuplot3.2/term/kyo.trm
  1090. X*** gnuplot/term/kyo.trm    Sun Dec  2 22:17:06 1990
  1091. X--- gnuplot3.2/term/kyo.trm    Wed Mar 25 08:00:48 1992
  1092. X***************
  1093. X*** 1,3 ****
  1094. X--- 1,7 ----
  1095. X+ /*
  1096. X+  * $Id: kyo.trm,v 3.26 92/03/24 22:35:36 woo Exp Locker: woo $
  1097. X+  */
  1098. X+ 
  1099. X  /* Prescribe (KYOCERA) driver - Michael Waldor */
  1100. X  /* Modified for gnuplot 2.0 sk@sun4 24-Apr-1990 13:23 */
  1101. X  #ifdef PRESCRIBE
  1102. Xdiff -rc gnuplot/term/latex.trm gnuplot3.2/term/latex.trm
  1103. X*** gnuplot/term/latex.trm    Sun Jan  5 21:33:34 1992
  1104. X--- gnuplot3.2/term/latex.trm    Wed Mar 25 08:00:49 1992
  1105. X***************
  1106. X*** 1,6 ****
  1107. X  /* GNUPLOT - latex.trm */
  1108. X  /*
  1109. X!  * Copyright (C) 1990   
  1110. X   *
  1111. X   * Permission to use, copy, and distribute this software and its
  1112. X   * documentation for any purpose with or without fee is hereby granted, 
  1113. X--- 1,10 ----
  1114. X+ /*
  1115. X+  * $Id: latex.trm,v 3.26 92/03/24 22:35:37 woo Exp Locker: woo $
  1116. X+  */
  1117. X+ 
  1118. X  /* GNUPLOT - latex.trm */
  1119. X  /*
  1120. X!  * Copyright (C) 1990, 1991, 1992   
  1121. X   *
  1122. X   * Permission to use, copy, and distribute this software and its
  1123. X   * documentation for any purpose with or without fee is hereby granted, 
  1124. X***************
  1125. X*** 23,29 ****
  1126. X   * AUTHORS
  1127. X   *   David Kotz, Russell Lang
  1128. X   *
  1129. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1130. X   * 
  1131. X   */
  1132. X  
  1133. X--- 27,33 ----
  1134. X   * AUTHORS
  1135. X   *   David Kotz, Russell Lang
  1136. X   *
  1137. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1138. X   * 
  1139. X   */
  1140. X  
  1141. X***************
  1142. X*** 404,410 ****
  1143. X         /* first, figure out increments for x and y */
  1144. X         if (x2 == x1) {
  1145. X            xinc = 0.0;
  1146. X!           yinc = dotspace;
  1147. X         } else {
  1148. X            slope = ((float)y2-y1)/((float)x2-x1);
  1149. X            xinc = dotspace / sqrt(1 + slope*slope) * sign(x2-x1);
  1150. X--- 408,414 ----
  1151. X         /* first, figure out increments for x and y */
  1152. X         if (x2 == x1) {
  1153. X            xinc = 0.0;
  1154. X!           yinc = (y2-y1>0)?dotspace:-dotspace;
  1155. X         } else {
  1156. X            slope = ((float)y2-y1)/((float)x2-x1);
  1157. X            xinc = dotspace / sqrt(1 + slope*slope) * sign(x2-x1);
  1158. XOnly in gnuplot3.2/term: next.trm
  1159. Xdiff -rc gnuplot/term/object.h gnuplot3.2/term/object.h
  1160. X*** gnuplot/term/object.h    Mon Mar 26 15:03:24 1990
  1161. X--- gnuplot3.2/term/object.h    Wed Mar 25 08:00:49 1992
  1162. X***************
  1163. X*** 1,3 ****
  1164. X--- 1,7 ----
  1165. X+ /*
  1166. X+  * $Id: object.h,v 3.26 92/03/24 22:35:34 woo Exp Locker: woo $
  1167. X+  */
  1168. X+ 
  1169. X  /* 
  1170. X   *    FIG : Facility for Interactive Generation of figures
  1171. X   *
  1172. XOnly in gnuplot3.2/term: pbm.trm
  1173. Xdiff -rc gnuplot/term/pc.trm gnuplot3.2/term/pc.trm
  1174. X*** gnuplot/term/pc.trm    Sun Aug  4 13:19:18 1991
  1175. X--- gnuplot3.2/term/pc.trm    Wed Mar 25 08:00:50 1992
  1176. X***************
  1177. X*** 1,6 ****
  1178. X  /* GNUPLOT - pc.trm */
  1179. X  /*
  1180. X!  * Copyright (C) 1990
  1181. X   *
  1182. X   * Permission to use, copy, and distribute this software and its
  1183. X   * documentation for any purpose with or without fee is hereby granted, 
  1184. X--- 1,10 ----
  1185. X+ /*
  1186. X+  * $Id: pc.trm,v 3.26 92/03/24 22:35:39 woo Exp Locker: woo $
  1187. X+  */
  1188. X+ 
  1189. X  /* GNUPLOT - pc.trm */
  1190. X  /*
  1191. X!  * Copyright (C) 1990, 1991, 1992
  1192. X   *
  1193. X   * Permission to use, copy, and distribute this software and its
  1194. X   * documentation for any purpose with or without fee is hereby granted, 
  1195. X***************
  1196. X*** 25,31 ****
  1197. X   * AUTHORS
  1198. X   *  Colin Kelley, Thomas Williams, William Wilson, Russell Lang
  1199. X   *
  1200. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1201. X   *
  1202. X   */
  1203. X  
  1204. X--- 29,35 ----
  1205. X   * AUTHORS
  1206. X   *  Colin Kelley, Thomas Williams, William Wilson, Russell Lang
  1207. X   *
  1208. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1209. X   *
  1210. X   */
  1211. X  
  1212. Xdiff -rc gnuplot/term/post.trm gnuplot3.2/term/post.trm
  1213. X*** gnuplot/term/post.trm    Sun Jan  5 21:33:35 1992
  1214. X--- gnuplot3.2/term/post.trm    Wed Mar 25 08:00:51 1992
  1215. X***************
  1216. X*** 1,6 ****
  1217. X  /* GNUPLOT - post.trm */
  1218. X  /*
  1219. X!  * Copyright (C) 1990   
  1220. X   *
  1221. X   * Permission to use, copy, and distribute this software and its
  1222. X   * documentation for any purpose with or without fee is hereby granted, 
  1223. X--- 1,10 ----
  1224. X+ /*
  1225. X+  * $Id: post.trm,v 3.26 92/03/24 22:35:40 woo Exp Locker: woo $
  1226. X+  */
  1227. X+ 
  1228. X  /* GNUPLOT - post.trm */
  1229. X  /*
  1230. X!  * Copyright (C) 1990, 1991, 1992   
  1231. X   *
  1232. X   * Permission to use, copy, and distribute this software and its
  1233. X   * documentation for any purpose with or without fee is hereby granted, 
  1234. X***************
  1235. X*** 22,28 ****
  1236. X   * AUTHORS
  1237. X   *  Russell Lang
  1238. X   * 
  1239. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1240. X   *
  1241. X   * The 'postscript' driver produces landscape output 10" wide and 7" high.  
  1242. X   * To change font to Times-Roman and font size to 20pts use 
  1243. X--- 26,32 ----
  1244. X   * AUTHORS
  1245. X   *  Russell Lang
  1246. X   * 
  1247. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1248. X   *
  1249. X   * The 'postscript' driver produces landscape output 10" wide and 7" high.  
  1250. X   * To change font to Times-Roman and font size to 20pts use 
  1251. Xdiff -rc gnuplot/term/qms.trm gnuplot3.2/term/qms.trm
  1252. X*** gnuplot/term/qms.trm    Mon Mar 26 15:03:06 1990
  1253. X--- gnuplot3.2/term/qms.trm    Wed Mar 25 08:00:52 1992
  1254. X***************
  1255. X*** 1,6 ****
  1256. X  /* GNUPLOT - qms.trm */
  1257. X  /*
  1258. X!  * Copyright (C) 1990   
  1259. X   *
  1260. X   * Permission to use, copy, and distribute this software and its
  1261. X   * documentation for any purpose with or without fee is hereby granted, 
  1262. X--- 1,10 ----
  1263. X+ /*
  1264. X+  * $Id: qms.trm,v 3.26 92/03/24 22:35:41 woo Exp Locker: woo $
  1265. X+  */
  1266. X+ 
  1267. X  /* GNUPLOT - qms.trm */
  1268. X  /*
  1269. X!  * Copyright (C) 1990, 1991, 1992   
  1270. X   *
  1271. X   * Permission to use, copy, and distribute this software and its
  1272. X   * documentation for any purpose with or without fee is hereby granted, 
  1273. X***************
  1274. X*** 22,28 ****
  1275. X   * AUTHORS
  1276. X   *  Colin Kelley, Thomas Williams, Russell Lang
  1277. X   * 
  1278. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1279. X   * 
  1280. X   */
  1281. X  
  1282. X--- 26,32 ----
  1283. X   * AUTHORS
  1284. X   *  Colin Kelley, Thomas Williams, Russell Lang
  1285. X   * 
  1286. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1287. X   * 
  1288. X   */
  1289. X  
  1290. Xdiff -rc gnuplot/term/regis.trm gnuplot3.2/term/regis.trm
  1291. X*** gnuplot/term/regis.trm    Mon Mar 26 15:03:08 1990
  1292. X--- gnuplot3.2/term/regis.trm    Wed Mar 25 08:00:53 1992
  1293. X***************
  1294. X*** 1,6 ****
  1295. X  /* GNUPLOT - regis.trm */
  1296. X  /*
  1297. X!  * Copyright (C) 1990   
  1298. X   *
  1299. X   * Permission to use, copy, and distribute this software and its
  1300. X   * documentation for any purpose with or without fee is hereby granted, 
  1301. X--- 1,10 ----
  1302. X+ /*
  1303. X+  * $Id: regis.trm,v 3.26 92/03/24 22:35:42 woo Exp Locker: woo $
  1304. X+  */
  1305. X+ 
  1306. X  /* GNUPLOT - regis.trm */
  1307. X  /*
  1308. X!  * Copyright (C) 1990, 1991, 1992   
  1309. X   *
  1310. X   * Permission to use, copy, and distribute this software and its
  1311. X   * documentation for any purpose with or without fee is hereby granted, 
  1312. X***************
  1313. X*** 22,28 ****
  1314. X   * AUTHORS
  1315. X   *  Colin Kelley, Thomas Williams
  1316. X   * 
  1317. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1318. X   * 
  1319. X   */
  1320. X  
  1321. X--- 26,32 ----
  1322. X   * AUTHORS
  1323. X   *  Colin Kelley, Thomas Williams
  1324. X   * 
  1325. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1326. X   * 
  1327. X   */
  1328. X  
  1329. Xdiff -rc gnuplot/term/sun.trm gnuplot3.2/term/sun.trm
  1330. X*** gnuplot/term/sun.trm    Mon Mar 26 15:02:46 1990
  1331. X--- gnuplot3.2/term/sun.trm    Wed Mar 25 08:00:54 1992
  1332. X***************
  1333. X*** 1,6 ****
  1334. X  /* GNUPLOT - sun.trm */
  1335. X  /*
  1336. X!  * Copyright (C) 1990   
  1337. X   *
  1338. X   * Permission to use, copy, and distribute this software and its
  1339. X   * documentation for any purpose with or without fee is hereby granted, 
  1340. X--- 1,10 ----
  1341. X+ /*
  1342. X+  * $Id: sun.trm,v 3.26 92/03/24 22:35:43 woo Exp Locker: woo $
  1343. X+  */
  1344. X+ 
  1345. X  /* GNUPLOT - sun.trm */
  1346. X  /*
  1347. X!  * Copyright (C) 1990, 1991, 1992   
  1348. X   *
  1349. X   * Permission to use, copy, and distribute this software and its
  1350. X   * documentation for any purpose with or without fee is hereby granted, 
  1351. X***************
  1352. X*** 22,28 ****
  1353. X   * AUTHORS
  1354. X   *  Maurice Castro
  1355. X   * 
  1356. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1357. X   * 
  1358. X   */
  1359. X  
  1360. X--- 26,32 ----
  1361. X   * AUTHORS
  1362. X   *  Maurice Castro
  1363. X   * 
  1364. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1365. X   * 
  1366. X   */
  1367. X  
  1368. Xdiff -rc gnuplot/term/t410x.trm gnuplot3.2/term/t410x.trm
  1369. X*** gnuplot/term/t410x.trm    Tue Sep 18 14:59:16 1990
  1370. X--- gnuplot3.2/term/t410x.trm    Wed Mar 25 08:00:54 1992
  1371. X***************
  1372. X*** 1,6 ****
  1373. X  /* GNUPLOT - t410x.trm */
  1374. X  /*
  1375. X!  * Copyright (C) 1990   
  1376. X   *
  1377. X   * Permission to use, copy, and distribute this software and its
  1378. X   * documentation for any purpose with or without fee is hereby granted, 
  1379. X--- 1,10 ----
  1380. X+ /*
  1381. X+  * $Id: t410x.trm,v 3.26 92/03/24 22:35:44 woo Exp Locker: woo $
  1382. X+  */
  1383. X+ 
  1384. X  /* GNUPLOT - t410x.trm */
  1385. X  /*
  1386. X!  * Copyright (C) 1990, 1991, 1992   
  1387. X   *
  1388. X   * Permission to use, copy, and distribute this software and its
  1389. X   * documentation for any purpose with or without fee is hereby granted, 
  1390. X***************
  1391. X*** 21,27 ****
  1392. X   * AUTHORS
  1393. X   *   Colin Kelley, Thomas Williams
  1394. X   * 
  1395. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1396. X   * 
  1397. X   */
  1398. X  
  1399. X--- 25,31 ----
  1400. X   * AUTHORS
  1401. X   *   Colin Kelley, Thomas Williams
  1402. X   * 
  1403. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1404. X   * 
  1405. X   */
  1406. X  
  1407. Xdiff -rc gnuplot/term/tek.trm gnuplot3.2/term/tek.trm
  1408. X*** gnuplot/term/tek.trm    Tue Jun 18 10:00:02 1991
  1409. X--- gnuplot3.2/term/tek.trm    Wed Mar 25 08:00:55 1992
  1410. X***************
  1411. X*** 1,6 ****
  1412. X  /* GNUPLOT - tek.trm */
  1413. X  /*
  1414. X!  * Copyright (C) 1990   
  1415. X   *
  1416. X   * Permission to use, copy, and distribute this software and its
  1417. X   * documentation for any purpose with or without fee is hereby granted, 
  1418. X--- 1,10 ----
  1419. X+ /*
  1420. X+  * $Id: tek.trm,v 3.26 92/03/24 22:35:45 woo Exp Locker: woo $
  1421. X+  */
  1422. X+ 
  1423. X  /* GNUPLOT - tek.trm */
  1424. X  /*
  1425. X!  * Copyright (C) 1990, 1991, 1992   
  1426. X   *
  1427. X   * Permission to use, copy, and distribute this software and its
  1428. X   * documentation for any purpose with or without fee is hereby granted, 
  1429. X***************
  1430. X*** 23,29 ****
  1431. X   * AUTHORS
  1432. X   *   Colin Kelley, Thomas Williams, Russell Lang
  1433. X   * 
  1434. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1435. X   * 
  1436. X   */
  1437. X  
  1438. X--- 27,33 ----
  1439. X   * AUTHORS
  1440. X   *   Colin Kelley, Thomas Williams, Russell Lang
  1441. X   * 
  1442. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1443. X   * 
  1444. X   */
  1445. X  
  1446. X***************
  1447. X*** 356,359 ****
  1448. X  {
  1449. X      fprintf(outfile,"\033[?38l");
  1450. X  }
  1451. X! #endif LN03P
  1452. X--- 360,363 ----
  1453. X  {
  1454. X      fprintf(outfile,"\033[?38l");
  1455. X  }
  1456. X! #endif /* LN03P */
  1457. Xdiff -rc gnuplot/term/unixpc.trm gnuplot3.2/term/unixpc.trm
  1458. X*** gnuplot/term/unixpc.trm    Fri Jul 26 09:36:50 1991
  1459. X--- gnuplot3.2/term/unixpc.trm    Wed Mar 25 08:00:56 1992
  1460. X***************
  1461. X*** 1,6 ****
  1462. X  /* GNUPLOT - unixpc.trm */
  1463. X  /*
  1464. X!  * Copyright (C) 1990   
  1465. X   *
  1466. X   * Permission to use, copy, and distribute this software and its
  1467. X   * documentation for any purpose with or without fee is hereby granted, 
  1468. X--- 1,10 ----
  1469. X+ /*
  1470. X+  * $Id: unixpc.trm,v 3.26 92/03/24 22:35:46 woo Exp Locker: woo $
  1471. X+  */
  1472. X+ 
  1473. X  /* GNUPLOT - unixpc.trm */
  1474. X  /*
  1475. X!  * Copyright (C) 1990, 1991, 1992   
  1476. X   *
  1477. X   * Permission to use, copy, and distribute this software and its
  1478. X   * documentation for any purpose with or without fee is hereby granted, 
  1479. X***************
  1480. X*** 22,28 ****
  1481. X   * AUTHORS
  1482. X   *    John Campbell
  1483. X   * 
  1484. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1485. X   * 
  1486. X   */
  1487. X  
  1488. X--- 26,32 ----
  1489. X   * AUTHORS
  1490. X   *    John Campbell
  1491. X   * 
  1492. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1493. X   * 
  1494. X   */
  1495. X  
  1496. Xdiff -rc gnuplot/term/unixplot.trm gnuplot3.2/term/unixplot.trm
  1497. X*** gnuplot/term/unixplot.trm    Mon Mar 26 15:03:16 1990
  1498. X--- gnuplot3.2/term/unixplot.trm    Wed Mar 25 08:00:57 1992
  1499. X***************
  1500. X*** 1,6 ****
  1501. X  /* GNUPLOT -- unixplot.trm */
  1502. X  /*
  1503. X!  * Copyright (C) 1990   
  1504. X   *
  1505. X   * Permission to use, copy, and distribute this software and its
  1506. X   * documentation for any purpose with or without fee is hereby granted, 
  1507. X--- 1,10 ----
  1508. X+ /*
  1509. X+  * $Id: unixplot.trm,v 3.26 92/03/24 22:35:47 woo Exp Locker: woo $
  1510. X+  */
  1511. X+ 
  1512. X  /* GNUPLOT -- unixplot.trm */
  1513. X  /*
  1514. X!  * Copyright (C) 1990, 1991, 1992   
  1515. X   *
  1516. X   * Permission to use, copy, and distribute this software and its
  1517. X   * documentation for any purpose with or without fee is hereby granted, 
  1518. X***************
  1519. X*** 22,28 ****
  1520. X   * AUTHORS
  1521. X   *  Colin Kelley, Thomas Williams, Russell Lang
  1522. X   * 
  1523. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1524. X   * 
  1525. X   */
  1526. X  
  1527. X--- 26,32 ----
  1528. X   * AUTHORS
  1529. X   *  Colin Kelley, Thomas Williams, Russell Lang
  1530. X   * 
  1531. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1532. X   * 
  1533. X   */
  1534. X  
  1535. Xdiff -rc gnuplot/term/v384.trm gnuplot3.2/term/v384.trm
  1536. X*** gnuplot/term/v384.trm    Mon Mar 26 15:03:18 1990
  1537. X--- gnuplot3.2/term/v384.trm    Wed Mar 25 08:00:58 1992
  1538. X***************
  1539. X*** 1,6 ****
  1540. X  /* GNUPLOT - v384.trm */
  1541. X  /*
  1542. X!  * Copyright (C) 1990   
  1543. X   *
  1544. X   * Permission to use, copy, and distribute this software and its
  1545. X   * documentation for any purpose with or without fee is hereby granted, 
  1546. X--- 1,10 ----
  1547. X+ /*
  1548. X+  * $Id: v384.trm,v 3.26 92/03/24 22:35:48 woo Exp Locker: woo $
  1549. X+  */
  1550. X+ 
  1551. X  /* GNUPLOT - v384.trm */
  1552. X  /*
  1553. X!  * Copyright (C) 1990, 1991, 1992   
  1554. X   *
  1555. X   * Permission to use, copy, and distribute this software and its
  1556. X   * documentation for any purpose with or without fee is hereby granted, 
  1557. X***************
  1558. X*** 22,28 ****
  1559. X   * AUTHORS
  1560. X   *   roland@moncskermit.OZ (Roland Yap) 
  1561. X   * 
  1562. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1563. X   * 
  1564. X   */
  1565. X  
  1566. X--- 26,32 ----
  1567. X   * AUTHORS
  1568. X   *   roland@moncskermit.OZ (Roland Yap) 
  1569. X   * 
  1570. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1571. X   * 
  1572. X   */
  1573. X  
  1574. Xdiff -rc gnuplot/term/vws.trm gnuplot3.2/term/vws.trm
  1575. X*** gnuplot/term/vws.trm    Sun Sep  8 09:49:56 1991
  1576. X--- gnuplot3.2/term/vws.trm    Wed Mar 25 08:00:59 1992
  1577. X***************
  1578. X*** 1,6 ****
  1579. X  /* GNUPLOT - vws.trm */
  1580. X  /*
  1581. X!  * Copyright (C) 1990
  1582. X   *
  1583. X   * Permission to use, copy, and distribute this software and its
  1584. X   * documentation for any purpose with or without fee is hereby granted,
  1585. X--- 1,10 ----
  1586. X+ /*
  1587. X+  * $Id: vws.trm,v 3.26 92/03/24 22:35:51 woo Exp Locker: woo $
  1588. X+  */
  1589. X+ 
  1590. X  /* GNUPLOT - vws.trm */
  1591. X  /*
  1592. X!  * Copyright (C) 1990, 1991, 1992
  1593. X   *
  1594. X   * Permission to use, copy, and distribute this software and its
  1595. X   * documentation for any purpose with or without fee is hereby granted,
  1596. X***************
  1597. X*** 23,29 ****
  1598. X   *   Walter Speth
  1599. X   *           BITNET: SPETH@DBNPIB5
  1600. X   *
  1601. X!  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  1602. X   *
  1603. X   */
  1604. X   
  1605. X--- 27,33 ----
  1606. X   *   Walter Speth
  1607. X   *           BITNET: SPETH@DBNPIB5
  1608. X   *
  1609. X!  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1610. X   *
  1611. X   */
  1612. X   
  1613. Xdiff -rc gnuplot/term/x11.trm gnuplot3.2/term/x11.trm
  1614. X*** gnuplot/term/x11.trm    Thu Jul 25 09:12:23 1991
  1615. X--- gnuplot3.2/term/x11.trm    Wed Mar 25 08:00:59 1992
  1616. X***************
  1617. X*** 1,4 ****
  1618. X--- 1,8 ----
  1619. X  /*
  1620. X+  * $Id: x11.trm,v 3.26 92/03/24 22:35:49 woo Exp Locker: woo $
  1621. X+  */
  1622. X+ 
  1623. X+ /*
  1624. X   *    x11.trm  --- inboard terminal driver for X11
  1625. X   */
  1626. X  
  1627. X***************
  1628. X*** 11,18 ****
  1629. X  #define X11_VTIC (X11_YMAX/100)
  1630. X  #define X11_HTIC (X11_XMAX/150)
  1631. X  
  1632. X! #define X11_nopts 22
  1633. X  char X11_opts[X11_nopts][20] = {
  1634. X     "-iconic", "-rv", "-reverse", "+rv", "-synchronous", 
  1635. X     "-display", "-geometry", "-bg", "-background", "-bd", "-bordercolor", "-bw",
  1636. X     "-borderwidth", "-fg", "-foreground", "-fn", "-font", "-name", 
  1637. X--- 15,23 ----
  1638. X  #define X11_VTIC (X11_YMAX/100)
  1639. X  #define X11_HTIC (X11_XMAX/150)
  1640. X  
  1641. X! #define X11_nopts 25
  1642. X  char X11_opts[X11_nopts][20] = {
  1643. X+    "-mono", "-gray", "-clear",
  1644. X     "-iconic", "-rv", "-reverse", "+rv", "-synchronous", 
  1645. X     "-display", "-geometry", "-bg", "-background", "-bd", "-bordercolor", "-bw",
  1646. X     "-borderwidth", "-fg", "-foreground", "-fn", "-font", "-name", 
  1647. X***************
  1648. X*** 19,24 ****
  1649. X--- 24,30 ----
  1650. X     "-selectionTimeout", "-title", "-xnllanguage", "-xrm" 
  1651. X     };
  1652. X  int X11_optarg[X11_nopts] = { 
  1653. X+    0, 0, 0,
  1654. X     0, 0, 0, 0, 0,
  1655. X     1, 1, 1, 1, 1, 1, 1,
  1656. X     1, 1, 1, 1, 1, 1, 
  1657. X***************
  1658. X*** 25,34 ****
  1659. X     1, 1, 1, 1
  1660. X     };
  1661. X  
  1662. X! FILE *X11_pipe, *popen();
  1663. X! char X11_command[1024]= "gnuplot_x11 -name gnuplot";
  1664. X  
  1665. X- 
  1666. X  /*   X11_args - scan gnuplot command line for standard X Toolkit options */
  1667. X  
  1668. X  X11_args(argc, argv) int argc; char *argv[]; {
  1669. X--- 31,39 ----
  1670. X     1, 1, 1, 1
  1671. X     };
  1672. X  
  1673. X! FILE *X11_ipc; 
  1674. X! char X11_command[1024]= "gnuplot_x11";
  1675. X  
  1676. X  /*   X11_args - scan gnuplot command line for standard X Toolkit options */
  1677. X  
  1678. X  X11_args(argc, argv) int argc; char *argv[]; {
  1679. X***************
  1680. X*** 54,83 ****
  1681. X     return(nx11);
  1682. X     }
  1683. X  
  1684. X  #ifdef ULTRIX_KLUDGE
  1685. X! #define X11_ULTRIX_KLUDGE fprintf (X11_pipe, "E\n"); fflush (X11_pipe);
  1686. X! #else
  1687. X! #define X11_ULTRIX_KLUDGE 
  1688. X  #endif
  1689. X  
  1690. X! X11_init() { X11_pipe = popen(X11_command, "w"); }
  1691. X  
  1692. X! X11_reset() { fprintf(X11_pipe, "R\n"); fflush(X11_pipe); pclose(X11_pipe); }
  1693. X  
  1694. X! X11_text() { fprintf(X11_pipe, "E\n"); fflush(X11_pipe); X11_ULTRIX_KLUDGE }
  1695. X  
  1696. X! X11_graphics() { fprintf(X11_pipe, "G\n"); }
  1697. X  
  1698. X! X11_move(x,y) unsigned int x,y; { fprintf(X11_pipe, "M%04d%04d\n", x, y); }
  1699. X  
  1700. X! X11_vector(x,y) unsigned int x,y; { fprintf(X11_pipe, "V%04d%04d\n", x, y); }
  1701. X  
  1702. X! X11_linetype(lt) int lt; { fprintf(X11_pipe, "L%04d\n", lt); }
  1703. X  
  1704. X  X11_put_text(x,y,str) unsigned int x,y; char str[]; {
  1705. X!    fprintf(X11_pipe, "T%04d%04d%s\n", x, y, str);
  1706. X     }
  1707. X  X11_justify_text(mode) enum JUSTIFY mode; {
  1708. X!    fprintf(X11_pipe, "J%04d\n", mode);
  1709. X     return(TRUE);
  1710. X     }
  1711. X--- 59,130 ----
  1712. X     return(nx11);
  1713. X     }
  1714. X  
  1715. X+ #ifndef CRIPPLED_SELECT
  1716. X+ /*-----------------------------------------------------------------------------
  1717. X+  *   use pipe IPC on most platforms
  1718. X+  *---------------------------------------------------------------------------*/
  1719. X+ FILE *popen();
  1720. X+ 
  1721. X+ X11_init() { X11_ipc = popen(X11_command, "w"); }
  1722. X+ 
  1723. X+ X11_graphics() { fprintf(X11_ipc, "G\n"); }
  1724. X+ 
  1725. X+ X11_text() { 
  1726. X+    fprintf(X11_ipc, "E\n"); fflush(X11_ipc);
  1727. X  #ifdef ULTRIX_KLUDGE
  1728. X!    fprintf(X11_ipc, "E\n"); fflush(X11_ipc);
  1729. X  #endif
  1730. X+    }
  1731. X  
  1732. X! X11_reset() { fprintf(X11_ipc, "R\n"); fflush(X11_ipc); pclose(X11_ipc); }
  1733. X  
  1734. X! #else   /* CRIPPLED_SELECT */
  1735. X! /*-----------------------------------------------------------------------------
  1736. X!  *   use file IPC on the others
  1737. X!  *---------------------------------------------------------------------------*/
  1738. X  
  1739. X! char X11_tmp[32], X11_tmp0[32], X11_shutdown[32];
  1740. X! int X11_pid;
  1741. X  
  1742. X! X11_init() { 
  1743. X!    if (!(X11_pid = fork())) {
  1744. X!       execl("/bin/sh", "sh", "-c", X11_command, NULL);
  1745. X!       _exit(1);
  1746. X!       }
  1747. X!    sprintf(X11_tmp, "/tmp/Gnuplot_%d", X11_pid);
  1748. X!    sprintf(X11_tmp0, "%s-", X11_tmp);
  1749. X!    sprintf(X11_shutdown,  "echo R >%s",X11_tmp);
  1750. X!    }
  1751. X  
  1752. X! X11_graphics() { 
  1753. X!    X11_ipc = fopen(X11_tmp0, "w"); 
  1754. X!    if (!X11_ipc) { perror(X11_tmp0); system(X11_shutdown); exit(1); }
  1755. X!    fprintf(X11_ipc, "G\n"); 
  1756. X!    }
  1757. X  
  1758. X! X11_text() { 
  1759. X!    fprintf(X11_ipc, "E\n"); 
  1760. X! #ifdef ULTRIX_KLUDGE
  1761. X!    fprintf(X11_ipc, "E\n");
  1762. X! #endif
  1763. X!    fclose(X11_ipc);
  1764. X!    rename(X11_tmp0, X11_tmp);
  1765. X!    }
  1766. X  
  1767. X! X11_reset() { system(X11_shutdown); }
  1768. X  
  1769. X+ #endif  /* CRIPPLED_SELECT */ /*---------------------------------------------*/
  1770. X+ 
  1771. X+ X11_move(x,y) unsigned int x,y; { fprintf(X11_ipc, "M%04d%04d\n", x, y); }
  1772. X+ 
  1773. X+ X11_vector(x,y) unsigned int x,y; { fprintf(X11_ipc, "V%04d%04d\n", x, y); }
  1774. X+ 
  1775. X+ X11_linetype(lt) int lt; { fprintf(X11_ipc, "L%04d\n", lt); }
  1776. X+ 
  1777. X  X11_put_text(x,y,str) unsigned int x,y; char str[]; {
  1778. X!    fprintf(X11_ipc, "T%04d%04d%s\n", x, y, str);
  1779. X     }
  1780. X  X11_justify_text(mode) enum JUSTIFY mode; {
  1781. X!    fprintf(X11_ipc, "J%04d\n", mode);
  1782. X     return(TRUE);
  1783. X     }
  1784. END_OF_FILE
  1785.   if test 28597 -ne `wc -c <'patch.7'`; then
  1786.     echo shar: \"'patch.7'\" unpacked with wrong size!
  1787.   fi
  1788.   # end of 'patch.7'
  1789. fi
  1790. echo shar: End of archive 1 \(of 7\).
  1791. cp /dev/null ark1isdone
  1792. MISSING=""
  1793. for I in 1 2 3 4 5 6 7 ; do
  1794.     if test ! -f ark${I}isdone ; then
  1795.     MISSING="${MISSING} ${I}"
  1796.     fi
  1797. done
  1798. if test "${MISSING}" = "" ; then
  1799.     echo You have unpacked all 7 archives.
  1800.     rm -f ark[1-9]isdone
  1801. else
  1802.     echo You still must unpack the following archives:
  1803.     echo "        " ${MISSING}
  1804. fi
  1805. exit 0
  1806.  
  1807. exit 0 # Just in case...
  1808.