home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume24
/
gnuplot3
/
part07
< prev
next >
Wrap
Text File
|
1991-10-26
|
49KB
|
1,250 lines
Newsgroups: comp.sources.misc
From: gershon%gr@cs.utah.edu (Elber Gershon)
Subject: v24i029: gnuplot3 - interactive function plotting utility, Part07/26
Message-ID: <1991Oct26.222334.6503@sparky.imd.sterling.com>
X-Md4-Signature: 101cf708e70aabfd3412ddc119814cd4
Date: Sat, 26 Oct 1991 22:23:34 GMT
Approved: kent@sparky.imd.sterling.com
Submitted-by: gershon%gr@cs.utah.edu (Elber Gershon)
Posting-number: Volume 24, Issue 29
Archive-name: gnuplot3/part07
Environment: UNIX, MS-DOS, VMS
Supersedes: gnuplot2: Volume 11, Issue 65-79
#!/bin/sh
# this is Part.07 (part 7 of a multipart archive)
# do not concatenate these parts, unpack them in order with /bin/sh
# file gnuplot/demo/polar.dat continued
#
if test ! -r _shar_seq_.tmp; then
echo 'Please unpack part 1 first!'
exit 1
fi
(read Scheck
if test "$Scheck" != 7; then
echo Please unpack part "$Scheck" next!
exit 1
else
exit 0
fi
) < _shar_seq_.tmp || exit 1
if test ! -f _shar_wnt_.tmp; then
echo 'x - still skipping gnuplot/demo/polar.dat'
else
echo 'x - continuing file gnuplot/demo/polar.dat'
sed 's/^X//' << 'SHAR_EOF' >> 'gnuplot/demo/polar.dat' &&
X 24.000 0.000 -200.000 0.000 5.169 0.000
X 26.000 0.000 -200.000 0.000 2.680 0.000
X 28.000 0.000 -200.000 0.000 -0.039 0.000
X 30.000 0.000 -200.000 0.000 -2.998 0.000
X 32.000 0.000 -200.000 0.000 -6.204 0.000
X 34.000 0.000 -200.000 0.000 -9.670 0.000
X 36.000 0.000 -200.000 0.000 -13.407 0.000
X 38.000 0.000 -200.000 0.000 -17.429 0.000
X 40.000 0.000 -200.000 0.000 -21.751 0.000
X 42.000 0.000 -200.000 0.000 -26.391 0.000
X 44.000 0.000 -200.000 0.000 -31.368 0.000
X 46.000 0.000 -200.000 0.000 -36.705 0.000
X 48.000 0.000 -200.000 0.000 -42.429 0.000
X 50.000 0.000 -200.000 0.000 -48.569 0.000
X 52.000 0.000 -200.000 0.000 -55.160 0.000
X 54.000 0.000 -200.000 0.000 -62.243 0.000
X 56.000 0.000 -200.000 0.000 -69.867 0.000
X 58.000 0.000 -200.000 0.000 -78.087 0.000
X 60.000 0.000 -200.000 0.000 -86.971 0.000
X 62.000 0.000 -200.000 0.000 -96.602 0.000
X 64.000 0.000 -200.000 0.000 -107.080 0.000
X 66.000 0.000 -200.000 0.000 -118.530 0.000
X 68.000 0.000 -200.000 0.000 -131.110 0.000
X 70.000 0.000 -200.000 0.000 -145.022 0.000
X 72.000 0.000 -200.000 0.000 -160.534 0.000
X 74.000 0.000 -200.000 0.000 -177.982 0.000
X 76.000 0.000 -200.000 0.000 -195.848 0.000
X 78.000 0.000 -200.000 0.000 -199.967 0.000
X 80.000 0.000 -200.000 0.000 -200.000 0.000
X 82.000 0.000 -200.000 0.000 -200.000 0.000
X 84.000 0.000 -200.000 0.000 -200.000 0.000
X 86.000 0.000 -200.000 0.000 -200.000 0.000
X 88.000 0.000 -200.000 0.000 -200.000 0.000
X 90.000 0.000 -200.000 0.000 -200.000 0.000
X 92.000 0.000 -200.000 0.000 -200.000 0.000
X 94.000 0.000 -200.000 0.000 -200.000 0.000
X 96.000 0.000 -200.000 0.000 -200.000 0.000
X 98.000 0.000 -200.000 0.000 -200.000 0.000
X 100.000 0.000 -200.000 0.000 -200.000 0.000
X 102.000 0.000 -200.000 0.000 -200.000 0.000
X 104.000 0.000 -200.000 0.000 -200.000 0.000
X 106.000 0.000 -200.000 0.000 -200.000 0.000
X 108.000 0.000 -200.000 0.000 -200.000 0.000
X 110.000 0.000 -200.000 0.000 -200.000 0.000
X 112.000 0.000 -200.000 0.000 -200.000 0.000
X 114.000 0.000 -200.000 0.000 -200.000 0.000
X 116.000 0.000 -200.000 0.000 -200.000 0.000
X 118.000 0.000 -200.000 0.000 -200.000 0.000
X 120.000 0.000 -200.000 0.000 -200.000 0.000
X 122.000 0.000 -200.000 0.000 -200.000 0.000
X 124.000 0.000 -200.000 0.000 -200.000 0.000
X 126.000 0.000 -200.000 0.000 -200.000 0.000
X 128.000 0.000 -200.000 0.000 -200.000 0.000
X 130.000 0.000 -200.000 0.000 -200.000 0.000
X 132.000 0.000 -200.000 0.000 -200.000 0.000
X 134.000 0.000 -200.000 0.000 -200.000 0.000
X 136.000 0.000 -200.000 0.000 -200.000 0.000
X 138.000 0.000 -200.000 0.000 -200.000 0.000
X 140.000 0.000 -200.000 0.000 -200.000 0.000
X 142.000 0.000 -200.000 0.000 -200.000 0.000
X 144.000 0.000 -200.000 0.000 -200.000 0.000
X 146.000 0.000 -200.000 0.000 -200.000 0.000
X 148.000 0.000 -200.000 0.000 -200.000 0.000
X 150.000 0.000 -200.000 0.000 -200.000 0.000
X 152.000 0.000 -200.000 0.000 -200.000 0.000
X 154.000 0.000 -200.000 0.000 -200.000 0.000
X 156.000 0.000 -200.000 0.000 -200.000 0.000
X 158.000 0.000 -200.000 0.000 -200.000 0.000
X 160.000 0.000 -200.000 0.000 -200.000 0.000
X 162.000 0.000 -200.000 0.000 -200.000 0.000
X 164.000 0.000 -200.000 0.000 -200.000 0.000
X 166.000 0.000 -200.000 0.000 -200.000 0.000
X 168.000 0.000 -200.000 0.000 -200.000 0.000
X 170.000 0.000 -200.000 0.000 -200.000 0.000
X 172.000 0.000 -200.000 0.000 -200.000 0.000
X 174.000 0.000 -200.000 0.000 -200.000 0.000
X 176.000 0.000 -200.000 0.000 -200.000 0.000
X 178.000 0.000 -200.000 0.000 -200.000 0.000
X 180.000 0.000 -200.000 0.000 -200.000 0.000
SHAR_EOF
echo 'File gnuplot/demo/polar.dat is complete' &&
chmod 0644 gnuplot/demo/polar.dat ||
echo 'restore of gnuplot/demo/polar.dat failed'
Wc_c="`wc -c < 'gnuplot/demo/polar.dat'`"
test 6538 -eq "$Wc_c" ||
echo 'gnuplot/demo/polar.dat: original size 6538, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/demo/errorbar.demo ==============
if test -f 'gnuplot/demo/errorbar.demo' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/demo/errorbar.demo (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/demo/errorbar.demo (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/demo/errorbar.demo' &&
#
# Requires data file "err.dat" from this directory,
# so change current working directory to this directory before running.
# gnuplot> set term <term-type>
# gnuplot> load 'errorbar.demo'
#
X
set title "Demonstration of error bars (both ylow and yhigh, default format)"
plot [-3:65] "err.dat" with errorbars
X
pause -1 "Hit return to continue"
X
# this should look the same
set title "Demonstration of error bars (both ylow and yhigh)"
plot [-3:65] "err.dat" using 1:2:3:4 with errorbars
X
pause -1 "Hit return to continue"
X
set title "Demonstration of error bars (only ydelta)"
plot [-3:65] "err.dat" using 1:2:5 with errorbars
X
pause -1 "Hit return to continue"
X
set title "Plot data file twice to get lines and errorbars"
plot [-3:65] [6:14] "err.dat" with lines, "err.dat" using 1:2:4:3 with errorbars
X
set title ""
set autoscale
X
pause -1 "Hit return to continue"
SHAR_EOF
chmod 0644 gnuplot/demo/errorbar.demo ||
echo 'restore of gnuplot/demo/errorbar.demo failed'
Wc_c="`wc -c < 'gnuplot/demo/errorbar.demo'`"
test 867 -eq "$Wc_c" ||
echo 'gnuplot/demo/errorbar.demo: original size 867, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/demo/antenna.dat ==============
if test -f 'gnuplot/demo/antenna.dat' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/demo/antenna.dat (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/demo/antenna.dat (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/demo/antenna.dat' &&
X 0.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 2.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 4.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 6.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 8.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 10.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 12.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 14.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 16.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 18.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 20.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 22.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 24.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 26.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 28.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 30.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 32.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 34.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 36.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 38.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 40.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 42.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 44.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 46.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 48.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 50.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 52.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 54.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 56.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 58.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 60.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 62.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 64.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 66.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 68.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 70.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 72.000 -41.802E+00 -37.180E+00 -39.114E+00 -24.830E+00
X 74.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 76.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 78.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 80.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 82.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 84.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 86.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 88.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 90.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 92.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 94.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 96.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 98.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 100.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 102.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 104.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 106.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 108.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 110.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 112.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 114.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 116.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 118.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 120.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 122.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 124.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 126.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 128.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 130.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 132.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 134.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 136.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 138.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 140.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 142.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 144.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 146.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 148.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 150.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 152.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 154.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 156.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 158.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 160.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 162.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 164.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 166.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 168.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 170.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 172.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 174.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 176.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 178.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 180.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 182.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 184.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 186.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 188.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 190.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 192.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 194.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 196.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 198.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 200.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 202.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 204.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 206.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 208.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 210.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 212.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 214.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 216.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 218.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 220.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 222.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 224.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 226.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 228.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 230.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 232.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 234.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 236.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 238.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 240.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 242.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 244.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 246.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 248.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 250.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 252.000 -41.802E+00 -37.180E+00 -39.114E+00 -24.830E+00
X 254.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 256.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 258.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 260.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 262.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 264.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 266.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 268.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 270.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 272.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 274.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 276.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 278.000 13.099E-02 42.554E-01 -25.105E+00 59.101E-01
X 280.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 282.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 284.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 286.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 288.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 290.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 292.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 294.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 296.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 298.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 300.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 302.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 304.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 306.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 308.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 310.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 312.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 314.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 316.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 318.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 320.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 322.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 324.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 326.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 328.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 330.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 332.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 334.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 336.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 338.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 340.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 342.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 344.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 346.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 348.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 350.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 352.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 354.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 356.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 358.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 360.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 2.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 4.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 6.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 8.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 10.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 12.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 14.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 16.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 18.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 20.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 22.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 24.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 26.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 28.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 30.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 32.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 34.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 36.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 38.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 40.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 42.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 44.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 46.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 48.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 50.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 52.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 54.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 56.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 58.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 60.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 62.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 64.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 66.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 68.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 70.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 72.000 -41.802E+00 -37.180E+00 -39.114E+00 -24.830E+00
X 74.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 76.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 78.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 80.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 82.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 84.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 86.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 88.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 90.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 92.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 94.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 96.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 98.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 100.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 102.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 104.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 106.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 108.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 110.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 112.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 114.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 116.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 118.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 120.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 122.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 124.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 126.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 128.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 130.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 132.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 134.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 136.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 138.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 140.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 142.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 144.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 146.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 148.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 150.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 152.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 154.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 156.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 158.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 160.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 162.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 164.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 166.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 168.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 170.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 172.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 174.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 176.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 178.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 180.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 182.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 184.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 186.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 188.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 190.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 192.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 194.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 196.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 198.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 200.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 202.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 204.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 206.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 208.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 210.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 212.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 214.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 216.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 218.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 220.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 222.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 224.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 226.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 228.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 230.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 232.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 234.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 236.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 238.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 240.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 242.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 244.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 246.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 248.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 250.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 252.000 -41.802E+00 -37.180E+00 -39.114E+00 -24.830E+00
X 254.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 256.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 258.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 260.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 262.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 264.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 266.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 268.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 270.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
X 272.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 274.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 276.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 278.000 13.099E-02 42.554E-01 -25.105E+00 59.101E-01
X 280.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 282.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 284.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 286.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 288.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 290.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 292.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 294.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 296.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 298.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 300.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 302.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 304.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 306.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 308.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 310.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 312.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 314.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 316.000 -39.287E+00 -23.397E+00 -38.646E+00 -60.943E-01
X 318.000 -38.418E+00 -14.735E+00 -29.897E+00 -76.375E-01
X 320.000 -36.549E+00 -12.197E+00 -27.142E+00 -11.075E+00
X 322.000 -35.220E+00 -12.594E+00 -27.052E+00 -15.787E+00
X 324.000 -35.691E+00 -16.286E+00 -29.566E+00 -13.578E+00
X 326.000 -37.632E+00 -21.690E+00 -37.458E+00 -96.424E-01
X 328.000 -33.989E+00 -13.340E+00 -38.930E+00 -75.039E-01
X 330.000 -28.216E+00 -83.757E-01 -29.576E+00 -64.985E-01
X 332.000 -24.356E+00 -58.580E-01 -26.299E+00 -60.712E-01
X 334.000 -22.103E+00 -48.803E-01 -25.429E+00 -59.416E-01
X 336.000 -21.258E+00 -52.193E-01 -26.432E+00 -62.183E-01
X 338.000 -22.060E+00 -71.064E-01 -29.743E+00 -74.312E-01
X 340.000 -25.979E+00 -11.868E+00 -38.677E+00 -10.860E+00
X 342.000 -41.802E+00 -37.181E+00 -39.114E+00 -24.830E+00
X 344.000 -20.405E+00 -10.185E+00 -30.112E+00 -11.564E+00
X 346.000 -12.849E+00 -36.543E-01 -26.702E+00 -36.253E-01
X 348.000 -76.407E-01 15.917E-02 -25.211E+00 82.257E-02
X 350.000 -34.589E-01 26.769E-01 -24.794E+00 38.084E-01
X 352.000 13.100E-02 42.554E-01 -25.105E+00 59.101E-01
X 354.000 33.053E-01 48.742E-01 -26.062E+00 73.795E-01
X 356.000 60.696E-01 40.782E-01 -28.040E+00 83.501E-01
X 358.000 81.667E-01 13.355E-02 -32.735E+00 89.007E-01
X 360.000 90.007E-01 -35.926E+00 -71.297E+00 90.783E-01
SHAR_EOF
chmod 0644 gnuplot/demo/antenna.dat ||
echo 'restore of gnuplot/demo/antenna.dat failed'
Wc_c="`wc -c < 'gnuplot/demo/antenna.dat'`"
test 20577 -eq "$Wc_c" ||
echo 'gnuplot/demo/antenna.dat: original size 20577, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/demo/all.demo ==============
if test -f 'gnuplot/demo/all.demo' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/demo/all.demo (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/demo/all.demo (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/demo/all.demo' &&
#
# Executes ALL demos in this directory, in functionality order.
#
X
pause 0 "******************** file simple.demo ********************"
load "simple.demo"
X
pause 0 "******************** file controls.demo ********************"
load "controls.demo"
X
pause 0 "******************** file electron.demo ********************"
load "electron.demo"
X
pause 0 "******************** file using.demo ********************"
load "using.demo"
X
pause 0 "******************** file errorbar.demo ********************"
load "errorbar.demo"
X
pause 0 "******************** file param.demo ********************"
load "param.demo"
X
pause 0 "******************** file polar.demo ********************"
load "polar.demo"
X
pause 0 "******************** file poldat.demo ********************"
load "poldat.demo"
X
pause 0 "******************** file surface1.demo ********************"
load "surface1.demo"
X
pause 0 "******************** file surface2.demo ********************"
load "surface2.demo"
X
pause 0 "******************** file contours.demo ********************"
load "contours.demo"
X
pause 0 "******************** file world.demo ********************"
load "world.demo"
X
pause 0 "******************** file bivariat.demo ********************"
load "bivariat.demo"
SHAR_EOF
chmod 0644 gnuplot/demo/all.demo ||
echo 'restore of gnuplot/demo/all.demo failed'
Wc_c="`wc -c < 'gnuplot/demo/all.demo'`"
test 1245 -eq "$Wc_c" ||
echo 'gnuplot/demo/all.demo: original size 1245, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/demo/bivariat.demo ==============
if test -f 'gnuplot/demo/bivariat.demo' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/demo/bivariat.demo (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/demo/bivariat.demo (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/demo/bivariat.demo' &&
#
# This demo is very slow and requires unusually large stack size.
# Do not attempt to run this demo under MSDOS.
#
X
# the function integral_f(x) approximates the integral of f(x) from 0 to x.
# integral2_f(x,y) approximates the integral from x to y.
# define f(x) to be any single variable function
#
# the integral is calculated as the sum of f(x_n)*delta
# do this x/delta times (from x down to 0)
#
f(x) = exp(-x**2)
delta = 0.025
#
# integral_f(x) takes one variable, the upper limit. 0 is the lower limit.
# calculate the integral of function f(t) from 0 to x
integral_f(x) = (x>0)?integral1a(x):-integral1b(x)
integral1a(x) = (x<=0)?0:(integral1a(x-delta)+delta*f(x))
integral1b(x) = (x>=0)?0:(integral1b(x+delta)+delta*f(x))
#
# integral2_f(x,y) takes two variables; x is the lower limit, and y the upper.
# claculate the integral of function f(t) from x to y
integral2_f(x,y) = (x<y)?integral2(x,y):-integral2(y,x)
integral2(x,y) = (x>y)?0:(integral2(x+delta,y)+delta*f(x))
X
set title "approximate the integral of functions"
set samples 50
X
plot [-5:5] f(x) title "f(x)=exp(-x**2)", 2/sqrt(pi)*integral_f(x) title "erf(x)=2/sqrt(pi)*integral_f(x)"
X
pause -1 "Hit return to continue"
X
f(x)=sin(x)
X
plot [-5:5] f(x) title "f(x)=sin(x)", integral_f(x)
X
pause -1 "Hit return to continue"
X
set title "approximate the integral of functions (upper and lower limits)"
X
f(x)=(x-2)**2-20
X
plot [-10:10] f(x) title "f(x)=(x-2)**2-20", integral2_f(-5,x)
X
pause -1 "Hit return to continue"
X
f(x)=sin(x-1)-.75*sin(2*x-1)+(x**2)/8-5
X
plot [-10:10] f(x) title "f(x)=sin(x-1)-0.75*sin(2*x-1)+(x**2)/8-5", integral2_f(x,1)
X
pause -1 "Hit return to continue"
X
#
# This definition computes the ackermann. Do not attempt to compute its
# values for non integral values. In addition, do not attempt to compute
# its beyond m = 3, unless you want to wait really long time.
X
ack(m,n) = (m == 0) ? n + 1 : (n == 0) ? ack(m-1,1) : ack(m-1,ack(m,n-1))
X
set xrange [0:3]
set yrange [0:3]
X
set isosamples 4
set samples 4
X
set title "Plot of the ackermann function"
X
splot ack(x, y)
X
pause -1 "Hit return to continue"
X
set xrange [-5:5]
set yrange [-10:10]
set isosamples 10
set samples 100
set key 4,-3
set title "Min(x,y) and Max(x,y)"
X
#
min(x,y) = (x < y) ? x : y
max(x,y) = (x > y) ? x : y
X
plot sin(x), x**2, x**3, max(sin(x), min(x**2, x**3))+0.5
X
pause -1 "Hit return to continue"
X
#
# gcd(x,y) finds the greatest common divisor of x and y,
# using Euclid's algorithm
# as this is defined only for integers, first round to the nearest integer
gcd(x,y) = gcd1(rnd(max(x,y)),rnd(min(x,y)))
gcd1(x,y) = (y == 0) ? x : gcd1(y, x - x/y * y)
rnd(x) = int(x+0.5)
X
set samples 59
set xrange [1:59]
set auto
set key
X
set title "Greatest Common Divisor (for integers only)"
X
plot gcd(x, 60)
pause -1 "Hit return to continue"
X
set xrange [-10:10]
set yrange [-10:10]
set auto
set isosamples 10
set samples 100
set title ""
X
SHAR_EOF
chmod 0644 gnuplot/demo/bivariat.demo ||
echo 'restore of gnuplot/demo/bivariat.demo failed'
Wc_c="`wc -c < 'gnuplot/demo/bivariat.demo'`"
test 2915 -eq "$Wc_c" ||
echo 'gnuplot/demo/bivariat.demo: original size 2915, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/docs/Makefile ==============
if test ! -d 'gnuplot/docs'; then
echo 'x - creating directory gnuplot/docs'
mkdir 'gnuplot/docs'
fi
if test -f 'gnuplot/docs/Makefile' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/docs/Makefile (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/docs/Makefile (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/docs/Makefile' &&
# Makefile for GNUPLOT documentation
#
# Note that the top-level file for documentation is gnuplot.doc.
# See README.
#
# To print manual:
# make gnuplot.dvi (for latex)
# (print or view gnuplot.dvi)
# OR
# make gnuplot.nroff (for nroff)
# (print or view gnuplot.nroff)
# or
# make "TROFF=itroff" troff (for troff; use your troff here)
#
# $Id: Makefile,v 1.1 90/01/11 15:43:03 dfk Exp Locker: dfk $
X
# usually overridden by ../Makefile
HELPDEST = /usr/local/lib/
X
# substitute your troff command (and any flags) for this one
TROFF=troff
X
# substitute cp if you do not have the install program
INSTALL=install
X
# Compiler flags
# -DSYSV if att sys V
# -DMSDOS if MSDOS PS
# -traditional -g -O if gcc (set 'CC = gcc')
# no extra flags for BSD
CFLAGS = -s
CC = cc
X
# default is what is needed for interactive gnuplot
default: gnuplot.hlp gnuplot.gih
X
### [tn]roff documentation
troff: gnuplot.ms titlepage.ms
X tbl gnuplot.ms | eqn | $(TROFF) -ms
X
nroff gnuplot.nroff: gnuplot.ms titlepage.ms
X tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff
X
ms gnuplot.ms: doc2ms gnuplot.doc
X ./doc2ms < gnuplot.doc > gnuplot.ms
X
doc2ms: doc2ms.c
X $(CC) $(CFLAGS) -o doc2ms doc2ms.c
X
### LaTeX documentation
tex gnuplot.tex: doc2tex gnuplot.doc
X ./doc2tex < gnuplot.doc > gnuplot.tex
X
dvi gnuplot.dvi: gnuplot.tex titlepage.tex
X (latex gnuplot.tex ; latex gnuplot.tex)
X
doc2tex: doc2tex.c
X $(CC) $(CFLAGS) -o doc2tex doc2tex.c
X
# this is how to make gnuplot.hlp
hlp gnuplot.hlp: doc2hlp gnuplot.doc
X ./doc2hlp < gnuplot.doc > gnuplot.hlp
X
doc2hlp: doc2hlp.c
X $(CC) $(CFLAGS) -o doc2hlp doc2hlp.c
X
# this is how to make gnuplot.gih
gih gnuplot.gih: doc2gih gnuplot.doc
X ./doc2gih < gnuplot.doc > gnuplot.gih
X
doc2gih: doc2gih.c
X $(CC) $(CFLAGS) -o doc2gih doc2gih.c
X
# this is how to check the gnuplot.doc file
check: checkdoc gnuplot.doc
X ./checkdoc < gnuplot.doc
X
checkdoc: checkdoc.c
X $(CC) $(CFLAGS) -o checkdoc checkdoc.c
X
# For Unix and MSDOS only
install-unix: gnuplot.gih
X $(INSTALL) gnuplot.gih $(HELPDEST)
X
# for VMS only
install-vms: gnuplot.hlp
X $(INSTALL) gnuplot.hlp $(HELPDEST)
X
# remove all derived files
clean:
X rm -f doc2ms gnuplot.nroff gnuplot.ms
X rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
X rm -f doc2hlp gnuplot.hlp
X rm -f doc2gih gnuplot.gih
X rm -f checkdoc *~ *.o core a.out
SHAR_EOF
chmod 0644 gnuplot/docs/Makefile ||
echo 'restore of gnuplot/docs/Makefile failed'
Wc_c="`wc -c < 'gnuplot/docs/Makefile'`"
test 2363 -eq "$Wc_c" ||
echo 'gnuplot/docs/Makefile: original size 2363, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/docs/README ==============
if test -f 'gnuplot/docs/README' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/docs/README (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/docs/README (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/docs/README' &&
Notes on the gnuplot help files and documentation.
X
Gnuplot documentation is available in three ways:
X
1 - interactively, within gnuplot
2 - as a printed document.
3 - as a manual page, through the Unix man(1) facility
X
The first two forms describe the inner workings, and contain
equivalent information, while the third form tells how to run gnuplot.
X
The two first forms above derive their information from the file
gnuplot.doc, which is the MASTER copy of gnuplot help information. All
other forms, except for gnuplot.1, the man page, are derived from it.
X
gnuplot.doc -> gnuplot.hlp
X -> gnuplot.gih
X -> gnuplot.tex
X -> gnuplot.ms
X
On VMS the interactive help is supplied by the system help facility,
using the gnuplot.hlp file. This is made with ('make hlp'). On Unix,
AmigaDOS, and MSDOS the interactive help is built in to the program,
and uses the gnuplot.gih file ('make gih').
X
The printed document is available in either latex or troff/nroff (ms)
format, using gnuplot.tex or gnuplot.ms, derived from gnuplot.doc with
either doc2tex or doc2ms. Type 'make dvi' or 'make nroff'. For troff,
type 'make ms' and then troff -ms gnuplot.ms in whatever way you use
troff.
X
If VMS users prefer the gnuplot interactive help facility to the
system facility, this can be easily changed in command.c.
X
X
Description of the gnuplot.doc format:
--------------------------------------
X
Here is an example of the DOC master help format:
X
?
1 gnuplot
X GNUPLOT is a command-driven interactive function plotting program. It
X ...
?exit
2 exit
X 'exit', 'quit' and ...
?expressions
2 expressions
X In general, any mathematical expression accepted by C, ...
X
X Topics:
X functions operators
?expressions functions
?functions
3 functions
X The functions in GNUPLOT are ...
X
X Topics:
X abs acos arg ...
?expressions functions abs
?functions abs
?abs
4 abs
X This function returns the absolute value of its argument. The
X returned value is of the same type as the argument.
?expressions functions acos
?functions acos
?acos
4 acos
X This function returns the arc cosine (inverse cosine) of its
X argument. 'acos' returns its argument in radians.
X
X
Some notes about the format:
----------------------------
Remember that all text must be able to be processed by gnuplot, VMS,
X nroff, troff, and latex, and always do something reasonable.
The first column is reserved for control characters.
Text does not start in the first column.
Lines that start in column 2 may be typeset by LaTeX.
Lines that have a space in column 2 are to be printed in a verbatim
X environment by LaTeX.
Do NOT use tabs in the help file.
Conversion from this format to vax .hlp file involves removal of
X lines starting with [?@#$%] (see doc2hlp). VMS uses the numbers
X to represent a tree.
Conversion from this format to gnuplot .gih file involves removal of
X lines starting with [0-9@#$%] (see doc2gih). Gnuplot matches your
X help query against the ? lines to find the help information.
X Multiple ? lines for one text block constitute synonyms. The most
X specific should be first, eg 'expressions functions' before 'functions'.
X Spaces are allowed here, but should be single.
Backquote pairs are converted by the doc2tex program into boldface;
X that is, `some text` is converted to {\bf some text}. Be sure to pair
X the backquotes, or the whole document will be boldface!
X
Control characters in first column:
? used by .gih format, for builtin interactive help - keyword
0-9 used by VMS help and by doc2{tex,ms} formatters to define level,keyword
@ used by doc2{tex,ms} to define table start/end
# used by doc2tex: table entry
% used by doc2ms: table entry
SHAR_EOF
chmod 0644 gnuplot/docs/README ||
echo 'restore of gnuplot/docs/README failed'
Wc_c="`wc -c < 'gnuplot/docs/README'`"
test 3681 -eq "$Wc_c" ||
echo 'gnuplot/docs/README: original size 3681, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/docs/checkdoc.c ==============
if test -f 'gnuplot/docs/checkdoc.c' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/docs/checkdoc.c (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/docs/checkdoc.c (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/docs/checkdoc.c' &&
/*
X * checkdoc -- check a doc file for correctness of first column.
X *
X * Prints out lines that have an illegal first character.
X * First character must be space, digit, or ?, @, #, %,
X * or line must be empty.
X *
X * usage: checkdoc < docfile
X * Modified by Russell Lang from hlp2ms.c by Thomas Williams
X *
X * Original version by David Kotz used the following one line script!
X * sed -e '/^$/d' -e '/^[ 0-9?@#%]/d' gnuplot.doc
X *
X */
X
#include <stdio.h>
#include <ctype.h>
X
#define MAX_LINE_LEN 256
#define TRUE 1
#define FALSE 0
X
main()
{
X convert(stdin,stdout);
X exit(0);
}
X
convert(a,b)
X FILE *a,*b;
{
X static char line[MAX_LINE_LEN];
X
X while (fgets(line,MAX_LINE_LEN,a)) {
X process_line(line, b);
X }
}
X
process_line(line, b)
X char *line;
X FILE *b;
{
X switch(line[0]) { /* control character */
X case '?': { /* interactive help entry */
X break; /* ignore */
X }
X case '@': { /* start/end table */
X break; /* ignore */
X }
X case '#': { /* latex table entry */
X break; /* ignore */
X }
X case '%': { /* troff table entry */
X break; /* ignore */
X }
X case '\n': /* empty text line */
X case ' ': { /* normal text line */
X break;
X }
X default: {
X if (isdigit(line[0])) { /* start of section */
X /* ignore */
X } else
X fputs(line,b); /* output bad line */
X break;
X }
X }
}
X
SHAR_EOF
chmod 0666 gnuplot/docs/checkdoc.c ||
echo 'restore of gnuplot/docs/checkdoc.c failed'
Wc_c="`wc -c < 'gnuplot/docs/checkdoc.c'`"
test 1377 -eq "$Wc_c" ||
echo 'gnuplot/docs/checkdoc.c: original size 1377, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/docs/doc2gih.c ==============
if test -f 'gnuplot/docs/doc2gih.c' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/docs/doc2gih.c (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/docs/doc2gih.c (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/docs/doc2gih.c' &&
/*
X * doc2gih.c -- program to convert Gnuplot .DOC format to gnuplot
X * interactive help (.GIH) format.
X *
X * This involves stripping all lines with a leading digit or
X * a leading @, #, or %.
X * Modified by Russell Lang from hlp2ms.c by Thomas Williams
X *
X * usage: doc2gih < file.doc > file.gih
X *
X * Original version by David Kotz used the following one line script!
X * sed '/^[0-9@#%]/d' file.doc > file.gih
X */
X
#include <stdio.h>
#include <ctype.h>
X
#define MAX_LINE_LEN 256
#define TRUE 1
#define FALSE 0
X
main(argc,argv)
int argc;
char **argv;
{
FILE * infile;
FILE * outfile;
X infile = stdin;
X outfile = stdout;
X if (argc > 3) {
X fprintf(stderr,"Usage: %s infile outfile\n", argv[0]);
X exit(1);
X }
X if (argc >= 2)
X if ( (infile = fopen(argv[1],"r")) == (FILE *)NULL) {
X fprintf(stderr,"%s: Can't open %s for reading\n",
X argv[0], argv[1]);
X exit(1);
X }
X if (argc == 3)
X if ( (outfile = fopen(argv[2],"w")) == (FILE *)NULL) {
X fprintf(stderr,"%s: Can't open %s for writing\n",
X argv[0], argv[2]);
X }
X
X convert(infile,outfile);
X exit(0);
}
X
X
convert(a,b)
X FILE *a,*b;
{
X static char line[MAX_LINE_LEN];
X
X while (fgets(line,MAX_LINE_LEN,a)) {
X process_line(line, b);
X }
}
X
process_line(line, b)
X char *line;
X FILE *b;
{
X static int line_count = 0;
X
X line_count++;
X
X switch(line[0]) { /* control character */
X case '?': { /* interactive help entry */
X (void) fputs(line,b);
X break;
X }
X case '@': { /* start/end table */
X break; /* ignore */
X }
X case '#': { /* latex table entry */
X break; /* ignore */
X }
X case '%': { /* troff table entry */
X break; /* ignore */
X }
X case '\n': /* empty text line */
X case ' ': { /* normal text line */
X (void) fputs(line,b);
X break;
X }
X default: {
X if (isdigit(line[0])) { /* start of section */
X /* ignore */
X } else
X fprintf(stderr, "unknown control code '%c' in column 1, line %d\n",
X line[0], line_count);
X break;
X }
X }
}
X
SHAR_EOF
chmod 0666 gnuplot/docs/doc2gih.c ||
echo 'restore of gnuplot/docs/doc2gih.c failed'
Wc_c="`wc -c < 'gnuplot/docs/doc2gih.c'`"
test 2021 -eq "$Wc_c" ||
echo 'gnuplot/docs/doc2gih.c: original size 2021, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= gnuplot/docs/doc2hlp.c ==============
if test -f 'gnuplot/docs/doc2hlp.c' -a X"$1" != X"-c"; then
echo 'x - skipping gnuplot/docs/doc2hlp.c (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting gnuplot/docs/doc2hlp.c (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'gnuplot/docs/doc2hlp.c' &&
/*
X * doc2hlp.c -- program to convert Gnuplot .DOC format to
X * VMS help (.HLP) format.
X *
X * This involves stripping all lines with a leading ?,
X * @, #, or %.
X * Modified by Russell Lang from hlp2ms.c by Thomas Williams
X *
X * usage: doc2hlp < file.doc > file.hlp
X *
X * Original version by David Kotz used the following one line script!
X * sed '/^[?@#%]/d' file.doc > file.hlp
X */
X
#include <stdio.h>
#include <ctype.h>
X
#define MAX_LINE_LEN 256
#define TRUE 1
#define FALSE 0
X
main()
{
X convert(stdin,stdout);
X exit(0);
}
X
X
convert(a,b)
X FILE *a,*b;
{
X static char line[MAX_LINE_LEN];
X
X while (fgets(line,MAX_LINE_LEN,a)) {
X process_line(line, b);
X }
}
X
process_line(line, b)
X char *line;
X FILE *b;
{
X static int line_count = 0;
X
X line_count++;
X
X switch(line[0]) { /* control character */
X case '?': { /* interactive help entry */
X break; /* ignore */
X }
X case '@': { /* start/end table */
X break; /* ignore */
X }
X case '#': { /* latex table entry */
X break; /* ignore */
X }
X case '%': { /* troff table entry */
X break; /* ignore */
X }
X case '\n': /* empty text line */
X case ' ': { /* normal text line */
SHAR_EOF
true || echo 'restore of gnuplot/docs/doc2hlp.c failed'
fi
echo 'End of part 7'
echo 'File gnuplot/docs/doc2hlp.c is continued in part 8'
echo 8 > _shar_seq_.tmp
exit 0
exit 0 # Just in case...
--
Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
Sterling Software, IMD UUCP: uunet!sparky!kent
Phone: (402) 291-8300 FAX: (402) 291-4362
Please send comp.sources.misc-related mail to kent@uunet.uu.net.