home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: tutorial.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
100%
| dexvert
| Texinfo Document (document/texInfo)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| TeX document text
| default
| |
98%
| file
| LaTeX document, ASCII text
| default
| |
100%
| TrID
| LaTeX 2e document (with rem)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/x-matlab
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 0a 25 20 54 75 74 6f | 72 69 61 6c 20 66 6f 72 |%.% Tuto|rial for|
|00000010| 20 47 4e 55 50 4c 4f 54 | 20 70 6c 6f 74 74 69 6e | GNUPLOT| plottin|
|00000020| 67 20 70 72 6f 67 72 61 | 6d 2c 20 66 6f 72 20 4c |g progra|m, for L|
|00000030| 61 54 65 58 20 75 73 65 | 72 73 0a 25 20 44 61 76 |aTeX use|rs.% Dav|
|00000040| 69 64 20 4b 6f 74 7a 20 | 28 44 61 76 69 64 2e 4b |id Kotz |(David.K|
|00000050| 6f 74 7a 40 44 61 72 74 | 6d 6f 75 74 68 2e 65 64 |otz@Dart|mouth.ed|
|00000060| 75 29 0a 25 20 44 75 6b | 65 20 55 6e 69 76 65 72 |u).% Duk|e Univer|
|00000070| 73 69 74 79 20 43 6f 6d | 70 75 74 65 72 20 53 63 |sity Com|puter Sc|
|00000080| 69 65 6e 63 65 20 44 65 | 70 61 72 74 6d 65 6e 74 |ience De|partment|
|00000090| 0a 25 0a 25 20 4e 4f 54 | 45 3a 20 49 66 20 4c 61 |.%.% NOT|E: If La|
|000000a0| 54 65 58 20 72 75 6e 73 | 20 6f 75 74 20 6f 66 20 |TeX runs| out of |
|000000b0| 6d 65 6d 6f 72 79 20 70 | 72 6f 63 65 73 73 69 6e |memory p|rocessin|
|000000c0| 67 20 70 6c 6f 74 73 2c | 0a 25 20 61 64 64 20 60 |g plots,|.% add `|
|000000d0| 60 77 69 74 68 20 6c 69 | 6e 65 73 20 34 27 27 20 |`with li|nes 4'' |
|000000e0| 74 6f 20 65 61 63 68 20 | 63 75 72 76 65 20 69 6e |to each |curve in|
|000000f0| 20 65 67 2a 2e 70 6c 74 | 20 61 6e 64 20 72 65 72 | eg*.plt| and rer|
|00000100| 75 6e 20 6d 61 6b 65 2e | 0a 25 0a 0a 25 20 73 6f |un make.|.%..% so|
|00000110| 6d 65 20 68 65 61 64 65 | 72 20 69 6e 66 6f 0a 5c |me heade|r info.\|
|00000120| 69 6e 70 75 74 7b 68 65 | 61 64 65 72 7d 0a 0a 5c |input{he|ader}..\|
|00000130| 62 65 67 69 6e 7b 64 6f | 63 75 6d 65 6e 74 7d 0a |begin{do|cument}.|
|00000140| 0a 5c 74 69 74 6c 65 7b | 5c 4c 61 54 65 58 5c 20 |.\title{|\LaTeX\ |
|00000150| 61 6e 64 20 74 68 65 20 | 47 4e 55 50 4c 4f 54 20 |and the |GNUPLOT |
|00000160| 50 6c 6f 74 74 69 6e 67 | 0a 50 72 6f 67 72 61 6d |Plotting|.Program|
|00000170| 5c 74 68 61 6e 6b 73 7b | 54 68 69 73 20 64 6f 63 |\thanks{|This doc|
|00000180| 75 6d 65 6e 74 20 64 65 | 73 63 72 69 62 65 73 20 |ument de|scribes |
|00000190| 47 4e 55 50 4c 4f 54 20 | 76 65 72 73 69 6f 6e 20 |GNUPLOT |version |
|000001a0| 33 2e 30 2e 20 41 6c 6c | 20 70 6c 6f 74 73 0a 69 |3.0. All| plots.i|
|000001b0| 6e 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 20 |n this d|ocument |
|000001c0| 77 65 72 65 20 6d 61 64 | 65 20 77 69 74 68 20 74 |were mad|e with t|
|000001d0| 68 61 74 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 47 |hat vers|ion of G|
|000001e0| 4e 55 50 4c 4f 54 2e 7d | 20 7d 0a 5c 61 75 74 68 |NUPLOT.}| }.\auth|
|000001f0| 6f 72 7b 44 61 76 69 64 | 20 4b 6f 74 7a 20 5c 5c |or{David| Kotz \\|
|00000200| 20 5c 76 65 72 62 2b 44 | 61 76 69 64 2e 4b 6f 74 | \verb+D|avid.Kot|
|00000210| 7a 40 44 61 72 74 6d 6f | 75 74 68 2e 65 64 75 2b |z@Dartmo|uth.edu+|
|00000220| 7d 0a 5c 64 61 74 65 7b | 4a 75 6c 79 20 33 2c 20 |}.\date{|July 3, |
|00000230| 31 39 39 31 7d 0a 0a 5c | 6d 61 6b 65 74 69 74 6c |1991}..\|maketitl|
|00000240| 65 0a 0a 5c 70 61 67 65 | 73 74 79 6c 65 7b 6d 79 |e..\page|style{my|
|00000250| 68 65 61 64 69 6e 67 73 | 7d 0a 5c 6d 61 72 6b 72 |headings|}.\markr|
|00000260| 69 67 68 74 7b 47 4e 55 | 50 4c 4f 54 20 5c 4c 61 |ight{GNU|PLOT \La|
|00000270| 54 65 58 5c 20 54 75 74 | 6f 72 69 61 6c 20 56 65 |TeX\ Tut|orial Ve|
|00000280| 72 73 69 6f 6e 20 33 2e | 30 7d 0a 0a 5c 63 75 72 |rsion 3.|0}..\cur|
|00000290| 72 65 6e 74 73 70 61 63 | 65 20 25 20 64 65 66 69 |rentspac|e % defi|
|000002a0| 6e 65 64 20 69 6e 20 68 | 65 61 64 65 72 2e 74 65 |ned in h|eader.te|
|000002b0| 78 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 49 6e 74 72 |x..\sect|ion{Intr|
|000002c0| 6f 64 75 63 74 69 6f 6e | 20 61 6e 64 20 48 69 73 |oduction| and His|
|000002d0| 74 6f 72 79 7d 0a 0a 47 | 4e 55 50 4c 4f 54 20 77 |tory}..G|NUPLOT w|
|000002e0| 61 73 20 6f 72 69 67 69 | 6e 61 6c 6c 79 20 64 65 |as origi|nally de|
|000002f0| 76 65 6c 6f 70 65 64 20 | 62 79 20 43 6f 6c 69 6e |veloped |by Colin|
|00000300| 20 4b 65 6c 6c 65 79 20 | 61 6e 64 20 54 68 6f 6d | Kelley |and Thom|
|00000310| 61 73 20 57 69 6c 6c 69 | 61 6d 73 0a 69 6e 20 31 |as Willi|ams.in 1|
|00000320| 39 38 36 20 74 6f 20 70 | 6c 6f 74 20 66 75 6e 63 |986 to p|lot func|
|00000330| 74 69 6f 6e 73 20 61 6e | 64 20 64 61 74 61 20 66 |tions an|d data f|
|00000340| 69 6c 65 73 20 6f 6e 20 | 61 20 76 61 72 69 65 74 |iles on |a variet|
|00000350| 79 20 6f 66 20 74 65 72 | 6d 69 6e 61 6c 73 2e 0a |y of ter|minals..|
|00000360| 49 6e 20 31 39 38 38 20 | 61 6e 64 20 31 39 38 39 |In 1988 |and 1989|
|00000370| 20 49 20 63 72 65 61 74 | 65 64 20 61 6e 20 61 6c | I creat|ed an al|
|00000380| 74 65 72 6e 61 74 65 20 | 76 65 72 73 69 6f 6e 2c |ternate |version,|
|00000390| 20 6b 6e 6f 77 6e 20 61 | 73 20 47 6e 75 5c 54 65 | known a|s Gnu\Te|
|000003a0| 58 2c 0a 74 68 61 74 20 | 73 75 70 70 6f 72 74 65 |X,.that |supporte|
|000003b0| 64 20 61 20 6e 65 77 20 | 60 60 74 65 72 6d 69 6e |d a new |``termin|
|000003c0| 61 6c 20 74 79 70 65 27 | 27 20 63 61 6c 6c 65 64 |al type'|' called|
|000003d0| 20 7b 5c 74 74 20 6c 61 | 74 65 78 7d 2c 20 73 6f | {\tt la|tex}, so|
|000003e0| 20 67 6e 75 70 6c 6f 74 | 0a 77 6f 75 6c 64 20 6f | gnuplot|.would o|
|000003f0| 75 74 70 75 74 20 5c 4c | 61 54 65 58 5c 20 63 6f |utput \L|aTeX\ co|
|00000400| 64 65 2e 20 54 68 65 20 | 70 6c 6f 74 20 63 6f 75 |de. The |plot cou|
|00000410| 6c 64 20 74 68 65 6e 20 | 62 65 20 69 6e 63 6c 75 |ld then |be inclu|
|00000420| 64 65 64 20 69 6e 20 61 | 0a 5c 4c 61 54 65 58 5c |ded in a|.\LaTeX\|
|00000430| 20 64 6f 63 75 6d 65 6e | 74 2e 20 49 20 61 64 64 | documen|t. I add|
|00000440| 65 64 20 61 20 6e 75 6d | 62 65 72 20 6f 66 20 65 |ed a num|ber of e|
|00000450| 6d 62 65 6c 6c 69 73 68 | 6d 65 6e 74 73 2c 20 73 |mbellish|ments, s|
|00000460| 75 70 70 6f 72 74 65 64 | 20 6f 6e 6c 79 0a 62 79 |upported| only.by|
|00000470| 20 74 68 65 20 7b 5c 74 | 74 20 6c 61 74 65 78 7d | the {\t|t latex}|
|00000480| 20 74 65 72 6d 69 6e 61 | 6c 2c 20 61 6c 6c 6f 77 | termina|l, allow|
|00000490| 69 6e 67 20 74 68 65 20 | 75 73 65 72 20 74 6f 20 |ing the |user to |
|000004a0| 70 72 6f 64 75 63 65 0a | 70 75 62 6c 69 63 61 74 |produce.|publicat|
|000004b0| 69 6f 6e 2d 71 75 61 6c | 69 74 79 20 70 6c 6f 74 |ion-qual|ity plot|
|000004c0| 73 2e 0a 0a 49 6e 20 6c | 61 74 65 20 31 39 38 39 |s...In l|ate 1989|
|000004d0| 20 61 6e 64 20 65 61 72 | 6c 79 20 31 39 39 30 20 | and ear|ly 1990 |
|000004e0| 47 6e 75 5c 54 65 58 5c | 20 61 6e 64 20 61 20 6e |Gnu\TeX\| and a n|
|000004f0| 75 6d 62 65 72 20 6f 66 | 20 6f 74 68 65 72 20 47 |umber of| other G|
|00000500| 4e 55 50 4c 4f 54 0a 76 | 61 72 69 61 6e 74 73 20 |NUPLOT.v|ariants |
|00000510| 77 65 72 65 20 6d 65 72 | 67 65 64 20 74 6f 67 65 |were mer|ged toge|
|00000520| 74 68 65 72 20 69 6e 74 | 6f 20 61 20 6e 65 77 20 |ther int|o a new |
|00000530| 72 65 6c 65 61 73 65 20 | 6f 66 20 47 4e 55 50 4c |release |of GNUPL|
|00000540| 4f 54 2c 20 32 2e 30 2e | 20 54 68 69 73 0a 69 6e |OT, 2.0.| This.in|
|00000550| 63 6c 75 64 65 73 2c 20 | 61 6d 6f 6e 67 20 6d 61 |cludes, |among ma|
|00000560| 6e 79 20 6f 74 68 65 72 | 20 69 6d 70 72 6f 76 65 |ny other| improve|
|00000570| 6d 65 6e 74 73 2c 20 61 | 20 5c 4c 61 54 65 58 5c |ments, a| \LaTeX\|
|00000580| 20 64 72 69 76 65 72 20 | 64 65 72 69 76 65 64 20 | driver |derived |
|00000590| 66 72 6f 6d 0a 74 68 65 | 20 6f 6e 65 20 69 6e 20 |from.the| one in |
|000005a0| 47 6e 75 5c 54 65 58 2e | 20 46 6f 72 6d 65 72 20 |Gnu\TeX.| Former |
|000005b0| 47 6e 75 5c 54 65 58 5c | 20 75 73 65 72 73 20 61 |Gnu\TeX\| users a|
|000005c0| 72 65 20 72 65 66 65 72 | 72 65 64 20 74 6f 0a 53 |re refer|red to.S|
|000005d0| 65 63 74 69 6f 6e 7e 5c | 72 65 66 7b 6f 6c 64 75 |ection~\|ref{oldu|
|000005e0| 73 65 72 73 7d 20 66 6f | 72 20 69 6e 66 6f 72 6d |sers} fo|r inform|
|000005f0| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 61 64 61 70 |ation ab|out adap|
|00000600| 74 69 6e 67 20 74 6f 20 | 47 4e 55 50 4c 4f 54 2e |ting to |GNUPLOT.|
|00000610| 0a 41 6e 79 6f 6e 65 20 | 69 6e 74 65 72 65 73 74 |.Anyone |interest|
|00000620| 65 64 20 69 6e 20 75 73 | 69 6e 67 20 47 4e 55 50 |ed in us|ing GNUP|
|00000630| 4c 4f 54 20 77 69 74 68 | 20 5c 4c 61 54 65 58 5c |LOT with| \LaTeX\|
|00000640| 20 73 68 6f 75 6c 64 20 | 72 65 61 64 20 74 68 65 | should |read the|
|00000650| 20 6e 65 78 74 0a 73 65 | 63 74 69 6f 6e 2c 20 61 | next.se|ction, a|
|00000660| 20 74 75 74 6f 72 69 61 | 6c 2c 20 61 6e 64 20 74 | tutoria|l, and t|
|00000670| 68 65 20 70 72 69 6d 61 | 72 79 20 47 4e 55 50 4c |he prima|ry GNUPL|
|00000680| 4f 54 20 6d 61 6e 75 61 | 6c 2e 0a 0a 54 68 65 20 |OT manua|l...The |
|00000690| 72 65 61 64 65 72 20 73 | 68 6f 75 6c 64 20 6e 6f |reader s|hould no|
|000006a0| 74 65 20 74 68 61 74 20 | 74 68 65 20 5c 4c 61 54 |te that |the \LaT|
|000006b0| 65 58 5c 20 70 69 63 74 | 75 72 65 20 65 6e 76 69 |eX\ pict|ure envi|
|000006c0| 72 6f 6e 6d 65 6e 74 73 | 20 6f 75 74 70 75 74 20 |ronments| output |
|000006d0| 62 79 0a 47 4e 55 50 4c | 4f 54 20 63 61 6e 20 62 |by.GNUPL|OT can b|
|000006e0| 65 20 71 75 69 74 65 20 | 6c 61 72 67 65 20 61 6e |e quite |large an|
|000006f0| 64 20 63 6f 6d 70 6c 69 | 63 61 74 65 64 2c 20 61 |d compli|cated, a|
|00000700| 6e 64 20 63 61 6e 20 65 | 61 73 69 6c 79 20 65 78 |nd can e|asily ex|
|00000710| 63 65 65 64 20 74 68 65 | 0a 6d 65 6d 6f 72 79 20 |ceed the|.memory |
|00000720| 63 61 70 61 63 69 74 79 | 20 6f 66 20 5c 54 65 58 |capacity| of \TeX|
|00000730| 2e 20 49 66 20 61 6e 20 | 65 6e 6c 61 72 67 65 64 |. If an |enlarged|
|00000740| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 5c 54 65 58 | version| of \TeX|
|00000750| 5c 20 69 73 20 61 76 61 | 69 6c 61 62 6c 65 2c 0a |\ is ava|ilable,.|
|00000760| 69 74 20 69 73 20 77 69 | 73 65 20 74 6f 20 75 73 |it is wi|se to us|
|00000770| 65 20 69 74 2e 20 4f 74 | 68 65 72 77 69 73 65 2c |e it. Ot|herwise,|
|00000780| 20 6b 65 65 70 20 79 6f | 75 72 20 70 6c 6f 74 73 | keep yo|ur plots|
|00000790| 20 73 69 6d 70 6c 65 20 | 61 6e 64 20 61 64 64 0a | simple |and add.|
|000007a0| 5c 76 65 72 62 2b 5c 63 | 6c 65 61 72 70 61 67 65 |\verb+\c|learpage|
|000007b0| 2b 20 74 6f 20 79 6f 75 | 72 20 64 6f 63 75 6d 65 |+ to you|r docume|
|000007c0| 6e 74 20 77 68 65 72 65 | 20 6e 65 63 65 73 73 61 |nt where| necessa|
|000007d0| 72 79 2e 0a 0a 54 68 65 | 72 65 20 69 73 20 61 6c |ry...The|re is al|
|000007e0| 73 6f 20 61 20 6e 65 77 | 20 45 45 50 49 43 20 64 |so a new| EEPIC d|
|000007f0| 72 69 76 65 72 20 28 7b | 5c 74 74 20 65 65 70 69 |river ({|\tt eepi|
|00000800| 63 7d 29 2c 20 69 6e 74 | 65 6e 64 65 64 20 66 6f |c}), int|ended fo|
|00000810| 72 20 75 73 65 20 77 69 | 74 68 0a 74 68 65 20 45 |r use wi|th.the E|
|00000820| 45 50 49 43 20 6d 61 63 | 72 6f 20 70 61 63 6b 61 |EPIC mac|ro packa|
|00000830| 67 65 20 66 6f 72 20 5c | 4c 61 54 65 58 2e 20 45 |ge for \|LaTeX. E|
|00000840| 45 50 49 43 20 61 6c 6c | 6f 77 73 20 66 6f 72 20 |EPIC all|ows for |
|00000850| 6d 75 63 68 20 6d 6f 72 | 65 0a 65 66 66 69 63 69 |much mor|e.effici|
|00000860| 65 6e 74 20 6c 69 6e 65 | 2d 64 72 61 77 69 6e 67 |ent line|-drawing|
|00000870| 2c 20 72 75 6e 73 20 74 | 68 72 6f 75 67 68 20 5c |, runs t|hrough \|
|00000880| 4c 61 54 65 58 5c 20 66 | 61 73 74 65 72 2c 20 61 |LaTeX\ f|aster, a|
|00000890| 6e 64 20 75 73 65 73 20 | 6c 65 73 73 0a 6d 65 6d |nd uses |less.mem|
|000008a0| 6f 72 79 2e 20 20 53 65 | 65 20 53 65 63 74 69 6f |ory. Se|e Sectio|
|000008b0| 6e 7e 5c 72 65 66 7b 73 | 3a 65 65 70 69 63 7d 20 |n~\ref{s|:eepic} |
|000008c0| 66 6f 72 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |for more| informa|
|000008d0| 74 69 6f 6e 2e 0a 0a 54 | 68 65 72 65 20 69 73 20 |tion...T|here is |
|000008e0| 61 20 73 6d 61 6c 6c 20 | 70 61 63 6b 61 67 65 20 |a small |package |
|000008f0| 6f 66 20 61 75 78 69 6c | 69 61 72 79 20 66 69 6c |of auxil|iary fil|
|00000900| 65 73 20 28 6d 61 6b 65 | 66 69 6c 65 73 20 61 6e |es (make|files an|
|00000910| 64 20 73 63 72 69 70 74 | 73 29 0a 74 68 61 74 20 |d script|s).that |
|00000920| 49 20 66 69 6e 64 20 75 | 73 65 66 75 6c 20 66 6f |I find u|seful fo|
|00000930| 72 20 6d 61 6b 69 6e 67 | 20 5c 4c 61 54 65 58 5c |r making| \LaTeX\|
|00000940| 20 70 6c 6f 74 73 20 77 | 69 74 68 20 47 4e 55 50 | plots w|ith GNUP|
|00000950| 4c 4f 54 2e 20 54 68 69 | 73 20 69 73 0a 61 76 61 |LOT. Thi|s is.ava|
|00000960| 69 6c 61 62 6c 65 20 66 | 6f 72 20 5c 76 65 72 62 |ilable f|or \verb|
|00000970| 2b 66 74 70 2b 20 61 73 | 20 5c 76 65 72 62 2b 70 |+ftp+ as| \verb+p|
|00000980| 75 62 2f 67 6e 75 70 6c | 6f 74 2d 6c 61 74 65 78 |ub/gnupl|ot-latex|
|00000990| 2e 73 68 61 72 2b 20 66 | 72 6f 6d 0a 5c 76 65 72 |.shar+ f|rom.\ver|
|000009a0| 62 2b 63 73 2e 64 75 6b | 65 2e 65 64 75 2b 2e 20 |b+cs.duk|e.edu+. |
|000009b0| 49 20 63 61 6e 20 6d 61 | 69 6c 20 63 6f 70 69 65 |I can ma|il copie|
|000009c0| 73 20 28 73 65 65 20 74 | 68 65 20 65 6e 64 20 6f |s (see t|he end o|
|000009d0| 66 20 74 68 69 73 20 70 | 61 70 65 72 20 66 6f 72 |f this p|aper for|
|000009e0| 0a 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 29 2e 0a 0a |.informa|tion)...|
|000009f0| 5c 73 65 63 74 69 6f 6e | 7b 55 73 69 6e 67 20 47 |\section|{Using G|
|00000a00| 4e 55 50 4c 4f 54 20 66 | 6f 72 20 5c 4c 61 54 65 |NUPLOT f|or \LaTe|
|00000a10| 58 3a 20 61 20 54 75 74 | 6f 72 69 61 6c 7d 0a 0a |X: a Tut|orial}..|
|00000a20| 47 4e 55 50 4c 4f 54 20 | 69 73 20 62 79 20 6e 61 |GNUPLOT |is by na|
|00000a30| 74 75 72 65 20 61 6e 20 | 69 6e 74 65 72 61 63 74 |ture an |interact|
|00000a40| 69 76 65 20 70 72 6f 67 | 72 61 6d 2e 20 55 73 65 |ive prog|ram. Use|
|00000a50| 72 73 20 6d 61 6b 69 6e | 67 20 70 6c 6f 74 73 20 |rs makin|g plots |
|00000a60| 66 6f 72 0a 5c 4c 61 54 | 65 58 5c 20 77 69 6c 6c |for.\LaT|eX\ will|
|00000a70| 20 67 65 6e 65 72 61 6c | 6c 79 20 6e 6f 74 20 75 | general|ly not u|
|00000a80| 73 65 20 47 4e 55 50 4c | 4f 54 20 69 6e 74 65 72 |se GNUPL|OT inter|
|00000a90| 61 63 74 69 76 65 6c 79 | 2e 20 20 57 68 65 6e 65 |actively|. Whene|
|00000aa0| 76 65 72 20 68 61 72 64 | 0a 63 6f 70 79 20 69 73 |ver hard|.copy is|
|00000ab0| 20 64 65 73 69 72 65 64 | 20 66 72 6f 6d 20 47 4e | desired| from GN|
|00000ac0| 55 50 4c 4f 54 2c 20 74 | 68 65 20 70 72 6f 67 72 |UPLOT, t|he progr|
|00000ad0| 61 6d 20 6e 65 65 64 20 | 6e 6f 74 20 62 65 20 72 |am need |not be r|
|00000ae0| 75 6e 20 6f 6e 20 61 0a | 67 72 61 70 68 69 63 73 |un on a.|graphics|
|00000af0| 20 74 65 72 6d 69 6e 61 | 6c 2e 20 49 6e 20 74 68 | termina|l. In th|
|00000b00| 69 73 20 63 61 73 65 20 | 74 68 65 20 6f 75 74 70 |is case |the outp|
|00000b10| 75 74 20 69 73 20 64 69 | 72 65 63 74 65 64 20 74 |ut is di|rected t|
|00000b20| 6f 20 61 20 66 69 6c 65 | 20 6f 72 0a 70 69 70 65 |o a file| or.pipe|
|00000b30| 2c 20 74 68 65 6e 20 73 | 65 6e 74 20 74 6f 20 74 |, then s|ent to t|
|00000b40| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 6f |he appro|priate o|
|00000b50| 75 74 70 75 74 20 64 65 | 76 69 63 65 2e 20 46 6f |utput de|vice. Fo|
|00000b60| 72 20 65 78 61 6d 70 6c | 65 2c 20 6f 75 74 70 75 |r exampl|e, outpu|
|00000b70| 74 0a 66 72 6f 6d 20 74 | 68 65 20 74 65 72 6d 69 |t.from t|he termi|
|00000b80| 6e 61 6c 20 74 79 70 65 | 20 7b 5c 74 74 20 75 6e |nal type| {\tt un|
|00000b90| 69 78 70 6c 6f 74 7d 20 | 6d 61 79 20 62 65 20 73 |ixplot} |may be s|
|00000ba0| 65 6e 74 20 74 6f 20 61 | 20 70 72 6f 67 72 61 6d |ent to a| program|
|00000bb0| 0a 69 6e 74 65 72 70 72 | 65 74 69 6e 67 20 74 68 |.interpr|eting th|
|00000bc0| 65 20 55 6e 69 78 20 70 | 6c 6f 74 74 69 6e 67 20 |e Unix p|lotting |
|00000bd0| 73 74 61 6e 64 61 72 64 | 2e 20 54 68 65 20 74 65 |standard|. The te|
|00000be0| 72 6d 69 6e 61 6c 20 74 | 79 70 65 73 20 7b 5c 74 |rminal t|ypes {\t|
|00000bf0| 74 0a 69 6d 61 67 65 6e | 7d 20 61 6e 64 20 7b 5c |t.imagen|} and {\|
|00000c00| 74 74 20 70 6f 73 74 73 | 63 72 69 70 74 7d 20 6d |tt posts|cript} m|
|00000c10| 61 79 20 62 65 20 75 73 | 65 64 20 66 6f 72 20 6f |ay be us|ed for o|
|00000c20| 75 74 70 75 74 20 74 6f | 20 70 72 69 6e 74 65 72 |utput to| printer|
|00000c30| 73 0a 75 6e 64 65 72 73 | 74 61 6e 64 69 6e 67 20 |s.unders|tanding |
|00000c40| 74 68 6f 73 65 20 6c 61 | 6e 67 75 61 67 65 73 2e |those la|nguages.|
|00000c50| 20 28 41 20 73 68 65 6c | 6c 20 73 63 72 69 70 74 | (A shel|l script|
|00000c60| 20 28 7b 5c 74 74 20 6c | 61 73 65 72 67 6e 75 7d | ({\tt l|asergnu}|
|00000c70| 29 20 69 73 0a 73 75 70 | 70 6c 69 65 64 20 77 69 |) is.sup|plied wi|
|00000c80| 74 68 20 74 68 65 20 64 | 69 73 74 72 69 62 75 74 |th the d|istribut|
|00000c90| 69 6f 6e 20 74 68 61 74 | 20 77 69 6c 6c 20 61 63 |ion that| will ac|
|00000ca0| 63 65 70 74 20 61 20 47 | 4e 55 50 4c 4f 54 20 63 |cept a G|NUPLOT c|
|00000cb0| 6f 6d 6d 61 6e 64 20 6f | 72 0a 69 6e 70 75 74 20 |ommand o|r.input |
|00000cc0| 66 69 6c 65 20 61 6e 64 | 20 73 65 6e 64 20 74 68 |file and| send th|
|00000cd0| 65 20 6f 75 74 70 75 74 | 20 74 6f 20 61 6e 20 49 |e output| to an I|
|00000ce0| 6d 61 67 65 6e 20 6f 72 | 20 50 6f 73 74 73 63 72 |magen or| Postscr|
|00000cf0| 69 70 74 20 6c 61 73 65 | 72 0a 70 72 69 6e 74 65 |ipt lase|r.printe|
|00000d00| 72 2e 20 54 68 69 73 20 | 73 63 72 69 70 74 20 6d |r. This |script m|
|00000d10| 61 79 20 68 61 76 65 20 | 62 65 65 6e 20 61 64 61 |ay have |been ada|
|00000d20| 70 74 65 64 20 74 6f 20 | 79 6f 75 72 20 73 69 74 |pted to |your sit|
|00000d30| 65 2e 29 20 54 68 65 20 | 74 65 72 6d 69 6e 61 6c |e.) The |terminal|
|00000d40| 0a 74 79 70 65 20 7b 5c | 74 74 20 66 69 67 7d 20 |.type {\|tt fig} |
|00000d50| 6f 75 74 70 75 74 73 20 | 46 49 47 20 63 6f 64 65 |outputs |FIG code|
|00000d60| 20 74 68 61 74 20 63 61 | 6e 20 62 65 20 72 65 61 | that ca|n be rea|
|00000d70| 64 20 62 79 20 74 68 65 | 20 46 69 67 20 67 72 61 |d by the| Fig gra|
|00000d80| 70 68 69 63 73 0a 70 72 | 6f 67 72 61 6d 20 61 6e |phics.pr|ogram an|
|00000d90| 64 20 74 72 61 6e 73 6c | 61 74 65 64 20 69 6e 74 |d transl|ated int|
|00000da0| 6f 20 66 6f 72 6d 73 20 | 75 73 61 62 6c 65 20 69 |o forms |usable i|
|00000db0| 6e 20 62 6f 74 68 20 5c | 54 65 58 5c 20 61 6e 64 |n both \|TeX\ and|
|00000dc0| 0a 5c 4c 61 54 65 58 5c | 20 64 6f 63 75 6d 65 6e |.\LaTeX\| documen|
|00000dd0| 74 73 2e 0a 0a 57 65 20 | 6e 6f 77 20 69 67 6e 6f |ts...We |now igno|
|00000de0| 72 65 20 74 68 65 20 69 | 6e 74 65 72 61 63 74 69 |re the i|nteracti|
|00000df0| 76 65 20 6e 61 74 75 72 | 65 20 6f 66 20 47 4e 55 |ve natur|e of GNU|
|00000e00| 50 4c 4f 54 20 61 6e 64 | 20 70 72 6f 76 69 64 65 |PLOT and| provide|
|00000e10| 20 74 68 65 20 69 6e 70 | 75 74 0a 74 6f 20 47 4e | the inp|ut.to GN|
|00000e20| 55 50 4c 4f 54 20 66 72 | 6f 6d 20 61 20 66 69 6c |UPLOT fr|om a fil|
|00000e30| 65 2c 20 5c 69 65 2c 0a | 5c 62 65 67 69 6e 7b 76 |e, \ie,.|\begin{v|
|00000e40| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 20 20 67 |erbatim}|. g|
|00000e50| 6e 75 70 6c 6f 74 20 67 | 6e 75 2e 69 6e 70 75 74 |nuplot g|nu.input|
|00000e60| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00000e70| 49 6e 20 74 68 69 73 20 | 65 78 61 6d 70 6c 65 2c |In this |example,|
|00000e80| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d | all of |the comm|
|00000e90| 61 6e 64 73 20 74 6f 20 | 47 4e 55 50 4c 4f 54 20 |ands to |GNUPLOT |
|00000ea0| 61 72 65 20 63 6f 6e 74 | 61 69 6e 65 64 20 69 6e |are cont|ained in|
|00000eb0| 20 74 68 65 0a 66 69 6c | 65 20 7b 5c 74 74 20 67 | the.fil|e {\tt g|
|00000ec0| 6e 75 2e 69 6e 70 75 74 | 7d 2e 20 4d 75 6c 74 69 |nu.input|}. Multi|
|00000ed0| 70 6c 65 20 66 69 6c 65 | 6e 61 6d 65 73 20 6d 61 |ple file|names ma|
|00000ee0| 79 20 62 65 20 73 75 70 | 70 6c 69 65 64 20 74 6f |y be sup|plied to|
|00000ef0| 20 47 4e 55 50 4c 4f 54 | 0a 74 68 69 73 20 77 61 | GNUPLOT|.this wa|
|00000f00| 79 2c 20 72 65 61 64 20 | 69 6e 20 74 68 65 20 6f |y, read |in the o|
|00000f10| 72 64 65 72 20 74 68 65 | 79 20 61 72 65 20 67 69 |rder the|y are gi|
|00000f20| 76 65 6e 2e 20 20 54 68 | 65 20 6f 75 74 70 75 74 |ven. Th|e output|
|00000f30| 20 28 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 0a 70 6c | (one or| more.pl|
|00000f40| 6f 74 73 29 20 6d 61 79 | 20 62 65 20 70 69 70 65 |ots) may| be pipe|
|00000f50| 64 20 74 6f 20 61 6e 6f | 74 68 65 72 20 70 72 6f |d to ano|ther pro|
|00000f60| 67 72 61 6d 20 6f 72 20 | 72 65 64 69 72 65 63 74 |gram or |redirect|
|00000f70| 65 64 20 74 6f 20 61 20 | 66 69 6c 65 2e 0a 55 73 |ed to a |file..Us|
|00000f80| 75 61 6c 6c 79 2c 20 68 | 6f 77 65 76 65 72 2c 20 |ually, h|owever, |
|00000f90| 77 65 20 64 69 72 65 63 | 74 20 74 68 65 20 6f 75 |we direc|t the ou|
|00000fa0| 74 70 75 74 20 65 78 70 | 6c 69 63 69 74 6c 79 20 |tput exp|licitly |
|00000fb0| 77 69 74 68 20 61 6e 20 | 69 6e 73 74 72 75 63 74 |with an |instruct|
|00000fc0| 69 6f 6e 0a 74 6f 20 47 | 4e 55 50 4c 4f 54 20 28 |ion.to G|NUPLOT (|
|00000fd0| 74 68 65 20 7b 5c 74 74 | 20 73 65 74 20 6f 75 74 |the {\tt| set out|
|00000fe0| 70 75 74 7d 20 63 6f 6d | 6d 61 6e 64 29 2e 20 47 |put} com|mand). G|
|00000ff0| 4e 55 50 4c 4f 54 20 63 | 6f 6e 74 69 6e 75 65 73 |NUPLOT c|ontinues|
|00001000| 20 74 6f 20 70 72 69 6e | 74 0a 65 72 72 6f 72 20 | to prin|t.error |
|00001010| 6d 65 73 73 61 67 65 73 | 20 74 6f 20 74 68 65 20 |messages| to the |
|00001020| 74 65 72 6d 69 6e 61 6c | 20 28 73 74 64 65 72 72 |terminal| (stderr|
|00001030| 29 2e 0a 0a 5c 70 61 72 | 61 67 72 61 70 68 7b 45 |)...\par|agraph{E|
|00001040| 78 61 6d 70 6c 65 20 31 | 3a 7d 20 48 65 72 65 20 |xample 1|:} Here |
|00001050| 69 73 20 61 20 66 69 72 | 73 74 20 65 78 61 6d 70 |is a fir|st examp|
|00001060| 6c 65 2c 20 70 72 6f 64 | 75 63 69 6e 67 20 61 20 |le, prod|ucing a |
|00001070| 70 6c 6f 74 20 66 6f 72 | 0a 74 68 69 73 20 64 6f |plot for|.this do|
|00001080| 63 75 6d 65 6e 74 2e 20 | 54 68 65 20 47 4e 55 50 |cument. |The GNUP|
|00001090| 4c 4f 54 20 69 6e 70 75 | 74 20 66 69 6c 65 20 69 |LOT inpu|t file i|
|000010a0| 73 20 67 69 76 65 6e 20 | 62 65 6c 6f 77 2c 20 61 |s given |below, a|
|000010b0| 6e 64 20 74 68 65 20 6f | 75 74 70 75 74 0a 61 70 |nd the o|utput.ap|
|000010c0| 70 65 61 72 73 20 61 73 | 20 46 69 67 75 72 65 7e |pears as| Figure~|
|000010d0| 5c 72 65 66 7b 65 67 31 | 7d 2e 20 54 68 65 20 69 |\ref{eg1|}. The i|
|000010e0| 6e 70 75 74 20 66 69 6c | 65 20 64 65 66 69 6e 65 |nput fil|e define|
|000010f0| 73 20 74 68 65 20 6f 75 | 74 70 75 74 20 74 6f 20 |s the ou|tput to |
|00001100| 62 65 0a 69 6e 20 5c 4c | 61 54 65 58 2c 20 67 69 |be.in \L|aTeX, gi|
|00001110| 76 65 73 20 61 20 66 69 | 6c 65 20 6e 61 6d 65 20 |ves a fi|le name |
|00001120| 66 6f 72 20 74 68 65 20 | 6f 75 74 70 75 74 2c 20 |for the |output, |
|00001130| 61 6e 64 20 70 6c 6f 74 | 73 20 24 79 3d 73 69 6e |and plot|s $y=sin|
|00001140| 28 78 29 24 20 66 6f 72 | 0a 24 78 24 20 6f 6e 20 |(x)$ for|.$x$ on |
|00001150| 24 5b 2d 5c 70 69 2c 5c | 70 69 5d 24 2e 20 54 6f |$[-\pi,\|pi]$. To|
|00001160| 20 70 72 6f 64 75 63 65 | 20 74 68 65 20 66 69 67 | produce| the fig|
|00001170| 75 72 65 2c 20 49 20 73 | 69 6d 70 6c 79 0a 5c 76 |ure, I s|imply.\v|
|00001180| 65 72 62 2b 5c 69 6e 70 | 75 74 7b 65 67 31 7d 2b |erb+\inp|ut{eg1}+|
|00001190| 20 69 6e 20 61 20 7b 5c | 74 74 20 63 65 6e 74 65 | in a {\|tt cente|
|000011a0| 72 7d 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 69 |r} envir|onment i|
|000011b0| 6e 20 61 20 7b 5c 74 74 | 20 66 69 67 75 72 65 7d |n a {\tt| figure}|
|000011c0| 0a 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2e 20 49 6e |.environ|ment. In|
|000011d0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 65 78 61 6d 70 | followi|ng examp|
|000011e0| 6c 65 73 2c 20 49 20 77 | 69 6c 6c 20 65 6e 63 6c |les, I w|ill encl|
|000011f0| 6f 73 65 20 74 68 65 20 | 66 69 67 75 72 65 20 69 |ose the |figure i|
|00001200| 6e 20 61 20 62 6f 78 0a | 74 6f 20 6d 61 6b 65 20 |n a box.|to make |
|00001210| 69 74 20 6c 6f 6f 6b 20 | 61 20 6c 69 74 74 6c 65 |it look |a little|
|00001220| 20 62 65 74 74 65 72 2e | 0a 0a 5c 73 69 6e 67 6c | better.|..\singl|
|00001230| 65 73 70 61 63 65 0a 5c | 62 65 67 69 6e 7b 76 65 |espace.\|begin{ve|
|00001240| 72 62 61 74 69 6d 7d 0a | 20 20 20 20 73 65 74 20 |rbatim}.| set |
|00001250| 74 65 72 6d 69 6e 61 6c | 20 6c 61 74 65 78 0a 20 |terminal| latex. |
|00001260| 20 20 20 73 65 74 20 6f | 75 74 70 75 74 20 22 65 | set o|utput "e|
|00001270| 67 31 2e 74 65 78 22 0a | 20 20 20 20 70 6c 6f 74 |g1.tex".| plot|
|00001280| 20 5b 2d 33 2e 31 34 3a | 33 2e 31 34 5d 20 73 69 | [-3.14:|3.14] si|
|00001290| 6e 28 78 29 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |n(x).\en|d{verbat|
|000012a0| 69 6d 7d 0a 5c 63 75 72 | 72 65 6e 74 73 70 61 63 |im}.\cur|rentspac|
|000012b0| 65 0a 0a 5c 62 65 67 69 | 6e 7b 66 69 67 75 72 65 |e..\begi|n{figure|
|000012c0| 7d 5b 68 74 62 70 5d 0a | 20 20 5c 62 65 67 69 6e |}[htbp].| \begin|
|000012d0| 7b 63 65 6e 74 65 72 7d | 0a 20 20 20 20 5c 69 6e |{center}|. \in|
|000012e0| 70 75 74 7b 65 67 31 7d | 0a 20 20 5c 65 6e 64 7b |put{eg1}|. \end{|
|000012f0| 63 65 6e 74 65 72 7d 0a | 20 20 5c 63 61 70 74 69 |center}.| \capti|
|00001300| 6f 6e 7b 41 20 66 69 72 | 73 74 20 65 78 61 6d 70 |on{A fir|st examp|
|00001310| 6c 65 3a 20 24 79 3d 73 | 69 6e 28 78 29 24 7d 0a |le: $y=s|in(x)$}.|
|00001320| 20 20 5c 6c 61 62 65 6c | 7b 65 67 31 7d 0a 5c 65 | \label|{eg1}.\e|
|00001330| 6e 64 7b 66 69 67 75 72 | 65 7d 0a 0a 4e 6f 74 65 |nd{figur|e}..Note|
|00001340| 20 74 68 61 74 20 47 4e | 55 50 4c 4f 54 20 68 61 | that GN|UPLOT ha|
|00001350| 73 20 64 72 61 77 6e 20 | 69 6e 20 74 68 65 20 61 |s drawn |in the a|
|00001360| 78 65 73 2c 20 6c 61 62 | 65 6c 65 64 20 74 68 65 |xes, lab|eled the|
|00001370| 20 74 69 63 20 6d 61 72 | 6b 73 20 66 6f 72 20 75 | tic mar|ks for u|
|00001380| 73 2c 0a 73 63 61 6c 65 | 64 20 74 68 65 20 24 79 |s,.scale|d the $y|
|00001390| 24 20 61 78 69 73 20 61 | 75 74 6f 6d 61 74 69 63 |$ axis a|utomatic|
|000013a0| 61 6c 6c 79 2c 20 61 6e | 64 20 61 64 64 65 64 20 |ally, an|d added |
|000013b0| 61 20 6b 65 79 20 69 6e | 20 74 68 65 0a 75 70 70 |a key in| the.upp|
|000013c0| 65 72 2d 72 69 67 68 74 | 2d 68 61 6e 64 20 63 6f |er-right|-hand co|
|000013d0| 72 6e 65 72 20 28 74 68 | 69 73 20 6d 61 79 20 62 |rner (th|is may b|
|000013e0| 65 20 6d 6f 76 65 64 20 | 77 69 74 68 20 74 68 65 |e moved |with the|
|000013f0| 20 7b 5c 74 74 20 73 65 | 74 20 6b 65 79 7d 0a 63 | {\tt se|t key}.c|
|00001400| 6f 6d 6d 61 6e 64 2c 20 | 61 6e 64 20 72 65 6d 6f |ommand, |and remo|
|00001410| 76 65 64 20 77 69 74 68 | 20 7b 5c 74 74 20 73 65 |ved with| {\tt se|
|00001420| 74 20 6e 6f 6b 65 79 7d | 29 2e 0a 0a 54 68 69 73 |t nokey}|)...This|
|00001430| 20 69 73 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 | is the |default |
|00001440| 6c 69 6e 65 20 73 74 79 | 6c 65 20 66 6f 72 20 74 |line sty|le for t|
|00001450| 68 65 20 5c 4c 61 54 65 | 58 5c 20 64 72 69 76 65 |he \LaTe|X\ drive|
|00001460| 72 2e 20 20 42 65 63 61 | 75 73 65 20 6f 66 20 74 |r. Beca|use of t|
|00001470| 68 65 0a 6c 69 6d 69 74 | 65 64 20 70 69 63 74 75 |he.limit|ed pictu|
|00001480| 72 65 20 63 61 70 61 62 | 69 6c 69 74 69 65 73 20 |re capab|ilities |
|00001490| 6f 66 20 5c 4c 61 54 65 | 58 2c 20 6d 61 6e 79 20 |of \LaTe|X, many |
|000014a0| 64 6f 74 73 20 61 72 65 | 20 72 65 71 75 69 72 65 |dots are| require|
|000014b0| 64 20 74 6f 0a 61 70 70 | 72 6f 78 69 6d 61 74 65 |d to.app|roximate|
|000014c0| 20 64 72 61 77 69 6e 67 | 20 61 20 73 6f 6c 69 64 | drawing| a solid|
|000014d0| 20 6c 69 6e 65 2e 20 54 | 68 69 73 20 6d 61 79 20 | line. T|his may |
|000014e0| 6f 76 65 72 6c 6f 61 64 | 20 74 68 65 20 6d 65 6d |overload| the mem|
|000014f0| 6f 72 79 20 6f 66 20 6d | 61 6e 79 0a 5c 54 65 58 |ory of m|any.\TeX|
|00001500| 5c 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |\ implem|entation|
|00001510| 73 2e 20 54 68 65 72 65 | 20 61 72 65 20 6f 74 68 |s. There| are oth|
|00001520| 65 72 20 6c 69 6e 65 20 | 74 79 70 65 73 20 61 76 |er line |types av|
|00001530| 61 69 6c 61 62 6c 65 20 | 74 68 61 74 20 64 72 61 |ailable |that dra|
|00001540| 77 0a 64 6f 74 74 65 64 | 20 6c 69 6e 65 73 20 61 |w.dotted| lines a|
|00001550| 6e 64 20 75 73 65 20 6d | 75 63 68 20 6c 65 73 73 |nd use m|uch less|
|00001560| 20 6d 65 6d 6f 72 79 2e | 20 54 68 65 20 45 45 50 | memory.| The EEP|
|00001570| 49 43 20 64 72 69 76 65 | 72 20 64 72 61 77 73 20 |IC drive|r draws |
|00001580| 73 6f 6c 69 64 0a 6c 69 | 6e 65 73 20 77 69 74 68 |solid.li|nes with|
|00001590| 20 6d 75 63 68 20 6c 65 | 73 73 20 6d 65 6d 6f 72 | much le|ss memor|
|000015a0| 79 20 75 73 61 67 65 2e | 0a 0a 5c 70 61 72 61 67 |y usage.|..\parag|
|000015b0| 72 61 70 68 7b 45 78 61 | 6d 70 6c 65 20 32 3a 7d |raph{Exa|mple 2:}|
|000015c0| 20 4e 6f 77 20 77 65 20 | 77 69 6c 6c 20 65 6d 62 | Now we |will emb|
|000015d0| 65 6c 6c 69 73 68 20 74 | 68 65 20 70 6c 6f 74 20 |ellish t|he plot |
|000015e0| 61 20 6c 69 74 74 6c 65 | 20 77 69 74 68 0a 73 6f |a little| with.so|
|000015f0| 6d 65 20 6c 61 62 65 6c | 73 2e 20 20 54 68 69 73 |me label|s. This|
|00001600| 20 69 6e 70 75 74 20 66 | 69 6c 65 20 70 72 6f 64 | input f|ile prod|
|00001610| 75 63 65 73 20 46 69 67 | 75 72 65 7e 5c 72 65 66 |uces Fig|ure~\ref|
|00001620| 7b 65 67 32 7d 2e 0a 0a | 5c 73 69 6e 67 6c 65 73 |{eg2}...|\singles|
|00001630| 70 61 63 65 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |pace.\be|gin{verb|
|00001640| 61 74 69 6d 7d 0a 20 20 | 20 20 73 65 74 20 74 65 |atim}. | set te|
|00001650| 72 6d 69 6e 61 6c 20 6c | 61 74 65 78 0a 20 20 20 |rminal l|atex. |
|00001660| 20 73 65 74 20 6f 75 74 | 70 75 74 20 22 65 67 32 | set out|put "eg2|
|00001670| 2e 74 65 78 22 0a 20 20 | 20 20 73 65 74 20 73 69 |.tex". | set si|
|00001680| 7a 65 20 35 2f 35 2e 2c | 20 34 2f 33 2e 0a 20 20 |ze 5/5.,| 4/3.. |
|00001690| 20 20 73 65 74 20 66 6f | 72 6d 61 74 20 78 79 20 | set fo|rmat xy |
|000016a0| 22 24 25 67 24 22 0a 20 | 20 20 20 73 65 74 20 74 |"$%g$". | set t|
|000016b0| 69 74 6c 65 20 22 54 68 | 69 73 20 69 73 20 61 20 |itle "Th|is is a |
|000016c0| 70 6c 6f 74 20 6f 66 20 | 24 79 3d 73 69 6e 28 78 |plot of |$y=sin(x|
|000016d0| 29 24 22 0a 20 20 20 20 | 73 65 74 20 78 6c 61 62 |)$". |set xlab|
|000016e0| 65 6c 20 22 54 68 69 73 | 20 69 73 20 74 68 65 20 |el "This| is the |
|000016f0| 24 78 24 20 61 78 69 73 | 22 0a 20 20 20 20 73 65 |$x$ axis|". se|
|00001700| 74 20 79 6c 61 62 65 6c | 20 22 54 68 69 73 20 69 |t ylabel| "This i|
|00001710| 73 5c 5c 74 68 65 5c 5c | 24 79 24 20 61 78 69 73 |s\\the\\|$y$ axis|
|00001720| 22 0a 20 20 20 20 70 6c | 6f 74 20 5b 30 3a 36 2e |". pl|ot [0:6.|
|00001730| 32 38 5d 20 5b 30 3a 31 | 5d 20 73 69 6e 28 78 29 |28] [0:1|] sin(x)|
|00001740| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00001750| 5c 63 75 72 72 65 6e 74 | 73 70 61 63 65 0a 0a 5c |\current|space..\|
|00001760| 62 6f 78 66 69 67 75 72 | 65 7b 68 74 62 70 7d 7b |boxfigur|e{htbp}{|
|00001770| 5c 66 75 6c 6c 62 6f 78 | 77 69 64 74 68 7d 7b 0a |\fullbox|width}{.|
|00001780| 20 20 5c 62 65 67 69 6e | 7b 63 65 6e 74 65 72 7d | \begin|{center}|
|00001790| 0a 20 20 20 20 5c 69 6e | 70 75 74 7b 65 67 32 7d |. \in|put{eg2}|
|000017a0| 0a 20 20 5c 65 6e 64 7b | 63 65 6e 74 65 72 7d 0a |. \end{|center}.|
|000017b0| 20 20 5c 63 61 70 74 69 | 6f 6e 7b 41 20 6d 6f 72 | \capti|on{A mor|
|000017c0| 65 20 66 61 6e 63 79 20 | 65 78 61 6d 70 6c 65 2e |e fancy |example.|
|000017d0| 7d 0a 20 20 5c 6c 61 62 | 65 6c 7b 65 67 32 7d 0a |}. \lab|el{eg2}.|
|000017e0| 7d 0a 0a 57 65 20 68 61 | 76 65 20 73 70 65 63 69 |}..We ha|ve speci|
|000017f0| 66 69 65 64 20 74 68 65 | 20 70 6c 6f 74 20 74 6f |fied the| plot to|
|00001800| 20 62 65 20 35 20 69 6e | 63 68 65 73 20 77 69 64 | be 5 in|ches wid|
|00001810| 65 20 61 6e 64 20 34 20 | 69 6e 63 68 65 73 20 74 |e and 4 |inches t|
|00001820| 61 6c 6c 20 77 69 74 68 | 0a 74 68 65 20 7b 5c 74 |all with|.the {\t|
|00001830| 74 20 73 65 74 20 73 69 | 7a 65 7d 20 63 6f 6d 6d |t set si|ze} comm|
|00001840| 61 6e 64 2e 20 54 68 69 | 73 20 69 73 20 74 68 65 |and. Thi|s is the|
|00001850| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 61 72 65 | size of| the are|
|00001860| 61 20 75 73 65 64 20 62 | 79 20 74 68 65 0a 70 6c |a used b|y the.pl|
|00001870| 6f 74 2c 20 7b 5c 65 6d | 20 69 6e 63 6c 75 64 69 |ot, {\em| includi|
|00001880| 6e 67 7d 20 73 70 61 63 | 65 20 66 6f 72 20 74 68 |ng} spac|e for th|
|00001890| 65 20 6c 61 62 65 6c 73 | 2e 20 20 49 6e 20 74 68 |e labels|. In th|
|000018a0| 65 20 66 69 72 73 74 20 | 65 78 61 6d 70 6c 65 2c |e first |example,|
|000018b0| 0a 74 68 69 73 20 73 69 | 7a 65 20 77 61 73 20 74 |.this si|ze was t|
|000018c0| 68 65 20 64 65 66 61 75 | 6c 74 20 35 20 69 6e 63 |he defau|lt 5 inc|
|000018d0| 68 65 73 20 62 79 20 33 | 20 69 6e 63 68 65 73 2e |hes by 3| inches.|
|000018e0| 20 42 79 20 73 70 65 63 | 69 66 79 69 6e 67 20 74 | By spec|ifying t|
|000018f0| 68 65 0a 73 63 61 6c 69 | 6e 67 20 66 61 63 74 6f |he.scali|ng facto|
|00001900| 72 73 20 6f 66 20 31 20 | 28 6f 72 20 35 2f 35 29 |rs of 1 |(or 5/5)|
|00001910| 20 61 6e 64 20 31 2e 33 | 33 33 33 20 28 6f 72 20 | and 1.3|333 (or |
|00001920| 34 2f 33 29 2c 20 77 65 | 20 6f 62 74 61 69 6e 20 |4/3), we| obtain |
|00001930| 74 68 65 0a 64 65 73 69 | 72 65 64 20 70 6c 6f 74 |the.desi|red plot|
|00001940| 20 73 69 7a 65 2e 0a 0a | 57 65 20 68 61 76 65 20 | size...|We have |
|00001950| 72 65 71 75 65 73 74 65 | 64 20 74 68 61 74 20 74 |requeste|d that t|
|00001960| 68 65 20 66 6f 72 6d 61 | 74 20 75 73 65 64 20 62 |he forma|t used b|
|00001970| 79 20 74 68 65 20 24 78 | 24 2d 20 61 6e 64 20 24 |y the $x|$- and $|
|00001980| 79 24 2d 61 78 69 73 20 | 74 69 63 0a 6d 61 72 6b |y$-axis |tic.mark|
|00001990| 20 6c 61 62 65 6c 73 20 | 62 65 20 69 6e 20 5c 4c | labels |be in \L|
|000019a0| 61 54 65 58 5c 20 6d 61 | 74 68 20 6d 6f 64 65 2e |aTeX\ ma|th mode.|
|000019b0| 20 54 68 69 73 20 6d 61 | 6b 65 73 20 74 68 65 20 | This ma|kes the |
|000019c0| 6c 61 62 65 6c 73 20 6c | 6f 6f 6b 20 61 0a 6c 69 |labels l|ook a.li|
|000019d0| 74 74 6c 65 20 62 65 74 | 74 65 72 2e 20 54 68 65 |ttle bet|ter. The|
|000019e0| 20 64 65 66 61 75 6c 74 | 20 69 73 20 5c 76 65 72 | default| is \ver|
|000019f0| 62 2b 73 65 74 20 66 6f | 72 6d 61 74 20 78 79 20 |b+set fo|rmat xy |
|00001a00| 22 25 67 22 2b 2e 20 54 | 68 65 20 5c 76 65 72 62 |"%g"+. T|he \verb|
|00001a10| 2b 25 67 2b 0a 72 65 70 | 72 65 73 65 6e 74 73 20 |+%g+.rep|resents |
|00001a20| 74 68 65 20 67 65 6e 65 | 72 61 6c 2d 70 75 72 70 |the gene|ral-purp|
|00001a30| 6f 73 65 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |ose floa|ting poi|
|00001a40| 6e 74 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 73 70 |nt forma|tting sp|
|00001a50| 65 63 69 66 69 63 61 74 | 69 6f 6e 0a 66 6f 72 20 |ecificat|ion.for |
|00001a60| 74 68 65 20 7b 5c 74 74 | 20 70 72 69 6e 74 66 7d |the {\tt| printf}|
|00001a70| 20 66 75 6e 63 74 69 6f | 6e 20 69 6e 20 43 2e 20 | functio|n in C. |
|00001a80| 41 6e 79 20 76 61 6c 69 | 64 20 66 6c 6f 61 74 69 |Any vali|d floati|
|00001a90| 6e 67 2d 70 6f 69 6e 74 | 0a 66 6f 72 6d 61 74 74 |ng-point|.formatt|
|00001aa0| 69 6e 67 20 73 70 65 63 | 69 66 69 63 61 74 69 6f |ing spec|ificatio|
|00001ab0| 6e 2c 20 6f 72 20 5c 4c | 61 54 65 58 5c 20 63 6f |n, or \L|aTeX\ co|
|00001ac0| 6d 6d 61 6e 64 2c 20 69 | 73 20 61 6c 6c 6f 77 65 |mmand, i|s allowe|
|00001ad0| 64 20 69 6e 20 74 68 65 | 0a 66 6f 72 6d 61 74 2e |d in the|.format.|
|00001ae0| 0a 0a 41 20 74 69 74 6c | 65 20 66 6f 72 20 74 68 |..A titl|e for th|
|00001af0| 65 20 70 6c 6f 74 20 61 | 6e 64 20 6c 61 62 65 6c |e plot a|nd label|
|00001b00| 73 20 66 6f 72 20 74 68 | 65 20 61 78 65 73 20 77 |s for th|e axes w|
|00001b10| 65 72 65 20 73 65 74 20 | 75 70 20 69 6e 20 74 68 |ere set |up in th|
|00001b20| 65 20 6e 65 78 74 0a 74 | 68 72 65 65 20 63 6f 6d |e next.t|hree com|
|00001b30| 6d 61 6e 64 73 2e 20 20 | 4e 6f 74 65 20 74 68 61 |mands. |Note tha|
|00001b40| 74 20 74 68 65 79 20 61 | 72 65 20 70 72 6f 63 65 |t they a|re proce|
|00001b50| 73 73 65 64 20 62 79 20 | 5c 4c 61 54 65 58 5c 20 |ssed by |\LaTeX\ |
|00001b60| 61 6e 64 20 73 6f 20 6d | 61 79 0a 68 61 76 65 20 |and so m|ay.have |
|00001b70| 6d 61 74 68 20 6d 6f 64 | 65 20 61 6e 64 20 6f 74 |math mod|e and ot|
|00001b80| 68 65 72 20 73 79 6d 62 | 6f 6c 73 20 69 6e 20 74 |her symb|ols in t|
|00001b90| 68 65 6d 2e 20 54 68 65 | 20 79 6c 61 62 65 6c 20 |hem. The| ylabel |
|00001ba0| 6d 61 79 20 68 61 76 65 | 20 6d 75 6c 74 69 70 6c |may have| multipl|
|00001bb0| 65 0a 6c 69 6e 65 73 2c | 20 64 65 6c 69 6e 65 61 |e.lines,| delinea|
|00001bc0| 74 65 64 20 77 69 74 68 | 20 5c 76 65 72 62 2b 5c |ted with| \verb+\|
|00001bd0| 5c 2b 2e 20 20 54 68 65 | 20 79 6c 61 62 65 6c 20 |\+. The| ylabel |
|00001be0| 63 61 6e 20 62 65 20 6d | 6f 76 65 64 20 61 72 6f |can be m|oved aro|
|00001bf0| 75 6e 64 20 77 69 74 68 | 0a 6f 70 74 69 6f 6e 61 |und with|.optiona|
|00001c00| 6c 20 6f 66 66 73 65 74 | 20 70 61 72 61 6d 65 74 |l offset| paramet|
|00001c10| 65 72 73 20 28 73 65 65 | 20 7b 5c 74 74 20 73 65 |ers (see| {\tt se|
|00001c20| 74 20 79 6c 61 62 65 6c | 7d 20 69 6e 20 74 68 65 |t ylabel|} in the|
|00001c30| 20 47 4e 55 50 4c 4f 54 | 0a 6d 61 6e 75 61 6c 29 | GNUPLOT|.manual)|
|00001c40| 2e 20 54 79 70 69 63 61 | 6c 6c 79 2c 20 74 68 65 |. Typica|lly, the|
|00001c50| 20 79 6c 61 62 65 6c 20 | 6e 65 65 64 73 20 74 6f | ylabel |needs to|
|00001c60| 20 62 65 20 6d 6f 76 65 | 64 20 74 6f 20 74 68 65 | be move|d to the|
|00001c70| 20 6c 65 66 74 20 74 6f | 20 61 76 6f 69 64 0a 69 | left to| avoid.i|
|00001c80| 6e 74 65 72 66 65 72 69 | 6e 67 20 77 69 74 68 20 |nterferi|ng with |
|00001c90| 74 68 65 20 6c 65 66 74 | 2d 68 61 6e 64 20 73 69 |the left|-hand si|
|00001ca0| 64 65 20 6f 66 20 74 68 | 65 20 70 6c 6f 74 2e 20 |de of th|e plot. |
|00001cb0| 20 4f 6e 63 65 20 74 68 | 65 73 65 20 6c 61 62 65 | Once th|ese labe|
|00001cc0| 6c 73 0a 61 72 65 20 73 | 65 74 20 75 70 2c 20 74 |ls.are s|et up, t|
|00001cd0| 68 65 79 20 77 69 6c 6c | 20 62 65 20 75 73 65 64 |hey will| be used|
|00001ce0| 20 66 6f 72 20 61 6c 6c | 20 73 75 62 73 65 71 75 | for all| subsequ|
|00001cf0| 65 6e 74 20 70 6c 6f 74 | 20 63 6f 6d 6d 61 6e 64 |ent plot| command|
|00001d00| 73 20 75 6e 74 69 6c 0a | 74 68 65 79 20 61 72 65 |s until.|they are|
|00001d10| 20 63 68 61 6e 67 65 64 | 2e 20 54 68 65 73 65 20 | changed|. These |
|00001d20| 6c 61 62 65 6c 73 20 61 | 72 65 20 61 6c 73 6f 20 |labels a|re also |
|00001d30| 73 75 70 70 6f 72 74 65 | 64 20 62 79 20 74 68 65 |supporte|d by the|
|00001d40| 20 6f 74 68 65 72 0a 74 | 65 72 6d 69 6e 61 6c 20 | other.t|erminal |
|00001d50| 74 79 70 65 73 2c 20 62 | 75 74 20 28 6f 66 20 63 |types, b|ut (of c|
|00001d60| 6f 75 72 73 65 29 20 61 | 6e 79 20 5c 4c 61 54 65 |ourse) a|ny \LaTe|
|00001d70| 58 5c 20 63 6f 64 65 20 | 69 6e 20 74 68 65 20 73 |X\ code |in the s|
|00001d80| 74 72 69 6e 67 20 77 69 | 6c 6c 0a 6e 6f 74 20 62 |tring wi|ll.not b|
|00001d90| 65 20 69 6e 74 65 72 70 | 72 65 74 65 64 2e 20 57 |e interp|reted. W|
|00001da0| 65 20 68 61 76 65 20 61 | 6c 73 6f 20 64 65 66 69 |e have a|lso defi|
|00001db0| 6e 65 64 20 74 68 65 20 | 72 61 6e 67 65 20 6f 66 |ned the |range of|
|00001dc0| 20 62 6f 74 68 20 24 78 | 24 20 28 6e 6f 77 0a 24 | both $x|$ (now.$|
|00001dd0| 5b 30 2c 32 5c 70 69 5d | 24 29 20 61 6e 64 20 24 |[0,2\pi]|$) and $|
|00001de0| 79 24 20 28 68 65 72 65 | 20 24 5b 30 2c 31 5d 24 |y$ (here| $[0,1]$|
|00001df0| 29 2e 0a 0a 53 6f 20 66 | 61 72 20 77 65 20 68 61 |)...So f|ar we ha|
|00001e00| 76 65 20 70 6c 6f 74 74 | 65 64 20 6f 6e 65 20 63 |ve plott|ed one c|
|00001e10| 75 72 76 65 2c 20 24 79 | 3d 5c 73 69 6e 28 78 29 |urve, $y|=\sin(x)|
|00001e20| 24 2c 20 6f 6e 20 6f 6e | 65 20 70 6c 6f 74 2e 20 |$, on on|e plot. |
|00001e30| 49 6e 0a 47 4e 55 50 4c | 4f 54 2c 20 65 61 63 68 |In.GNUPL|OT, each|
|00001e40| 20 7b 5c 74 74 20 70 6c | 6f 74 7d 20 63 6f 6d 6d | {\tt pl|ot} comm|
|00001e50| 61 6e 64 20 67 65 6e 65 | 72 61 74 65 73 20 61 20 |and gene|rates a |
|00001e60| 6e 65 77 20 70 6c 6f 74 | 2e 20 49 66 20 74 68 65 |new plot|. If the|
|00001e70| 20 6f 75 74 70 75 74 0a | 69 73 20 74 6f 20 61 20 | output.|is to a |
|00001e80| 73 63 72 65 65 6e 2c 20 | 74 68 65 20 73 63 72 65 |screen, |the scre|
|00001e90| 65 6e 20 69 73 20 63 6c | 65 61 72 65 64 2e 20 49 |en is cl|eared. I|
|00001ea0| 66 20 74 6f 20 61 20 70 | 72 69 6e 74 65 72 2c 20 |f to a p|rinter, |
|00001eb0| 61 20 6e 65 77 20 70 61 | 67 65 20 69 73 0a 70 72 |a new pa|ge is.pr|
|00001ec0| 6f 64 75 63 65 64 2e 20 | 49 6e 20 74 68 65 20 7b |oduced. |In the {|
|00001ed0| 5c 74 74 20 6c 61 74 65 | 78 7d 20 63 61 73 65 2c |\tt late|x} case,|
|00001ee0| 20 61 20 6e 65 77 20 70 | 69 63 74 75 72 65 20 69 | a new p|icture i|
|00001ef0| 73 20 73 74 61 72 74 65 | 64 2e 20 49 74 20 69 73 |s starte|d. It is|
|00001f00| 20 6e 6f 74 0a 6c 69 6b | 65 6c 79 20 74 68 61 74 | not.lik|ely that|
|00001f10| 20 5c 4c 61 54 65 58 5c | 20 75 73 65 72 73 20 77 | \LaTeX\| users w|
|00001f20| 69 6c 6c 20 77 61 6e 74 | 20 74 68 69 73 20 74 6f |ill want| this to|
|00001f30| 20 68 61 70 70 65 6e 2c | 20 73 6f 20 67 65 6e 65 | happen,| so gene|
|00001f40| 72 61 6c 6c 79 20 65 61 | 63 68 0a 70 6c 6f 74 20 |rally ea|ch.plot |
|00001f50| 68 61 73 20 69 74 73 20 | 6f 77 6e 20 69 6e 70 75 |has its |own inpu|
|00001f60| 74 20 66 69 6c 65 20 61 | 6e 64 20 69 73 20 6b 65 |t file a|nd is ke|
|00001f70| 70 74 20 69 6e 20 61 20 | 73 65 70 61 72 61 74 65 |pt in a |separate|
|00001f80| 20 6f 75 74 70 75 74 20 | 28 7b 5c 74 74 0a 2e 74 | output |({\tt..t|
|00001f90| 65 78 7d 29 20 66 69 6c | 65 20 66 6f 72 20 69 6e |ex}) fil|e for in|
|00001fa0| 63 6c 75 73 69 6f 6e 20 | 61 74 20 64 69 66 66 65 |clusion |at diffe|
|00001fb0| 72 65 6e 74 20 70 6c 61 | 63 65 73 20 69 6e 20 74 |rent pla|ces in t|
|00001fc0| 68 65 20 64 6f 63 75 6d | 65 6e 74 2e 0a 0a 5c 70 |he docum|ent...\p|
|00001fd0| 61 72 61 67 72 61 70 68 | 7b 45 78 61 6d 70 6c 65 |aragraph|{Example|
|00001fe0| 20 33 3a 7d 20 54 6f 20 | 70 6c 61 63 65 20 6d 6f | 3:} To |place mo|
|00001ff0| 72 65 20 74 68 61 6e 20 | 6f 6e 65 20 63 75 72 76 |re than |one curv|
|00002000| 65 20 6f 6e 20 61 20 70 | 6c 6f 74 2c 20 75 73 65 |e on a p|lot, use|
|00002010| 20 6f 6e 65 0a 7b 5c 74 | 74 20 70 6c 6f 74 7d 20 | one.{\t|t plot} |
|00002020| 73 74 61 74 65 6d 65 6e | 74 20 61 6e 64 20 73 65 |statemen|t and se|
|00002030| 70 61 72 61 74 65 20 74 | 68 65 20 64 65 73 63 72 |parate t|he descr|
|00002040| 69 70 74 69 6f 6e 20 6f | 66 20 65 61 63 68 20 63 |iption o|f each c|
|00002050| 75 72 76 65 20 62 79 20 | 61 0a 63 6f 6d 6d 61 2e |urve by |a.comma.|
|00002060| 20 49 6e 20 6f 75 72 20 | 6e 65 78 74 20 65 78 61 | In our |next exa|
|00002070| 6d 70 6c 65 2c 20 77 65 | 20 77 69 6c 6c 20 70 6c |mple, we| will pl|
|00002080| 6f 74 20 62 6f 74 68 20 | 61 20 66 75 6e 63 74 69 |ot both |a functi|
|00002090| 6f 6e 20 61 6e 64 20 61 | 20 64 61 74 61 0a 66 69 |on and a| data.fi|
|000020a0| 6c 65 20 6f 6e 20 74 68 | 65 20 73 61 6d 65 20 70 |le on th|e same p|
|000020b0| 6c 6f 74 2e 20 54 68 69 | 73 20 70 6c 6f 74 20 69 |lot. Thi|s plot i|
|000020c0| 73 20 73 68 6f 77 6e 20 | 69 6e 20 46 69 67 75 72 |s shown |in Figur|
|000020d0| 65 7e 5c 72 65 66 7b 65 | 67 33 7d 2e 0a 0a 5c 73 |e~\ref{e|g3}...\s|
|000020e0| 69 6e 67 6c 65 73 70 61 | 63 65 0a 5c 62 65 67 69 |inglespa|ce.\begi|
|000020f0| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 20 20 20 20 |n{verbat|im}. |
|00002100| 73 65 74 20 74 65 72 6d | 69 6e 61 6c 20 6c 61 74 |set term|inal lat|
|00002110| 65 78 0a 20 20 20 20 73 | 65 74 20 6f 75 74 70 75 |ex. s|et outpu|
|00002120| 74 20 22 65 67 33 2e 74 | 65 78 22 0a 20 20 20 20 |t "eg3.t|ex". |
|00002130| 73 65 74 20 66 6f 72 6d | 61 74 20 78 79 20 22 24 |set form|at xy "$|
|00002140| 25 67 24 22 0a 20 20 20 | 20 73 65 74 20 74 69 74 |%g$". | set tit|
|00002150| 6c 65 20 22 54 68 69 73 | 20 69 73 20 61 6e 6f 74 |le "This| is anot|
|00002160| 68 65 72 20 70 6c 6f 74 | 22 0a 20 20 20 20 73 65 |her plot|". se|
|00002170| 74 20 78 6c 61 62 65 6c | 20 22 24 78 24 20 61 78 |t xlabel| "$x$ ax|
|00002180| 69 73 22 0a 20 20 20 20 | 73 65 74 20 79 6c 61 62 |is". |set ylab|
|00002190| 65 6c 20 22 24 79 24 20 | 61 78 69 73 22 0a 20 20 |el "$y$ |axis". |
|000021a0| 20 20 73 65 74 20 6b 65 | 79 20 31 35 2c 2d 31 30 | set ke|y 15,-10|
|000021b0| 0a 20 20 20 20 70 6c 6f | 74 20 78 20 77 69 74 68 |. plo|t x with|
|000021c0| 20 6c 69 6e 65 73 2c 20 | 22 65 67 33 2e 64 61 74 | lines, |"eg3.dat|
|000021d0| 22 20 77 69 74 68 20 6c | 69 6e 65 73 70 6f 69 6e |" with l|inespoin|
|000021e0| 74 73 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |ts.\end{|verbatim|
|000021f0| 7d 0a 5c 63 75 72 72 65 | 6e 74 73 70 61 63 65 0a |}.\curre|ntspace.|
|00002200| 0a 5c 62 6f 78 66 69 67 | 75 72 65 7b 68 74 62 70 |.\boxfig|ure{htbp|
|00002210| 7d 7b 5c 66 75 6c 6c 62 | 6f 78 77 69 64 74 68 7d |}{\fullb|oxwidth}|
|00002220| 7b 0a 20 20 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |{. \beg|in{cente|
|00002230| 72 7d 0a 20 20 20 20 5c | 69 6e 70 75 74 7b 65 67 |r}. \|input{eg|
|00002240| 33 7d 0a 20 20 5c 65 6e | 64 7b 63 65 6e 74 65 72 |3}. \en|d{center|
|00002250| 7d 0a 20 20 5c 63 61 70 | 74 69 6f 6e 7b 41 6e 20 |}. \cap|tion{An |
|00002260| 65 78 61 6d 70 6c 65 20 | 77 69 74 68 20 74 77 6f |example |with two|
|00002270| 20 63 75 72 76 65 73 20 | 6f 6e 20 74 68 65 20 73 | curves |on the s|
|00002280| 61 6d 65 20 70 6c 6f 74 | 2e 7d 0a 20 20 5c 6c 61 |ame plot|.}. \la|
|00002290| 62 65 6c 7b 65 67 33 7d | 0a 7d 0a 0a 48 65 72 65 |bel{eg3}|.}..Here|
|000022a0| 20 79 6f 75 20 77 69 6c | 6c 20 73 65 65 20 74 68 | you wil|l see th|
|000022b0| 61 74 20 74 68 65 20 24 | 78 24 20 72 61 6e 67 65 |at the $|x$ range|
|000022c0| 20 77 61 73 20 6e 6f 74 | 20 73 70 65 63 69 66 69 | was not| specifi|
|000022d0| 65 64 2e 20 54 68 65 20 | 24 78 24 20 72 61 6e 67 |ed. The |$x$ rang|
|000022e0| 65 0a 69 73 20 64 65 74 | 65 72 6d 69 6e 65 64 20 |e.is det|ermined |
|000022f0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 2c 20 75 |automati|cally, u|
|00002300| 6e 6c 65 73 73 20 73 70 | 65 63 69 66 69 65 64 20 |nless sp|ecified |
|00002310| 62 79 20 74 68 65 20 75 | 73 65 72 2e 20 20 49 6e |by the u|ser. In|
|00002320| 0a 74 68 69 73 20 63 61 | 73 65 2c 20 69 74 20 69 |.this ca|se, it i|
|00002330| 73 20 64 65 66 69 6e 65 | 64 20 62 79 20 74 68 65 |s define|d by the|
|00002340| 20 72 61 6e 67 65 20 6f | 66 20 74 68 65 20 64 61 | range o|f the da|
|00002350| 74 61 20 66 69 6c 65 0a | 5c 76 65 72 62 2b 22 65 |ta file.|\verb+"e|
|00002360| 67 33 2e 64 61 74 22 2b | 2e 20 54 68 65 20 66 75 |g3.dat"+|. The fu|
|00002370| 6e 63 74 69 6f 6e 20 69 | 73 20 70 6c 6f 74 74 65 |nction i|s plotte|
|00002380| 64 20 6f 76 65 72 20 74 | 68 65 20 73 61 6d 65 20 |d over t|he same |
|00002390| 72 61 6e 67 65 2e 20 49 | 66 20 6e 6f 0a 64 61 74 |range. I|f no.dat|
|000023a0| 61 20 66 69 6c 65 73 20 | 6f 72 20 24 78 24 20 72 |a files |or $x$ r|
|000023b0| 61 6e 67 65 20 61 72 65 | 20 73 75 70 70 6c 69 65 |ange are| supplie|
|000023c0| 64 2c 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 72 |d, the d|efault r|
|000023d0| 61 6e 67 65 20 6f 66 20 | 24 5b 2d 31 30 3a 31 30 |ange of |$[-10:10|
|000023e0| 5d 24 0a 69 73 20 75 73 | 65 64 2e 20 57 65 20 68 |]$.is us|ed. We h|
|000023f0| 61 76 65 20 61 6c 73 6f | 20 6d 6f 76 65 64 20 74 |ave also| moved t|
|00002400| 68 65 20 6b 65 79 20 74 | 6f 20 61 20 64 69 66 66 |he key t|o a diff|
|00002410| 65 72 65 6e 74 20 70 6f | 73 69 74 69 6f 6e 2e 20 |erent po|sition. |
|00002420| 20 54 68 65 0a 66 75 6e | 63 74 69 6f 6e 20 24 79 | The.fun|ction $y|
|00002430| 3d 78 24 20 69 73 20 70 | 6c 6f 74 74 65 64 20 60 |=x$ is p|lotted `|
|00002440| 60 77 69 74 68 20 6c 69 | 6e 65 73 27 27 2c 20 77 |`with li|nes'', w|
|00002450| 68 69 63 68 20 69 73 20 | 74 68 65 20 64 65 66 61 |hich is |the defa|
|00002460| 75 6c 74 20 70 6c 6f 74 | 0a 73 74 79 6c 65 20 66 |ult plot|.style f|
|00002470| 6f 72 20 66 75 6e 63 74 | 69 6f 6e 73 2c 20 61 6e |or funct|ions, an|
|00002480| 64 20 69 73 20 73 68 6f | 77 6e 20 68 65 72 65 20 |d is sho|wn here |
|00002490| 74 6f 20 69 6c 6c 75 73 | 74 72 61 74 65 20 74 68 |to illus|trate th|
|000024a0| 65 20 70 6c 6f 74 20 73 | 74 79 6c 65 0a 6f 70 74 |e plot s|tyle.opt|
|000024b0| 69 6f 6e 2e 20 20 54 68 | 65 20 64 61 74 61 20 66 |ion. Th|e data f|
|000024c0| 69 6c 65 20 7b 5c 74 74 | 20 65 67 33 2e 64 61 74 |ile {\tt| eg3.dat|
|000024d0| 7d 20 69 73 20 70 6c 6f | 74 74 65 64 20 77 69 74 |} is plo|tted wit|
|000024e0| 68 20 73 74 79 6c 65 20 | 7b 5c 74 74 0a 6c 69 6e |h style |{\tt.lin|
|000024f0| 65 73 70 6f 69 6e 74 73 | 7d 2c 20 61 20 73 74 79 |espoints|}, a sty|
|00002500| 6c 65 20 6c 69 6b 65 20 | 7b 5c 74 74 20 6c 69 6e |le like |{\tt lin|
|00002510| 65 73 7d 20 74 68 61 74 | 20 61 6c 73 6f 20 70 6c |es} that| also pl|
|00002520| 6f 74 73 20 61 20 73 79 | 6d 62 6f 6c 20 61 74 0a |ots a sy|mbol at.|
|00002530| 65 61 63 68 20 64 61 74 | 61 20 70 6f 69 6e 74 2e |each dat|a point.|
|00002540| 0a 0a 54 68 65 72 65 20 | 69 73 20 61 20 73 74 79 |..There |is a sty|
|00002550| 6c 65 20 63 61 6c 6c 65 | 64 20 7b 5c 74 74 20 70 |le calle|d {\tt p|
|00002560| 6f 69 6e 74 73 7d 20 74 | 68 61 74 20 6f 6e 6c 79 |oints} t|hat only|
|00002570| 20 70 6c 6f 74 73 20 74 | 68 65 20 73 79 6d 62 6f | plots t|he symbo|
|00002580| 6c 73 20 61 74 0a 64 61 | 74 61 20 70 6f 69 6e 74 |ls at.da|ta point|
|00002590| 73 2c 20 61 6e 64 20 61 | 6e 6f 74 68 65 72 20 63 |s, and a|nother c|
|000025a0| 61 6c 6c 65 64 20 7b 5c | 74 74 20 64 6f 74 73 7d |alled {\|tt dots}|
|000025b0| 20 74 68 61 74 20 70 6c | 6f 74 73 20 61 20 74 69 | that pl|ots a ti|
|000025c0| 6e 79 20 64 6f 74 20 66 | 6f 72 0a 65 61 63 68 20 |ny dot f|or.each |
|000025d0| 64 61 74 61 20 70 6f 69 | 6e 74 2e 20 20 54 68 65 |data poi|nt. The|
|000025e0| 20 7b 5c 74 74 20 70 6f | 69 6e 74 73 7d 20 61 6e | {\tt po|ints} an|
|000025f0| 64 20 7b 5c 74 74 20 6c | 69 6e 65 73 70 6f 69 6e |d {\tt l|inespoin|
|00002600| 74 73 7d 20 73 74 79 6c | 65 73 0a 70 72 6f 64 75 |ts} styl|es.produ|
|00002610| 63 65 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 70 |ce a dif|ferent p|
|00002620| 6f 69 6e 74 20 73 79 6d | 62 6f 6c 20 66 6f 72 20 |oint sym|bol for |
|00002630| 65 61 63 68 20 63 75 72 | 76 65 20 6f 6e 20 74 68 |each cur|ve on th|
|00002640| 65 20 70 6c 6f 74 20 28 | 66 6f 72 20 75 70 20 74 |e plot (|for up t|
|00002650| 6f 0a 74 77 65 6c 76 65 | 20 73 79 6d 62 6f 6c 73 |o.twelve| symbols|
|00002660| 2c 20 61 66 74 65 72 20 | 77 68 69 63 68 20 74 68 |, after |which th|
|00002670| 65 79 20 61 72 65 20 72 | 65 2d 75 73 65 64 3b 20 |ey are r|e-used; |
|00002680| 73 65 65 0a 46 69 67 75 | 72 65 7e 5c 72 65 66 7b |see.Figu|re~\ref{|
|00002690| 6c 69 6e 65 70 6f 69 6e | 74 7d 20 66 6f 72 20 61 |linepoin|t} for a|
|000026a0| 20 63 6f 6d 70 6c 65 74 | 65 20 6c 69 73 74 29 2e | complet|e list).|
|000026b0| 20 54 68 65 20 7b 5c 74 | 74 20 6c 69 6e 65 73 7d | The {\t|t lines}|
|000026c0| 20 61 6e 64 20 7b 5c 74 | 74 0a 6c 69 6e 65 73 70 | and {\t|t.linesp|
|000026d0| 6f 69 6e 74 73 7d 20 73 | 74 79 6c 65 73 20 75 73 |oints} s|tyles us|
|000026e0| 65 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 6c 69 |e a diff|erent li|
|000026f0| 6e 65 20 73 74 79 6c 65 | 20 66 6f 72 20 65 61 63 |ne style| for eac|
|00002700| 68 20 63 75 72 76 65 20 | 6f 6e 20 74 68 65 0a 70 |h curve |on the.p|
|00002710| 6c 6f 74 20 28 69 6e 20 | 74 68 69 73 20 65 78 61 |lot (in |this exa|
|00002720| 6d 70 6c 65 20 74 68 65 | 20 64 6f 74 73 20 68 61 |mple the| dots ha|
|00002730| 76 65 20 64 69 66 66 65 | 72 65 6e 74 20 73 70 61 |ve diffe|rent spa|
|00002740| 63 69 6e 67 29 2e 20 54 | 68 65 0a 73 74 79 6c 65 |cing). T|he.style|
|00002750| 20 7b 5c 74 74 20 69 6d | 70 75 6c 73 65 73 7d 20 | {\tt im|pulses} |
|00002760| 64 72 61 77 73 20 61 20 | 70 65 72 70 65 6e 64 69 |draws a |perpendi|
|00002770| 63 75 6c 61 72 20 66 72 | 6f 6d 20 65 61 63 68 20 |cular fr|om each |
|00002780| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 0a 24 78 24 |point to| the.$x$|
|00002790| 2d 61 78 69 73 2e 20 46 | 69 6e 61 6c 6c 79 2c 20 |-axis. F|inally, |
|000027a0| 74 68 65 20 7b 5c 74 74 | 20 65 72 72 6f 72 62 61 |the {\tt| errorba|
|000027b0| 72 73 7d 20 73 74 79 6c | 65 20 63 61 6e 20 64 72 |rs} styl|e can dr|
|000027c0| 61 77 20 65 72 72 6f 72 | 20 62 61 72 73 20 61 74 |aw error| bars at|
|000027d0| 0a 65 61 63 68 20 64 61 | 74 61 20 70 6f 69 6e 74 |.each da|ta point|
|000027e0| 20 28 73 65 65 20 74 68 | 65 20 47 4e 55 50 4c 4f | (see th|e GNUPLO|
|000027f0| 54 20 6d 61 6e 75 61 6c | 29 2e 0a 0a 5c 70 61 72 |T manual|)...\par|
|00002800| 61 67 72 61 70 68 7b 45 | 78 61 6d 70 6c 65 20 34 |agraph{E|xample 4|
|00002810| 3a 7d 20 49 6e 20 74 68 | 65 20 61 62 6f 76 65 20 |:} In th|e above |
|00002820| 70 6c 6f 74 73 20 6f 66 | 20 24 5c 73 69 6e 28 78 |plots of| $\sin(x|
|00002830| 29 24 2c 20 69 74 20 77 | 6f 75 6c 64 20 6d 61 6b |)$, it w|ould mak|
|00002840| 65 0a 6d 6f 72 65 20 73 | 65 6e 73 65 20 74 6f 20 |e.more s|ense to |
|00002850| 6c 61 62 65 6c 20 74 68 | 65 20 61 78 69 73 20 69 |label th|e axis i|
|00002860| 6e 20 75 6e 69 74 73 20 | 6f 66 20 24 5c 70 69 24 |n units |of $\pi$|
|00002870| 2e 20 54 68 65 20 70 6f | 73 69 74 69 6f 6e 20 61 |. The po|sition a|
|00002880| 6e 64 0a 6c 61 62 65 6c | 73 20 6f 66 20 74 68 65 |nd.label|s of the|
|00002890| 20 74 69 63 20 6c 61 62 | 65 6c 73 20 6d 61 79 20 | tic lab|els may |
|000028a0| 62 65 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |be speci|fied by |
|000028b0| 74 68 65 20 75 73 65 72 | 2c 20 77 69 74 68 20 74 |the user|, with t|
|000028c0| 68 65 20 7b 5c 74 74 0a | 73 65 74 20 78 74 69 63 |he {\tt.|set xtic|
|000028d0| 73 7d 20 61 6e 64 20 7b | 5c 74 74 20 73 65 74 20 |s} and {|\tt set |
|000028e0| 79 74 69 63 73 7d 20 63 | 6f 6d 6d 61 6e 64 73 2e |ytics} c|ommands.|
|000028f0| 20 54 68 69 73 20 69 73 | 20 64 65 6d 6f 6e 73 74 | This is| demonst|
|00002900| 72 61 74 65 64 20 62 79 | 0a 74 68 65 20 66 6f 6c |rated by|.the fol|
|00002910| 6c 6f 77 69 6e 67 20 65 | 78 61 6d 70 6c 65 2c 20 |lowing e|xample, |
|00002920| 73 68 6f 77 6e 20 69 6e | 20 46 69 67 75 72 65 7e |shown in| Figure~|
|00002930| 5c 72 65 66 7b 65 67 34 | 7d 2e 0a 0a 5c 73 69 6e |\ref{eg4|}...\sin|
|00002940| 67 6c 65 73 70 61 63 65 | 0a 5c 62 65 67 69 6e 7b |glespace|.\begin{|
|00002950| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 73 65 |verbatim|}. se|
|00002960| 74 20 74 65 72 6d 69 6e | 61 6c 20 6c 61 74 65 78 |t termin|al latex|
|00002970| 0a 20 20 20 20 73 65 74 | 20 6f 75 74 70 75 74 20 |. set| output |
|00002980| 22 65 67 34 2e 74 65 78 | 22 0a 20 20 20 20 73 65 |"eg4.tex|". se|
|00002990| 74 20 66 6f 72 6d 61 74 | 20 79 20 22 24 25 67 24 |t format| y "$%g$|
|000029a0| 22 0a 20 20 20 20 73 65 | 74 20 66 6f 72 6d 61 74 |". se|t format|
|000029b0| 20 78 20 22 24 25 2e 32 | 66 24 22 0a 20 20 20 20 | x "$%.2|f$". |
|000029c0| 73 65 74 20 74 69 74 6c | 65 20 22 54 68 69 73 20 |set titl|e "This |
|000029d0| 69 73 20 24 5c 73 69 6e | 28 78 29 24 22 0a 20 20 |is $\sin|(x)$". |
|000029e0| 20 20 73 65 74 20 78 6c | 61 62 65 6c 20 22 54 68 | set xl|abel "Th|
|000029f0| 69 73 20 69 73 20 74 68 | 65 20 24 78 24 20 61 78 |is is th|e $x$ ax|
|00002a00| 69 73 22 0a 20 20 20 20 | 73 65 74 20 79 6c 61 62 |is". |set ylab|
|00002a10| 65 6c 20 22 24 5c 73 69 | 6e 28 78 29 24 22 0a 20 |el "$\si|n(x)$". |
|00002a20| 20 20 20 73 65 74 20 6e | 6f 6b 65 79 0a 20 20 20 | set n|okey. |
|00002a30| 20 73 65 74 20 78 74 69 | 63 73 20 2d 70 69 2c 20 | set xti|cs -pi, |
|00002a40| 70 69 2f 34 0a 20 20 20 | 20 70 6c 6f 74 20 5b 2d |pi/4. | plot [-|
|00002a50| 70 69 3a 70 69 5d 20 5b | 2d 31 3a 31 5d 20 73 69 |pi:pi] [|-1:1] si|
|00002a60| 6e 28 78 29 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |n(x).\en|d{verbat|
|00002a70| 69 6d 7d 0a 5c 63 75 72 | 72 65 6e 74 73 70 61 63 |im}.\cur|rentspac|
|00002a80| 65 0a 0a 5c 62 6f 78 66 | 69 67 75 72 65 7b 68 74 |e..\boxf|igure{ht|
|00002a90| 62 70 7d 7b 5c 66 75 6c | 6c 62 6f 78 77 69 64 74 |bp}{\ful|lboxwidt|
|00002aa0| 68 7d 7b 0a 20 20 5c 62 | 65 67 69 6e 7b 63 65 6e |h}{. \b|egin{cen|
|00002ab0| 74 65 72 7d 0a 20 20 20 | 20 5c 69 6e 70 75 74 7b |ter}. | \input{|
|00002ac0| 65 67 34 7d 0a 20 20 5c | 65 6e 64 7b 63 65 6e 74 |eg4}. \|end{cent|
|00002ad0| 65 72 7d 0a 20 20 5c 63 | 61 70 74 69 6f 6e 7b 41 |er}. \c|aption{A|
|00002ae0| 6e 20 65 78 61 6d 70 6c | 65 20 6f 66 20 74 68 65 |n exampl|e of the|
|00002af0| 20 7b 5c 74 74 20 73 65 | 74 20 78 74 69 63 73 7d | {\tt se|t xtics}|
|00002b00| 20 63 6f 6d 6d 61 6e 64 | 2e 7d 0a 20 20 5c 6c 61 | command|.}. \la|
|00002b10| 62 65 6c 7b 65 67 34 7d | 0a 7d 0a 0a 53 69 6e 63 |bel{eg4}|.}..Sinc|
|00002b20| 65 20 7b 5c 74 74 20 70 | 69 7d 20 69 73 20 61 20 |e {\tt p|i} is a |
|00002b30| 70 72 65 64 65 66 69 6e | 65 64 20 76 61 72 69 61 |predefin|ed varia|
|00002b40| 62 6c 65 20 69 6e 20 47 | 4e 55 50 4c 4f 54 2c 20 |ble in G|NUPLOT, |
|00002b50| 77 65 20 63 61 6e 20 75 | 73 65 20 69 74 0a 61 6e |we can u|se it.an|
|00002b60| 79 77 68 65 72 65 20 77 | 65 20 6d 61 79 20 75 73 |ywhere w|e may us|
|00002b70| 65 20 61 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 2e |e an exp|ression.|
|00002b80| 20 54 68 65 20 7b 5c 74 | 74 20 73 65 74 20 78 74 | The {\t|t set xt|
|00002b90| 69 63 73 7d 20 63 6f 6d | 6d 61 6e 64 20 68 65 72 |ics} com|mand her|
|00002ba0| 65 0a 73 70 65 63 69 66 | 69 65 73 20 74 68 61 74 |e.specif|ies that|
|00002bb0| 20 74 68 65 20 74 69 63 | 73 20 6f 6e 20 74 68 65 | the tic|s on the|
|00002bc0| 20 24 78 24 20 61 78 69 | 73 20 73 74 61 72 74 20 | $x$ axi|s start |
|00002bd0| 61 74 20 24 2d 5c 70 69 | 24 20 61 6e 64 20 69 6e |at $-\pi|$ and in|
|00002be0| 63 72 65 6d 65 6e 74 0a | 62 79 20 24 5c 70 69 2f |crement.|by $\pi/|
|00002bf0| 34 24 2e 20 53 69 6e 63 | 65 20 6e 6f 20 65 6e 64 |4$. Sinc|e no end|
|00002c00| 20 70 6f 69 6e 74 20 69 | 73 20 67 69 76 65 6e 2c | point i|s given,|
|00002c10| 20 74 68 65 20 74 69 63 | 73 20 63 6f 6e 74 69 6e | the tic|s contin|
|00002c20| 75 65 20 74 6f 20 74 68 | 65 0a 72 69 67 68 74 20 |ue to th|e.right |
|00002c30| 65 64 67 65 2e 20 57 65 | 20 68 61 76 65 20 61 6c |edge. We| have al|
|00002c40| 73 6f 20 74 75 72 6e 65 | 64 20 6f 66 66 20 74 68 |so turne|d off th|
|00002c50| 65 20 6b 65 79 2c 20 61 | 6e 64 20 63 68 61 6e 67 |e key, a|nd chang|
|00002c60| 65 64 20 74 68 65 20 66 | 6f 72 6d 61 74 20 74 6f |ed the f|ormat to|
|00002c70| 0a 72 65 73 74 72 69 63 | 74 20 74 68 65 20 24 78 |.restric|t the $x|
|00002c80| 24 2d 61 78 69 73 20 74 | 69 63 20 6c 61 62 65 6c |$-axis t|ic label|
|00002c90| 73 20 74 6f 20 32 20 64 | 65 63 69 6d 61 6c 20 70 |s to 2 d|ecimal p|
|00002ca0| 6c 61 63 65 73 2e 0a 0a | 57 69 74 68 20 61 20 6c |laces...|With a l|
|00002cb0| 69 74 74 6c 65 20 6d 6f | 72 65 20 77 6f 72 6b 2c |ittle mo|re work,|
|00002cc0| 20 74 68 65 20 70 6c 6f | 74 20 63 61 6e 20 6c 6f | the plo|t can lo|
|00002cd0| 6f 6b 20 65 76 65 6e 20 | 62 65 74 74 65 72 2e 20 |ok even |better. |
|00002ce0| 20 41 6e 6f 74 68 65 72 | 20 66 6f 72 6d 0a 6f 66 | Another| form.of|
|00002cf0| 20 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 61 6c | this co|mmand al|
|00002d00| 6c 6f 77 73 20 75 73 20 | 74 6f 20 73 70 65 63 69 |lows us |to speci|
|00002d10| 66 79 20 74 68 65 20 6c | 61 62 65 6c 20 61 6e 64 |fy the l|abel and|
|00002d20| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 65 61 63 | positio|n of eac|
|00002d30| 68 0a 74 69 63 20 69 6e | 64 69 76 69 64 75 61 6c |h.tic in|dividual|
|00002d40| 6c 79 2e 20 20 52 65 70 | 6c 61 63 69 6e 67 20 74 |ly. Rep|lacing t|
|00002d50| 68 65 20 61 62 6f 76 65 | 20 7b 5c 74 74 20 73 65 |he above| {\tt se|
|00002d60| 74 20 78 74 69 63 73 7d | 20 63 6f 6d 6d 61 6e 64 |t xtics}| command|
|00002d70| 20 77 69 74 68 0a 74 68 | 65 20 66 6f 6c 6c 6f 77 | with.th|e follow|
|00002d80| 69 6e 67 20 67 69 76 65 | 73 20 75 73 20 46 69 67 |ing give|s us Fig|
|00002d90| 75 72 65 7e 5c 72 65 66 | 7b 65 67 35 7d 2e 20 57 |ure~\ref|{eg5}. W|
|00002da0| 65 20 61 6c 73 6f 20 6d | 61 6b 65 20 75 73 65 20 |e also m|ake use |
|00002db0| 6f 66 20 74 68 65 20 6c | 69 6e 65 0a 63 6f 6e 74 |of the l|ine.cont|
|00002dc0| 69 6e 75 61 74 69 6f 6e | 20 63 68 61 72 61 63 74 |inuation| charact|
|00002dd0| 65 72 2c 20 74 68 65 20 | 62 61 63 6b 73 6c 61 73 |er, the |backslas|
|00002de0| 68 20 28 5c 76 65 72 62 | 2b 5c 2b 29 2c 20 74 6f |h (\verb|+\+), to|
|00002df0| 20 73 70 72 65 61 64 20 | 6f 75 74 20 74 68 69 73 | spread |out this|
|00002e00| 0a 63 6f 6d 6d 61 6e 64 | 20 66 6f 72 20 72 65 61 |.command| for rea|
|00002e10| 64 61 62 69 6c 69 74 79 | 2e 0a 0a 5c 73 69 6e 67 |dability|...\sing|
|00002e20| 6c 65 73 70 61 63 65 0a | 5c 62 65 67 69 6e 7b 76 |lespace.|\begin{v|
|00002e30| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 73 65 74 |erbatim}|. set|
|00002e40| 20 78 74 69 63 73 20 28 | 22 24 2d 5c 70 69 24 22 | xtics (|"$-\pi$"|
|00002e50| 20 2d 70 69 2c 5c 0a 20 | 20 20 20 20 22 24 2d 5c | -pi,\. | "$-\|
|00002e60| 66 72 61 63 7b 5c 70 69 | 7d 7b 32 7d 24 22 20 2d |frac{\pi|}{2}$" -|
|00002e70| 70 69 2f 32 2c 5c 0a 20 | 20 20 20 20 22 30 22 20 |pi/2,\. | "0" |
|00002e80| 30 2c 5c 0a 20 20 20 20 | 20 22 24 5c 66 72 61 63 |0,\. | "$\frac|
|00002e90| 7b 5c 70 69 7d 7b 32 7d | 24 22 20 70 69 2f 32 2c |{\pi}{2}|$" pi/2,|
|00002ea0| 5c 0a 20 20 20 20 20 22 | 24 5c 70 69 24 22 20 70 |\. "|$\pi$" p|
|00002eb0| 69 29 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |i).\end{|verbatim|
|00002ec0| 7d 0a 5c 63 75 72 72 65 | 6e 74 73 70 61 63 65 0a |}.\curre|ntspace.|
|00002ed0| 0a 5c 62 6f 78 66 69 67 | 75 72 65 7b 68 74 62 70 |.\boxfig|ure{htbp|
|00002ee0| 7d 7b 5c 66 75 6c 6c 62 | 6f 78 77 69 64 74 68 7d |}{\fullb|oxwidth}|
|00002ef0| 7b 0a 20 20 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |{. \beg|in{cente|
|00002f00| 72 7d 0a 20 20 20 20 5c | 69 6e 70 75 74 7b 65 67 |r}. \|input{eg|
|00002f10| 35 7d 0a 20 20 5c 65 6e | 64 7b 63 65 6e 74 65 72 |5}. \en|d{center|
|00002f20| 7d 0a 20 20 5c 63 61 70 | 74 69 6f 6e 7b 41 20 66 |}. \cap|tion{A f|
|00002f30| 61 6e 63 79 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |ancy exa|mple of |
|00002f40| 74 68 65 20 7b 5c 74 74 | 20 73 65 74 20 78 74 69 |the {\tt| set xti|
|00002f50| 63 73 7d 20 63 6f 6d 6d | 61 6e 64 2e 7d 0a 20 20 |cs} comm|and.}. |
|00002f60| 5c 6c 61 62 65 6c 7b 65 | 67 35 7d 0a 7d 0a 0a 5c |\label{e|g5}.}..\|
|00002f70| 70 61 72 61 67 72 61 70 | 68 7b 47 6f 69 6e 67 20 |paragrap|h{Going |
|00002f80| 66 75 72 74 68 65 72 3a | 7d 20 59 6f 75 20 73 68 |further:|} You sh|
|00002f90| 6f 75 6c 64 20 6e 6f 77 | 20 62 65 20 61 62 6c 65 |ould now| be able|
|00002fa0| 20 74 6f 20 6d 61 6b 65 | 20 61 20 76 61 72 69 65 | to make| a varie|
|00002fb0| 74 79 20 6f 66 0a 70 6c | 6f 74 73 20 66 6f 72 20 |ty of.pl|ots for |
|00002fc0| 79 6f 75 72 20 5c 4c 61 | 54 65 58 5c 20 64 6f 63 |your \La|TeX\ doc|
|00002fd0| 75 6d 65 6e 74 2e 20 57 | 65 20 77 69 6c 6c 20 70 |ument. W|e will p|
|00002fe0| 72 65 73 65 6e 74 20 61 | 20 66 69 6e 61 6c 20 65 |resent a| final e|
|00002ff0| 78 61 6d 70 6c 65 0a 77 | 69 74 68 6f 75 74 20 65 |xample.w|ithout e|
|00003000| 78 70 6c 61 6e 61 74 69 | 6f 6e 20 74 68 61 74 20 |xplanati|on that |
|00003010| 73 68 6f 77 63 61 73 65 | 73 20 73 6f 6d 65 20 6f |showcase|s some o|
|00003020| 66 20 74 68 65 20 63 61 | 70 61 62 69 6c 69 74 69 |f the ca|pabiliti|
|00003030| 65 73 20 6f 66 0a 47 4e | 55 50 4c 4f 54 2e 20 59 |es of.GN|UPLOT. Y|
|00003040| 6f 75 20 6d 61 79 20 66 | 69 6e 64 20 64 6f 63 75 |ou may f|ind docu|
|00003050| 6d 65 6e 74 61 74 69 6f | 6e 20 66 6f 72 20 74 68 |mentatio|n for th|
|00003060| 65 20 76 61 72 69 6f 75 | 73 20 63 6f 6d 6d 61 6e |e variou|s comman|
|00003070| 64 73 20 69 6e 20 74 68 | 65 0a 47 4e 55 50 4c 4f |ds in th|e.GNUPLO|
|00003080| 54 20 6d 61 6e 75 61 6c | 2c 20 74 68 6f 75 67 68 |T manual|, though|
|00003090| 20 68 6f 70 65 66 75 6c | 6c 79 20 74 68 69 73 20 | hopeful|ly this |
|000030a0| 65 78 61 6d 70 6c 65 20 | 69 73 20 73 6f 6d 65 77 |example |is somew|
|000030b0| 68 61 74 0a 73 65 6c 66 | 2d 65 78 70 6c 61 6e 61 |hat.self|-explana|
|000030c0| 74 6f 72 79 2e 20 54 68 | 69 73 20 69 73 20 73 68 |tory. Th|is is sh|
|000030d0| 6f 77 6e 20 69 6e 20 46 | 69 67 75 72 65 7e 5c 72 |own in F|igure~\r|
|000030e0| 65 66 7b 65 67 36 7d 2e | 0a 0a 5c 73 69 6e 67 6c |ef{eg6}.|..\singl|
|000030f0| 65 73 70 61 63 65 0a 5c | 62 65 67 69 6e 7b 76 65 |espace.\|begin{ve|
|00003100| 72 62 61 74 69 6d 7d 0a | 20 20 20 20 73 65 74 20 |rbatim}.| set |
|00003110| 74 65 72 6d 69 6e 61 6c | 20 6c 61 74 65 78 0a 20 |terminal| latex. |
|00003120| 20 20 20 73 65 74 20 6f | 75 74 70 75 74 20 22 65 | set o|utput "e|
|00003130| 67 36 2e 74 65 78 22 0a | 20 20 20 20 73 65 74 20 |g6.tex".| set |
|00003140| 73 69 7a 65 20 33 2e 35 | 2f 35 2c 20 33 2f 33 2e |size 3.5|/5, 3/3.|
|00003150| 0a 20 20 20 20 73 65 74 | 20 66 6f 72 6d 61 74 20 |. set| format |
|00003160| 79 20 22 24 25 67 24 22 | 0a 20 20 20 20 73 65 74 |y "$%g$"|. set|
|00003170| 20 66 6f 72 6d 61 74 20 | 78 20 22 24 25 35 2e 31 | format |x "$%5.1|
|00003180| 66 5c 6d 75 24 22 0a 20 | 20 20 20 73 65 74 20 74 |f\mu$". | set t|
|00003190| 69 74 6c 65 20 22 54 68 | 69 73 20 69 73 20 61 20 |itle "Th|is is a |
|000031a0| 74 69 74 6c 65 22 0a 20 | 20 20 20 73 65 74 20 78 |title". | set x|
|000031b0| 6c 61 62 65 6c 20 22 54 | 68 69 73 20 69 73 20 74 |label "T|his is t|
|000031c0| 68 65 20 24 78 24 20 61 | 78 69 73 22 0a 20 20 20 |he $x$ a|xis". |
|000031d0| 20 73 65 74 20 79 6c 61 | 62 65 6c 20 22 54 68 69 | set yla|bel "Thi|
|000031e0| 73 20 69 73 5c 5c 61 20 | 6c 6f 6e 67 65 72 5c 5c |s is\\a |longer\\|
|000031f0| 76 65 72 73 69 6f 6e 5c | 5c 20 6f 66 5c 5c 74 68 |version\|\ of\\th|
|00003200| 65 20 24 79 24 5c 5c 20 | 61 78 69 73 22 0a 20 20 |e $y$\\ |axis". |
|00003210| 20 20 73 65 74 20 6c 61 | 62 65 6c 20 22 44 61 74 | set la|bel "Dat|
|00003220| 61 22 20 61 74 20 2d 35 | 2c 2d 35 20 72 69 67 68 |a" at -5|,-5 righ|
|00003230| 74 0a 20 20 20 20 73 65 | 74 20 61 72 72 6f 77 20 |t. se|t arrow |
|00003240| 66 72 6f 6d 20 2d 35 2c | 2d 35 20 74 6f 20 2d 33 |from -5,|-5 to -3|
|00003250| 2e 33 2c 2d 36 2e 37 0a | 20 20 20 20 73 65 74 20 |.3,-6.7.| set |
|00003260| 6b 65 79 20 2d 34 2c 38 | 0a 20 20 20 20 73 65 74 |key -4,8|. set|
|00003270| 20 78 74 69 63 20 2d 31 | 30 2c 35 2c 31 30 0a 20 | xtic -1|0,5,10. |
|00003280| 20 20 20 70 6c 6f 74 20 | 5b 2d 31 30 3a 31 30 5d | plot |[-10:10]|
|00003290| 20 5b 2d 31 30 3a 31 30 | 5d 20 22 65 67 33 2e 64 | [-10:10|] "eg3.d|
|000032a0| 61 74 22 20 74 69 74 6c | 65 20 22 44 61 74 61 20 |at" titl|e "Data |
|000032b0| 46 69 6c 65 22 20 20 77 | 69 74 68 20 6c 69 6e 65 |File" w|ith line|
|000032c0| 73 70 6f 69 6e 74 73 20 | 31 20 37 2c 5c 0a 20 20 |spoints |1 7,\. |
|000032d0| 20 20 20 20 20 33 2a 65 | 78 70 28 2d 78 2a 78 29 | 3*e|xp(-x*x)|
|000032e0| 2b 31 20 20 74 69 74 6c | 65 20 22 24 33 65 5e 7b |+1 titl|e "$3e^{|
|000032f0| 2d 78 5e 7b 32 7d 7d 2b | 31 24 22 20 77 69 74 68 |-x^{2}}+|1$" with|
|00003300| 20 6c 69 6e 65 73 20 34 | 0a 5c 65 6e 64 7b 76 65 | lines 4|.\end{ve|
|00003310| 72 62 61 74 69 6d 7d 0a | 5c 63 75 72 72 65 6e 74 |rbatim}.|\current|
|00003320| 73 70 61 63 65 0a 0a 5c | 62 6f 78 66 69 67 75 72 |space..\|boxfigur|
|00003330| 65 7b 68 74 62 70 7d 7b | 5c 66 75 6c 6c 62 6f 78 |e{htbp}{|\fullbox|
|00003340| 77 69 64 74 68 7d 7b 0a | 20 20 5c 62 65 67 69 6e |width}{.| \begin|
|00003350| 7b 63 65 6e 74 65 72 7d | 0a 20 20 20 20 5c 69 6e |{center}|. \in|
|00003360| 70 75 74 7b 65 67 36 7d | 0a 20 20 5c 65 6e 64 7b |put{eg6}|. \end{|
|00003370| 63 65 6e 74 65 72 7d 0a | 20 20 5c 63 61 70 74 69 |center}.| \capti|
|00003380| 6f 6e 7b 41 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |on{An ex|ample of|
|00003390| 20 6d 61 6e 79 20 66 65 | 61 74 75 72 65 73 2e 7d | many fe|atures.}|
|000033a0| 0a 20 20 5c 6c 61 62 65 | 6c 7b 65 67 36 7d 0a 7d |. \labe|l{eg6}.}|
|000033b0| 0a 0a 5c 70 61 72 61 67 | 72 61 70 68 7b 4c 69 6e |..\parag|raph{Lin|
|000033c0| 65 20 61 6e 64 20 70 6f | 69 6e 74 20 74 79 70 65 |e and po|int type|
|000033d0| 73 3a 7d 20 46 6f 72 20 | 72 65 66 65 72 65 6e 63 |s:} For |referenc|
|000033e0| 65 2c 20 77 65 20 73 68 | 6f 77 20 61 6c 6c 20 6f |e, we sh|ow all o|
|000033f0| 66 20 74 68 65 0a 6c 69 | 6e 65 20 61 6e 64 20 70 |f the.li|ne and p|
|00003400| 6f 69 6e 74 20 74 79 70 | 65 73 20 61 76 61 69 6c |oint typ|es avail|
|00003410| 61 62 6c 65 20 69 6e 20 | 46 69 67 75 72 65 7e 5c |able in |Figure~\|
|00003420| 72 65 66 7b 6c 69 6e 65 | 70 6f 69 6e 74 7d 2e 0a |ref{line|point}..|
|00003430| 0a 5c 62 6f 78 66 69 67 | 75 72 65 7b 68 74 62 70 |.\boxfig|ure{htbp|
|00003440| 7d 7b 5c 66 75 6c 6c 62 | 6f 78 77 69 64 74 68 7d |}{\fullb|oxwidth}|
|00003450| 7b 0a 20 20 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |{. \beg|in{cente|
|00003460| 72 7d 0a 20 20 20 20 5c | 69 6e 70 75 74 7b 6c 69 |r}. \|input{li|
|00003470| 6e 65 70 6f 69 6e 7d 0a | 20 20 5c 65 6e 64 7b 63 |nepoin}.| \end{c|
|00003480| 65 6e 74 65 72 7d 0a 20 | 20 5c 63 61 70 74 69 6f |enter}. | \captio|
|00003490| 6e 7b 41 6c 6c 20 6f 66 | 20 74 68 65 20 6c 69 6e |n{All of| the lin|
|000034a0| 65 20 61 6e 64 20 70 6f | 69 6e 74 20 74 79 70 65 |e and po|int type|
|000034b0| 73 20 69 6e 20 74 68 65 | 20 5c 4c 61 54 65 58 5c |s in the| \LaTeX\|
|000034c0| 20 64 72 69 76 65 72 2e | 7d 0a 20 20 5c 6c 61 62 | driver.|}. \lab|
|000034d0| 65 6c 7b 6c 69 6e 65 70 | 6f 69 6e 74 7d 0a 7d 0a |el{linep|oint}.}.|
|000034e0| 0a 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 53 75 6d |.\subsec|tion{Sum|
|000034f0| 6d 61 72 79 20 2d 2d 2d | 20 55 73 65 20 77 69 74 |mary ---| Use wit|
|00003500| 68 20 5c 4c 61 54 65 58 | 7d 0a 49 6e 20 73 75 6d |h \LaTeX|}.In sum|
|00003510| 6d 61 72 79 2c 20 74 6f | 20 75 73 65 20 74 68 65 |mary, to| use the|
|00003520| 20 5c 4c 61 54 65 58 5c | 20 66 61 63 69 6c 69 74 | \LaTeX\| facilit|
|00003530| 69 65 73 20 6f 66 20 47 | 4e 55 50 4c 4f 54 2c 20 |ies of G|NUPLOT, |
|00003540| 74 68 65 20 66 69 72 73 | 74 0a 63 6f 6d 6d 61 6e |the firs|t.comman|
|00003550| 64 20 74 6f 20 47 4e 55 | 50 4c 4f 54 20 73 68 6f |d to GNU|PLOT sho|
|00003560| 75 6c 64 20 62 65 0a 5c | 62 65 67 69 6e 7b 73 79 |uld be.\|begin{sy|
|00003570| 6e 74 61 78 7d 0a 20 20 | 20 20 73 65 74 20 74 65 |ntax}. | set te|
|00003580| 72 6d 69 6e 61 6c 20 6c | 61 74 65 78 0a 5c 65 6e |rminal l|atex.\en|
|00003590| 64 7b 73 79 6e 74 61 78 | 7d 0a 61 6e 64 20 74 68 |d{syntax|}.and th|
|000035a0| 65 20 6f 75 74 70 75 74 | 20 6f 66 20 47 4e 55 50 |e output| of GNUP|
|000035b0| 4c 4f 54 20 73 68 6f 75 | 6c 64 20 62 65 20 64 69 |LOT shou|ld be di|
|000035c0| 72 65 63 74 65 64 20 74 | 6f 20 61 20 66 69 6c 65 |rected t|o a file|
|000035d0| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 0a 5c |, for ex|ample,.\|
|000035e0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|000035f0| 20 20 20 20 73 65 74 20 | 6f 75 74 70 75 74 20 22 | set |output "|
|00003600| 70 6c 6f 74 2e 74 65 78 | 22 0a 5c 65 6e 64 7b 76 |plot.tex|".\end{v|
|00003610| 65 72 62 61 74 69 6d 7d | 0a 54 68 69 73 20 6d 61 |erbatim}|.This ma|
|00003620| 79 20 62 65 20 61 6e 79 | 74 68 69 6e 67 20 79 6f |y be any|thing yo|
|00003630| 75 20 6c 69 6b 65 20 62 | 75 74 20 69 74 20 73 68 |u like b|ut it sh|
|00003640| 6f 75 6c 64 20 68 61 76 | 65 20 61 20 7b 5c 74 74 |ould hav|e a {\tt|
|00003650| 20 2e 74 65 78 7d 20 65 | 78 74 65 6e 73 69 6f 6e | .tex} e|xtension|
|00003660| 2c 0a 6f 66 20 63 6f 75 | 72 73 65 2e 20 54 68 65 |,.of cou|rse. The|
|00003670| 6e 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |n the si|ze of th|
|00003680| 65 20 70 6c 6f 74 20 73 | 68 6f 75 6c 64 20 62 65 |e plot s|hould be|
|00003690| 20 67 69 76 65 6e 2e 20 | 46 6f 72 20 65 78 61 6d | given. |For exam|
|000036a0| 70 6c 65 2c 20 74 68 65 | 0a 63 6f 6d 6d 61 6e 64 |ple, the|.command|
|000036b0| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|000036c0| 7d 0a 20 20 20 20 73 65 | 74 20 73 69 7a 65 20 31 |}. se|t size 1|
|000036d0| 2c 32 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |,2.\end{|verbatim|
|000036e0| 7d 0a 74 65 6c 6c 73 20 | 47 4e 55 50 4c 4f 54 20 |}.tells |GNUPLOT |
|000036f0| 74 6f 20 75 73 65 20 61 | 20 35 20 69 6e 63 68 20 |to use a| 5 inch |
|00003700| 77 69 64 65 20 62 79 20 | 36 20 69 6e 63 68 20 68 |wide by |6 inch h|
|00003710| 69 67 68 20 62 6f 78 20 | 66 6f 72 20 74 68 65 20 |igh box |for the |
|00003720| 70 6c 6f 74 2e 0a 54 68 | 65 20 6e 75 6d 62 65 72 |plot..Th|e number|
|00003730| 73 20 67 69 76 65 6e 20 | 61 72 65 20 7b 5c 65 6d |s given |are {\em|
|00003740| 20 73 63 61 6c 65 20 66 | 61 63 74 6f 72 73 7d 2c | scale f|actors},|
|00003750| 20 6e 6f 74 20 74 68 65 | 20 61 63 74 75 61 6c 20 | not the| actual |
|00003760| 73 69 7a 65 2e 20 20 54 | 68 65 0a 64 65 66 61 75 |size. T|he.defau|
|00003770| 6c 74 20 69 73 20 35 20 | 69 6e 63 68 65 73 20 62 |lt is 5 |inches b|
|00003780| 79 20 33 20 69 6e 63 68 | 65 73 2e 20 20 54 68 69 |y 3 inch|es. Thi|
|00003790| 73 20 69 73 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |s is the| size of|
|000037a0| 20 74 68 65 20 63 6f 6d | 70 6c 65 74 65 0a 70 6c | the com|plete.pl|
|000037b0| 6f 74 2c 20 69 6e 63 6c | 75 64 69 6e 67 20 61 6c |ot, incl|uding al|
|000037c0| 6c 20 6c 61 62 65 6c 73 | 2e 0a 0a 57 68 65 6e 20 |l labels|...When |
|000037d0| 66 69 6e 69 73 68 65 64 | 2c 20 74 68 65 20 66 69 |finished|, the fi|
|000037e0| 6c 65 20 77 69 6c 6c 20 | 63 6f 6e 74 61 69 6e 20 |le will |contain |
|000037f0| 61 6c 6c 20 6f 66 20 74 | 68 65 20 70 6c 6f 74 73 |all of t|he plots|
|00003800| 20 79 6f 75 20 68 61 76 | 65 0a 73 70 65 63 69 66 | you hav|e.specif|
|00003810| 69 65 64 20 28 79 6f 75 | 20 70 72 6f 62 61 62 6c |ied (you| probabl|
|00003820| 79 20 6f 6e 6c 79 20 77 | 61 6e 74 20 6f 6e 65 20 |y only w|ant one |
|00003830| 70 6c 6f 74 20 70 65 72 | 20 66 69 6c 65 29 2e 20 |plot per| file). |
|00003840| 54 68 69 73 20 66 69 6c | 65 20 63 61 6e 0a 74 68 |This fil|e can.th|
|00003850| 65 6e 20 62 65 20 75 73 | 65 64 20 69 6e 20 61 20 |en be us|ed in a |
|00003860| 5c 4c 61 54 65 58 5c 20 | 64 6f 63 75 6d 65 6e 74 |\LaTeX\ |document|
|00003870| 2c 20 5c 65 67 2c 0a 0a | 5c 73 69 6e 67 6c 65 73 |, \eg,..|\singles|
|00003880| 70 61 63 65 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |pace.\be|gin{verb|
|00003890| 61 74 69 6d 7d 0a 20 20 | 20 20 5c 62 65 67 69 6e |atim}. | \begin|
|000038a0| 20 7b 66 69 67 75 72 65 | 7d 0a 20 20 20 20 20 20 | {figure|}. |
|000038b0| 5c 62 65 67 69 6e 7b 63 | 65 6e 74 65 72 7d 0a 20 |\begin{c|enter}. |
|000038c0| 20 20 20 20 20 20 20 5c | 69 6e 70 75 74 7b 70 6c | \|input{pl|
|000038d0| 6f 74 7d 0a 20 20 20 20 | 20 20 5c 65 6e 64 7b 63 |ot}. | \end{c|
|000038e0| 65 6e 74 65 72 7d 0a 20 | 20 20 20 5c 65 6e 64 20 |enter}. | \end |
|000038f0| 7b 66 69 67 75 72 65 7d | 0a 5c 65 6e 64 7b 76 65 |{figure}|.\end{ve|
|00003900| 72 62 61 74 69 6d 7d 0a | 5c 63 75 72 72 65 6e 74 |rbatim}.|\current|
|00003910| 73 70 61 63 65 0a 54 68 | 69 73 20 70 75 74 73 20 |space.Th|is puts |
|00003920| 74 68 65 20 70 6c 6f 74 | 20 69 6e 74 6f 20 61 20 |the plot| into a |
|00003930| 66 69 67 75 72 65 2e 0a | 0a 59 6f 75 20 77 69 6c |figure..|.You wil|
|00003940| 6c 20 61 6c 73 6f 20 77 | 61 6e 74 20 74 6f 20 72 |l also w|ant to r|
|00003950| 65 61 64 20 61 62 6f 75 | 74 20 74 68 65 20 66 6f |ead abou|t the fo|
|00003960| 6c 6c 6f 77 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |llowing |commands|
|00003970| 3a 20 7b 5c 74 74 20 73 | 65 74 0a 74 69 74 6c 65 |: {\tt s|et.title|
|00003980| 2c 20 73 65 74 20 78 6c | 61 62 65 6c 2c 20 73 65 |, set xl|abel, se|
|00003990| 74 20 79 6c 61 62 65 6c | 2c 20 73 65 74 20 6b 65 |t ylabel|, set ke|
|000039a0| 79 2c 20 73 65 74 20 6c | 61 62 65 6c 2c 20 73 65 |y, set l|abel, se|
|000039b0| 74 20 78 74 69 63 73 2c | 20 73 65 74 0a 79 74 69 |t xtics,| set.yti|
|000039c0| 63 73 7d 2c 20 61 6e 64 | 20 7b 5c 74 74 20 73 65 |cs}, and| {\tt se|
|000039d0| 74 20 63 6c 69 70 7d 2e | 20 20 54 68 65 73 65 20 |t clip}.| These |
|000039e0| 61 72 65 20 61 6c 6c 20 | 64 65 73 63 72 69 62 65 |are all |describe|
|000039f0| 64 20 69 6e 20 74 68 65 | 20 72 65 67 75 6c 61 72 |d in the| regular|
|00003a00| 0a 47 4e 55 50 4c 4f 54 | 20 6d 61 6e 75 61 6c 2e |.GNUPLOT| manual.|
|00003a10| 0a 0a 5c 73 65 63 74 69 | 6f 6e 7b 55 73 65 20 77 |..\secti|on{Use w|
|00003a20| 69 74 68 20 45 45 50 49 | 43 7d 0a 5c 6c 61 62 65 |ith EEPI|C}.\labe|
|00003a30| 6c 7b 73 3a 65 65 70 69 | 63 7d 0a 45 45 50 49 43 |l{s:eepi|c}.EEPIC|
|00003a40| 20 69 73 20 61 20 6d 61 | 63 72 6f 20 70 61 63 6b | is a ma|cro pack|
|00003a50| 61 67 65 20 65 78 74 65 | 6e 64 69 6e 67 20 74 68 |age exte|nding th|
|00003a60| 65 20 70 69 63 74 75 72 | 65 20 65 6e 76 69 72 6f |e pictur|e enviro|
|00003a70| 6e 6d 65 6e 74 20 6f 66 | 20 5c 4c 61 54 65 58 2e |nment of| \LaTeX.|
|00003a80| 0a 49 66 20 79 6f 75 20 | 68 61 76 65 20 74 68 65 |.If you |have the|
|00003a90| 20 45 50 49 43 20 6f 72 | 20 45 45 50 49 43 20 6d | EPIC or| EEPIC m|
|00003aa0| 61 63 72 6f 73 2c 20 61 | 6e 64 20 79 6f 75 72 20 |acros, a|nd your |
|00003ab0| 7b 5c 74 74 20 64 76 69 | 7d 20 74 72 61 6e 73 6c |{\tt dvi|} transl|
|00003ac0| 61 74 6f 72 0a 73 75 70 | 70 6f 72 74 73 20 74 68 |ator.sup|ports th|
|00003ad0| 65 20 7b 5c 65 6d 20 74 | 70 69 63 5c 2f 7d 20 5c |e {\em t|pic\/} \|
|00003ae0| 76 65 72 62 2b 5c 73 70 | 65 63 69 61 6c 2b 73 2c |verb+\sp|ecial+s,|
|00003af0| 20 74 68 65 6e 20 79 6f | 75 20 63 61 6e 20 73 61 | then yo|u can sa|
|00003b00| 76 65 20 5c 4c 61 54 65 | 58 5c 0a 6d 65 6d 6f 72 |ve \LaTe|X\.memor|
|00003b10| 79 2e 20 20 57 69 74 68 | 20 45 45 50 49 43 20 70 |y. With| EEPIC p|
|00003b20| 69 63 74 75 72 65 73 2c | 20 74 68 65 20 7b 5c 74 |ictures,| the {\t|
|00003b30| 74 20 70 6c 6f 74 2e 74 | 65 78 7d 20 66 69 6c 65 |t plot.t|ex} file|
|00003b40| 20 77 69 6c 6c 20 62 65 | 20 73 6d 61 6c 6c 65 72 | will be| smaller|
|00003b50| 2c 0a 5c 4c 61 54 65 58 | 5c 20 77 69 6c 6c 20 72 |,.\LaTeX|\ will r|
|00003b60| 75 6e 20 6d 75 63 68 20 | 66 61 73 74 65 72 20 28 |un much |faster (|
|00003b70| 61 6e 64 20 6e 65 65 64 | 20 6d 75 63 68 20 6c 65 |and need| much le|
|00003b80| 73 73 20 6d 65 6d 6f 72 | 79 29 2c 20 61 6e 64 20 |ss memor|y), and |
|00003b90| 74 68 65 20 7b 5c 74 74 | 0a 64 76 69 7d 20 66 69 |the {\tt|.dvi} fi|
|00003ba0| 6c 65 20 77 69 6c 6c 20 | 62 65 20 73 6d 61 6c 6c |le will |be small|
|00003bb0| 65 72 2e 20 54 68 65 20 | 71 75 61 6c 69 74 79 20 |er. The |quality |
|00003bc0| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 20 69 73 |of the o|utput is|
|00003bd0| 20 61 62 6f 75 74 20 74 | 68 65 0a 73 61 6d 65 2e | about t|he.same.|
|00003be0| 20 49 66 20 79 6f 75 20 | 63 68 61 6e 67 65 20 74 | If you |change t|
|00003bf0| 68 65 20 73 6f 75 72 63 | 65 2c 20 79 6f 75 20 63 |he sourc|e, you c|
|00003c00| 61 6e 20 67 65 6e 65 72 | 61 74 65 20 73 6f 6d 65 |an gener|ate some|
|00003c10| 20 6d 6f 72 65 20 69 6e | 74 65 72 65 73 74 69 6e | more in|terestin|
|00003c20| 67 0a 6c 69 6e 65 20 73 | 74 79 6c 65 73 2e 0a 0a |g.line s|tyles...|
|00003c30| 54 6f 20 75 73 65 20 45 | 45 50 49 43 2c 20 73 65 |To use E|EPIC, se|
|00003c40| 74 20 47 4e 55 50 4c 4f | 54 27 73 20 74 65 72 6d |t GNUPLO|T's term|
|00003c50| 69 6e 61 6c 20 74 79 70 | 65 20 74 6f 20 7b 5c 74 |inal typ|e to {\t|
|00003c60| 74 20 65 65 70 69 63 7d | 20 69 6e 73 74 65 61 64 |t eepic}| instead|
|00003c70| 20 6f 66 0a 7b 5c 74 74 | 20 6c 61 74 65 78 7d 2c | of.{\tt| latex},|
|00003c80| 20 61 6e 64 20 75 73 65 | 20 47 4e 55 50 4c 4f 54 | and use| GNUPLOT|
|00003c90| 20 61 73 20 62 65 66 6f | 72 65 2e 20 54 68 65 20 | as befo|re. The |
|00003ca0| 6c 69 6e 65 20 73 74 79 | 6c 65 73 20 77 69 6c 6c |line sty|les will|
|00003cb0| 20 63 68 61 6e 67 65 2e | 0a 49 6e 63 6c 75 64 65 | change.|.Include|
|00003cc0| 20 74 68 65 20 66 69 6c | 65 20 7b 5c 74 74 20 70 | the fil|e {\tt p|
|00003cd0| 6c 6f 74 2e 74 65 78 7d | 20 69 6e 20 79 6f 75 72 |lot.tex}| in your|
|00003ce0| 20 64 6f 63 75 6d 65 6e | 74 20 61 73 20 62 65 66 | documen|t as bef|
|00003cf0| 6f 72 65 2c 20 61 6c 6f | 6e 67 20 77 69 74 68 0a |ore, alo|ng with.|
|00003d00| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 20 73 74 79 |the docu|ment sty|
|00003d10| 6c 65 20 6f 70 74 69 6f | 6e 73 20 7b 5c 74 74 20 |le optio|ns {\tt |
|00003d20| 5b 65 70 69 63 2c 65 65 | 70 69 63 5d 7d 2e 0a 0a |[epic,ee|pic]}...|
|00003d30| 5c 73 65 63 74 69 6f 6e | 7b 46 6f 72 20 46 6f 72 |\section|{For For|
|00003d40| 6d 65 72 20 47 6e 75 5c | 54 65 58 5c 20 55 73 65 |mer Gnu\|TeX\ Use|
|00003d50| 72 73 7d 0a 5c 6c 61 62 | 65 6c 7b 6f 6c 64 75 73 |rs}.\lab|el{oldus|
|00003d60| 65 72 73 7d 0a 0a 46 6f | 72 6d 65 72 20 47 6e 75 |ers}..Fo|rmer Gnu|
|00003d70| 5c 54 65 58 5c 20 75 73 | 65 72 73 20 6d 61 79 20 |\TeX\ us|ers may |
|00003d80| 62 65 20 70 6c 65 61 73 | 65 64 20 77 69 74 68 20 |be pleas|ed with |
|00003d90| 6d 61 6e 79 20 6f 66 20 | 74 68 65 20 6e 65 77 20 |many of |the new |
|00003da0| 66 65 61 74 75 72 65 73 | 0a 28 6d 61 6e 79 20 69 |features|.(many i|
|00003db0| 6e 73 70 69 72 65 64 20 | 62 79 20 79 6f 75 72 20 |nspired |by your |
|00003dc0| 73 75 67 67 65 73 74 69 | 6f 6e 73 21 29 2c 20 62 |suggesti|ons!), b|
|00003dd0| 75 74 20 77 69 6c 6c 20 | 61 6c 73 6f 20 66 69 6e |ut will |also fin|
|00003de0| 64 20 6d 61 6e 79 20 63 | 68 61 6e 67 65 73 2e 0a |d many c|hanges..|
|00003df0| 47 4e 55 50 4c 4f 54 20 | 77 69 6c 6c 20 7b 5c 65 |GNUPLOT |will {\e|
|00003e00| 6d 20 6e 6f 74 5c 2f 7d | 20 72 75 6e 20 61 6c 6c |m not\/}| run all|
|00003e10| 20 47 6e 75 5c 54 65 58 | 5c 20 69 6e 70 75 74 20 | Gnu\TeX|\ input |
|00003e20| 66 69 6c 65 73 20 75 6e | 63 68 61 6e 67 65 64 2e |files un|changed.|
|00003e30| 0a 53 65 76 65 72 61 6c | 20 47 6e 75 5c 54 65 58 |.Several| Gnu\TeX|
|00003e40| 5c 20 66 65 61 74 75 72 | 65 73 20 77 65 72 65 20 |\ featur|es were |
|00003e50| 6e 6f 74 20 69 6e 63 6c | 75 64 65 64 20 69 6e 20 |not incl|uded in |
|00003e60| 47 4e 55 50 4c 4f 54 20 | 62 65 63 61 75 73 65 20 |GNUPLOT |because |
|00003e70| 74 68 65 79 0a 77 65 72 | 65 20 73 70 65 63 69 66 |they.wer|e specif|
|00003e80| 69 63 20 74 6f 20 74 68 | 65 20 5c 4c 61 54 65 58 |ic to th|e \LaTeX|
|00003e90| 5c 20 64 72 69 76 65 72 | 2e 20 49 20 65 6e 63 6f |\ driver|. I enco|
|00003ea0| 75 72 61 67 65 20 79 6f | 75 20 74 6f 20 75 73 65 |urage yo|u to use|
|00003eb0| 20 74 68 65 20 6e 65 77 | 65 72 0a 47 4e 55 50 4c | the new|er.GNUPL|
|00003ec0| 4f 54 2e 20 20 41 20 74 | 72 61 6e 73 6c 61 74 6f |OT. A t|ranslato|
|00003ed0| 72 20 69 73 20 61 76 61 | 69 6c 61 62 6c 65 20 74 |r is ava|ilable t|
|00003ee0| 68 61 74 20 61 74 74 65 | 6d 70 74 73 20 74 6f 20 |hat atte|mpts to |
|00003ef0| 74 72 61 6e 73 6c 61 74 | 65 20 79 6f 75 72 0a 6f |translat|e your.o|
|00003f00| 6c 64 20 47 6e 75 5c 54 | 65 58 5c 20 31 2e 36 20 |ld Gnu\T|eX\ 1.6 |
|00003f10| 69 6e 70 75 74 20 66 69 | 6c 65 73 20 69 6e 74 6f |input fi|les into|
|00003f20| 20 47 4e 55 50 4c 4f 54 | 20 33 2e 30 20 66 69 6c | GNUPLOT| 3.0 fil|
|00003f30| 65 73 2e 20 59 6f 75 20 | 63 61 6e 20 66 74 70 20 |es. You |can ftp |
|00003f40| 69 74 0a 66 72 6f 6d 20 | 5c 76 65 72 62 2b 63 73 |it.from |\verb+cs|
|00003f50| 2e 64 75 6b 65 2e 65 64 | 75 2b 20 61 73 20 5c 76 |.duke.ed|u+ as \v|
|00003f60| 65 72 62 2b 64 69 73 74 | 2f 73 6f 75 72 63 65 73 |erb+dist|/sources|
|00003f70| 2f 67 6e 75 70 6c 6f 74 | 2f 67 6e 75 74 32 70 2e |/gnuplot|/gnut2p.|
|00003f80| 74 61 72 2e 5a 2b 2e 0a | 54 68 69 73 20 66 69 6c |tar.Z+..|This fil|
|00003f90| 65 20 61 6c 73 6f 20 63 | 6f 6e 74 61 69 6e 73 20 |e also c|ontains |
|00003fa0| 64 69 72 65 63 74 69 6f | 6e 73 20 61 6e 64 20 61 |directio|ns and a|
|00003fb0| 20 6c 69 73 74 20 6f 66 | 20 63 68 61 6e 67 65 73 | list of| changes|
|00003fc0| 20 66 72 6f 6d 20 47 6e | 75 5c 54 65 58 5c 0a 74 | from Gn|u\TeX\.t|
|00003fd0| 6f 20 47 4e 55 50 4c 4f | 54 2e 0a 0a 5c 73 65 63 |o GNUPLO|T...\sec|
|00003fe0| 74 69 6f 6e 7b 43 6f 6e | 74 61 63 74 7d 0a 50 6c |tion{Con|tact}.Pl|
|00003ff0| 65 61 73 65 20 63 6f 6e | 74 61 63 74 20 6d 65 20 |ease con|tact me |
|00004000| 61 74 20 5c 76 65 72 62 | 2b 44 61 76 69 64 2e 4b |at \verb|+David.K|
|00004010| 6f 74 7a 40 44 61 72 74 | 6d 6f 75 74 68 2e 65 64 |otz@Dart|mouth.ed|
|00004020| 75 2b 20 77 69 74 68 20 | 61 6e 79 20 63 6f 6d 6d |u+ with |any comm|
|00004030| 65 6e 74 73 20 79 6f 75 | 20 6d 61 79 0a 68 61 76 |ents you| may.hav|
|00004040| 65 20 6f 6e 20 47 4e 55 | 50 4c 4f 54 27 73 20 5c |e on GNU|PLOT's \|
|00004050| 4c 61 54 65 58 5c 20 64 | 72 69 76 65 72 2e 20 46 |LaTeX\ d|river. F|
|00004060| 6f 72 20 67 65 6e 65 72 | 61 6c 20 47 4e 55 50 4c |or gener|al GNUPL|
|00004070| 4f 54 20 71 75 65 73 74 | 69 6f 6e 73 2c 20 73 65 |OT quest|ions, se|
|00004080| 6e 64 0a 6d 61 69 6c 20 | 74 6f 20 74 68 65 20 47 |nd.mail |to the G|
|00004090| 4e 55 50 4c 4f 54 20 6d | 61 69 6c 69 6e 67 20 6c |NUPLOT m|ailing l|
|000040a0| 69 73 74 0a 28 5c 76 65 | 72 62 2b 69 6e 66 6f 2d |ist.(\ve|rb+info-|
|000040b0| 67 6e 75 70 6c 6f 74 40 | 64 61 72 74 6d 6f 75 74 |gnuplot@|dartmout|
|000040c0| 68 2e 65 64 75 2b 29 2e | 0a 0a 0a 5c 65 6e 64 7b |h.edu+).|...\end{|
|000040d0| 64 6f 63 75 6d 65 6e 74 | 7d 0a |document|}. |
+--------+-------------------------+-------------------------+--------+--------+