home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume40 / gnuplot / part33 < prev    next >
Encoding:
Text File  |  1993-10-25  |  27.2 KB  |  884 lines

  1. Newsgroups: comp.sources.misc
  2. From: woo@playfair.stanford.edu ("Alexander Woo")
  3. Subject: v40i045:  gnuplot - interactive function plotting utility, Part33/33
  4. Message-ID: <1993Oct25.030550.3056@sparky.sterling.com>
  5. X-Md4-Signature: 32198eb980b4b81267c27fbd37e91c81
  6. Sender: kent@sparky.sterling.com (Kent Landfield)
  7. Organization: Sterling Software
  8. Date: Mon, 25 Oct 1993 03:05:50 GMT
  9. Approved: kent@sparky.sterling.com
  10.  
  11. Submitted-by: woo@playfair.stanford.edu ("Alexander Woo")
  12. Posting-number: Volume 40, Issue 45
  13. Archive-name: gnuplot/part33
  14. Environment: UNIX, MS-DOS, VMS
  15. Supersedes: gnuplot3: Volume 24, Issue 23-48
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then feed it
  19. # into a shell via "sh file" or similar.  To overwrite existing files,
  20. # type "sh file -c".
  21. # Contents:  gnuplot/0BUGS gnuplot/README.3p3 gnuplot/demo/2.dat
  22. #   gnuplot/demo/3.dat gnuplot/demo/binary.dem
  23. #   gnuplot/demo/controls.dem gnuplot/demo/discrete.dem
  24. #   gnuplot/demo/gnuplot.rot gnuplot/demo/steps.dat
  25. #   gnuplot/demo/steps.dem gnuplot/demo/using.dem
  26. #   gnuplot/docs/latextut/eg2.plt gnuplot/docs/latextut/eg3.plt
  27. #   gnuplot/docs/latextut/eg4.plt gnuplot/docs/latextut/eg5.plt
  28. #   gnuplot/docs/latextut/eg6.plt gnuplot/docs/latextut/linepoin.plt
  29. #   gnuplot/docs/latextut/makefile gnuplot/docs/titlepag.ms
  30. #   gnuplot/epsviewe.h gnuplot/gnuplot.def gnuplot/intergra.x11
  31. #   gnuplot/linkopt.amg gnuplot/linkopt.msc gnuplot/linkopt.vms
  32. #   gnuplot/linkopt.ztc gnuplot/os2/gnupmdrv.def
  33. #   gnuplot/win/wgnuplib.def gnuplot/win/wgnuplot.hpj
  34. # Wrapped by kent@sparky on Wed Oct 20 17:15:18 1993
  35. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  36. echo If this archive is complete, you will see the following message:
  37. echo '          "shar: End of archive 33 (of 33)."'
  38. if test -f 'gnuplot/0BUGS' -a "${1}" != "-c" ; then 
  39.   echo shar: Will not clobber existing file \"'gnuplot/0BUGS'\"
  40. else
  41.   echo shar: Extracting \"'gnuplot/0BUGS'\" \(531 characters\)
  42.   sed "s/^X//" >'gnuplot/0BUGS' <<'END_OF_FILE'
  43. X1. The hidden line algorithm is not perfect.  The back of the object
  44. Xcan bleed through to the front.  We should put in a option of not
  45. Xdrawing the back at all.
  46. X
  47. X2. The list of available devices is often longer than the length of
  48. Xa screen.  This output should be sent through a pager.
  49. X
  50. X3. On some devices, such as X11, there can only be one active plotting
  51. Xwindow.
  52. X
  53. X4. In the Atari version, windows are not currently supported.  This
  54. Xmeans gnuplot 3.4 will not run with MultiAES.  We hope to correct
  55. Xthis shortly in gpcontrb.tar.z.
  56. END_OF_FILE
  57.   if test 531 -ne `wc -c <'gnuplot/0BUGS'`; then
  58.     echo shar: \"'gnuplot/0BUGS'\" unpacked with wrong size!
  59.   fi
  60.   # end of 'gnuplot/0BUGS'
  61. fi
  62. if test -f 'gnuplot/README.3p3' -a "${1}" != "-c" ; then 
  63.   echo shar: Will not clobber existing file \"'gnuplot/README.3p3'\"
  64. else
  65.   echo shar: Extracting \"'gnuplot/README.3p3'\" \(214 characters\)
  66.   sed "s/^X//" >'gnuplot/README.3p3' <<'END_OF_FILE'
  67. XVersion 3.3 was never officially released.  It has been renamed
  68. Xto version 3.4 to avoid confusion with the numerous BETA versions
  69. Xwhich have made it into general circulation.  See README.3p4
  70. Xfor more information.
  71. X
  72. END_OF_FILE
  73.   if test 214 -ne `wc -c <'gnuplot/README.3p3'`; then
  74.     echo shar: \"'gnuplot/README.3p3'\" unpacked with wrong size!
  75.   fi
  76.   # end of 'gnuplot/README.3p3'
  77. fi
  78. if test -f 'gnuplot/demo/2.dat' -a "${1}" != "-c" ; then 
  79.   echo shar: Will not clobber existing file \"'gnuplot/demo/2.dat'\"
  80. else
  81.   echo shar: Extracting \"'gnuplot/demo/2.dat'\" \(839 characters\)
  82.   sed "s/^X//" >'gnuplot/demo/2.dat' <<'END_OF_FILE'
  83. X#
  84. X# $Id: 2.dat 3.38.2.6 1992/11/14 02:25:21 woo Exp $
  85. X#
  86. X#
  87. X-20.000000 -6.083352
  88. X-19.000000 -6.072853
  89. X-18.000000 -6.061191
  90. X-17.000000 -6.048162
  91. X-16.000000 -6.033510
  92. X-15.000000 -6.016913
  93. X-14.000000 -5.997955
  94. X-13.000000 -5.976098
  95. X-12.000000 -5.950620
  96. X-11.000000 -5.920546
  97. X-10.000000 -5.884511
  98. X-9.000000 -5.840556
  99. X-8.000000 -5.785765
  100. X-7.000000 -5.715597
  101. X-6.000000 -5.622591
  102. X-5.000000 -5.493603
  103. X-4.000000 -5.303271
  104. X-3.000000 -4.996183
  105. X-2.000000 -4.428595
  106. X-1.000000 -3.141593
  107. X0.000000 0.000000
  108. X1.000000 3.141593
  109. X2.000000 4.428595
  110. X3.000000 4.996183
  111. X4.000000 5.303271
  112. X5.000000 5.493603
  113. X6.000000 5.622591
  114. X7.000000 5.715597
  115. X8.000000 5.785765
  116. X9.000000 5.840556
  117. X10.000000 5.884511
  118. X11.000000 5.920546
  119. X12.000000 5.950620
  120. X13.000000 5.976098
  121. X14.000000 5.997955
  122. X15.000000 6.016913
  123. X16.000000 6.033510
  124. X17.000000 6.048162
  125. X18.000000 6.061191
  126. X19.000000 6.072853
  127. END_OF_FILE
  128.   if test 839 -ne `wc -c <'gnuplot/demo/2.dat'`; then
  129.     echo shar: \"'gnuplot/demo/2.dat'\" unpacked with wrong size!
  130.   fi
  131.   # end of 'gnuplot/demo/2.dat'
  132. fi
  133. if test -f 'gnuplot/demo/3.dat' -a "${1}" != "-c" ; then 
  134.   echo shar: Will not clobber existing file \"'gnuplot/demo/3.dat'\"
  135. else
  136.   echo shar: Extracting \"'gnuplot/demo/3.dat'\" \(839 characters\)
  137.   sed "s/^X//" >'gnuplot/demo/3.dat' <<'END_OF_FILE'
  138. X#
  139. X# $Id: 3.dat 3.38.2.6 1992/11/14 02:25:21 woo Exp $
  140. X#
  141. X#
  142. X-20.000000 -9.125028
  143. X-19.000000 -9.109280
  144. X-18.000000 -9.091787
  145. X-17.000000 -9.072243
  146. X-16.000000 -9.050265
  147. X-15.000000 -9.025369
  148. X-14.000000 -8.996933
  149. X-13.000000 -8.964147
  150. X-12.000000 -8.925931
  151. X-11.000000 -8.880819
  152. X-10.000000 -8.826766
  153. X-9.000000 -8.760835
  154. X-8.000000 -8.678648
  155. X-7.000000 -8.573396
  156. X-6.000000 -8.433886
  157. X-5.000000 -8.240405
  158. X-4.000000 -7.954906
  159. X-3.000000 -7.494275
  160. X-2.000000 -6.642892
  161. X-1.000000 -4.712389
  162. X0.000000 0.000000
  163. X1.000000 4.712389
  164. X2.000000 6.642892
  165. X3.000000 7.494275
  166. X4.000000 7.954906
  167. X5.000000 8.240405
  168. X6.000000 8.433886
  169. X7.000000 8.573396
  170. X8.000000 8.678648
  171. X9.000000 8.760835
  172. X10.000000 8.826766
  173. X11.000000 8.880819
  174. X12.000000 8.925931
  175. X13.000000 8.964147
  176. X14.000000 8.996933
  177. X15.000000 9.025369
  178. X16.000000 9.050265
  179. X17.000000 9.072243
  180. X18.000000 9.091787
  181. X19.000000 9.109280
  182. END_OF_FILE
  183.   if test 839 -ne `wc -c <'gnuplot/demo/3.dat'`; then
  184.     echo shar: \"'gnuplot/demo/3.dat'\" unpacked with wrong size!
  185.   fi
  186.   # end of 'gnuplot/demo/3.dat'
  187. fi
  188. if test -f 'gnuplot/demo/binary.dem' -a "${1}" != "-c" ; then 
  189.   echo shar: Will not clobber existing file \"'gnuplot/demo/binary.dem'\"
  190. else
  191.   echo shar: Extracting \"'gnuplot/demo/binary.dem'\" \(536 characters\)
  192.   sed "s/^X//" >'gnuplot/demo/binary.dem' <<'END_OF_FILE'
  193. X#
  194. X# $Id: binary.demo 3.38.2.6 1992/11/14 02:25:21 woo Exp $
  195. X#
  196. Xset data style lines
  197. Xset hidden3d
  198. Xset title "Hidden line removal of explicit binary surfaces"
  199. Xset ticslevel 0
  200. X
  201. Xset xrange [-3:3]
  202. Xset yrange [-2:2]
  203. Xsplot "binary1"
  204. Xpause -1 "Hit return to continue (1)"
  205. X
  206. Xset view 70,45
  207. Xset xrange [-3:3]
  208. Xset yrange [-3:3]
  209. Xsplot "binary2"
  210. Xpause -1 "Hit return to continue (2)"
  211. X
  212. Xset title "Notice that sampling rate can change"
  213. Xset vi 70,10
  214. Xset xrange [-3:6]
  215. Xset yrange [-3:6]
  216. Xsplot "binary3"
  217. Xpause -1 "Hit return to continue (3)"
  218. X
  219. Xset title ""
  220. END_OF_FILE
  221.   if test 536 -ne `wc -c <'gnuplot/demo/binary.dem'`; then
  222.     echo shar: \"'gnuplot/demo/binary.dem'\" unpacked with wrong size!
  223.   fi
  224.   # end of 'gnuplot/demo/binary.dem'
  225. fi
  226. if test -f 'gnuplot/demo/controls.dem' -a "${1}" != "-c" ; then 
  227.   echo shar: Will not clobber existing file \"'gnuplot/demo/controls.dem'\"
  228. else
  229.   echo shar: Extracting \"'gnuplot/demo/controls.dem'\" \(774 characters\)
  230.   sed "s/^X//" >'gnuplot/demo/controls.dem' <<'END_OF_FILE'
  231. X#
  232. X# $Id: controls.demo 3.38.2.6 1992/11/14 02:25:21 woo Exp $
  233. X#
  234. X# warning:  this demo is SLOW on PCs without math coprocessors!
  235. X#
  236. X# From _Automatic_Control_Systems_, fourth ed., figure 6-14
  237. X# transient response of a second-order system to a unit step input function
  238. X#
  239. Xdamp(t) = exp(-s*wn*t)/sqrt(1.0-s*s)
  240. Xper(t) = sin(wn*sqrt(1.0-s**2)*t - atan(-sqrt(1.0-s**2)/s))
  241. Xc(t) = 1-damp(t)*per(t)
  242. X#
  243. X#    wn is natural undamped frequency
  244. X#    s is damping factor
  245. X#
  246. Xwn = 1.0
  247. Xset xrange [0:13]
  248. Xset samples 50
  249. Xset dummy t
  250. X#
  251. X# plot c(t) for several different damping factors s
  252. X#
  253. Xplot s=.1,c(t),s=.3,c(t),s=.5,c(t),s=.7,c(t),s=.9,c(t),s=1.0,c(t),s=1.5,c(t),s=2.0,c(t)
  254. Xpause -1 "Hit return to continue"
  255. X
  256. X# undo what we have done
  257. Xset xrange [-10:10]
  258. Xset autoscale xy
  259. Xset samples 160
  260. Xset dummy x
  261. X
  262. END_OF_FILE
  263.   if test 774 -ne `wc -c <'gnuplot/demo/controls.dem'`; then
  264.     echo shar: \"'gnuplot/demo/controls.dem'\" unpacked with wrong size!
  265.   fi
  266.   # end of 'gnuplot/demo/controls.dem'
  267. fi
  268. if test -f 'gnuplot/demo/discrete.dem' -a "${1}" != "-c" ; then 
  269.   echo shar: Will not clobber existing file \"'gnuplot/demo/discrete.dem'\"
  270. else
  271.   echo shar: Extracting \"'gnuplot/demo/discrete.dem'\" \(739 characters\)
  272.   sed "s/^X//" >'gnuplot/demo/discrete.dem' <<'END_OF_FILE'
  273. X#
  274. X# $Id: discrete.dem%v 3.38.2.45 1993/01/11 04:11:27 woo Exp woo $
  275. X#
  276. X#
  277. Xset contour
  278. Xset title "Demo of specifying discrete contour levels  -  default contours"
  279. Xsplot x*y
  280. X
  281. X#set discrete levels
  282. Xset cntrparam levels discrete 0, 15, 75
  283. Xset title "3 discrete contours at 0 15 & 75"
  284. Xreplot
  285. X
  286. X#show contour setting
  287. Xshow contour
  288. Xpause -1 "show demo, hit return"
  289. X
  290. X#save settings
  291. Xsave set 'temp.set'
  292. Xpause -1 "settings saved to temp.set, hit return"
  293. X
  294. X#set incremental levels
  295. Xset cntrp level incr -20, 5, 9
  296. Xset title "9 incremental contours starting at -20, stepping by 5"
  297. Xreplot
  298. X
  299. X#bring back save settings
  300. Xload 'temp.set'
  301. Xpause -1 "saved setting restored, hit return"
  302. Xreplot
  303. X
  304. X#restore defaults
  305. Xset title ""
  306. Xset nocontour
  307. Xset cntrparam levels auto 5
  308. X
  309. END_OF_FILE
  310.   if test 739 -ne `wc -c <'gnuplot/demo/discrete.dem'`; then
  311.     echo shar: \"'gnuplot/demo/discrete.dem'\" unpacked with wrong size!
  312.   fi
  313.   # end of 'gnuplot/demo/discrete.dem'
  314. fi
  315. if test -f 'gnuplot/demo/gnuplot.rot' -a "${1}" != "-c" ; then 
  316.   echo shar: Will not clobber existing file \"'gnuplot/demo/gnuplot.rot'\"
  317. else
  318.   echo shar: Extracting \"'gnuplot/demo/gnuplot.rot'\" \(71 characters\)
  319.   sed "s/^X//" >'gnuplot/demo/gnuplot.rot' <<'END_OF_FILE'
  320. Xzrot=(zrot+10)%360
  321. Xxrot=(xrot+17)%180
  322. Xset view xrot,zrot
  323. Xreplot
  324. Xreread
  325. END_OF_FILE
  326.   if test 71 -ne `wc -c <'gnuplot/demo/gnuplot.rot'`; then
  327.     echo shar: \"'gnuplot/demo/gnuplot.rot'\" unpacked with wrong size!
  328.   fi
  329.   # end of 'gnuplot/demo/gnuplot.rot'
  330. fi
  331. if test -f 'gnuplot/demo/steps.dat' -a "${1}" != "-c" ; then 
  332.   echo shar: Will not clobber existing file \"'gnuplot/demo/steps.dat'\"
  333. else
  334.   echo shar: Extracting \"'gnuplot/demo/steps.dat'\" \(51 characters\)
  335.   sed "s/^X//" >'gnuplot/demo/steps.dat' <<'END_OF_FILE'
  336. X1      2
  337. X3      5
  338. X5      6.1
  339. X6.5    7.4
  340. X10.0  11.0
  341. END_OF_FILE
  342.   if test 51 -ne `wc -c <'gnuplot/demo/steps.dat'`; then
  343.     echo shar: \"'gnuplot/demo/steps.dat'\" unpacked with wrong size!
  344.   fi
  345.   # end of 'gnuplot/demo/steps.dat'
  346. fi
  347. if test -f 'gnuplot/demo/steps.dem' -a "${1}" != "-c" ; then 
  348.   echo shar: Will not clobber existing file \"'gnuplot/demo/steps.dem'\"
  349. else
  350.   echo shar: Extracting \"'gnuplot/demo/steps.dem'\" \(742 characters\)
  351.   sed "s/^X//" >'gnuplot/demo/steps.dem' <<'END_OF_FILE'
  352. X#This file will serve as the datafile used in demonstrating the 
  353. X#"plot with steps" option.   Here is a gnuplot input file
  354. X#which uses "plot with steps", inverse error function, normal
  355. X#distribution function, and the inverse normal distribution
  356. X#function.
  357. Xset title "Demo of step ploting style"
  358. Xplot [0:12][0:13] "steps.dat" with steps, "steps.dat" with points
  359. X
  360. Xpause -1 "Hit return for normal distribution function."
  361. Xset title "Normal Distribution Function"
  362. Xplot [-3:3][0:1] norm(x)
  363. X
  364. Xpause -1 "Hit return for inverse error function."
  365. Xset title "Inverse Error Function"
  366. Xplot [-1:1] inverf(x)
  367. X
  368. Xpause -1 "Hit return for inverse normal distribution function."
  369. Xset title "Inverse Normal Distribution Function"
  370. Xplot [0:1] invnorm(x)
  371. X
  372. Xset title ""
  373. END_OF_FILE
  374.   if test 742 -ne `wc -c <'gnuplot/demo/steps.dem'`; then
  375.     echo shar: \"'gnuplot/demo/steps.dem'\" unpacked with wrong size!
  376.   fi
  377.   # end of 'gnuplot/demo/steps.dem'
  378. fi
  379. if test -f 'gnuplot/demo/using.dem' -a "${1}" != "-c" ; then 
  380.   echo shar: Will not clobber existing file \"'gnuplot/demo/using.dem'\"
  381. else
  382.   echo shar: Extracting \"'gnuplot/demo/using.dem'\" \(806 characters\)
  383.   sed "s/^X//" >'gnuplot/demo/using.dem' <<'END_OF_FILE'
  384. X#
  385. X# $Id: using.demo 3.38.2.6 1992/11/14 02:25:21 woo Exp $
  386. X#
  387. X# Requires data file "using.dat" from this directory,
  388. X# so change current working directory to this directory before running.
  389. X#
  390. X
  391. Xset title "Convex     November 1-7 1989    Circadian"
  392. Xset xrange[-1:24]
  393. Xplot 'using.dat' using 2:4 title "Logged in" with impulses,\
  394. X     'using.dat' using 2:4 title "Logged in" with points
  395. Xpause -1 "Hit return to continue"
  396. X
  397. Xset xrange [1:8]
  398. X#set xdtic
  399. Xset title "Convex     November 1-7 1989"
  400. Xset label "(Weekend)" at 5,25 center
  401. Xplot 'using.dat' using 3:4 title "Logged in" with impulses,\
  402. X     'using.dat' using 3:5 t "Load average" with points,\
  403. X     'using.dat' using 3:6 t "%CPU used" with lines
  404. Xset nolabel
  405. Xpause -1 "Hit return to continue"
  406. X
  407. X# undo what we have done above
  408. Xset title
  409. Xset autoscale x
  410. Xset xtics
  411. END_OF_FILE
  412.   if test 806 -ne `wc -c <'gnuplot/demo/using.dem'`; then
  413.     echo shar: \"'gnuplot/demo/using.dem'\" unpacked with wrong size!
  414.   fi
  415.   # end of 'gnuplot/demo/using.dem'
  416. fi
  417. if test -f 'gnuplot/docs/latextut/eg2.plt' -a "${1}" != "-c" ; then 
  418.   echo shar: Will not clobber existing file \"'gnuplot/docs/latextut/eg2.plt'\"
  419. else
  420.   echo shar: Extracting \"'gnuplot/docs/latextut/eg2.plt'\" \(219 characters\)
  421.   sed "s/^X//" >'gnuplot/docs/latextut/eg2.plt' <<'END_OF_FILE'
  422. Xset terminal latex
  423. Xset output "eg2.tex"
  424. Xset size 5/5., 4/3.
  425. Xset format xy "$%g$"
  426. Xset title "This is a plot of $y=sin(x)$"
  427. Xset xlabel "This is the $x$ axis"
  428. Xset ylabel "This is\\the\\$y$ axis"
  429. Xplot [0:6.28] [0:1] sin(x)
  430. END_OF_FILE
  431.   if test 219 -ne `wc -c <'gnuplot/docs/latextut/eg2.plt'`; then
  432.     echo shar: \"'gnuplot/docs/latextut/eg2.plt'\" unpacked with wrong size!
  433.   fi
  434.   # end of 'gnuplot/docs/latextut/eg2.plt'
  435. fi
  436. if test -f 'gnuplot/docs/latextut/eg3.plt' -a "${1}" != "-c" ; then 
  437.   echo shar: Will not clobber existing file \"'gnuplot/docs/latextut/eg3.plt'\"
  438. else
  439.   echo shar: Extracting \"'gnuplot/docs/latextut/eg3.plt'\" \(199 characters\)
  440.   sed "s/^X//" >'gnuplot/docs/latextut/eg3.plt' <<'END_OF_FILE'
  441. Xset terminal latex
  442. Xset output "eg3.tex"
  443. Xset format xy "$%g$"
  444. Xset title "This is another plot"
  445. Xset xlabel "$x$ axis"
  446. Xset ylabel "$y$ axis"
  447. Xset key 15,-10
  448. Xplot x with lines, "eg3.dat" with linespoints
  449. END_OF_FILE
  450.   if test 199 -ne `wc -c <'gnuplot/docs/latextut/eg3.plt'`; then
  451.     echo shar: \"'gnuplot/docs/latextut/eg3.plt'\" unpacked with wrong size!
  452.   fi
  453.   # end of 'gnuplot/docs/latextut/eg3.plt'
  454. fi
  455. if test -f 'gnuplot/docs/latextut/eg4.plt' -a "${1}" != "-c" ; then 
  456.   echo shar: Will not clobber existing file \"'gnuplot/docs/latextut/eg4.plt'\"
  457. else
  458.   echo shar: Extracting \"'gnuplot/docs/latextut/eg4.plt'\" \(227 characters\)
  459.   sed "s/^X//" >'gnuplot/docs/latextut/eg4.plt' <<'END_OF_FILE'
  460. Xset terminal latex
  461. Xset output "eg4.tex"
  462. Xset format y "$%g$"
  463. Xset format x "$%.2f$"
  464. Xset title "This is $\sin(x)$"
  465. Xset xlabel "This is the $x$ axis"
  466. Xset ylabel "$\sin(x)$"
  467. Xset nokey
  468. Xset xtics -pi, pi/4
  469. Xplot [-pi:pi] [-1:1] sin(x)
  470. END_OF_FILE
  471.   if test 227 -ne `wc -c <'gnuplot/docs/latextut/eg4.plt'`; then
  472.     echo shar: \"'gnuplot/docs/latextut/eg4.plt'\" unpacked with wrong size!
  473.   fi
  474.   # end of 'gnuplot/docs/latextut/eg4.plt'
  475. fi
  476. if test -f 'gnuplot/docs/latextut/eg5.plt' -a "${1}" != "-c" ; then 
  477.   echo shar: Will not clobber existing file \"'gnuplot/docs/latextut/eg5.plt'\"
  478. else
  479.   echo shar: Extracting \"'gnuplot/docs/latextut/eg5.plt'\" \(331 characters\)
  480.   sed "s/^X//" >'gnuplot/docs/latextut/eg5.plt' <<'END_OF_FILE'
  481. Xset terminal latex
  482. Xset output "eg5.tex"
  483. Xset format y "$%g$"
  484. Xset format x "$%4.1f\pi$"
  485. Xset noclip points
  486. Xset title "This is $\sin(x)$"
  487. Xset xlabel "This is the $x$ axis"
  488. Xset ylabel "$\sin(x)$"
  489. Xset nokey
  490. Xset xtics ("$-\pi$" -pi,\
  491. X "$-\frac{\pi}{2}$" -pi/2,\
  492. X "0" 0,\
  493. X "$\frac{\pi}{2}$" pi/2,\
  494. X "$\pi$" pi)
  495. Xplot [-pi:pi] [-1:1] sin(x)
  496. END_OF_FILE
  497.   if test 331 -ne `wc -c <'gnuplot/docs/latextut/eg5.plt'`; then
  498.     echo shar: \"'gnuplot/docs/latextut/eg5.plt'\" unpacked with wrong size!
  499.   fi
  500.   # end of 'gnuplot/docs/latextut/eg5.plt'
  501. fi
  502. if test -f 'gnuplot/docs/latextut/eg6.plt' -a "${1}" != "-c" ; then 
  503.   echo shar: Will not clobber existing file \"'gnuplot/docs/latextut/eg6.plt'\"
  504. else
  505.   echo shar: Extracting \"'gnuplot/docs/latextut/eg6.plt'\" \(457 characters\)
  506.   sed "s/^X//" >'gnuplot/docs/latextut/eg6.plt' <<'END_OF_FILE'
  507. Xset terminal latex
  508. Xset output "eg6.tex"
  509. Xset size 3.5/5, 3/3.
  510. Xset format y "$%g$"
  511. Xset format x "$%5.1f\mu$"
  512. Xset title "This is a title"
  513. Xset xlabel "This is the $x$ axis"
  514. Xset ylabel "This is\\a longer\\version\\ of\\the $y$\\ axis"
  515. Xset label "Data" at -5,-5 right
  516. Xset arrow from -5,-5 to -3.3,-6.7
  517. Xset key -4,8
  518. Xset xtic -10,5,10
  519. Xplot [-10:10] [-10:10] "eg3.dat" title "Data File"  with linespoints 1 7,\
  520. X   3*exp(-x*x)+1  title "$3e^{-x^{2}}+1$" with lines 4
  521. END_OF_FILE
  522.   if test 457 -ne `wc -c <'gnuplot/docs/latextut/eg6.plt'`; then
  523.     echo shar: \"'gnuplot/docs/latextut/eg6.plt'\" unpacked with wrong size!
  524.   fi
  525.   # end of 'gnuplot/docs/latextut/eg6.plt'
  526. fi
  527. if test -f 'gnuplot/docs/latextut/linepoin.plt' -a "${1}" != "-c" ; then 
  528.   echo shar: Will not clobber existing file \"'gnuplot/docs/latextut/linepoin.plt'\"
  529. else
  530.   echo shar: Extracting \"'gnuplot/docs/latextut/linepoin.plt'\" \(549 characters\)
  531.   sed "s/^X//" >'gnuplot/docs/latextut/linepoin.plt' <<'END_OF_FILE'
  532. X# Plots all line types and point types
  533. Xset term latex
  534. Xset out "linepoin.tex"
  535. Xset clip points
  536. Xset dummy t,y
  537. Xset nokey
  538. Xset parametric
  539. Xset samples 14     # for trange 0:13, we get 14 points: 0, 1, ..., 13
  540. Xset function style lines
  541. Xset xtics 1,1,12
  542. Xset ytics 1,1,6
  543. Xset title "Up to 6 line types and 12 point types"
  544. Xset trange [0 : 13]
  545. Xset xlabel "Points"
  546. Xset xrange [0 : 13]
  547. Xset ylabel "Lines"
  548. Xset yrange [0 : 7]
  549. Xplot t,1, t,2, t,3, t,4, t,5, t,6, 1,t w p, 2,t w p, 3,t w p, 4,t w p,5,t w p, 6,t w p, 7,t w p, 8,t w p, 9,t w p, 10,t w p, 11,t w p, 12,t w p
  550. END_OF_FILE
  551.   if test 549 -ne `wc -c <'gnuplot/docs/latextut/linepoin.plt'`; then
  552.     echo shar: \"'gnuplot/docs/latextut/linepoin.plt'\" unpacked with wrong size!
  553.   fi
  554.   # end of 'gnuplot/docs/latextut/linepoin.plt'
  555. fi
  556. if test -f 'gnuplot/docs/latextut/makefile' -a "${1}" != "-c" ; then 
  557.   echo shar: Will not clobber existing file \"'gnuplot/docs/latextut/makefile'\"
  558. else
  559.   echo shar: Extracting \"'gnuplot/docs/latextut/makefile'\" \(566 characters\)
  560.   sed "s/^X//" >'gnuplot/docs/latextut/makefile' <<'END_OF_FILE'
  561. X# Makefile for gnuplot LaTeX tutorial
  562. X# To make the manual from scratch, we run latex two times
  563. Xall: tutorial.dvi done
  564. X
  565. Xdone:
  566. X    latex tutorial
  567. X    echo > done
  568. X
  569. X# To touch it up after changes:
  570. Xremake: tutorial.dvi
  571. X
  572. X# Always runs latex, e.g., to get labels right
  573. Xforce:
  574. X    latex tutorial
  575. X
  576. Xtutorial.dvi: eg1.tex eg2.tex eg3.tex eg4.tex eg5.tex eg6.tex linepoin.tex \
  577. X    tutorial.tex header.tex
  578. X    latex tutorial
  579. X    rm -f done
  580. X
  581. X.SUFFIXES: .tex .plt
  582. X
  583. X.plt.tex:
  584. X    gnuplot $<
  585. X
  586. Xclean:
  587. X    rm -f *~ *.log eg?.tex linepoin.tex
  588. X
  589. Xspotless:
  590. X    rm -f *~ *.log *.aux *.dvi eg?.tex linepoin.tex done
  591. END_OF_FILE
  592.   if test 566 -ne `wc -c <'gnuplot/docs/latextut/makefile'`; then
  593.     echo shar: \"'gnuplot/docs/latextut/makefile'\" unpacked with wrong size!
  594.   fi
  595.   # end of 'gnuplot/docs/latextut/makefile'
  596. fi
  597. if test -f 'gnuplot/docs/titlepag.ms' -a "${1}" != "-c" ; then 
  598.   echo shar: Will not clobber existing file \"'gnuplot/docs/titlepag.ms'\"
  599. else
  600.   echo shar: Extracting \"'gnuplot/docs/titlepag.ms'\" \(758 characters\)
  601.   sed "s/^X//" >'gnuplot/docs/titlepag.ms' <<'END_OF_FILE'
  602. X.nr HM 3.2i
  603. X.TL
  604. XGNUPLOT
  605. X.br
  606. XAn Interactive Plotting Program
  607. X.sp
  608. X.AU
  609. XThomas Williams & Colin Kelley
  610. X.br
  611. X   Version 3.5 organized by: Alex Woo
  612. X.br
  613. X   Major contributors (alphabetic order):
  614. X.br
  615. X  John Campbell
  616. X.br
  617. X  Robert Cunningham
  618. X.br
  619. X  Gershon Elber
  620. X.br
  621. X  Roger Fearick
  622. X.br
  623. X  David Kotz
  624. X.br
  625. X  Ed Kubaitis
  626. X.br
  627. X  Russell Lang
  628. X.br
  629. X  Alexander Lehmann
  630. X.br
  631. X  Carsten Steger
  632. X.br
  633. X  Tom Tkacik
  634. X.br
  635. X  Jos Van der Woude 
  636. X.br
  637. X  Alex Woo
  638. X.br
  639. X  Copyright (C) 1986 - 1993   Thomas Williams, Colin Kelley
  640. X.AI
  641. X   Mailing list for comments: info-gnuplot@dartmouth.edu
  642. X.br
  643. X   Mailing list for bug reports: bug-gnuplot@dartmouth.edu
  644. X\*(DY
  645. X.br
  646. X
  647. X
  648. X
  649. X
  650. X
  651. X
  652. XThis manual is for GNUPLOT version 3.5
  653. X.AB no
  654. X.AE
  655. X.LP
  656. X.nr HM 1.2i
  657. X.ds CH
  658. X.ds LH GNUPLOT 3.5
  659. X.ds RH %
  660. X.\".nr PS 12
  661. X.\".nr VS 13
  662. END_OF_FILE
  663.   if test 758 -ne `wc -c <'gnuplot/docs/titlepag.ms'`; then
  664.     echo shar: \"'gnuplot/docs/titlepag.ms'\" unpacked with wrong size!
  665.   fi
  666.   # end of 'gnuplot/docs/titlepag.ms'
  667. fi
  668. if test -f 'gnuplot/epsviewe.h' -a "${1}" != "-c" ; then 
  669.   echo shar: Will not clobber existing file \"'gnuplot/epsviewe.h'\"
  670. else
  671.   echo shar: Extracting \"'gnuplot/epsviewe.h'\" \(368 characters\)
  672.   sed "s/^X//" >'gnuplot/epsviewe.h' <<'END_OF_FILE'
  673. X/*
  674. X * $Id: epsviewe.h%v 3.50 1993/07/09 05:35:24 woo Exp $
  675. X *
  676. X */
  677. X
  678. X#import <appkit/Application.h>
  679. X#import <appkit/graphics.h>
  680. X#import <dpsclient/dpsclient.h>
  681. X#import <appkit/Window.h>
  682. X
  683. X@interface EpsViewer:Application
  684. X{
  685. X    id theNewWin;
  686. X}
  687. X
  688. X- windowCreate:(NXCoord)width Height:(NXCoord)height;
  689. X- (NXRect *)nextRectForWidth:(NXCoord)width Height:(NXCoord)height;
  690. X
  691. X@end
  692. X
  693. X
  694. END_OF_FILE
  695.   if test 368 -ne `wc -c <'gnuplot/epsviewe.h'`; then
  696.     echo shar: \"'gnuplot/epsviewe.h'\" unpacked with wrong size!
  697.   fi
  698.   # end of 'gnuplot/epsviewe.h'
  699. fi
  700. if test -f 'gnuplot/gnuplot.def' -a "${1}" != "-c" ; then 
  701.   echo shar: Will not clobber existing file \"'gnuplot/gnuplot.def'\"
  702. else
  703.   echo shar: Extracting \"'gnuplot/gnuplot.def'\" \(111 characters\)
  704.   sed "s/^X//" >'gnuplot/gnuplot.def' <<'END_OF_FILE'
  705. X;gnuplot.def for Phar Lap LITE286 DOS Extender
  706. XPROTMODE
  707. XSTUB    'gorun286.exe'
  708. XSTACKSIZE    16384
  709. XEXPORTS    BCC286_EXE
  710. END_OF_FILE
  711.   if test 111 -ne `wc -c <'gnuplot/gnuplot.def'`; then
  712.     echo shar: \"'gnuplot/gnuplot.def'\" unpacked with wrong size!
  713.   fi
  714.   # end of 'gnuplot/gnuplot.def'
  715. fi
  716. if test -f 'gnuplot/intergra.x11' -a "${1}" != "-c" ; then 
  717.   echo shar: Will not clobber existing file \"'gnuplot/intergra.x11'\"
  718. else
  719.   echo shar: Extracting \"'gnuplot/intergra.x11'\" \(707 characters\)
  720.   sed "s/^X//" >'gnuplot/intergra.x11' <<'END_OF_FILE'
  721. X#!/bin/sh
  722. Xmv gnuplot_x11.c gnuplot_x11.c_x
  723. Xmv corplot.c corplot.c_pc
  724. Xmv winmain.c winmain.c_pc
  725. Xmv wintext.c wintext.c_pc
  726. Xmv winmenu.c winmenu.c_pc
  727. Xmv bf_test.c bf_test.c_b
  728. Xacc -knr -DSYSV -DUSG -DVFORK -DNOCOPY -DGAMMA=gamma -DGETCWD -DX11 \
  729. X-DUNIXPLOT -I/usr/include/X11 -I/usr/include/X11/Xaw *.c \
  730. X-lbsd -lplot -lm -o gnuplot.intergraph
  731. Xmv gnuplot_x11.c_x gnuplot_x11.c
  732. Xacc -knr -DSYSV -DUSG -DVFORK -DNOCOPY -DGAMMA=gamma -DGETCWD -DX11 \
  733. X-DUNIXPLOT -I/usr/include/X11 -I/usr/include/X11/Xaw gnuplot_x11.c \
  734. X-lXaw -lXmu -lXt -lXext -lX11 -lbsd -lm -o gnuplot_x11.intergraph
  735. Xmv corplot.c_pc corplot.c
  736. Xmv winmain.c_pc winmain.c
  737. Xmv winmenu.c_pc winmenu.c
  738. Xmv wintext.c_pc wintext.c
  739. Xmv bf_test.c_b bf_test.c
  740. END_OF_FILE
  741.   if test 707 -ne `wc -c <'gnuplot/intergra.x11'`; then
  742.     echo shar: \"'gnuplot/intergra.x11'\" unpacked with wrong size!
  743.   fi
  744.   # end of 'gnuplot/intergra.x11'
  745. fi
  746. if test -f 'gnuplot/linkopt.amg' -a "${1}" != "-c" ; then 
  747.   echo shar: Will not clobber existing file \"'gnuplot/linkopt.amg'\"
  748. else
  749.   echo shar: Extracting \"'gnuplot/linkopt.amg'\" \(263 characters\)
  750.   sed "s/^X//" >'gnuplot/linkopt.amg' <<'END_OF_FILE'
  751. XFROM LIB:c.o
  752. X     binary.o bitmap.o command.o contour.o eval.o gnubin.o graph3d.o
  753. X     graphics.o help.o internal.o misc.o parse.o plot.o scanner.o
  754. X     setshow.o specfun.o standard.o term.o util.o version.o
  755. XTO gnuplot
  756. XLIB LIB:scmieee.lib LIB:scnb.lib
  757. XSTRIPDEBUG
  758. END_OF_FILE
  759.   if test 263 -ne `wc -c <'gnuplot/linkopt.amg'`; then
  760.     echo shar: \"'gnuplot/linkopt.amg'\" unpacked with wrong size!
  761.   fi
  762.   # end of 'gnuplot/linkopt.amg'
  763. fi
  764. if test -f 'gnuplot/linkopt.msc' -a "${1}" != "-c" ; then 
  765.   echo shar: Will not clobber existing file \"'gnuplot/linkopt.msc'\"
  766. else
  767.   echo shar: Extracting \"'gnuplot/linkopt.msc'\" \(181 characters\)
  768.   sed "s/^X//" >'gnuplot/linkopt.msc' <<'END_OF_FILE'
  769. Xpcgraph+hrcgraph+corgraph+bitmap+term+graphics+graph3d+contour+
  770. Xplot+setshow+command+help+internal+misc+specfun+gnubin+binary+
  771. Xparse+eval+scanner+standard+util+version
  772. Xgnuplot
  773. Xnul;
  774. END_OF_FILE
  775.   if test 181 -ne `wc -c <'gnuplot/linkopt.msc'`; then
  776.     echo shar: \"'gnuplot/linkopt.msc'\" unpacked with wrong size!
  777.   fi
  778.   # end of 'gnuplot/linkopt.msc'
  779. fi
  780. if test -f 'gnuplot/linkopt.vms' -a "${1}" != "-c" ; then 
  781.   echo shar: Will not clobber existing file \"'gnuplot/linkopt.vms'\"
  782. else
  783.   echo shar: Extracting \"'gnuplot/linkopt.vms'\" \(26 characters\)
  784.   sed "s/^X//" >'gnuplot/linkopt.vms' <<'END_OF_FILE'
  785. Xsys$library:vaxcrtl/share
  786. END_OF_FILE
  787.   if test 26 -ne `wc -c <'gnuplot/linkopt.vms'`; then
  788.     echo shar: \"'gnuplot/linkopt.vms'\" unpacked with wrong size!
  789.   fi
  790.   # end of 'gnuplot/linkopt.vms'
  791. fi
  792. if test -f 'gnuplot/linkopt.ztc' -a "${1}" != "-c" ; then 
  793.   echo shar: Will not clobber existing file \"'gnuplot/linkopt.ztc'\"
  794. else
  795.   echo shar: Extracting \"'gnuplot/linkopt.ztc'\" \(179 characters\)
  796.   sed "s/^X//" >'gnuplot/linkopt.ztc' <<'END_OF_FILE'
  797. Xcx+bitmap+term+graphics+graph3d+contour+readline+
  798. Xplot+setshow+command+help+internal+misc+specfun+gnubin+binary+
  799. Xparse+eval+scanner+standard+util+version
  800. Xgnuplot,,fgp.lib /map/co
  801. END_OF_FILE
  802.   if test 179 -ne `wc -c <'gnuplot/linkopt.ztc'`; then
  803.     echo shar: \"'gnuplot/linkopt.ztc'\" unpacked with wrong size!
  804.   fi
  805.   # end of 'gnuplot/linkopt.ztc'
  806. fi
  807. if test -f 'gnuplot/os2/gnupmdrv.def' -a "${1}" != "-c" ; then 
  808.   echo shar: Will not clobber existing file \"'gnuplot/os2/gnupmdrv.def'\"
  809. else
  810.   echo shar: Extracting \"'gnuplot/os2/gnupmdrv.def'\" \(178 characters\)
  811.   sed "s/^X//" >'gnuplot/os2/gnupmdrv.def' <<'END_OF_FILE'
  812. XNAME        GnuShell WINDOWAPI
  813. X
  814. XDESCRIPTION 'Gnuplot shell'
  815. X
  816. XSTUB        'OS2STUB.EXE'
  817. XCODE        MOVEABLE
  818. XDATA        MOVEABLE MULTIPLE
  819. X
  820. XHEAPSIZE  1024
  821. XSTACKSIZE 32768
  822. X
  823. X
  824. X
  825. X    
  826. END_OF_FILE
  827.   if test 178 -ne `wc -c <'gnuplot/os2/gnupmdrv.def'`; then
  828.     echo shar: \"'gnuplot/os2/gnupmdrv.def'\" unpacked with wrong size!
  829.   fi
  830.   # end of 'gnuplot/os2/gnupmdrv.def'
  831. fi
  832. if test -f 'gnuplot/win/wgnuplib.def' -a "${1}" != "-c" ; then 
  833.   echo shar: Will not clobber existing file \"'gnuplot/win/wgnuplib.def'\"
  834. else
  835.   echo shar: Extracting \"'gnuplot/win/wgnuplib.def'\" \(161 characters\)
  836.   sed "s/^X//" >'gnuplot/win/wgnuplib.def' <<'END_OF_FILE'
  837. X; WGNUPLIB.DEF 
  838. XLIBRARY        WGNUPLOT
  839. XDESCRIPTION    'DLL for WGNUPLOT'
  840. XEXETYPE        WINDOWS
  841. XCODE        PRELOAD MOVEABLE DISCARDABLE
  842. XDATA        PRELOAD MOVEABLE SINGLE
  843. XHEAPSIZE    1024
  844. END_OF_FILE
  845.   if test 161 -ne `wc -c <'gnuplot/win/wgnuplib.def'`; then
  846.     echo shar: \"'gnuplot/win/wgnuplib.def'\" unpacked with wrong size!
  847.   fi
  848.   # end of 'gnuplot/win/wgnuplib.def'
  849. fi
  850. if test -f 'gnuplot/win/wgnuplot.hpj' -a "${1}" != "-c" ; then 
  851.   echo shar: Will not clobber existing file \"'gnuplot/win/wgnuplot.hpj'\"
  852. else
  853.   echo shar: Extracting \"'gnuplot/win/wgnuplot.hpj'\" \(69 characters\)
  854.   sed "s/^X//" >'gnuplot/win/wgnuplot.hpj' <<'END_OF_FILE'
  855. X[OPTIONS]
  856. XTITLE=gnuplot
  857. X[FILES]
  858. Xgnuplot.rtf
  859. X[CONFIG]
  860. XBrowseButtons()
  861. END_OF_FILE
  862.   if test 69 -ne `wc -c <'gnuplot/win/wgnuplot.hpj'`; then
  863.     echo shar: \"'gnuplot/win/wgnuplot.hpj'\" unpacked with wrong size!
  864.   fi
  865.   # end of 'gnuplot/win/wgnuplot.hpj'
  866. fi
  867. echo shar: End of archive 33 \(of 33\).
  868. cp /dev/null ark33isdone
  869. MISSING=""
  870. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 ; do
  871.     if test ! -f ark${I}isdone ; then
  872.     MISSING="${MISSING} ${I}"
  873.     fi
  874. done
  875. if test "${MISSING}" = "" ; then
  876.     echo You have unpacked all 33 archives.
  877.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  878. else
  879.     echo You still must unpack the following archives:
  880.     echo "        " ${MISSING}
  881. fi
  882. exit 0
  883. exit 0 # Just in case...
  884.