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%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/x-matlab
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 0a 25 20 54 75 74 | 6f 72 69 61 6c 20 66 6f |% .% Tut|orial fo|
|00000010| 72 20 47 4e 55 50 4c 4f | 54 20 70 6c 6f 74 74 69 |r GNUPLO|T plotti|
|00000020| 6e 67 20 70 72 6f 67 72 | 61 6d 2c 20 66 6f 72 20 |ng progr|am, for |
|00000030| 4c 61 54 65 58 20 75 73 | 65 72 73 0a 25 20 44 61 |LaTeX us|ers.% Da|
|00000040| 76 69 64 20 4b 6f 74 7a | 20 28 44 61 76 69 64 2e |vid Kotz| (David.|
|00000050| 4b 6f 74 7a 40 44 61 72 | 74 6d 6f 75 74 68 2e 65 |Kotz@Dar|tmouth.e|
|00000060| 64 75 29 0a 25 20 44 75 | 6b 65 20 55 6e 69 76 65 |du).% Du|ke Unive|
|00000070| 72 73 69 74 79 20 43 6f | 6d 70 75 74 65 72 20 53 |rsity Co|mputer S|
|00000080| 63 69 65 6e 63 65 20 44 | 65 70 61 72 74 6d 65 6e |cience D|epartmen|
|00000090| 74 0a 25 0a 25 20 4e 4f | 54 45 3a 20 49 66 20 4c |t.%.% NO|TE: If L|
|000000a0| 61 54 65 58 20 72 75 6e | 73 20 6f 75 74 20 6f 66 |aTeX run|s out of|
|000000b0| 20 6d 65 6d 6f 72 79 20 | 70 72 6f 63 65 73 73 69 | memory |processi|
|000000c0| 6e 67 20 70 6c 6f 74 73 | 2c 0a 25 20 61 64 64 20 |ng plots|,.% add |
|000000d0| 60 60 77 69 74 68 20 6c | 69 6e 65 73 20 34 27 27 |``with l|ines 4''|
|000000e0| 20 74 6f 20 65 61 63 68 | 20 63 75 72 76 65 20 69 | to each| curve i|
|000000f0| 6e 20 65 67 2a 2e 70 6c | 74 20 61 6e 64 20 72 65 |n eg*.pl|t and re|
|00000100| 72 75 6e 20 6d 61 6b 65 | 2e 0a 25 0a 0a 25 20 73 |run make|..%..% s|
|00000110| 6f 6d 65 20 68 65 61 64 | 65 72 20 69 6e 66 6f 0a |ome head|er info.|
|00000120| 5c 69 6e 70 75 74 7b 68 | 65 61 64 65 72 7d 0a 0a |\input{h|eader}..|
|00000130| 5c 62 65 67 69 6e 7b 64 | 6f 63 75 6d 65 6e 74 7d |\begin{d|ocument}|
|00000140| 0a 0a 5c 74 69 74 6c 65 | 7b 5c 4c 61 54 65 58 5c |..\title|{\LaTeX\|
|00000150| 20 61 6e 64 20 74 68 65 | 20 47 4e 55 50 4c 4f 54 | and the| GNUPLOT|
|00000160| 20 50 6c 6f 74 74 69 6e | 67 20 0a 50 72 6f 67 72 | Plottin|g .Progr|
|00000170| 61 6d 5c 74 68 61 6e 6b | 73 7b 54 68 69 73 20 64 |am\thank|s{This d|
|00000180| 6f 63 75 6d 65 6e 74 20 | 64 65 73 63 72 69 62 65 |ocument |describe|
|00000190| 73 20 47 4e 55 50 4c 4f | 54 20 76 65 72 73 69 6f |s GNUPLO|T versio|
|000001a0| 6e 20 33 2e 30 2e 20 41 | 6c 6c 20 70 6c 6f 74 73 |n 3.0. A|ll plots|
|000001b0| 0a 69 6e 20 74 68 69 73 | 20 64 6f 63 75 6d 65 6e |.in this| documen|
|000001c0| 74 20 77 65 72 65 20 6d | 61 64 65 20 77 69 74 68 |t were m|ade with|
|000001d0| 20 74 68 61 74 20 76 65 | 72 73 69 6f 6e 20 6f 66 | that ve|rsion of|
|000001e0| 20 47 4e 55 50 4c 4f 54 | 2e 7d 20 7d 0a 5c 61 75 | GNUPLOT|.} }.\au|
|000001f0| 74 68 6f 72 7b 44 61 76 | 69 64 20 4b 6f 74 7a 20 |thor{Dav|id Kotz |
|00000200| 5c 5c 20 5c 76 65 72 62 | 2b 44 61 76 69 64 2e 4b |\\ \verb|+David.K|
|00000210| 6f 74 7a 40 44 61 72 74 | 6d 6f 75 74 68 2e 65 64 |otz@Dart|mouth.ed|
|00000220| 75 2b 7d 0a 5c 64 61 74 | 65 7b 4a 75 6c 79 20 33 |u+}.\dat|e{July 3|
|00000230| 2c 20 31 39 39 31 7d 0a | 0a 5c 6d 61 6b 65 74 69 |, 1991}.|.\maketi|
|00000240| 74 6c 65 0a 0a 5c 70 61 | 67 65 73 74 79 6c 65 7b |tle..\pa|gestyle{|
|00000250| 6d 79 68 65 61 64 69 6e | 67 73 7d 0a 5c 6d 61 72 |myheadin|gs}.\mar|
|00000260| 6b 72 69 67 68 74 7b 47 | 4e 55 50 4c 4f 54 20 5c |kright{G|NUPLOT \|
|00000270| 4c 61 54 65 58 5c 20 54 | 75 74 6f 72 69 61 6c 20 |LaTeX\ T|utorial |
|00000280| 56 65 72 73 69 6f 6e 20 | 33 2e 30 7d 0a 0a 5c 63 |Version |3.0}..\c|
|00000290| 75 72 72 65 6e 74 73 70 | 61 63 65 20 25 20 64 65 |urrentsp|ace % de|
|000002a0| 66 69 6e 65 64 20 69 6e | 20 68 65 61 64 65 72 2e |fined in| header.|
|000002b0| 74 65 78 0a 0a 5c 73 65 | 63 74 69 6f 6e 7b 49 6e |tex..\se|ction{In|
|000002c0| 74 72 6f 64 75 63 74 69 | 6f 6e 20 61 6e 64 20 48 |troducti|on and H|
|000002d0| 69 73 74 6f 72 79 7d 0a | 0a 47 4e 55 50 4c 4f 54 |istory}.|.GNUPLOT|
|000002e0| 20 77 61 73 20 6f 72 69 | 67 69 6e 61 6c 6c 79 20 | was ori|ginally |
|000002f0| 64 65 76 65 6c 6f 70 65 | 64 20 62 79 20 43 6f 6c |develope|d by Col|
|00000300| 69 6e 20 4b 65 6c 6c 65 | 79 20 61 6e 64 20 54 68 |in Kelle|y and Th|
|00000310| 6f 6d 61 73 20 57 69 6c | 6c 69 61 6d 73 0a 69 6e |omas Wil|liams.in|
|00000320| 20 31 39 38 36 20 74 6f | 20 70 6c 6f 74 20 66 75 | 1986 to| plot fu|
|00000330| 6e 63 74 69 6f 6e 73 20 | 61 6e 64 20 64 61 74 61 |nctions |and data|
|00000340| 20 66 69 6c 65 73 20 6f | 6e 20 61 20 76 61 72 69 | files o|n a vari|
|00000350| 65 74 79 20 6f 66 20 74 | 65 72 6d 69 6e 61 6c 73 |ety of t|erminals|
|00000360| 2e 0a 49 6e 20 31 39 38 | 38 20 61 6e 64 20 31 39 |..In 198|8 and 19|
|00000370| 38 39 20 49 20 63 72 65 | 61 74 65 64 20 61 6e 20 |89 I cre|ated an |
|00000380| 61 6c 74 65 72 6e 61 74 | 65 20 76 65 72 73 69 6f |alternat|e versio|
|00000390| 6e 2c 20 6b 6e 6f 77 6e | 20 61 73 20 47 6e 75 5c |n, known| as Gnu\|
|000003a0| 54 65 58 2c 0a 74 68 61 | 74 20 73 75 70 70 6f 72 |TeX,.tha|t suppor|
|000003b0| 74 65 64 20 61 20 6e 65 | 77 20 60 60 74 65 72 6d |ted a ne|w ``term|
|000003c0| 69 6e 61 6c 20 74 79 70 | 65 27 27 20 63 61 6c 6c |inal typ|e'' call|
|000003d0| 65 64 20 7b 5c 74 74 20 | 6c 61 74 65 78 7d 2c 20 |ed {\tt |latex}, |
|000003e0| 73 6f 20 67 6e 75 70 6c | 6f 74 0a 77 6f 75 6c 64 |so gnupl|ot.would|
|000003f0| 20 6f 75 74 70 75 74 20 | 5c 4c 61 54 65 58 5c 20 | output |\LaTeX\ |
|00000400| 63 6f 64 65 2e 20 54 68 | 65 20 70 6c 6f 74 20 63 |code. Th|e plot c|
|00000410| 6f 75 6c 64 20 74 68 65 | 6e 20 62 65 20 69 6e 63 |ould the|n be inc|
|00000420| 6c 75 64 65 64 20 69 6e | 20 61 0a 5c 4c 61 54 65 |luded in| a.\LaTe|
|00000430| 58 5c 20 64 6f 63 75 6d | 65 6e 74 2e 20 49 20 61 |X\ docum|ent. I a|
|00000440| 64 64 65 64 20 61 20 6e | 75 6d 62 65 72 20 6f 66 |dded a n|umber of|
|00000450| 20 65 6d 62 65 6c 6c 69 | 73 68 6d 65 6e 74 73 2c | embelli|shments,|
|00000460| 20 73 75 70 70 6f 72 74 | 65 64 20 6f 6e 6c 79 0a | support|ed only.|
|00000470| 62 79 20 74 68 65 20 7b | 5c 74 74 20 6c 61 74 65 |by the {|\tt late|
|00000480| 78 7d 20 74 65 72 6d 69 | 6e 61 6c 2c 20 61 6c 6c |x} termi|nal, all|
|00000490| 6f 77 69 6e 67 20 74 68 | 65 20 75 73 65 72 20 74 |owing th|e user t|
|000004a0| 6f 20 70 72 6f 64 75 63 | 65 0a 70 75 62 6c 69 63 |o produc|e.public|
|000004b0| 61 74 69 6f 6e 2d 71 75 | 61 6c 69 74 79 20 70 6c |ation-qu|ality pl|
|000004c0| 6f 74 73 2e 0a 0a 49 6e | 20 6c 61 74 65 20 31 39 |ots...In| late 19|
|000004d0| 38 39 20 61 6e 64 20 65 | 61 72 6c 79 20 31 39 39 |89 and e|arly 199|
|000004e0| 30 20 47 6e 75 5c 54 65 | 58 5c 20 61 6e 64 20 61 |0 Gnu\Te|X\ and a|
|000004f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6f 74 68 65 72 | number |of other|
|00000500| 20 47 4e 55 50 4c 4f 54 | 0a 76 61 72 69 61 6e 74 | GNUPLOT|.variant|
|00000510| 73 20 77 65 72 65 20 6d | 65 72 67 65 64 20 74 6f |s were m|erged to|
|00000520| 67 65 74 68 65 72 20 69 | 6e 74 6f 20 61 20 6e 65 |gether i|nto a ne|
|00000530| 77 20 72 65 6c 65 61 73 | 65 20 6f 66 20 47 4e 55 |w releas|e of GNU|
|00000540| 50 4c 4f 54 2c 20 32 2e | 30 2e 20 54 68 69 73 0a |PLOT, 2.|0. This.|
|00000550| 69 6e 63 6c 75 64 65 73 | 2c 20 61 6d 6f 6e 67 20 |includes|, among |
|00000560| 6d 61 6e 79 20 6f 74 68 | 65 72 20 69 6d 70 72 6f |many oth|er impro|
|00000570| 76 65 6d 65 6e 74 73 2c | 20 61 20 5c 4c 61 54 65 |vements,| a \LaTe|
|00000580| 58 5c 20 64 72 69 76 65 | 72 20 64 65 72 69 76 65 |X\ drive|r derive|
|00000590| 64 20 66 72 6f 6d 0a 74 | 68 65 20 6f 6e 65 20 69 |d from.t|he one i|
|000005a0| 6e 20 47 6e 75 5c 54 65 | 58 2e 20 46 6f 72 6d 65 |n Gnu\Te|X. Forme|
|000005b0| 72 20 47 6e 75 5c 54 65 | 58 5c 20 75 73 65 72 73 |r Gnu\Te|X\ users|
|000005c0| 20 61 72 65 20 72 65 66 | 65 72 72 65 64 20 74 6f | are ref|erred to|
|000005d0| 0a 53 65 63 74 69 6f 6e | 7e 5c 72 65 66 7b 6f 6c |.Section|~\ref{ol|
|000005e0| 64 75 73 65 72 73 7d 20 | 66 6f 72 20 69 6e 66 6f |dusers} |for info|
|000005f0| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 61 64 |rmation |about ad|
|00000600| 61 70 74 69 6e 67 20 74 | 6f 20 47 4e 55 50 4c 4f |apting t|o GNUPLO|
|00000610| 54 2e 0a 41 6e 79 6f 6e | 65 20 69 6e 74 65 72 65 |T..Anyon|e intere|
|00000620| 73 74 65 64 20 69 6e 20 | 75 73 69 6e 67 20 47 4e |sted in |using GN|
|00000630| 55 50 4c 4f 54 20 77 69 | 74 68 20 5c 4c 61 54 65 |UPLOT wi|th \LaTe|
|00000640| 58 5c 20 73 68 6f 75 6c | 64 20 72 65 61 64 20 74 |X\ shoul|d read t|
|00000650| 68 65 20 6e 65 78 74 0a | 73 65 63 74 69 6f 6e 2c |he next.|section,|
|00000660| 20 61 20 74 75 74 6f 72 | 69 61 6c 2c 20 61 6e 64 | a tutor|ial, and|
|00000670| 20 74 68 65 20 70 72 69 | 6d 61 72 79 20 47 4e 55 | the pri|mary GNU|
|00000680| 50 4c 4f 54 20 6d 61 6e | 75 61 6c 2e 0a 0a 54 68 |PLOT man|ual...Th|
|00000690| 65 20 72 65 61 64 65 72 | 20 73 68 6f 75 6c 64 20 |e reader| should |
|000006a0| 6e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 5c 4c |note tha|t the \L|
|000006b0| 61 54 65 58 5c 20 70 69 | 63 74 75 72 65 20 65 6e |aTeX\ pi|cture en|
|000006c0| 76 69 72 6f 6e 6d 65 6e | 74 73 20 6f 75 74 70 75 |vironmen|ts outpu|
|000006d0| 74 20 62 79 0a 47 4e 55 | 50 4c 4f 54 20 63 61 6e |t by.GNU|PLOT can|
|000006e0| 20 62 65 20 71 75 69 74 | 65 20 6c 61 72 67 65 20 | be quit|e large |
|000006f0| 61 6e 64 20 63 6f 6d 70 | 6c 69 63 61 74 65 64 2c |and comp|licated,|
|00000700| 20 61 6e 64 20 63 61 6e | 20 65 61 73 69 6c 79 20 | and can| easily |
|00000710| 65 78 63 65 65 64 20 74 | 68 65 0a 6d 65 6d 6f 72 |exceed t|he.memor|
|00000720| 79 20 63 61 70 61 63 69 | 74 79 20 6f 66 20 5c 54 |y capaci|ty of \T|
|00000730| 65 58 2e 20 49 66 20 61 | 6e 20 65 6e 6c 61 72 67 |eX. If a|n enlarg|
|00000740| 65 64 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 5c 54 |ed versi|on of \T|
|00000750| 65 58 5c 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |eX\ is a|vailable|
|00000760| 2c 0a 69 74 20 69 73 20 | 77 69 73 65 20 74 6f 20 |,.it is |wise to |
|00000770| 75 73 65 20 69 74 2e 20 | 4f 74 68 65 72 77 69 73 |use it. |Otherwis|
|00000780| 65 2c 20 6b 65 65 70 20 | 79 6f 75 72 20 70 6c 6f |e, keep |your plo|
|00000790| 74 73 20 73 69 6d 70 6c | 65 20 61 6e 64 20 61 64 |ts simpl|e and ad|
|000007a0| 64 0a 5c 76 65 72 62 2b | 5c 63 6c 65 61 72 70 61 |d.\verb+|\clearpa|
|000007b0| 67 65 2b 20 74 6f 20 79 | 6f 75 72 20 64 6f 63 75 |ge+ to y|our docu|
|000007c0| 6d 65 6e 74 20 77 68 65 | 72 65 20 6e 65 63 65 73 |ment whe|re neces|
|000007d0| 73 61 72 79 2e 0a 0a 54 | 68 65 72 65 20 69 73 20 |sary...T|here is |
|000007e0| 61 6c 73 6f 20 61 20 6e | 65 77 20 45 45 50 49 43 |also a n|ew EEPIC|
|000007f0| 20 64 72 69 76 65 72 20 | 28 7b 5c 74 74 20 65 65 | driver |({\tt ee|
|00000800| 70 69 63 7d 29 2c 20 69 | 6e 74 65 6e 64 65 64 20 |pic}), i|ntended |
|00000810| 66 6f 72 20 75 73 65 20 | 77 69 74 68 0a 74 68 65 |for use |with.the|
|00000820| 20 45 45 50 49 43 20 6d | 61 63 72 6f 20 70 61 63 | EEPIC m|acro pac|
|00000830| 6b 61 67 65 20 66 6f 72 | 20 5c 4c 61 54 65 58 2e |kage for| \LaTeX.|
|00000840| 20 45 45 50 49 43 20 61 | 6c 6c 6f 77 73 20 66 6f | EEPIC a|llows fo|
|00000850| 72 20 6d 75 63 68 20 6d | 6f 72 65 0a 65 66 66 69 |r much m|ore.effi|
|00000860| 63 69 65 6e 74 20 6c 69 | 6e 65 2d 64 72 61 77 69 |cient li|ne-drawi|
|00000870| 6e 67 2c 20 72 75 6e 73 | 20 74 68 72 6f 75 67 68 |ng, runs| through|
|00000880| 20 5c 4c 61 54 65 58 5c | 20 66 61 73 74 65 72 2c | \LaTeX\| faster,|
|00000890| 20 61 6e 64 20 75 73 65 | 73 20 6c 65 73 73 0a 6d | and use|s less.m|
|000008a0| 65 6d 6f 72 79 2e 20 20 | 53 65 65 20 53 65 63 74 |emory. |See Sect|
|000008b0| 69 6f 6e 7e 5c 72 65 66 | 7b 73 3a 65 65 70 69 63 |ion~\ref|{s:eepic|
|000008c0| 7d 20 66 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |} for mo|re infor|
|000008d0| 6d 61 74 69 6f 6e 2e 0a | 0a 54 68 65 72 65 20 69 |mation..|.There i|
|000008e0| 73 20 61 20 73 6d 61 6c | 6c 20 70 61 63 6b 61 67 |s a smal|l packag|
|000008f0| 65 20 6f 66 20 61 75 78 | 69 6c 69 61 72 79 20 66 |e of aux|iliary f|
|00000900| 69 6c 65 73 20 28 6d 61 | 6b 65 66 69 6c 65 73 20 |iles (ma|kefiles |
|00000910| 61 6e 64 20 73 63 72 69 | 70 74 73 29 0a 74 68 61 |and scri|pts).tha|
|00000920| 74 20 49 20 66 69 6e 64 | 20 75 73 65 66 75 6c 20 |t I find| useful |
|00000930| 66 6f 72 20 6d 61 6b 69 | 6e 67 20 5c 4c 61 54 65 |for maki|ng \LaTe|
|00000940| 58 5c 20 70 6c 6f 74 73 | 20 77 69 74 68 20 47 4e |X\ plots| with GN|
|00000950| 55 50 4c 4f 54 2e 20 54 | 68 69 73 20 69 73 0a 61 |UPLOT. T|his is.a|
|00000960| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 5c 76 65 |vailable| for \ve|
|00000970| 72 62 2b 66 74 70 2b 20 | 61 73 20 5c 76 65 72 62 |rb+ftp+ |as \verb|
|00000980| 2b 70 75 62 2f 67 6e 75 | 70 6c 6f 74 2d 6c 61 74 |+pub/gnu|plot-lat|
|00000990| 65 78 2e 73 68 61 72 2b | 20 66 72 6f 6d 0a 5c 76 |ex.shar+| from.\v|
|000009a0| 65 72 62 2b 63 73 2e 64 | 75 6b 65 2e 65 64 75 2b |erb+cs.d|uke.edu+|
|000009b0| 2e 20 49 20 63 61 6e 20 | 6d 61 69 6c 20 63 6f 70 |. I can |mail cop|
|000009c0| 69 65 73 20 28 73 65 65 | 20 74 68 65 20 65 6e 64 |ies (see| the end|
|000009d0| 20 6f 66 20 74 68 69 73 | 20 70 61 70 65 72 20 66 | of this| paper f|
|000009e0| 6f 72 0a 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 29 2e |or.infor|mation).|
|000009f0| 0a 0a 5c 73 65 63 74 69 | 6f 6e 7b 55 73 69 6e 67 |..\secti|on{Using|
|00000a00| 20 47 4e 55 50 4c 4f 54 | 20 66 6f 72 20 5c 4c 61 | GNUPLOT| for \La|
|00000a10| 54 65 58 3a 20 61 20 54 | 75 74 6f 72 69 61 6c 7d |TeX: a T|utorial}|
|00000a20| 0a 0a 47 4e 55 50 4c 4f | 54 20 69 73 20 62 79 20 |..GNUPLO|T is by |
|00000a30| 6e 61 74 75 72 65 20 61 | 6e 20 69 6e 74 65 72 61 |nature a|n intera|
|00000a40| 63 74 69 76 65 20 70 72 | 6f 67 72 61 6d 2e 20 55 |ctive pr|ogram. U|
|00000a50| 73 65 72 73 20 6d 61 6b | 69 6e 67 20 70 6c 6f 74 |sers mak|ing plot|
|00000a60| 73 20 66 6f 72 0a 5c 4c | 61 54 65 58 5c 20 77 69 |s for.\L|aTeX\ wi|
|00000a70| 6c 6c 20 67 65 6e 65 72 | 61 6c 6c 79 20 6e 6f 74 |ll gener|ally not|
|00000a80| 20 75 73 65 20 47 4e 55 | 50 4c 4f 54 20 69 6e 74 | use GNU|PLOT int|
|00000a90| 65 72 61 63 74 69 76 65 | 6c 79 2e 20 20 57 68 65 |eractive|ly. Whe|
|00000aa0| 6e 65 76 65 72 20 68 61 | 72 64 0a 63 6f 70 79 20 |never ha|rd.copy |
|00000ab0| 69 73 20 64 65 73 69 72 | 65 64 20 66 72 6f 6d 20 |is desir|ed from |
|00000ac0| 47 4e 55 50 4c 4f 54 2c | 20 74 68 65 20 70 72 6f |GNUPLOT,| the pro|
|00000ad0| 67 72 61 6d 20 6e 65 65 | 64 20 6e 6f 74 20 62 65 |gram nee|d not be|
|00000ae0| 20 72 75 6e 20 6f 6e 20 | 61 0a 67 72 61 70 68 69 | run on |a.graphi|
|00000af0| 63 73 20 74 65 72 6d 69 | 6e 61 6c 2e 20 49 6e 20 |cs termi|nal. In |
|00000b00| 74 68 69 73 20 63 61 73 | 65 20 74 68 65 20 6f 75 |this cas|e the ou|
|00000b10| 74 70 75 74 20 69 73 20 | 64 69 72 65 63 74 65 64 |tput is |directed|
|00000b20| 20 74 6f 20 61 20 66 69 | 6c 65 20 6f 72 0a 70 69 | to a fi|le or.pi|
|00000b30| 70 65 2c 20 74 68 65 6e | 20 73 65 6e 74 20 74 6f |pe, then| sent to|
|00000b40| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00000b50| 20 6f 75 74 70 75 74 20 | 64 65 76 69 63 65 2e 20 | output |device. |
|00000b60| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 6f 75 74 |For exam|ple, out|
|00000b70| 70 75 74 0a 66 72 6f 6d | 20 74 68 65 20 74 65 72 |put.from| the ter|
|00000b80| 6d 69 6e 61 6c 20 74 79 | 70 65 20 7b 5c 74 74 20 |minal ty|pe {\tt |
|00000b90| 75 6e 69 78 70 6c 6f 74 | 7d 20 6d 61 79 20 62 65 |unixplot|} may be|
|00000ba0| 20 73 65 6e 74 20 74 6f | 20 61 20 70 72 6f 67 72 | sent to| a progr|
|00000bb0| 61 6d 0a 69 6e 74 65 72 | 70 72 65 74 69 6e 67 20 |am.inter|preting |
|00000bc0| 74 68 65 20 55 6e 69 78 | 20 70 6c 6f 74 74 69 6e |the Unix| plottin|
|00000bd0| 67 20 73 74 61 6e 64 61 | 72 64 2e 20 54 68 65 20 |g standa|rd. The |
|00000be0| 74 65 72 6d 69 6e 61 6c | 20 74 79 70 65 73 20 7b |terminal| types {|
|00000bf0| 5c 74 74 0a 69 6d 61 67 | 65 6e 7d 20 61 6e 64 20 |\tt.imag|en} and |
|00000c00| 7b 5c 74 74 20 70 6f 73 | 74 73 63 72 69 70 74 7d |{\tt pos|tscript}|
|00000c10| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 66 6f 72 | may be |used for|
|00000c20| 20 6f 75 74 70 75 74 20 | 74 6f 20 70 72 69 6e 74 | output |to print|
|00000c30| 65 72 73 0a 75 6e 64 65 | 72 73 74 61 6e 64 69 6e |ers.unde|rstandin|
|00000c40| 67 20 74 68 6f 73 65 20 | 6c 61 6e 67 75 61 67 65 |g those |language|
|00000c50| 73 2e 20 28 41 20 73 68 | 65 6c 6c 20 73 63 72 69 |s. (A sh|ell scri|
|00000c60| 70 74 20 28 7b 5c 74 74 | 20 6c 61 73 65 72 67 6e |pt ({\tt| lasergn|
|00000c70| 75 7d 29 20 69 73 0a 73 | 75 70 70 6c 69 65 64 20 |u}) is.s|upplied |
|00000c80| 77 69 74 68 20 74 68 65 | 20 64 69 73 74 72 69 62 |with the| distrib|
|00000c90| 75 74 69 6f 6e 20 74 68 | 61 74 20 77 69 6c 6c 20 |ution th|at will |
|00000ca0| 61 63 63 65 70 74 20 61 | 20 47 4e 55 50 4c 4f 54 |accept a| GNUPLOT|
|00000cb0| 20 63 6f 6d 6d 61 6e 64 | 20 6f 72 0a 69 6e 70 75 | command| or.inpu|
|00000cc0| 74 20 66 69 6c 65 20 61 | 6e 64 20 73 65 6e 64 20 |t file a|nd send |
|00000cd0| 74 68 65 20 6f 75 74 70 | 75 74 20 74 6f 20 61 6e |the outp|ut to an|
|00000ce0| 20 49 6d 61 67 65 6e 20 | 6f 72 20 50 6f 73 74 73 | Imagen |or Posts|
|00000cf0| 63 72 69 70 74 20 6c 61 | 73 65 72 0a 70 72 69 6e |cript la|ser.prin|
|00000d00| 74 65 72 2e 20 54 68 69 | 73 20 73 63 72 69 70 74 |ter. Thi|s script|
|00000d10| 20 6d 61 79 20 68 61 76 | 65 20 62 65 65 6e 20 61 | may hav|e been a|
|00000d20| 64 61 70 74 65 64 20 74 | 6f 20 79 6f 75 72 20 73 |dapted t|o your s|
|00000d30| 69 74 65 2e 29 20 54 68 | 65 20 74 65 72 6d 69 6e |ite.) Th|e termin|
|00000d40| 61 6c 0a 74 79 70 65 20 | 7b 5c 74 74 20 66 69 67 |al.type |{\tt fig|
|00000d50| 7d 20 6f 75 74 70 75 74 | 73 20 46 49 47 20 63 6f |} output|s FIG co|
|00000d60| 64 65 20 74 68 61 74 20 | 63 61 6e 20 62 65 20 72 |de that |can be r|
|00000d70| 65 61 64 20 62 79 20 74 | 68 65 20 46 69 67 20 67 |ead by t|he Fig g|
|00000d80| 72 61 70 68 69 63 73 0a | 70 72 6f 67 72 61 6d 20 |raphics.|program |
|00000d90| 61 6e 64 20 74 72 61 6e | 73 6c 61 74 65 64 20 69 |and tran|slated i|
|00000da0| 6e 74 6f 20 66 6f 72 6d | 73 20 75 73 61 62 6c 65 |nto form|s usable|
|00000db0| 20 69 6e 20 62 6f 74 68 | 20 5c 54 65 58 5c 20 61 | in both| \TeX\ a|
|00000dc0| 6e 64 0a 5c 4c 61 54 65 | 58 5c 20 64 6f 63 75 6d |nd.\LaTe|X\ docum|
|00000dd0| 65 6e 74 73 2e 0a 0a 57 | 65 20 6e 6f 77 20 69 67 |ents...W|e now ig|
|00000de0| 6e 6f 72 65 20 74 68 65 | 20 69 6e 74 65 72 61 63 |nore the| interac|
|00000df0| 74 69 76 65 20 6e 61 74 | 75 72 65 20 6f 66 20 47 |tive nat|ure of G|
|00000e00| 4e 55 50 4c 4f 54 20 61 | 6e 64 20 70 72 6f 76 69 |NUPLOT a|nd provi|
|00000e10| 64 65 20 74 68 65 20 69 | 6e 70 75 74 0a 74 6f 20 |de the i|nput.to |
|00000e20| 47 4e 55 50 4c 4f 54 20 | 66 72 6f 6d 20 61 20 66 |GNUPLOT |from a f|
|00000e30| 69 6c 65 2c 20 5c 69 65 | 2c 0a 5c 62 65 67 69 6e |ile, \ie|,.\begin|
|00000e40| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 20 20 |{verbati|m}. |
|00000e50| 20 67 6e 75 70 6c 6f 74 | 20 67 6e 75 2e 69 6e 70 | gnuplot| gnu.inp|
|00000e60| 75 74 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |ut.\end{|verbatim|
|00000e70| 7d 0a 49 6e 20 74 68 69 | 73 20 65 78 61 6d 70 6c |}.In thi|s exampl|
|00000e80| 65 2c 20 61 6c 6c 20 6f | 66 20 74 68 65 20 63 6f |e, all o|f the co|
|00000e90| 6d 6d 61 6e 64 73 20 74 | 6f 20 47 4e 55 50 4c 4f |mmands t|o GNUPLO|
|00000ea0| 54 20 61 72 65 20 63 6f | 6e 74 61 69 6e 65 64 20 |T are co|ntained |
|00000eb0| 69 6e 20 74 68 65 0a 66 | 69 6c 65 20 7b 5c 74 74 |in the.f|ile {\tt|
|00000ec0| 20 67 6e 75 2e 69 6e 70 | 75 74 7d 2e 20 4d 75 6c | gnu.inp|ut}. Mul|
|00000ed0| 74 69 70 6c 65 20 66 69 | 6c 65 6e 61 6d 65 73 20 |tiple fi|lenames |
|00000ee0| 6d 61 79 20 62 65 20 73 | 75 70 70 6c 69 65 64 20 |may be s|upplied |
|00000ef0| 74 6f 20 47 4e 55 50 4c | 4f 54 0a 74 68 69 73 20 |to GNUPL|OT.this |
|00000f00| 77 61 79 2c 20 72 65 61 | 64 20 69 6e 20 74 68 65 |way, rea|d in the|
|00000f10| 20 6f 72 64 65 72 20 74 | 68 65 79 20 61 72 65 20 | order t|hey are |
|00000f20| 67 69 76 65 6e 2e 20 20 | 54 68 65 20 6f 75 74 70 |given. |The outp|
|00000f30| 75 74 20 28 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 0a |ut (one |or more.|
|00000f40| 70 6c 6f 74 73 29 20 6d | 61 79 20 62 65 20 70 69 |plots) m|ay be pi|
|00000f50| 70 65 64 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 70 |ped to a|nother p|
|00000f60| 72 6f 67 72 61 6d 20 6f | 72 20 72 65 64 69 72 65 |rogram o|r redire|
|00000f70| 63 74 65 64 20 74 6f 20 | 61 20 66 69 6c 65 2e 0a |cted to |a file..|
|00000f80| 55 73 75 61 6c 6c 79 2c | 20 68 6f 77 65 76 65 72 |Usually,| however|
|00000f90| 2c 20 77 65 20 64 69 72 | 65 63 74 20 74 68 65 20 |, we dir|ect the |
|00000fa0| 6f 75 74 70 75 74 20 65 | 78 70 6c 69 63 69 74 6c |output e|xplicitl|
|00000fb0| 79 20 77 69 74 68 20 61 | 6e 20 69 6e 73 74 72 75 |y with a|n instru|
|00000fc0| 63 74 69 6f 6e 0a 74 6f | 20 47 4e 55 50 4c 4f 54 |ction.to| GNUPLOT|
|00000fd0| 20 28 74 68 65 20 7b 5c | 74 74 20 73 65 74 20 6f | (the {\|tt set o|
|00000fe0| 75 74 70 75 74 7d 20 63 | 6f 6d 6d 61 6e 64 29 2e |utput} c|ommand).|
|00000ff0| 20 47 4e 55 50 4c 4f 54 | 20 63 6f 6e 74 69 6e 75 | GNUPLOT| continu|
|00001000| 65 73 20 74 6f 20 70 72 | 69 6e 74 0a 65 72 72 6f |es to pr|int.erro|
|00001010| 72 20 6d 65 73 73 61 67 | 65 73 20 74 6f 20 74 68 |r messag|es to th|
|00001020| 65 20 74 65 72 6d 69 6e | 61 6c 20 28 73 74 64 65 |e termin|al (stde|
|00001030| 72 72 29 2e 0a 0a 5c 70 | 61 72 61 67 72 61 70 68 |rr)...\p|aragraph|
|00001040| 7b 45 78 61 6d 70 6c 65 | 20 31 3a 7d 20 48 65 72 |{Example| 1:} Her|
|00001050| 65 20 69 73 20 61 20 66 | 69 72 73 74 20 65 78 61 |e is a f|irst exa|
|00001060| 6d 70 6c 65 2c 20 70 72 | 6f 64 75 63 69 6e 67 20 |mple, pr|oducing |
|00001070| 61 20 70 6c 6f 74 20 66 | 6f 72 0a 74 68 69 73 20 |a plot f|or.this |
|00001080| 64 6f 63 75 6d 65 6e 74 | 2e 20 54 68 65 20 47 4e |document|. The GN|
|00001090| 55 50 4c 4f 54 20 69 6e | 70 75 74 20 66 69 6c 65 |UPLOT in|put file|
|000010a0| 20 69 73 20 67 69 76 65 | 6e 20 62 65 6c 6f 77 2c | is give|n below,|
|000010b0| 20 61 6e 64 20 74 68 65 | 20 6f 75 74 70 75 74 0a | and the| output.|
|000010c0| 61 70 70 65 61 72 73 20 | 61 73 20 46 69 67 75 72 |appears |as Figur|
|000010d0| 65 7e 5c 72 65 66 7b 65 | 67 31 7d 2e 20 54 68 65 |e~\ref{e|g1}. The|
|000010e0| 20 69 6e 70 75 74 20 66 | 69 6c 65 20 64 65 66 69 | input f|ile defi|
|000010f0| 6e 65 73 20 74 68 65 20 | 6f 75 74 70 75 74 20 74 |nes the |output t|
|00001100| 6f 20 62 65 0a 69 6e 20 | 5c 4c 61 54 65 58 2c 20 |o be.in |\LaTeX, |
|00001110| 67 69 76 65 73 20 61 20 | 66 69 6c 65 20 6e 61 6d |gives a |file nam|
|00001120| 65 20 66 6f 72 20 74 68 | 65 20 6f 75 74 70 75 74 |e for th|e output|
|00001130| 2c 20 61 6e 64 20 70 6c | 6f 74 73 20 24 79 3d 73 |, and pl|ots $y=s|
|00001140| 69 6e 28 78 29 24 20 66 | 6f 72 0a 24 78 24 20 6f |in(x)$ f|or.$x$ o|
|00001150| 6e 20 24 5b 2d 5c 70 69 | 2c 5c 70 69 5d 24 2e 20 |n $[-\pi|,\pi]$. |
|00001160| 54 6f 20 70 72 6f 64 75 | 63 65 20 74 68 65 20 66 |To produ|ce the f|
|00001170| 69 67 75 72 65 2c 20 49 | 20 73 69 6d 70 6c 79 0a |igure, I| simply.|
|00001180| 5c 76 65 72 62 2b 5c 69 | 6e 70 75 74 7b 65 67 31 |\verb+\i|nput{eg1|
|00001190| 7d 2b 20 69 6e 20 61 20 | 7b 5c 74 74 20 63 65 6e |}+ in a |{\tt cen|
|000011a0| 74 65 72 7d 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |ter} env|ironment|
|000011b0| 20 69 6e 20 61 20 7b 5c | 74 74 20 66 69 67 75 72 | in a {\|tt figur|
|000011c0| 65 7d 0a 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2e 20 |e}.envir|onment. |
|000011d0| 49 6e 20 66 6f 6c 6c 6f | 77 69 6e 67 20 65 78 61 |In follo|wing exa|
|000011e0| 6d 70 6c 65 73 2c 20 49 | 20 77 69 6c 6c 20 65 6e |mples, I| will en|
|000011f0| 63 6c 6f 73 65 20 74 68 | 65 20 66 69 67 75 72 65 |close th|e figure|
|00001200| 20 69 6e 20 61 20 62 6f | 78 0a 74 6f 20 6d 61 6b | in a bo|x.to mak|
|00001210| 65 20 69 74 20 6c 6f 6f | 6b 20 61 20 6c 69 74 74 |e it loo|k a litt|
|00001220| 6c 65 20 62 65 74 74 65 | 72 2e 0a 0a 5c 73 69 6e |le bette|r...\sin|
|00001230| 67 6c 65 73 70 61 63 65 | 0a 5c 62 65 67 69 6e 7b |glespace|.\begin{|
|00001240| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 73 65 |verbatim|}. se|
|00001250| 74 20 74 65 72 6d 69 6e | 61 6c 20 6c 61 74 65 78 |t termin|al latex|
|00001260| 0a 20 20 20 20 73 65 74 | 20 6f 75 74 70 75 74 20 |. set| output |
|00001270| 22 65 67 31 2e 74 65 78 | 22 0a 20 20 20 20 70 6c |"eg1.tex|". pl|
|00001280| 6f 74 20 5b 2d 33 2e 31 | 34 3a 33 2e 31 34 5d 20 |ot [-3.1|4:3.14] |
|00001290| 73 69 6e 28 78 29 0a 5c | 65 6e 64 7b 76 65 72 62 |sin(x).\|end{verb|
|000012a0| 61 74 69 6d 7d 0a 5c 63 | 75 72 72 65 6e 74 73 70 |atim}.\c|urrentsp|
|000012b0| 61 63 65 0a 0a 5c 62 65 | 67 69 6e 7b 66 69 67 75 |ace..\be|gin{figu|
|000012c0| 72 65 7d 5b 68 74 62 70 | 5d 0a 20 20 5c 62 65 67 |re}[htbp|]. \beg|
|000012d0| 69 6e 7b 63 65 6e 74 65 | 72 7d 0a 20 20 20 20 5c |in{cente|r}. \|
|000012e0| 69 6e 70 75 74 7b 65 67 | 31 7d 0a 20 20 5c 65 6e |input{eg|1}. \en|
|000012f0| 64 7b 63 65 6e 74 65 72 | 7d 0a 20 20 5c 63 61 70 |d{center|}. \cap|
|00001300| 74 69 6f 6e 7b 41 20 66 | 69 72 73 74 20 65 78 61 |tion{A f|irst exa|
|00001310| 6d 70 6c 65 3a 20 24 79 | 3d 73 69 6e 28 78 29 24 |mple: $y|=sin(x)$|
|00001320| 7d 20 0a 20 20 5c 6c 61 | 62 65 6c 7b 65 67 31 7d |} . \la|bel{eg1}|
|00001330| 0a 5c 65 6e 64 7b 66 69 | 67 75 72 65 7d 0a 0a 4e |.\end{fi|gure}..N|
|00001340| 6f 74 65 20 74 68 61 74 | 20 47 4e 55 50 4c 4f 54 |ote that| GNUPLOT|
|00001350| 20 68 61 73 20 64 72 61 | 77 6e 20 69 6e 20 74 68 | has dra|wn in th|
|00001360| 65 20 61 78 65 73 2c 20 | 6c 61 62 65 6c 65 64 20 |e axes, |labeled |
|00001370| 74 68 65 20 74 69 63 20 | 6d 61 72 6b 73 20 66 6f |the tic |marks fo|
|00001380| 72 20 75 73 2c 0a 73 63 | 61 6c 65 64 20 74 68 65 |r us,.sc|aled the|
|00001390| 20 24 79 24 20 61 78 69 | 73 20 61 75 74 6f 6d 61 | $y$ axi|s automa|
|000013a0| 74 69 63 61 6c 6c 79 2c | 20 61 6e 64 20 61 64 64 |tically,| and add|
|000013b0| 65 64 20 61 20 6b 65 79 | 20 69 6e 20 74 68 65 0a |ed a key| in the.|
|000013c0| 75 70 70 65 72 2d 72 69 | 67 68 74 2d 68 61 6e 64 |upper-ri|ght-hand|
|000013d0| 20 63 6f 72 6e 65 72 20 | 28 74 68 69 73 20 6d 61 | corner |(this ma|
|000013e0| 79 20 62 65 20 6d 6f 76 | 65 64 20 77 69 74 68 20 |y be mov|ed with |
|000013f0| 74 68 65 20 7b 5c 74 74 | 20 73 65 74 20 6b 65 79 |the {\tt| set key|
|00001400| 7d 0a 63 6f 6d 6d 61 6e | 64 2c 20 61 6e 64 20 72 |}.comman|d, and r|
|00001410| 65 6d 6f 76 65 64 20 77 | 69 74 68 20 7b 5c 74 74 |emoved w|ith {\tt|
|00001420| 20 73 65 74 20 6e 6f 6b | 65 79 7d 29 2e 0a 0a 54 | set nok|ey})...T|
|00001430| 68 69 73 20 69 73 20 74 | 68 65 20 64 65 66 61 75 |his is t|he defau|
|00001440| 6c 74 20 6c 69 6e 65 20 | 73 74 79 6c 65 20 66 6f |lt line |style fo|
|00001450| 72 20 74 68 65 20 5c 4c | 61 54 65 58 5c 20 64 72 |r the \L|aTeX\ dr|
|00001460| 69 76 65 72 2e 20 20 42 | 65 63 61 75 73 65 20 6f |iver. B|ecause o|
|00001470| 66 20 74 68 65 0a 6c 69 | 6d 69 74 65 64 20 70 69 |f the.li|mited pi|
|00001480| 63 74 75 72 65 20 63 61 | 70 61 62 69 6c 69 74 69 |cture ca|pabiliti|
|00001490| 65 73 20 6f 66 20 5c 4c | 61 54 65 58 2c 20 6d 61 |es of \L|aTeX, ma|
|000014a0| 6e 79 20 64 6f 74 73 20 | 61 72 65 20 72 65 71 75 |ny dots |are requ|
|000014b0| 69 72 65 64 20 74 6f 0a | 61 70 70 72 6f 78 69 6d |ired to.|approxim|
|000014c0| 61 74 65 20 64 72 61 77 | 69 6e 67 20 61 20 73 6f |ate draw|ing a so|
|000014d0| 6c 69 64 20 6c 69 6e 65 | 2e 20 54 68 69 73 20 6d |lid line|. This m|
|000014e0| 61 79 20 6f 76 65 72 6c | 6f 61 64 20 74 68 65 20 |ay overl|oad the |
|000014f0| 6d 65 6d 6f 72 79 20 6f | 66 20 6d 61 6e 79 0a 5c |memory o|f many.\|
|00001500| 54 65 58 5c 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |TeX\ imp|lementat|
|00001510| 69 6f 6e 73 2e 20 54 68 | 65 72 65 20 61 72 65 20 |ions. Th|ere are |
|00001520| 6f 74 68 65 72 20 6c 69 | 6e 65 20 74 79 70 65 73 |other li|ne types|
|00001530| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 68 61 74 20 | availab|le that |
|00001540| 64 72 61 77 0a 64 6f 74 | 74 65 64 20 6c 69 6e 65 |draw.dot|ted line|
|00001550| 73 20 61 6e 64 20 75 73 | 65 20 6d 75 63 68 20 6c |s and us|e much l|
|00001560| 65 73 73 20 6d 65 6d 6f | 72 79 2e 20 54 68 65 20 |ess memo|ry. The |
|00001570| 45 45 50 49 43 20 64 72 | 69 76 65 72 20 64 72 61 |EEPIC dr|iver dra|
|00001580| 77 73 20 73 6f 6c 69 64 | 0a 6c 69 6e 65 73 20 77 |ws solid|.lines w|
|00001590| 69 74 68 20 6d 75 63 68 | 20 6c 65 73 73 20 6d 65 |ith much| less me|
|000015a0| 6d 6f 72 79 20 75 73 61 | 67 65 2e 0a 0a 5c 70 61 |mory usa|ge...\pa|
|000015b0| 72 61 67 72 61 70 68 7b | 45 78 61 6d 70 6c 65 20 |ragraph{|Example |
|000015c0| 32 3a 7d 20 4e 6f 77 20 | 77 65 20 77 69 6c 6c 20 |2:} Now |we will |
|000015d0| 65 6d 62 65 6c 6c 69 73 | 68 20 74 68 65 20 70 6c |embellis|h the pl|
|000015e0| 6f 74 20 61 20 6c 69 74 | 74 6c 65 20 77 69 74 68 |ot a lit|tle with|
|000015f0| 0a 73 6f 6d 65 20 6c 61 | 62 65 6c 73 2e 20 20 54 |.some la|bels. T|
|00001600| 68 69 73 20 69 6e 70 75 | 74 20 66 69 6c 65 20 70 |his inpu|t file p|
|00001610| 72 6f 64 75 63 65 73 20 | 46 69 67 75 72 65 7e 5c |roduces |Figure~\|
|00001620| 72 65 66 7b 65 67 32 7d | 2e 0a 0a 5c 73 69 6e 67 |ref{eg2}|...\sing|
|00001630| 6c 65 73 70 61 63 65 0a | 5c 62 65 67 69 6e 7b 76 |lespace.|\begin{v|
|00001640| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 73 65 74 |erbatim}|. set|
|00001650| 20 74 65 72 6d 69 6e 61 | 6c 20 6c 61 74 65 78 0a | termina|l latex.|
|00001660| 20 20 20 20 73 65 74 20 | 6f 75 74 70 75 74 20 22 | set |output "|
|00001670| 65 67 32 2e 74 65 78 22 | 0a 20 20 20 20 73 65 74 |eg2.tex"|. set|
|00001680| 20 73 69 7a 65 20 35 2f | 35 2e 2c 20 34 2f 33 2e | size 5/|5., 4/3.|
|00001690| 0a 20 20 20 20 73 65 74 | 20 66 6f 72 6d 61 74 20 |. set| format |
|000016a0| 78 79 20 22 24 25 67 24 | 22 0a 20 20 20 20 73 65 |xy "$%g$|". se|
|000016b0| 74 20 74 69 74 6c 65 20 | 22 54 68 69 73 20 69 73 |t title |"This is|
|000016c0| 20 61 20 70 6c 6f 74 20 | 6f 66 20 24 79 3d 73 69 | a plot |of $y=si|
|000016d0| 6e 28 78 29 24 22 0a 20 | 20 20 20 73 65 74 20 78 |n(x)$". | set x|
|000016e0| 6c 61 62 65 6c 20 22 54 | 68 69 73 20 69 73 20 74 |label "T|his is t|
|000016f0| 68 65 20 24 78 24 20 61 | 78 69 73 22 0a 20 20 20 |he $x$ a|xis". |
|00001700| 20 73 65 74 20 79 6c 61 | 62 65 6c 20 22 54 68 69 | set yla|bel "Thi|
|00001710| 73 20 69 73 5c 5c 74 68 | 65 5c 5c 24 79 24 20 61 |s is\\th|e\\$y$ a|
|00001720| 78 69 73 22 0a 20 20 20 | 20 70 6c 6f 74 20 5b 30 |xis". | plot [0|
|00001730| 3a 36 2e 32 38 5d 20 5b | 30 3a 31 5d 20 73 69 6e |:6.28] [|0:1] sin|
|00001740| 28 78 29 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |(x).\end|{verbati|
|00001750| 6d 7d 0a 5c 63 75 72 72 | 65 6e 74 73 70 61 63 65 |m}.\curr|entspace|
|00001760| 0a 0a 5c 62 6f 78 66 69 | 67 75 72 65 7b 68 74 62 |..\boxfi|gure{htb|
|00001770| 70 7d 7b 5c 66 75 6c 6c | 62 6f 78 77 69 64 74 68 |p}{\full|boxwidth|
|00001780| 7d 7b 0a 20 20 5c 62 65 | 67 69 6e 7b 63 65 6e 74 |}{. \be|gin{cent|
|00001790| 65 72 7d 0a 20 20 20 20 | 5c 69 6e 70 75 74 7b 65 |er}. |\input{e|
|000017a0| 67 32 7d 0a 20 20 5c 65 | 6e 64 7b 63 65 6e 74 65 |g2}. \e|nd{cente|
|000017b0| 72 7d 0a 20 20 5c 63 61 | 70 74 69 6f 6e 7b 41 20 |r}. \ca|ption{A |
|000017c0| 6d 6f 72 65 20 66 61 6e | 63 79 20 65 78 61 6d 70 |more fan|cy examp|
|000017d0| 6c 65 2e 7d 0a 20 20 5c | 6c 61 62 65 6c 7b 65 67 |le.}. \|label{eg|
|000017e0| 32 7d 0a 7d 0a 0a 57 65 | 20 68 61 76 65 20 73 70 |2}.}..We| have sp|
|000017f0| 65 63 69 66 69 65 64 20 | 74 68 65 20 70 6c 6f 74 |ecified |the plot|
|00001800| 20 74 6f 20 62 65 20 35 | 20 69 6e 63 68 65 73 20 | to be 5| inches |
|00001810| 77 69 64 65 20 61 6e 64 | 20 34 20 69 6e 63 68 65 |wide and| 4 inche|
|00001820| 73 20 74 61 6c 6c 20 77 | 69 74 68 0a 74 68 65 20 |s tall w|ith.the |
|00001830| 7b 5c 74 74 20 73 65 74 | 20 73 69 7a 65 7d 20 63 |{\tt set| size} c|
|00001840| 6f 6d 6d 61 6e 64 2e 20 | 54 68 69 73 20 69 73 20 |ommand. |This is |
|00001850| 74 68 65 20 73 69 7a 65 | 20 6f 66 20 74 68 65 20 |the size| of the |
|00001860| 61 72 65 61 20 75 73 65 | 64 20 62 79 20 74 68 65 |area use|d by the|
|00001870| 0a 70 6c 6f 74 2c 20 7b | 5c 65 6d 20 69 6e 63 6c |.plot, {|\em incl|
|00001880| 75 64 69 6e 67 7d 20 73 | 70 61 63 65 20 66 6f 72 |uding} s|pace for|
|00001890| 20 74 68 65 20 6c 61 62 | 65 6c 73 2e 20 20 49 6e | the lab|els. In|
|000018a0| 20 74 68 65 20 66 69 72 | 73 74 20 65 78 61 6d 70 | the fir|st examp|
|000018b0| 6c 65 2c 0a 74 68 69 73 | 20 73 69 7a 65 20 77 61 |le,.this| size wa|
|000018c0| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 35 20 |s the de|fault 5 |
|000018d0| 69 6e 63 68 65 73 20 62 | 79 20 33 20 69 6e 63 68 |inches b|y 3 inch|
|000018e0| 65 73 2e 20 42 79 20 73 | 70 65 63 69 66 79 69 6e |es. By s|pecifyin|
|000018f0| 67 20 74 68 65 0a 73 63 | 61 6c 69 6e 67 20 66 61 |g the.sc|aling fa|
|00001900| 63 74 6f 72 73 20 6f 66 | 20 31 20 28 6f 72 20 35 |ctors of| 1 (or 5|
|00001910| 2f 35 29 20 61 6e 64 20 | 31 2e 33 33 33 33 20 28 |/5) and |1.3333 (|
|00001920| 6f 72 20 34 2f 33 29 2c | 20 77 65 20 6f 62 74 61 |or 4/3),| we obta|
|00001930| 69 6e 20 74 68 65 0a 64 | 65 73 69 72 65 64 20 70 |in the.d|esired p|
|00001940| 6c 6f 74 20 73 69 7a 65 | 2e 20 0a 0a 57 65 20 68 |lot size|. ..We h|
|00001950| 61 76 65 20 72 65 71 75 | 65 73 74 65 64 20 74 68 |ave requ|ested th|
|00001960| 61 74 20 74 68 65 20 66 | 6f 72 6d 61 74 20 75 73 |at the f|ormat us|
|00001970| 65 64 20 62 79 20 74 68 | 65 20 24 78 24 2d 20 61 |ed by th|e $x$- a|
|00001980| 6e 64 20 24 79 24 2d 61 | 78 69 73 20 74 69 63 0a |nd $y$-a|xis tic.|
|00001990| 6d 61 72 6b 20 6c 61 62 | 65 6c 73 20 62 65 20 69 |mark lab|els be i|
|000019a0| 6e 20 5c 4c 61 54 65 58 | 5c 20 6d 61 74 68 20 6d |n \LaTeX|\ math m|
|000019b0| 6f 64 65 2e 20 54 68 69 | 73 20 6d 61 6b 65 73 20 |ode. Thi|s makes |
|000019c0| 74 68 65 20 6c 61 62 65 | 6c 73 20 6c 6f 6f 6b 20 |the labe|ls look |
|000019d0| 61 0a 6c 69 74 74 6c 65 | 20 62 65 74 74 65 72 2e |a.little| better.|
|000019e0| 20 54 68 65 20 64 65 66 | 61 75 6c 74 20 69 73 20 | The def|ault is |
|000019f0| 5c 76 65 72 62 2b 73 65 | 74 20 66 6f 72 6d 61 74 |\verb+se|t format|
|00001a00| 20 78 79 20 22 25 67 22 | 2b 2e 20 54 68 65 20 5c | xy "%g"|+. The \|
|00001a10| 76 65 72 62 2b 25 67 2b | 0a 72 65 70 72 65 73 65 |verb+%g+|.represe|
|00001a20| 6e 74 73 20 74 68 65 20 | 67 65 6e 65 72 61 6c 2d |nts the |general-|
|00001a30| 70 75 72 70 6f 73 65 20 | 66 6c 6f 61 74 69 6e 67 |purpose |floating|
|00001a40| 20 70 6f 69 6e 74 20 66 | 6f 72 6d 61 74 74 69 6e | point f|ormattin|
|00001a50| 67 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 0a |g specif|ication.|
|00001a60| 66 6f 72 20 74 68 65 20 | 7b 5c 74 74 20 70 72 69 |for the |{\tt pri|
|00001a70| 6e 74 66 7d 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |ntf} fun|ction in|
|00001a80| 20 43 2e 20 41 6e 79 20 | 76 61 6c 69 64 20 66 6c | C. Any |valid fl|
|00001a90| 6f 61 74 69 6e 67 2d 70 | 6f 69 6e 74 0a 66 6f 72 |oating-p|oint.for|
|00001aa0| 6d 61 74 74 69 6e 67 20 | 73 70 65 63 69 66 69 63 |matting |specific|
|00001ab0| 61 74 69 6f 6e 2c 20 6f | 72 20 5c 4c 61 54 65 58 |ation, o|r \LaTeX|
|00001ac0| 5c 20 63 6f 6d 6d 61 6e | 64 2c 20 69 73 20 61 6c |\ comman|d, is al|
|00001ad0| 6c 6f 77 65 64 20 69 6e | 20 74 68 65 0a 66 6f 72 |lowed in| the.for|
|00001ae0| 6d 61 74 2e 0a 0a 41 20 | 74 69 74 6c 65 20 66 6f |mat...A |title fo|
|00001af0| 72 20 74 68 65 20 70 6c | 6f 74 20 61 6e 64 20 6c |r the pl|ot and l|
|00001b00| 61 62 65 6c 73 20 66 6f | 72 20 74 68 65 20 61 78 |abels fo|r the ax|
|00001b10| 65 73 20 77 65 72 65 20 | 73 65 74 20 75 70 20 69 |es were |set up i|
|00001b20| 6e 20 74 68 65 20 6e 65 | 78 74 0a 74 68 72 65 65 |n the ne|xt.three|
|00001b30| 20 63 6f 6d 6d 61 6e 64 | 73 2e 20 20 4e 6f 74 65 | command|s. Note|
|00001b40| 20 74 68 61 74 20 74 68 | 65 79 20 61 72 65 20 70 | that th|ey are p|
|00001b50| 72 6f 63 65 73 73 65 64 | 20 62 79 20 5c 4c 61 54 |rocessed| by \LaT|
|00001b60| 65 58 5c 20 61 6e 64 20 | 73 6f 20 6d 61 79 0a 68 |eX\ and |so may.h|
|00001b70| 61 76 65 20 6d 61 74 68 | 20 6d 6f 64 65 20 61 6e |ave math| mode an|
|00001b80| 64 20 6f 74 68 65 72 20 | 73 79 6d 62 6f 6c 73 20 |d other |symbols |
|00001b90| 69 6e 20 74 68 65 6d 2e | 20 54 68 65 20 79 6c 61 |in them.| The yla|
|00001ba0| 62 65 6c 20 6d 61 79 20 | 68 61 76 65 20 6d 75 6c |bel may |have mul|
|00001bb0| 74 69 70 6c 65 0a 6c 69 | 6e 65 73 2c 20 64 65 6c |tiple.li|nes, del|
|00001bc0| 69 6e 65 61 74 65 64 20 | 77 69 74 68 20 5c 76 65 |ineated |with \ve|
|00001bd0| 72 62 2b 5c 5c 2b 2e 20 | 20 54 68 65 20 79 6c 61 |rb+\\+. | The yla|
|00001be0| 62 65 6c 20 63 61 6e 20 | 62 65 20 6d 6f 76 65 64 |bel can |be moved|
|00001bf0| 20 61 72 6f 75 6e 64 20 | 77 69 74 68 0a 6f 70 74 | around |with.opt|
|00001c00| 69 6f 6e 61 6c 20 6f 66 | 66 73 65 74 20 70 61 72 |ional of|fset par|
|00001c10| 61 6d 65 74 65 72 73 20 | 28 73 65 65 20 7b 5c 74 |ameters |(see {\t|
|00001c20| 74 20 73 65 74 20 79 6c | 61 62 65 6c 7d 20 69 6e |t set yl|abel} in|
|00001c30| 20 74 68 65 20 47 4e 55 | 50 4c 4f 54 0a 6d 61 6e | the GNU|PLOT.man|
|00001c40| 75 61 6c 29 2e 20 54 79 | 70 69 63 61 6c 6c 79 2c |ual). Ty|pically,|
|00001c50| 20 74 68 65 20 79 6c 61 | 62 65 6c 20 6e 65 65 64 | the yla|bel need|
|00001c60| 73 20 74 6f 20 62 65 20 | 6d 6f 76 65 64 20 74 6f |s to be |moved to|
|00001c70| 20 74 68 65 20 6c 65 66 | 74 20 74 6f 20 61 76 6f | the lef|t to avo|
|00001c80| 69 64 0a 69 6e 74 65 72 | 66 65 72 69 6e 67 20 77 |id.inter|fering w|
|00001c90| 69 74 68 20 74 68 65 20 | 6c 65 66 74 2d 68 61 6e |ith the |left-han|
|00001ca0| 64 20 73 69 64 65 20 6f | 66 20 74 68 65 20 70 6c |d side o|f the pl|
|00001cb0| 6f 74 2e 20 20 4f 6e 63 | 65 20 74 68 65 73 65 20 |ot. Onc|e these |
|00001cc0| 6c 61 62 65 6c 73 0a 61 | 72 65 20 73 65 74 20 75 |labels.a|re set u|
|00001cd0| 70 2c 20 74 68 65 79 20 | 77 69 6c 6c 20 62 65 20 |p, they |will be |
|00001ce0| 75 73 65 64 20 66 6f 72 | 20 61 6c 6c 20 73 75 62 |used for| all sub|
|00001cf0| 73 65 71 75 65 6e 74 20 | 70 6c 6f 74 20 63 6f 6d |sequent |plot com|
|00001d00| 6d 61 6e 64 73 20 75 6e | 74 69 6c 0a 74 68 65 79 |mands un|til.they|
|00001d10| 20 61 72 65 20 63 68 61 | 6e 67 65 64 2e 20 54 68 | are cha|nged. Th|
|00001d20| 65 73 65 20 6c 61 62 65 | 6c 73 20 61 72 65 20 61 |ese labe|ls are a|
|00001d30| 6c 73 6f 20 73 75 70 70 | 6f 72 74 65 64 20 62 79 |lso supp|orted by|
|00001d40| 20 74 68 65 20 6f 74 68 | 65 72 0a 74 65 72 6d 69 | the oth|er.termi|
|00001d50| 6e 61 6c 20 74 79 70 65 | 73 2c 20 62 75 74 20 28 |nal type|s, but (|
|00001d60| 6f 66 20 63 6f 75 72 73 | 65 29 20 61 6e 79 20 5c |of cours|e) any \|
|00001d70| 4c 61 54 65 58 5c 20 63 | 6f 64 65 20 69 6e 20 74 |LaTeX\ c|ode in t|
|00001d80| 68 65 20 73 74 72 69 6e | 67 20 77 69 6c 6c 0a 6e |he strin|g will.n|
|00001d90| 6f 74 20 62 65 20 69 6e | 74 65 72 70 72 65 74 65 |ot be in|terprete|
|00001da0| 64 2e 20 57 65 20 68 61 | 76 65 20 61 6c 73 6f 20 |d. We ha|ve also |
|00001db0| 64 65 66 69 6e 65 64 20 | 74 68 65 20 72 61 6e 67 |defined |the rang|
|00001dc0| 65 20 6f 66 20 62 6f 74 | 68 20 24 78 24 20 28 6e |e of bot|h $x$ (n|
|00001dd0| 6f 77 0a 24 5b 30 2c 32 | 5c 70 69 5d 24 29 20 61 |ow.$[0,2|\pi]$) a|
|00001de0| 6e 64 20 24 79 24 20 28 | 68 65 72 65 20 24 5b 30 |nd $y$ (|here $[0|
|00001df0| 2c 31 5d 24 29 2e 0a 0a | 53 6f 20 66 61 72 20 77 |,1]$)...|So far w|
|00001e00| 65 20 68 61 76 65 20 70 | 6c 6f 74 74 65 64 20 6f |e have p|lotted o|
|00001e10| 6e 65 20 63 75 72 76 65 | 2c 20 24 79 3d 5c 73 69 |ne curve|, $y=\si|
|00001e20| 6e 28 78 29 24 2c 20 6f | 6e 20 6f 6e 65 20 70 6c |n(x)$, o|n one pl|
|00001e30| 6f 74 2e 20 49 6e 0a 47 | 4e 55 50 4c 4f 54 2c 20 |ot. In.G|NUPLOT, |
|00001e40| 65 61 63 68 20 7b 5c 74 | 74 20 70 6c 6f 74 7d 20 |each {\t|t plot} |
|00001e50| 63 6f 6d 6d 61 6e 64 20 | 67 65 6e 65 72 61 74 65 |command |generate|
|00001e60| 73 20 61 20 6e 65 77 20 | 70 6c 6f 74 2e 20 49 66 |s a new |plot. If|
|00001e70| 20 74 68 65 20 6f 75 74 | 70 75 74 0a 69 73 20 74 | the out|put.is t|
|00001e80| 6f 20 61 20 73 63 72 65 | 65 6e 2c 20 74 68 65 20 |o a scre|en, the |
|00001e90| 73 63 72 65 65 6e 20 69 | 73 20 63 6c 65 61 72 65 |screen i|s cleare|
|00001ea0| 64 2e 20 49 66 20 74 6f | 20 61 20 70 72 69 6e 74 |d. If to| a print|
|00001eb0| 65 72 2c 20 61 20 6e 65 | 77 20 70 61 67 65 20 69 |er, a ne|w page i|
|00001ec0| 73 0a 70 72 6f 64 75 63 | 65 64 2e 20 49 6e 20 74 |s.produc|ed. In t|
|00001ed0| 68 65 20 7b 5c 74 74 20 | 6c 61 74 65 78 7d 20 63 |he {\tt |latex} c|
|00001ee0| 61 73 65 2c 20 61 20 6e | 65 77 20 70 69 63 74 75 |ase, a n|ew pictu|
|00001ef0| 72 65 20 69 73 20 73 74 | 61 72 74 65 64 2e 20 49 |re is st|arted. I|
|00001f00| 74 20 69 73 20 6e 6f 74 | 0a 6c 69 6b 65 6c 79 20 |t is not|.likely |
|00001f10| 74 68 61 74 20 5c 4c 61 | 54 65 58 5c 20 75 73 65 |that \La|TeX\ use|
|00001f20| 72 73 20 77 69 6c 6c 20 | 77 61 6e 74 20 74 68 69 |rs will |want thi|
|00001f30| 73 20 74 6f 20 68 61 70 | 70 65 6e 2c 20 73 6f 20 |s to hap|pen, so |
|00001f40| 67 65 6e 65 72 61 6c 6c | 79 20 65 61 63 68 0a 70 |generall|y each.p|
|00001f50| 6c 6f 74 20 68 61 73 20 | 69 74 73 20 6f 77 6e 20 |lot has |its own |
|00001f60| 69 6e 70 75 74 20 66 69 | 6c 65 20 61 6e 64 20 69 |input fi|le and i|
|00001f70| 73 20 6b 65 70 74 20 69 | 6e 20 61 20 73 65 70 61 |s kept i|n a sepa|
|00001f80| 72 61 74 65 20 6f 75 74 | 70 75 74 20 28 7b 5c 74 |rate out|put ({\t|
|00001f90| 74 0a 2e 74 65 78 7d 29 | 20 66 69 6c 65 20 66 6f |t..tex})| file fo|
|00001fa0| 72 20 69 6e 63 6c 75 73 | 69 6f 6e 20 61 74 20 64 |r inclus|ion at d|
|00001fb0| 69 66 66 65 72 65 6e 74 | 20 70 6c 61 63 65 73 20 |ifferent| places |
|00001fc0| 69 6e 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 2e |in the d|ocument.|
|00001fd0| 0a 0a 5c 70 61 72 61 67 | 72 61 70 68 7b 45 78 61 |..\parag|raph{Exa|
|00001fe0| 6d 70 6c 65 20 33 3a 7d | 20 54 6f 20 70 6c 61 63 |mple 3:}| To plac|
|00001ff0| 65 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |e more t|han one |
|00002000| 63 75 72 76 65 20 6f 6e | 20 61 20 70 6c 6f 74 2c |curve on| a plot,|
|00002010| 20 75 73 65 20 6f 6e 65 | 0a 7b 5c 74 74 20 70 6c | use one|.{\tt pl|
|00002020| 6f 74 7d 20 73 74 61 74 | 65 6d 65 6e 74 20 61 6e |ot} stat|ement an|
|00002030| 64 20 73 65 70 61 72 61 | 74 65 20 74 68 65 20 64 |d separa|te the d|
|00002040| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 65 61 |escripti|on of ea|
|00002050| 63 68 20 63 75 72 76 65 | 20 62 79 20 61 0a 63 6f |ch curve| by a.co|
|00002060| 6d 6d 61 2e 20 49 6e 20 | 6f 75 72 20 6e 65 78 74 |mma. In |our next|
|00002070| 20 65 78 61 6d 70 6c 65 | 2c 20 77 65 20 77 69 6c | example|, we wil|
|00002080| 6c 20 70 6c 6f 74 20 62 | 6f 74 68 20 61 20 66 75 |l plot b|oth a fu|
|00002090| 6e 63 74 69 6f 6e 20 61 | 6e 64 20 61 20 64 61 74 |nction a|nd a dat|
|000020a0| 61 0a 66 69 6c 65 20 6f | 6e 20 74 68 65 20 73 61 |a.file o|n the sa|
|000020b0| 6d 65 20 70 6c 6f 74 2e | 20 54 68 69 73 20 70 6c |me plot.| This pl|
|000020c0| 6f 74 20 69 73 20 73 68 | 6f 77 6e 20 69 6e 20 46 |ot is sh|own in F|
|000020d0| 69 67 75 72 65 7e 5c 72 | 65 66 7b 65 67 33 7d 2e |igure~\r|ef{eg3}.|
|000020e0| 0a 0a 5c 73 69 6e 67 6c | 65 73 70 61 63 65 0a 5c |..\singl|espace.\|
|000020f0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00002100| 20 20 20 20 73 65 74 20 | 74 65 72 6d 69 6e 61 6c | set |terminal|
|00002110| 20 6c 61 74 65 78 0a 20 | 20 20 20 73 65 74 20 6f | latex. | set o|
|00002120| 75 74 70 75 74 20 22 65 | 67 33 2e 74 65 78 22 0a |utput "e|g3.tex".|
|00002130| 20 20 20 20 73 65 74 20 | 66 6f 72 6d 61 74 20 78 | set |format x|
|00002140| 79 20 22 24 25 67 24 22 | 0a 20 20 20 20 73 65 74 |y "$%g$"|. set|
|00002150| 20 74 69 74 6c 65 20 22 | 54 68 69 73 20 69 73 20 | title "|This is |
|00002160| 61 6e 6f 74 68 65 72 20 | 70 6c 6f 74 22 0a 20 20 |another |plot". |
|00002170| 20 20 73 65 74 20 78 6c | 61 62 65 6c 20 22 24 78 | set xl|abel "$x|
|00002180| 24 20 61 78 69 73 22 0a | 20 20 20 20 73 65 74 20 |$ axis".| set |
|00002190| 79 6c 61 62 65 6c 20 22 | 24 79 24 20 61 78 69 73 |ylabel "|$y$ axis|
|000021a0| 22 0a 20 20 20 20 73 65 | 74 20 6b 65 79 20 31 35 |". se|t key 15|
|000021b0| 2c 2d 31 30 0a 20 20 20 | 20 70 6c 6f 74 20 78 20 |,-10. | plot x |
|000021c0| 77 69 74 68 20 6c 69 6e | 65 73 2c 20 22 65 67 33 |with lin|es, "eg3|
|000021d0| 2e 64 61 74 22 20 77 69 | 74 68 20 6c 69 6e 65 73 |.dat" wi|th lines|
|000021e0| 70 6f 69 6e 74 73 0a 5c | 65 6e 64 7b 76 65 72 62 |points.\|end{verb|
|000021f0| 61 74 69 6d 7d 0a 5c 63 | 75 72 72 65 6e 74 73 70 |atim}.\c|urrentsp|
|00002200| 61 63 65 0a 0a 5c 62 6f | 78 66 69 67 75 72 65 7b |ace..\bo|xfigure{|
|00002210| 68 74 62 70 7d 7b 5c 66 | 75 6c 6c 62 6f 78 77 69 |htbp}{\f|ullboxwi|
|00002220| 64 74 68 7d 7b 0a 20 20 | 5c 62 65 67 69 6e 7b 63 |dth}{. |\begin{c|
|00002230| 65 6e 74 65 72 7d 0a 20 | 20 20 20 5c 69 6e 70 75 |enter}. | \inpu|
|00002240| 74 7b 65 67 33 7d 0a 20 | 20 5c 65 6e 64 7b 63 65 |t{eg3}. | \end{ce|
|00002250| 6e 74 65 72 7d 0a 20 20 | 5c 63 61 70 74 69 6f 6e |nter}. |\caption|
|00002260| 7b 41 6e 20 65 78 61 6d | 70 6c 65 20 77 69 74 68 |{An exam|ple with|
|00002270| 20 74 77 6f 20 63 75 72 | 76 65 73 20 6f 6e 20 74 | two cur|ves on t|
|00002280| 68 65 20 73 61 6d 65 20 | 70 6c 6f 74 2e 7d 0a 20 |he same |plot.}. |
|00002290| 20 5c 6c 61 62 65 6c 7b | 65 67 33 7d 0a 7d 0a 0a | \label{|eg3}.}..|
|000022a0| 48 65 72 65 20 79 6f 75 | 20 77 69 6c 6c 20 73 65 |Here you| will se|
|000022b0| 65 20 74 68 61 74 20 74 | 68 65 20 24 78 24 20 72 |e that t|he $x$ r|
|000022c0| 61 6e 67 65 20 77 61 73 | 20 6e 6f 74 20 73 70 65 |ange was| not spe|
|000022d0| 63 69 66 69 65 64 2e 20 | 54 68 65 20 24 78 24 20 |cified. |The $x$ |
|000022e0| 72 61 6e 67 65 0a 69 73 | 20 64 65 74 65 72 6d 69 |range.is| determi|
|000022f0| 6e 65 64 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ned auto|maticall|
|00002300| 79 2c 20 75 6e 6c 65 73 | 73 20 73 70 65 63 69 66 |y, unles|s specif|
|00002310| 69 65 64 20 62 79 20 74 | 68 65 20 75 73 65 72 2e |ied by t|he user.|
|00002320| 20 20 49 6e 0a 74 68 69 | 73 20 63 61 73 65 2c 20 | In.thi|s case, |
|00002330| 69 74 20 69 73 20 64 65 | 66 69 6e 65 64 20 62 79 |it is de|fined by|
|00002340| 20 74 68 65 20 72 61 6e | 67 65 20 6f 66 20 74 68 | the ran|ge of th|
|00002350| 65 20 64 61 74 61 20 66 | 69 6c 65 0a 5c 76 65 72 |e data f|ile.\ver|
|00002360| 62 2b 22 65 67 33 2e 64 | 61 74 22 2b 2e 20 54 68 |b+"eg3.d|at"+. Th|
|00002370| 65 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 70 6c |e functi|on is pl|
|00002380| 6f 74 74 65 64 20 6f 76 | 65 72 20 74 68 65 20 73 |otted ov|er the s|
|00002390| 61 6d 65 20 72 61 6e 67 | 65 2e 20 49 66 20 6e 6f |ame rang|e. If no|
|000023a0| 0a 64 61 74 61 20 66 69 | 6c 65 73 20 6f 72 20 24 |.data fi|les or $|
|000023b0| 78 24 20 72 61 6e 67 65 | 20 61 72 65 20 73 75 70 |x$ range| are sup|
|000023c0| 70 6c 69 65 64 2c 20 74 | 68 65 20 64 65 66 61 75 |plied, t|he defau|
|000023d0| 6c 74 20 72 61 6e 67 65 | 20 6f 66 20 24 5b 2d 31 |lt range| of $[-1|
|000023e0| 30 3a 31 30 5d 24 0a 69 | 73 20 75 73 65 64 2e 20 |0:10]$.i|s used. |
|000023f0| 57 65 20 68 61 76 65 20 | 61 6c 73 6f 20 6d 6f 76 |We have |also mov|
|00002400| 65 64 20 74 68 65 20 6b | 65 79 20 74 6f 20 61 20 |ed the k|ey to a |
|00002410| 64 69 66 66 65 72 65 6e | 74 20 70 6f 73 69 74 69 |differen|t positi|
|00002420| 6f 6e 2e 20 20 54 68 65 | 0a 66 75 6e 63 74 69 6f |on. The|.functio|
|00002430| 6e 20 24 79 3d 78 24 20 | 69 73 20 70 6c 6f 74 74 |n $y=x$ |is plott|
|00002440| 65 64 20 60 60 77 69 74 | 68 20 6c 69 6e 65 73 27 |ed ``wit|h lines'|
|00002450| 27 2c 20 77 68 69 63 68 | 20 69 73 20 74 68 65 20 |', which| is the |
|00002460| 64 65 66 61 75 6c 74 20 | 70 6c 6f 74 0a 73 74 79 |default |plot.sty|
|00002470| 6c 65 20 66 6f 72 20 66 | 75 6e 63 74 69 6f 6e 73 |le for f|unctions|
|00002480| 2c 20 61 6e 64 20 69 73 | 20 73 68 6f 77 6e 20 68 |, and is| shown h|
|00002490| 65 72 65 20 74 6f 20 69 | 6c 6c 75 73 74 72 61 74 |ere to i|llustrat|
|000024a0| 65 20 74 68 65 20 70 6c | 6f 74 20 73 74 79 6c 65 |e the pl|ot style|
|000024b0| 0a 6f 70 74 69 6f 6e 2e | 20 20 54 68 65 20 64 61 |.option.| The da|
|000024c0| 74 61 20 66 69 6c 65 20 | 7b 5c 74 74 20 65 67 33 |ta file |{\tt eg3|
|000024d0| 2e 64 61 74 7d 20 69 73 | 20 70 6c 6f 74 74 65 64 |.dat} is| plotted|
|000024e0| 20 77 69 74 68 20 73 74 | 79 6c 65 20 7b 5c 74 74 | with st|yle {\tt|
|000024f0| 0a 6c 69 6e 65 73 70 6f | 69 6e 74 73 7d 2c 20 61 |.linespo|ints}, a|
|00002500| 20 73 74 79 6c 65 20 6c | 69 6b 65 20 7b 5c 74 74 | style l|ike {\tt|
|00002510| 20 6c 69 6e 65 73 7d 20 | 74 68 61 74 20 61 6c 73 | lines} |that als|
|00002520| 6f 20 70 6c 6f 74 73 20 | 61 20 73 79 6d 62 6f 6c |o plots |a symbol|
|00002530| 20 61 74 0a 65 61 63 68 | 20 64 61 74 61 20 70 6f | at.each| data po|
|00002540| 69 6e 74 2e 0a 0a 54 68 | 65 72 65 20 69 73 20 61 |int...Th|ere is a|
|00002550| 20 73 74 79 6c 65 20 63 | 61 6c 6c 65 64 20 7b 5c | style c|alled {\|
|00002560| 74 74 20 70 6f 69 6e 74 | 73 7d 20 74 68 61 74 20 |tt point|s} that |
|00002570| 6f 6e 6c 79 20 70 6c 6f | 74 73 20 74 68 65 20 73 |only plo|ts the s|
|00002580| 79 6d 62 6f 6c 73 20 61 | 74 0a 64 61 74 61 20 70 |ymbols a|t.data p|
|00002590| 6f 69 6e 74 73 2c 20 61 | 6e 64 20 61 6e 6f 74 68 |oints, a|nd anoth|
|000025a0| 65 72 20 63 61 6c 6c 65 | 64 20 7b 5c 74 74 20 64 |er calle|d {\tt d|
|000025b0| 6f 74 73 7d 20 74 68 61 | 74 20 70 6c 6f 74 73 20 |ots} tha|t plots |
|000025c0| 61 20 74 69 6e 79 20 64 | 6f 74 20 66 6f 72 0a 65 |a tiny d|ot for.e|
|000025d0| 61 63 68 20 64 61 74 61 | 20 70 6f 69 6e 74 2e 20 |ach data| point. |
|000025e0| 20 54 68 65 20 7b 5c 74 | 74 20 70 6f 69 6e 74 73 | The {\t|t points|
|000025f0| 7d 20 61 6e 64 20 7b 5c | 74 74 20 6c 69 6e 65 73 |} and {\|tt lines|
|00002600| 70 6f 69 6e 74 73 7d 20 | 73 74 79 6c 65 73 0a 70 |points} |styles.p|
|00002610| 72 6f 64 75 63 65 20 61 | 20 64 69 66 66 65 72 65 |roduce a| differe|
|00002620| 6e 74 20 70 6f 69 6e 74 | 20 73 79 6d 62 6f 6c 20 |nt point| symbol |
|00002630| 66 6f 72 20 65 61 63 68 | 20 63 75 72 76 65 20 6f |for each| curve o|
|00002640| 6e 20 74 68 65 20 70 6c | 6f 74 20 28 66 6f 72 20 |n the pl|ot (for |
|00002650| 75 70 20 74 6f 0a 74 77 | 65 6c 76 65 20 73 79 6d |up to.tw|elve sym|
|00002660| 62 6f 6c 73 2c 20 61 66 | 74 65 72 20 77 68 69 63 |bols, af|ter whic|
|00002670| 68 20 74 68 65 79 20 61 | 72 65 20 72 65 2d 75 73 |h they a|re re-us|
|00002680| 65 64 3b 20 73 65 65 0a | 46 69 67 75 72 65 7e 5c |ed; see.|Figure~\|
|00002690| 72 65 66 7b 6c 69 6e 65 | 70 6f 69 6e 74 7d 20 66 |ref{line|point} f|
|000026a0| 6f 72 20 61 20 63 6f 6d | 70 6c 65 74 65 20 6c 69 |or a com|plete li|
|000026b0| 73 74 29 2e 20 54 68 65 | 20 7b 5c 74 74 20 6c 69 |st). The| {\tt li|
|000026c0| 6e 65 73 7d 20 61 6e 64 | 20 7b 5c 74 74 0a 6c 69 |nes} and| {\tt.li|
|000026d0| 6e 65 73 70 6f 69 6e 74 | 73 7d 20 73 74 79 6c 65 |nespoint|s} style|
|000026e0| 73 20 75 73 65 20 61 20 | 64 69 66 66 65 72 65 6e |s use a |differen|
|000026f0| 74 20 6c 69 6e 65 20 73 | 74 79 6c 65 20 66 6f 72 |t line s|tyle for|
|00002700| 20 65 61 63 68 20 63 75 | 72 76 65 20 6f 6e 20 74 | each cu|rve on t|
|00002710| 68 65 0a 70 6c 6f 74 20 | 28 69 6e 20 74 68 69 73 |he.plot |(in this|
|00002720| 20 65 78 61 6d 70 6c 65 | 20 74 68 65 20 64 6f 74 | example| the dot|
|00002730| 73 20 68 61 76 65 20 64 | 69 66 66 65 72 65 6e 74 |s have d|ifferent|
|00002740| 20 73 70 61 63 69 6e 67 | 29 2e 20 54 68 65 0a 73 | spacing|). The.s|
|00002750| 74 79 6c 65 20 7b 5c 74 | 74 20 69 6d 70 75 6c 73 |tyle {\t|t impuls|
|00002760| 65 73 7d 20 64 72 61 77 | 73 20 61 20 70 65 72 70 |es} draw|s a perp|
|00002770| 65 6e 64 69 63 75 6c 61 | 72 20 66 72 6f 6d 20 65 |endicula|r from e|
|00002780| 61 63 68 20 70 6f 69 6e | 74 20 74 6f 20 74 68 65 |ach poin|t to the|
|00002790| 0a 24 78 24 2d 61 78 69 | 73 2e 20 46 69 6e 61 6c |.$x$-axi|s. Final|
|000027a0| 6c 79 2c 20 74 68 65 20 | 7b 5c 74 74 20 65 72 72 |ly, the |{\tt err|
|000027b0| 6f 72 62 61 72 73 7d 20 | 73 74 79 6c 65 20 63 61 |orbars} |style ca|
|000027c0| 6e 20 64 72 61 77 20 65 | 72 72 6f 72 20 62 61 72 |n draw e|rror bar|
|000027d0| 73 20 61 74 0a 65 61 63 | 68 20 64 61 74 61 20 70 |s at.eac|h data p|
|000027e0| 6f 69 6e 74 20 28 73 65 | 65 20 74 68 65 20 47 4e |oint (se|e the GN|
|000027f0| 55 50 4c 4f 54 20 6d 61 | 6e 75 61 6c 29 2e 20 0a |UPLOT ma|nual). .|
|00002800| 0a 5c 70 61 72 61 67 72 | 61 70 68 7b 45 78 61 6d |.\paragr|aph{Exam|
|00002810| 70 6c 65 20 34 3a 7d 20 | 49 6e 20 74 68 65 20 61 |ple 4:} |In the a|
|00002820| 62 6f 76 65 20 70 6c 6f | 74 73 20 6f 66 20 24 5c |bove plo|ts of $\|
|00002830| 73 69 6e 28 78 29 24 2c | 20 69 74 20 77 6f 75 6c |sin(x)$,| it woul|
|00002840| 64 20 6d 61 6b 65 0a 6d | 6f 72 65 20 73 65 6e 73 |d make.m|ore sens|
|00002850| 65 20 74 6f 20 6c 61 62 | 65 6c 20 74 68 65 20 61 |e to lab|el the a|
|00002860| 78 69 73 20 69 6e 20 75 | 6e 69 74 73 20 6f 66 20 |xis in u|nits of |
|00002870| 24 5c 70 69 24 2e 20 54 | 68 65 20 70 6f 73 69 74 |$\pi$. T|he posit|
|00002880| 69 6f 6e 20 61 6e 64 0a | 6c 61 62 65 6c 73 20 6f |ion and.|labels o|
|00002890| 66 20 74 68 65 20 74 69 | 63 20 6c 61 62 65 6c 73 |f the ti|c labels|
|000028a0| 20 6d 61 79 20 62 65 20 | 73 70 65 63 69 66 69 65 | may be |specifie|
|000028b0| 64 20 62 79 20 74 68 65 | 20 75 73 65 72 2c 20 77 |d by the| user, w|
|000028c0| 69 74 68 20 74 68 65 20 | 7b 5c 74 74 0a 73 65 74 |ith the |{\tt.set|
|000028d0| 20 78 74 69 63 73 7d 20 | 61 6e 64 20 7b 5c 74 74 | xtics} |and {\tt|
|000028e0| 20 73 65 74 20 79 74 69 | 63 73 7d 20 63 6f 6d 6d | set yti|cs} comm|
|000028f0| 61 6e 64 73 2e 20 54 68 | 69 73 20 69 73 20 64 65 |ands. Th|is is de|
|00002900| 6d 6f 6e 73 74 72 61 74 | 65 64 20 62 79 0a 74 68 |monstrat|ed by.th|
|00002910| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 78 61 6d |e follow|ing exam|
|00002920| 70 6c 65 2c 20 73 68 6f | 77 6e 20 69 6e 20 46 69 |ple, sho|wn in Fi|
|00002930| 67 75 72 65 7e 5c 72 65 | 66 7b 65 67 34 7d 2e 0a |gure~\re|f{eg4}..|
|00002940| 0a 5c 73 69 6e 67 6c 65 | 73 70 61 63 65 0a 5c 62 |.\single|space.\b|
|00002950| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0a 20 |egin{ver|batim}. |
|00002960| 20 20 20 73 65 74 20 74 | 65 72 6d 69 6e 61 6c 20 | set t|erminal |
|00002970| 6c 61 74 65 78 0a 20 20 | 20 20 73 65 74 20 6f 75 |latex. | set ou|
|00002980| 74 70 75 74 20 22 65 67 | 34 2e 74 65 78 22 0a 20 |tput "eg|4.tex". |
|00002990| 20 20 20 73 65 74 20 66 | 6f 72 6d 61 74 20 79 20 | set f|ormat y |
|000029a0| 22 24 25 67 24 22 0a 20 | 20 20 20 73 65 74 20 66 |"$%g$". | set f|
|000029b0| 6f 72 6d 61 74 20 78 20 | 22 24 25 2e 32 66 24 22 |ormat x |"$%.2f$"|
|000029c0| 0a 20 20 20 20 73 65 74 | 20 74 69 74 6c 65 20 22 |. set| title "|
|000029d0| 54 68 69 73 20 69 73 20 | 24 5c 73 69 6e 28 78 29 |This is |$\sin(x)|
|000029e0| 24 22 0a 20 20 20 20 73 | 65 74 20 78 6c 61 62 65 |$". s|et xlabe|
|000029f0| 6c 20 22 54 68 69 73 20 | 69 73 20 74 68 65 20 24 |l "This |is the $|
|00002a00| 78 24 20 61 78 69 73 22 | 0a 20 20 20 20 73 65 74 |x$ axis"|. set|
|00002a10| 20 79 6c 61 62 65 6c 20 | 22 24 5c 73 69 6e 28 78 | ylabel |"$\sin(x|
|00002a20| 29 24 22 0a 20 20 20 20 | 73 65 74 20 6e 6f 6b 65 |)$". |set noke|
|00002a30| 79 0a 20 20 20 20 73 65 | 74 20 78 74 69 63 73 20 |y. se|t xtics |
|00002a40| 2d 70 69 2c 20 70 69 2f | 34 0a 20 20 20 20 70 6c |-pi, pi/|4. pl|
|00002a50| 6f 74 20 5b 2d 70 69 3a | 70 69 5d 20 5b 2d 31 3a |ot [-pi:|pi] [-1:|
|00002a60| 31 5d 20 73 69 6e 28 78 | 29 0a 5c 65 6e 64 7b 76 |1] sin(x|).\end{v|
|00002a70| 65 72 62 61 74 69 6d 7d | 0a 5c 63 75 72 72 65 6e |erbatim}|.\curren|
|00002a80| 74 73 70 61 63 65 0a 0a | 5c 62 6f 78 66 69 67 75 |tspace..|\boxfigu|
|00002a90| 72 65 7b 68 74 62 70 7d | 7b 5c 66 75 6c 6c 62 6f |re{htbp}|{\fullbo|
|00002aa0| 78 77 69 64 74 68 7d 7b | 0a 20 20 5c 62 65 67 69 |xwidth}{|. \begi|
|00002ab0| 6e 7b 63 65 6e 74 65 72 | 7d 0a 20 20 20 20 5c 69 |n{center|}. \i|
|00002ac0| 6e 70 75 74 7b 65 67 34 | 7d 0a 20 20 5c 65 6e 64 |nput{eg4|}. \end|
|00002ad0| 7b 63 65 6e 74 65 72 7d | 0a 20 20 5c 63 61 70 74 |{center}|. \capt|
|00002ae0| 69 6f 6e 7b 41 6e 20 65 | 78 61 6d 70 6c 65 20 6f |ion{An e|xample o|
|00002af0| 66 20 74 68 65 20 7b 5c | 74 74 20 73 65 74 20 78 |f the {\|tt set x|
|00002b00| 74 69 63 73 7d 20 63 6f | 6d 6d 61 6e 64 2e 7d 0a |tics} co|mmand.}.|
|00002b10| 20 20 5c 6c 61 62 65 6c | 7b 65 67 34 7d 0a 7d 0a | \label|{eg4}.}.|
|00002b20| 0a 53 69 6e 63 65 20 7b | 5c 74 74 20 70 69 7d 20 |.Since {|\tt pi} |
|00002b30| 69 73 20 61 20 70 72 65 | 64 65 66 69 6e 65 64 20 |is a pre|defined |
|00002b40| 76 61 72 69 61 62 6c 65 | 20 69 6e 20 47 4e 55 50 |variable| in GNUP|
|00002b50| 4c 4f 54 2c 20 77 65 20 | 63 61 6e 20 75 73 65 20 |LOT, we |can use |
|00002b60| 69 74 0a 61 6e 79 77 68 | 65 72 65 20 77 65 20 6d |it.anywh|ere we m|
|00002b70| 61 79 20 75 73 65 20 61 | 6e 20 65 78 70 72 65 73 |ay use a|n expres|
|00002b80| 73 69 6f 6e 2e 20 54 68 | 65 20 7b 5c 74 74 20 73 |sion. Th|e {\tt s|
|00002b90| 65 74 20 78 74 69 63 73 | 7d 20 63 6f 6d 6d 61 6e |et xtics|} comman|
|00002ba0| 64 20 68 65 72 65 0a 73 | 70 65 63 69 66 69 65 73 |d here.s|pecifies|
|00002bb0| 20 74 68 61 74 20 74 68 | 65 20 74 69 63 73 20 6f | that th|e tics o|
|00002bc0| 6e 20 74 68 65 20 24 78 | 24 20 61 78 69 73 20 73 |n the $x|$ axis s|
|00002bd0| 74 61 72 74 20 61 74 20 | 24 2d 5c 70 69 24 20 61 |tart at |$-\pi$ a|
|00002be0| 6e 64 20 69 6e 63 72 65 | 6d 65 6e 74 0a 62 79 20 |nd incre|ment.by |
|00002bf0| 24 5c 70 69 2f 34 24 2e | 20 53 69 6e 63 65 20 6e |$\pi/4$.| Since n|
|00002c00| 6f 20 65 6e 64 20 70 6f | 69 6e 74 20 69 73 20 67 |o end po|int is g|
|00002c10| 69 76 65 6e 2c 20 74 68 | 65 20 74 69 63 73 20 63 |iven, th|e tics c|
|00002c20| 6f 6e 74 69 6e 75 65 20 | 74 6f 20 74 68 65 0a 72 |ontinue |to the.r|
|00002c30| 69 67 68 74 20 65 64 67 | 65 2e 20 57 65 20 68 61 |ight edg|e. We ha|
|00002c40| 76 65 20 61 6c 73 6f 20 | 74 75 72 6e 65 64 20 6f |ve also |turned o|
|00002c50| 66 66 20 74 68 65 20 6b | 65 79 2c 20 61 6e 64 20 |ff the k|ey, and |
|00002c60| 63 68 61 6e 67 65 64 20 | 74 68 65 20 66 6f 72 6d |changed |the form|
|00002c70| 61 74 20 74 6f 0a 72 65 | 73 74 72 69 63 74 20 74 |at to.re|strict t|
|00002c80| 68 65 20 24 78 24 2d 61 | 78 69 73 20 74 69 63 20 |he $x$-a|xis tic |
|00002c90| 6c 61 62 65 6c 73 20 74 | 6f 20 32 20 64 65 63 69 |labels t|o 2 deci|
|00002ca0| 6d 61 6c 20 70 6c 61 63 | 65 73 2e 0a 0a 57 69 74 |mal plac|es...Wit|
|00002cb0| 68 20 61 20 6c 69 74 74 | 6c 65 20 6d 6f 72 65 20 |h a litt|le more |
|00002cc0| 77 6f 72 6b 2c 20 74 68 | 65 20 70 6c 6f 74 20 63 |work, th|e plot c|
|00002cd0| 61 6e 20 6c 6f 6f 6b 20 | 65 76 65 6e 20 62 65 74 |an look |even bet|
|00002ce0| 74 65 72 2e 20 20 41 6e | 6f 74 68 65 72 20 66 6f |ter. An|other fo|
|00002cf0| 72 6d 0a 6f 66 20 74 68 | 69 73 20 63 6f 6d 6d 61 |rm.of th|is comma|
|00002d00| 6e 64 20 61 6c 6c 6f 77 | 73 20 75 73 20 74 6f 20 |nd allow|s us to |
|00002d10| 73 70 65 63 69 66 79 20 | 74 68 65 20 6c 61 62 65 |specify |the labe|
|00002d20| 6c 20 61 6e 64 20 70 6f | 73 69 74 69 6f 6e 20 6f |l and po|sition o|
|00002d30| 66 20 65 61 63 68 0a 74 | 69 63 20 69 6e 64 69 76 |f each.t|ic indiv|
|00002d40| 69 64 75 61 6c 6c 79 2e | 20 20 52 65 70 6c 61 63 |idually.| Replac|
|00002d50| 69 6e 67 20 74 68 65 20 | 61 62 6f 76 65 20 7b 5c |ing the |above {\|
|00002d60| 74 74 20 73 65 74 20 78 | 74 69 63 73 7d 20 63 6f |tt set x|tics} co|
|00002d70| 6d 6d 61 6e 64 20 77 69 | 74 68 0a 74 68 65 20 66 |mmand wi|th.the f|
|00002d80| 6f 6c 6c 6f 77 69 6e 67 | 20 67 69 76 65 73 20 75 |ollowing| gives u|
|00002d90| 73 20 46 69 67 75 72 65 | 7e 5c 72 65 66 7b 65 67 |s Figure|~\ref{eg|
|00002da0| 35 7d 2e 20 57 65 20 61 | 6c 73 6f 20 6d 61 6b 65 |5}. We a|lso make|
|00002db0| 20 75 73 65 20 6f 66 20 | 74 68 65 20 6c 69 6e 65 | use of |the line|
|00002dc0| 0a 63 6f 6e 74 69 6e 75 | 61 74 69 6f 6e 20 63 68 |.continu|ation ch|
|00002dd0| 61 72 61 63 74 65 72 2c | 20 74 68 65 20 62 61 63 |aracter,| the bac|
|00002de0| 6b 73 6c 61 73 68 20 28 | 5c 76 65 72 62 2b 5c 2b |kslash (|\verb+\+|
|00002df0| 29 2c 20 74 6f 20 73 70 | 72 65 61 64 20 6f 75 74 |), to sp|read out|
|00002e00| 20 74 68 69 73 0a 63 6f | 6d 6d 61 6e 64 20 66 6f | this.co|mmand fo|
|00002e10| 72 20 72 65 61 64 61 62 | 69 6c 69 74 79 2e 0a 0a |r readab|ility...|
|00002e20| 5c 73 69 6e 67 6c 65 73 | 70 61 63 65 0a 5c 62 65 |\singles|pace.\be|
|00002e30| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|00002e40| 20 20 73 65 74 20 78 74 | 69 63 73 20 28 22 24 2d | set xt|ics ("$-|
|00002e50| 5c 70 69 24 22 20 2d 70 | 69 2c 5c 0a 20 20 20 20 |\pi$" -p|i,\. |
|00002e60| 20 22 24 2d 5c 66 72 61 | 63 7b 5c 70 69 7d 7b 32 | "$-\fra|c{\pi}{2|
|00002e70| 7d 24 22 20 2d 70 69 2f | 32 2c 5c 0a 20 20 20 20 |}$" -pi/|2,\. |
|00002e80| 20 22 30 22 20 30 2c 5c | 0a 20 20 20 20 20 22 24 | "0" 0,\|. "$|
|00002e90| 5c 66 72 61 63 7b 5c 70 | 69 7d 7b 32 7d 24 22 20 |\frac{\p|i}{2}$" |
|00002ea0| 70 69 2f 32 2c 5c 0a 20 | 20 20 20 20 22 24 5c 70 |pi/2,\. | "$\p|
|00002eb0| 69 24 22 20 70 69 29 0a | 5c 65 6e 64 7b 76 65 72 |i$" pi).|\end{ver|
|00002ec0| 62 61 74 69 6d 7d 0a 5c | 63 75 72 72 65 6e 74 73 |batim}.\|currents|
|00002ed0| 70 61 63 65 0a 0a 5c 62 | 6f 78 66 69 67 75 72 65 |pace..\b|oxfigure|
|00002ee0| 7b 68 74 62 70 7d 7b 5c | 66 75 6c 6c 62 6f 78 77 |{htbp}{\|fullboxw|
|00002ef0| 69 64 74 68 7d 7b 0a 20 | 20 5c 62 65 67 69 6e 7b |idth}{. | \begin{|
|00002f00| 63 65 6e 74 65 72 7d 0a | 20 20 20 20 5c 69 6e 70 |center}.| \inp|
|00002f10| 75 74 7b 65 67 35 7d 0a | 20 20 5c 65 6e 64 7b 63 |ut{eg5}.| \end{c|
|00002f20| 65 6e 74 65 72 7d 0a 20 | 20 5c 63 61 70 74 69 6f |enter}. | \captio|
|00002f30| 6e 7b 41 20 66 61 6e 63 | 79 20 65 78 61 6d 70 6c |n{A fanc|y exampl|
|00002f40| 65 20 6f 66 20 74 68 65 | 20 7b 5c 74 74 20 73 65 |e of the| {\tt se|
|00002f50| 74 20 78 74 69 63 73 7d | 20 63 6f 6d 6d 61 6e 64 |t xtics}| command|
|00002f60| 2e 7d 0a 20 20 5c 6c 61 | 62 65 6c 7b 65 67 35 7d |.}. \la|bel{eg5}|
|00002f70| 0a 7d 0a 0a 5c 70 61 72 | 61 67 72 61 70 68 7b 47 |.}..\par|agraph{G|
|00002f80| 6f 69 6e 67 20 66 75 72 | 74 68 65 72 3a 7d 20 59 |oing fur|ther:} Y|
|00002f90| 6f 75 20 73 68 6f 75 6c | 64 20 6e 6f 77 20 62 65 |ou shoul|d now be|
|00002fa0| 20 61 62 6c 65 20 74 6f | 20 6d 61 6b 65 20 61 20 | able to| make a |
|00002fb0| 76 61 72 69 65 74 79 20 | 6f 66 0a 70 6c 6f 74 73 |variety |of.plots|
|00002fc0| 20 66 6f 72 20 79 6f 75 | 72 20 5c 4c 61 54 65 58 | for you|r \LaTeX|
|00002fd0| 5c 20 64 6f 63 75 6d 65 | 6e 74 2e 20 57 65 20 77 |\ docume|nt. We w|
|00002fe0| 69 6c 6c 20 70 72 65 73 | 65 6e 74 20 61 20 66 69 |ill pres|ent a fi|
|00002ff0| 6e 61 6c 20 65 78 61 6d | 70 6c 65 0a 77 69 74 68 |nal exam|ple.with|
|00003000| 6f 75 74 20 65 78 70 6c | 61 6e 61 74 69 6f 6e 20 |out expl|anation |
|00003010| 74 68 61 74 20 73 68 6f | 77 63 61 73 65 73 20 73 |that sho|wcases s|
|00003020| 6f 6d 65 20 6f 66 20 74 | 68 65 20 63 61 70 61 62 |ome of t|he capab|
|00003030| 69 6c 69 74 69 65 73 20 | 6f 66 0a 47 4e 55 50 4c |ilities |of.GNUPL|
|00003040| 4f 54 2e 20 59 6f 75 20 | 6d 61 79 20 66 69 6e 64 |OT. You |may find|
|00003050| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|00003060| 6f 72 20 74 68 65 20 76 | 61 72 69 6f 75 73 20 63 |or the v|arious c|
|00003070| 6f 6d 6d 61 6e 64 73 20 | 69 6e 20 74 68 65 0a 47 |ommands |in the.G|
|00003080| 4e 55 50 4c 4f 54 20 6d | 61 6e 75 61 6c 2c 20 74 |NUPLOT m|anual, t|
|00003090| 68 6f 75 67 68 20 68 6f | 70 65 66 75 6c 6c 79 20 |hough ho|pefully |
|000030a0| 74 68 69 73 20 65 78 61 | 6d 70 6c 65 20 69 73 20 |this exa|mple is |
|000030b0| 73 6f 6d 65 77 68 61 74 | 0a 73 65 6c 66 2d 65 78 |somewhat|.self-ex|
|000030c0| 70 6c 61 6e 61 74 6f 72 | 79 2e 20 54 68 69 73 20 |planator|y. This |
|000030d0| 69 73 20 73 68 6f 77 6e | 20 69 6e 20 46 69 67 75 |is shown| in Figu|
|000030e0| 72 65 7e 5c 72 65 66 7b | 65 67 36 7d 2e 0a 0a 5c |re~\ref{|eg6}...\|
|000030f0| 73 69 6e 67 6c 65 73 70 | 61 63 65 0a 5c 62 65 67 |singlesp|ace.\beg|
|00003100| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0a 20 20 20 |in{verba|tim}. |
|00003110| 20 73 65 74 20 74 65 72 | 6d 69 6e 61 6c 20 6c 61 | set ter|minal la|
|00003120| 74 65 78 0a 20 20 20 20 | 73 65 74 20 6f 75 74 70 |tex. |set outp|
|00003130| 75 74 20 22 65 67 36 2e | 74 65 78 22 0a 20 20 20 |ut "eg6.|tex". |
|00003140| 20 73 65 74 20 73 69 7a | 65 20 33 2e 35 2f 35 2c | set siz|e 3.5/5,|
|00003150| 20 33 2f 33 2e 0a 20 20 | 20 20 73 65 74 20 66 6f | 3/3.. | set fo|
|00003160| 72 6d 61 74 20 79 20 22 | 24 25 67 24 22 0a 20 20 |rmat y "|$%g$". |
|00003170| 20 20 73 65 74 20 66 6f | 72 6d 61 74 20 78 20 22 | set fo|rmat x "|
|00003180| 24 25 35 2e 31 66 5c 6d | 75 24 22 0a 20 20 20 20 |$%5.1f\m|u$". |
|00003190| 73 65 74 20 74 69 74 6c | 65 20 22 54 68 69 73 20 |set titl|e "This |
|000031a0| 69 73 20 61 20 74 69 74 | 6c 65 22 0a 20 20 20 20 |is a tit|le". |
|000031b0| 73 65 74 20 78 6c 61 62 | 65 6c 20 22 54 68 69 73 |set xlab|el "This|
|000031c0| 20 69 73 20 74 68 65 20 | 24 78 24 20 61 78 69 73 | is the |$x$ axis|
|000031d0| 22 0a 20 20 20 20 73 65 | 74 20 79 6c 61 62 65 6c |". se|t ylabel|
|000031e0| 20 22 54 68 69 73 20 69 | 73 5c 5c 61 20 6c 6f 6e | "This i|s\\a lon|
|000031f0| 67 65 72 5c 5c 76 65 72 | 73 69 6f 6e 5c 5c 20 6f |ger\\ver|sion\\ o|
|00003200| 66 5c 5c 74 68 65 20 24 | 79 24 5c 5c 20 61 78 69 |f\\the $|y$\\ axi|
|00003210| 73 22 0a 20 20 20 20 73 | 65 74 20 6c 61 62 65 6c |s". s|et label|
|00003220| 20 22 44 61 74 61 22 20 | 61 74 20 2d 35 2c 2d 35 | "Data" |at -5,-5|
|00003230| 20 72 69 67 68 74 0a 20 | 20 20 20 73 65 74 20 61 | right. | set a|
|00003240| 72 72 6f 77 20 66 72 6f | 6d 20 2d 35 2c 2d 35 20 |rrow fro|m -5,-5 |
|00003250| 74 6f 20 2d 33 2e 33 2c | 2d 36 2e 37 0a 20 20 20 |to -3.3,|-6.7. |
|00003260| 20 73 65 74 20 6b 65 79 | 20 2d 34 2c 38 0a 20 20 | set key| -4,8. |
|00003270| 20 20 73 65 74 20 78 74 | 69 63 20 2d 31 30 2c 35 | set xt|ic -10,5|
|00003280| 2c 31 30 0a 20 20 20 20 | 70 6c 6f 74 20 5b 2d 31 |,10. |plot [-1|
|00003290| 30 3a 31 30 5d 20 5b 2d | 31 30 3a 31 30 5d 20 22 |0:10] [-|10:10] "|
|000032a0| 65 67 33 2e 64 61 74 22 | 20 74 69 74 6c 65 20 22 |eg3.dat"| title "|
|000032b0| 44 61 74 61 20 46 69 6c | 65 22 20 20 77 69 74 68 |Data Fil|e" with|
|000032c0| 20 6c 69 6e 65 73 70 6f | 69 6e 74 73 20 31 20 37 | linespo|ints 1 7|
|000032d0| 2c 5c 0a 20 20 20 20 20 | 20 20 33 2a 65 78 70 28 |,\. | 3*exp(|
|000032e0| 2d 78 2a 78 29 2b 31 20 | 20 74 69 74 6c 65 20 22 |-x*x)+1 | title "|
|000032f0| 24 33 65 5e 7b 2d 78 5e | 7b 32 7d 7d 2b 31 24 22 |$3e^{-x^|{2}}+1$"|
|00003300| 20 77 69 74 68 20 6c 69 | 6e 65 73 20 34 0a 5c 65 | with li|nes 4.\e|
|00003310| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 5c 63 75 |nd{verba|tim}.\cu|
|00003320| 72 72 65 6e 74 73 70 61 | 63 65 0a 0a 5c 62 6f 78 |rrentspa|ce..\box|
|00003330| 66 69 67 75 72 65 7b 68 | 74 62 70 7d 7b 5c 66 75 |figure{h|tbp}{\fu|
|00003340| 6c 6c 62 6f 78 77 69 64 | 74 68 7d 7b 0a 20 20 5c |llboxwid|th}{. \|
|00003350| 62 65 67 69 6e 7b 63 65 | 6e 74 65 72 7d 0a 20 20 |begin{ce|nter}. |
|00003360| 20 20 5c 69 6e 70 75 74 | 7b 65 67 36 7d 0a 20 20 | \input|{eg6}. |
|00003370| 5c 65 6e 64 7b 63 65 6e | 74 65 72 7d 0a 20 20 5c |\end{cen|ter}. \|
|00003380| 63 61 70 74 69 6f 6e 7b | 41 6e 20 65 78 61 6d 70 |caption{|An examp|
|00003390| 6c 65 20 6f 66 20 6d 61 | 6e 79 20 66 65 61 74 75 |le of ma|ny featu|
|000033a0| 72 65 73 2e 7d 0a 20 20 | 5c 6c 61 62 65 6c 7b 65 |res.}. |\label{e|
|000033b0| 67 36 7d 0a 7d 0a 0a 5c | 70 61 72 61 67 72 61 70 |g6}.}..\|paragrap|
|000033c0| 68 7b 4c 69 6e 65 20 61 | 6e 64 20 70 6f 69 6e 74 |h{Line a|nd point|
|000033d0| 20 74 79 70 65 73 3a 7d | 20 46 6f 72 20 72 65 66 | types:}| For ref|
|000033e0| 65 72 65 6e 63 65 2c 20 | 77 65 20 73 68 6f 77 20 |erence, |we show |
|000033f0| 61 6c 6c 20 6f 66 20 74 | 68 65 0a 6c 69 6e 65 20 |all of t|he.line |
|00003400| 61 6e 64 20 70 6f 69 6e | 74 20 74 79 70 65 73 20 |and poin|t types |
|00003410| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 46 69 67 |availabl|e in Fig|
|00003420| 75 72 65 7e 5c 72 65 66 | 7b 6c 69 6e 65 70 6f 69 |ure~\ref|{linepoi|
|00003430| 6e 74 7d 2e 0a 0a 5c 62 | 6f 78 66 69 67 75 72 65 |nt}...\b|oxfigure|
|00003440| 7b 68 74 62 70 7d 7b 5c | 66 75 6c 6c 62 6f 78 77 |{htbp}{\|fullboxw|
|00003450| 69 64 74 68 7d 7b 0a 20 | 20 5c 62 65 67 69 6e 7b |idth}{. | \begin{|
|00003460| 63 65 6e 74 65 72 7d 0a | 20 20 20 20 5c 69 6e 70 |center}.| \inp|
|00003470| 75 74 7b 6c 69 6e 65 70 | 6f 69 6e 74 7d 0a 20 20 |ut{linep|oint}. |
|00003480| 5c 65 6e 64 7b 63 65 6e | 74 65 72 7d 0a 20 20 5c |\end{cen|ter}. \|
|00003490| 63 61 70 74 69 6f 6e 7b | 41 6c 6c 20 6f 66 20 74 |caption{|All of t|
|000034a0| 68 65 20 6c 69 6e 65 20 | 61 6e 64 20 70 6f 69 6e |he line |and poin|
|000034b0| 74 20 74 79 70 65 73 20 | 69 6e 20 74 68 65 20 5c |t types |in the \|
|000034c0| 4c 61 54 65 58 5c 20 64 | 72 69 76 65 72 2e 7d 0a |LaTeX\ d|river.}.|
|000034d0| 20 20 5c 6c 61 62 65 6c | 7b 6c 69 6e 65 70 6f 69 | \label|{linepoi|
|000034e0| 6e 74 7d 0a 7d 0a 0a 5c | 73 75 62 73 65 63 74 69 |nt}.}..\|subsecti|
|000034f0| 6f 6e 7b 53 75 6d 6d 61 | 72 79 20 2d 2d 2d 20 55 |on{Summa|ry --- U|
|00003500| 73 65 20 77 69 74 68 20 | 5c 4c 61 54 65 58 7d 0a |se with |\LaTeX}.|
|00003510| 49 6e 20 73 75 6d 6d 61 | 72 79 2c 20 74 6f 20 75 |In summa|ry, to u|
|00003520| 73 65 20 74 68 65 20 5c | 4c 61 54 65 58 5c 20 66 |se the \|LaTeX\ f|
|00003530| 61 63 69 6c 69 74 69 65 | 73 20 6f 66 20 47 4e 55 |acilitie|s of GNU|
|00003540| 50 4c 4f 54 2c 20 74 68 | 65 20 66 69 72 73 74 0a |PLOT, th|e first.|
|00003550| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 47 4e 55 50 4c |command |to GNUPL|
|00003560| 4f 54 20 73 68 6f 75 6c | 64 20 62 65 0a 5c 62 65 |OT shoul|d be.\be|
|00003570| 67 69 6e 7b 73 79 6e 74 | 61 78 7d 0a 20 20 20 20 |gin{synt|ax}. |
|00003580| 73 65 74 20 74 65 72 6d | 69 6e 61 6c 20 6c 61 74 |set term|inal lat|
|00003590| 65 78 0a 5c 65 6e 64 7b | 73 79 6e 74 61 78 7d 0a |ex.\end{|syntax}.|
|000035a0| 61 6e 64 20 74 68 65 20 | 6f 75 74 70 75 74 20 6f |and the |output o|
|000035b0| 66 20 47 4e 55 50 4c 4f | 54 20 73 68 6f 75 6c 64 |f GNUPLO|T should|
|000035c0| 20 62 65 20 64 69 72 65 | 63 74 65 64 20 74 6f 20 | be dire|cted to |
|000035d0| 61 20 66 69 6c 65 2c 20 | 66 6f 72 20 65 78 61 6d |a file, |for exam|
|000035e0| 70 6c 65 2c 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |ple,.\be|gin{verb|
|000035f0| 61 74 69 6d 7d 0a 20 20 | 20 20 73 65 74 20 6f 75 |atim}. | set ou|
|00003600| 74 70 75 74 20 22 70 6c | 6f 74 2e 74 65 78 22 0a |tput "pl|ot.tex".|
|00003610| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 54 |\end{ver|batim}.T|
|00003620| 68 69 73 20 6d 61 79 20 | 62 65 20 61 6e 79 74 68 |his may |be anyth|
|00003630| 69 6e 67 20 79 6f 75 20 | 6c 69 6b 65 20 62 75 74 |ing you |like but|
|00003640| 20 69 74 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 | it shou|ld have |
|00003650| 61 20 7b 5c 74 74 20 2e | 74 65 78 7d 20 65 78 74 |a {\tt .|tex} ext|
|00003660| 65 6e 73 69 6f 6e 2c 0a | 6f 66 20 63 6f 75 72 73 |ension,.|of cours|
|00003670| 65 2e 20 54 68 65 6e 20 | 74 68 65 20 73 69 7a 65 |e. Then |the size|
|00003680| 20 6f 66 20 74 68 65 20 | 70 6c 6f 74 20 73 68 6f | of the |plot sho|
|00003690| 75 6c 64 20 62 65 20 67 | 69 76 65 6e 2e 20 46 6f |uld be g|iven. Fo|
|000036a0| 72 20 65 78 61 6d 70 6c | 65 2c 20 74 68 65 0a 63 |r exampl|e, the.c|
|000036b0| 6f 6d 6d 61 6e 64 20 0a | 5c 62 65 67 69 6e 7b 76 |ommand .|\begin{v|
|000036c0| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 73 65 74 |erbatim}|. set|
|000036d0| 20 73 69 7a 65 20 31 2c | 32 0a 5c 65 6e 64 7b 76 | size 1,|2.\end{v|
|000036e0| 65 72 62 61 74 69 6d 7d | 0a 74 65 6c 6c 73 20 47 |erbatim}|.tells G|
|000036f0| 4e 55 50 4c 4f 54 20 74 | 6f 20 75 73 65 20 61 20 |NUPLOT t|o use a |
|00003700| 35 20 69 6e 63 68 20 77 | 69 64 65 20 62 79 20 36 |5 inch w|ide by 6|
|00003710| 20 69 6e 63 68 20 68 69 | 67 68 20 62 6f 78 20 66 | inch hi|gh box f|
|00003720| 6f 72 20 74 68 65 20 70 | 6c 6f 74 2e 0a 54 68 65 |or the p|lot..The|
|00003730| 20 6e 75 6d 62 65 72 73 | 20 67 69 76 65 6e 20 61 | numbers| given a|
|00003740| 72 65 20 7b 5c 65 6d 20 | 73 63 61 6c 65 20 66 61 |re {\em |scale fa|
|00003750| 63 74 6f 72 73 7d 2c 20 | 6e 6f 74 20 74 68 65 20 |ctors}, |not the |
|00003760| 61 63 74 75 61 6c 20 73 | 69 7a 65 2e 20 20 54 68 |actual s|ize. Th|
|00003770| 65 0a 64 65 66 61 75 6c | 74 20 69 73 20 35 20 69 |e.defaul|t is 5 i|
|00003780| 6e 63 68 65 73 20 62 79 | 20 33 20 69 6e 63 68 65 |nches by| 3 inche|
|00003790| 73 2e 20 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |s. This| is the |
|000037a0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 63 6f 6d 70 |size of |the comp|
|000037b0| 6c 65 74 65 0a 70 6c 6f | 74 2c 20 69 6e 63 6c 75 |lete.plo|t, inclu|
|000037c0| 64 69 6e 67 20 61 6c 6c | 20 6c 61 62 65 6c 73 2e |ding all| labels.|
|000037d0| 0a 0a 57 68 65 6e 20 66 | 69 6e 69 73 68 65 64 2c |..When f|inished,|
|000037e0| 20 74 68 65 20 66 69 6c | 65 20 77 69 6c 6c 20 63 | the fil|e will c|
|000037f0| 6f 6e 74 61 69 6e 20 61 | 6c 6c 20 6f 66 20 74 68 |ontain a|ll of th|
|00003800| 65 20 70 6c 6f 74 73 20 | 79 6f 75 20 68 61 76 65 |e plots |you have|
|00003810| 0a 73 70 65 63 69 66 69 | 65 64 20 28 79 6f 75 20 |.specifi|ed (you |
|00003820| 70 72 6f 62 61 62 6c 79 | 20 6f 6e 6c 79 20 77 61 |probably| only wa|
|00003830| 6e 74 20 6f 6e 65 20 70 | 6c 6f 74 20 70 65 72 20 |nt one p|lot per |
|00003840| 66 69 6c 65 29 2e 20 54 | 68 69 73 20 66 69 6c 65 |file). T|his file|
|00003850| 20 63 61 6e 0a 74 68 65 | 6e 20 62 65 20 75 73 65 | can.the|n be use|
|00003860| 64 20 69 6e 20 61 20 5c | 4c 61 54 65 58 5c 20 64 |d in a \|LaTeX\ d|
|00003870| 6f 63 75 6d 65 6e 74 2c | 20 5c 65 67 2c 0a 0a 5c |ocument,| \eg,..\|
|00003880| 73 69 6e 67 6c 65 73 70 | 61 63 65 0a 5c 62 65 67 |singlesp|ace.\beg|
|00003890| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0a 20 20 20 |in{verba|tim}. |
|000038a0| 20 5c 62 65 67 69 6e 20 | 7b 66 69 67 75 72 65 7d | \begin |{figure}|
|000038b0| 0a 20 20 20 20 20 20 5c | 62 65 67 69 6e 7b 63 65 |. \|begin{ce|
|000038c0| 6e 74 65 72 7d 0a 20 20 | 20 20 20 20 20 20 5c 69 |nter}. | \i|
|000038d0| 6e 70 75 74 7b 70 6c 6f | 74 7d 0a 20 20 20 20 20 |nput{plo|t}. |
|000038e0| 20 5c 65 6e 64 7b 63 65 | 6e 74 65 72 7d 0a 20 20 | \end{ce|nter}. |
|000038f0| 20 20 5c 65 6e 64 20 7b | 66 69 67 75 72 65 7d 0a | \end {|figure}.|
|00003900| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 5c |\end{ver|batim}.\|
|00003910| 63 75 72 72 65 6e 74 73 | 70 61 63 65 0a 54 68 69 |currents|pace.Thi|
|00003920| 73 20 70 75 74 73 20 74 | 68 65 20 70 6c 6f 74 20 |s puts t|he plot |
|00003930| 69 6e 74 6f 20 61 20 66 | 69 67 75 72 65 2e 20 0a |into a f|igure. .|
|00003940| 0a 59 6f 75 20 77 69 6c | 6c 20 61 6c 73 6f 20 77 |.You wil|l also w|
|00003950| 61 6e 74 20 74 6f 20 72 | 65 61 64 20 61 62 6f 75 |ant to r|ead abou|
|00003960| 74 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |t the fo|llowing |
|00003970| 63 6f 6d 6d 61 6e 64 73 | 3a 20 7b 5c 74 74 20 73 |commands|: {\tt s|
|00003980| 65 74 0a 74 69 74 6c 65 | 2c 20 73 65 74 20 78 6c |et.title|, set xl|
|00003990| 61 62 65 6c 2c 20 73 65 | 74 20 79 6c 61 62 65 6c |abel, se|t ylabel|
|000039a0| 2c 20 73 65 74 20 6b 65 | 79 2c 20 73 65 74 20 6c |, set ke|y, set l|
|000039b0| 61 62 65 6c 2c 20 73 65 | 74 20 78 74 69 63 73 2c |abel, se|t xtics,|
|000039c0| 20 73 65 74 0a 79 74 69 | 63 73 7d 2c 20 61 6e 64 | set.yti|cs}, and|
|000039d0| 20 7b 5c 74 74 20 73 65 | 74 20 63 6c 69 70 7d 2e | {\tt se|t clip}.|
|000039e0| 20 20 54 68 65 73 65 20 | 61 72 65 20 61 6c 6c 20 | These |are all |
|000039f0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|00003a00| 20 72 65 67 75 6c 61 72 | 0a 47 4e 55 50 4c 4f 54 | regular|.GNUPLOT|
|00003a10| 20 6d 61 6e 75 61 6c 2e | 0a 0a 5c 73 65 63 74 69 | manual.|..\secti|
|00003a20| 6f 6e 7b 55 73 65 20 77 | 69 74 68 20 45 45 50 49 |on{Use w|ith EEPI|
|00003a30| 43 7d 0a 5c 6c 61 62 65 | 6c 7b 73 3a 65 65 70 69 |C}.\labe|l{s:eepi|
|00003a40| 63 7d 0a 45 45 50 49 43 | 20 69 73 20 61 20 6d 61 |c}.EEPIC| is a ma|
|00003a50| 63 72 6f 20 70 61 63 6b | 61 67 65 20 65 78 74 65 |cro pack|age exte|
|00003a60| 6e 64 69 6e 67 20 74 68 | 65 20 70 69 63 74 75 72 |nding th|e pictur|
|00003a70| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 6f 66 |e enviro|nment of|
|00003a80| 20 5c 4c 61 54 65 58 2e | 0a 49 66 20 79 6f 75 20 | \LaTeX.|.If you |
|00003a90| 68 61 76 65 20 74 68 65 | 20 45 50 49 43 20 6f 72 |have the| EPIC or|
|00003aa0| 20 45 45 50 49 43 20 6d | 61 63 72 6f 73 2c 20 61 | EEPIC m|acros, a|
|00003ab0| 6e 64 20 79 6f 75 72 20 | 7b 5c 74 74 20 64 76 69 |nd your |{\tt dvi|
|00003ac0| 7d 20 74 72 61 6e 73 6c | 61 74 6f 72 0a 73 75 70 |} transl|ator.sup|
|00003ad0| 70 6f 72 74 73 20 74 68 | 65 20 7b 5c 65 6d 20 74 |ports th|e {\em t|
|00003ae0| 70 69 63 5c 2f 7d 20 5c | 76 65 72 62 2b 5c 73 70 |pic\/} \|verb+\sp|
|00003af0| 65 63 69 61 6c 2b 73 2c | 20 74 68 65 6e 20 79 6f |ecial+s,| then yo|
|00003b00| 75 20 63 61 6e 20 73 61 | 76 65 20 5c 4c 61 54 65 |u can sa|ve \LaTe|
|00003b10| 58 5c 0a 6d 65 6d 6f 72 | 79 2e 20 20 57 69 74 68 |X\.memor|y. With|
|00003b20| 20 45 45 50 49 43 20 70 | 69 63 74 75 72 65 73 2c | EEPIC p|ictures,|
|00003b30| 20 74 68 65 20 7b 5c 74 | 74 20 70 6c 6f 74 2e 74 | the {\t|t plot.t|
|00003b40| 65 78 7d 20 66 69 6c 65 | 20 77 69 6c 6c 20 62 65 |ex} file| will be|
|00003b50| 20 73 6d 61 6c 6c 65 72 | 2c 0a 5c 4c 61 54 65 58 | smaller|,.\LaTeX|
|00003b60| 5c 20 77 69 6c 6c 20 72 | 75 6e 20 6d 75 63 68 20 |\ will r|un much |
|00003b70| 66 61 73 74 65 72 20 28 | 61 6e 64 20 6e 65 65 64 |faster (|and need|
|00003b80| 20 6d 75 63 68 20 6c 65 | 73 73 20 6d 65 6d 6f 72 | much le|ss memor|
|00003b90| 79 29 2c 20 61 6e 64 20 | 74 68 65 20 7b 5c 74 74 |y), and |the {\tt|
|00003ba0| 0a 64 76 69 7d 20 66 69 | 6c 65 20 77 69 6c 6c 20 |.dvi} fi|le will |
|00003bb0| 62 65 20 73 6d 61 6c 6c | 65 72 2e 20 54 68 65 20 |be small|er. The |
|00003bc0| 71 75 61 6c 69 74 79 20 | 6f 66 20 74 68 65 20 6f |quality |of the o|
|00003bd0| 75 74 70 75 74 20 69 73 | 20 61 62 6f 75 74 20 74 |utput is| about t|
|00003be0| 68 65 0a 73 61 6d 65 2e | 20 49 66 20 79 6f 75 20 |he.same.| If you |
|00003bf0| 63 68 61 6e 67 65 20 74 | 68 65 20 73 6f 75 72 63 |change t|he sourc|
|00003c00| 65 2c 20 79 6f 75 20 63 | 61 6e 20 67 65 6e 65 72 |e, you c|an gener|
|00003c10| 61 74 65 20 73 6f 6d 65 | 20 6d 6f 72 65 20 69 6e |ate some| more in|
|00003c20| 74 65 72 65 73 74 69 6e | 67 0a 6c 69 6e 65 20 73 |terestin|g.line s|
|00003c30| 74 79 6c 65 73 2e 0a 0a | 54 6f 20 75 73 65 20 45 |tyles...|To use E|
|00003c40| 45 50 49 43 2c 20 73 65 | 74 20 47 4e 55 50 4c 4f |EPIC, se|t GNUPLO|
|00003c50| 54 27 73 20 74 65 72 6d | 69 6e 61 6c 20 74 79 70 |T's term|inal typ|
|00003c60| 65 20 74 6f 20 7b 5c 74 | 74 20 65 65 70 69 63 7d |e to {\t|t eepic}|
|00003c70| 20 69 6e 73 74 65 61 64 | 20 6f 66 0a 7b 5c 74 74 | instead| of.{\tt|
|00003c80| 20 6c 61 74 65 78 7d 2c | 20 61 6e 64 20 75 73 65 | latex},| and use|
|00003c90| 20 47 4e 55 50 4c 4f 54 | 20 61 73 20 62 65 66 6f | GNUPLOT| as befo|
|00003ca0| 72 65 2e 20 54 68 65 20 | 6c 69 6e 65 20 73 74 79 |re. The |line sty|
|00003cb0| 6c 65 73 20 77 69 6c 6c | 20 63 68 61 6e 67 65 2e |les will| change.|
|00003cc0| 0a 49 6e 63 6c 75 64 65 | 20 74 68 65 20 66 69 6c |.Include| the fil|
|00003cd0| 65 20 7b 5c 74 74 20 70 | 6c 6f 74 2e 74 65 78 7d |e {\tt p|lot.tex}|
|00003ce0| 20 69 6e 20 79 6f 75 72 | 20 64 6f 63 75 6d 65 6e | in your| documen|
|00003cf0| 74 20 61 73 20 62 65 66 | 6f 72 65 2c 20 61 6c 6f |t as bef|ore, alo|
|00003d00| 6e 67 20 77 69 74 68 0a | 74 68 65 20 64 6f 63 75 |ng with.|the docu|
|00003d10| 6d 65 6e 74 20 73 74 79 | 6c 65 20 6f 70 74 69 6f |ment sty|le optio|
|00003d20| 6e 73 20 7b 5c 74 74 20 | 5b 65 70 69 63 2c 65 65 |ns {\tt |[epic,ee|
|00003d30| 70 69 63 5d 7d 2e 0a 0a | 5c 73 65 63 74 69 6f 6e |pic]}...|\section|
|00003d40| 7b 46 6f 72 20 46 6f 72 | 6d 65 72 20 47 6e 75 5c |{For For|mer Gnu\|
|00003d50| 54 65 58 5c 20 55 73 65 | 72 73 7d 0a 5c 6c 61 62 |TeX\ Use|rs}.\lab|
|00003d60| 65 6c 7b 6f 6c 64 75 73 | 65 72 73 7d 0a 0a 46 6f |el{oldus|ers}..Fo|
|00003d70| 72 6d 65 72 20 47 6e 75 | 5c 54 65 58 5c 20 75 73 |rmer Gnu|\TeX\ us|
|00003d80| 65 72 73 20 6d 61 79 20 | 62 65 20 70 6c 65 61 73 |ers may |be pleas|
|00003d90| 65 64 20 77 69 74 68 20 | 6d 61 6e 79 20 6f 66 20 |ed with |many of |
|00003da0| 74 68 65 20 6e 65 77 20 | 66 65 61 74 75 72 65 73 |the new |features|
|00003db0| 0a 28 6d 61 6e 79 20 69 | 6e 73 70 69 72 65 64 20 |.(many i|nspired |
|00003dc0| 62 79 20 79 6f 75 72 20 | 73 75 67 67 65 73 74 69 |by your |suggesti|
|00003dd0| 6f 6e 73 21 29 2c 20 62 | 75 74 20 77 69 6c 6c 20 |ons!), b|ut will |
|00003de0| 61 6c 73 6f 20 66 69 6e | 64 20 6d 61 6e 79 20 63 |also fin|d many c|
|00003df0| 68 61 6e 67 65 73 2e 0a | 47 4e 55 50 4c 4f 54 20 |hanges..|GNUPLOT |
|00003e00| 77 69 6c 6c 20 7b 5c 65 | 6d 20 6e 6f 74 5c 2f 7d |will {\e|m not\/}|
|00003e10| 20 72 75 6e 20 61 6c 6c | 20 47 6e 75 5c 54 65 58 | run all| Gnu\TeX|
|00003e20| 5c 20 69 6e 70 75 74 20 | 66 69 6c 65 73 20 75 6e |\ input |files un|
|00003e30| 63 68 61 6e 67 65 64 2e | 0a 53 65 76 65 72 61 6c |changed.|.Several|
|00003e40| 20 47 6e 75 5c 54 65 58 | 5c 20 66 65 61 74 75 72 | Gnu\TeX|\ featur|
|00003e50| 65 73 20 77 65 72 65 20 | 6e 6f 74 20 69 6e 63 6c |es were |not incl|
|00003e60| 75 64 65 64 20 69 6e 20 | 47 4e 55 50 4c 4f 54 20 |uded in |GNUPLOT |
|00003e70| 62 65 63 61 75 73 65 20 | 74 68 65 79 0a 77 65 72 |because |they.wer|
|00003e80| 65 20 73 70 65 63 69 66 | 69 63 20 74 6f 20 74 68 |e specif|ic to th|
|00003e90| 65 20 5c 4c 61 54 65 58 | 5c 20 64 72 69 76 65 72 |e \LaTeX|\ driver|
|00003ea0| 2e 20 49 20 65 6e 63 6f | 75 72 61 67 65 20 79 6f |. I enco|urage yo|
|00003eb0| 75 20 74 6f 20 75 73 65 | 20 74 68 65 20 6e 65 77 |u to use| the new|
|00003ec0| 65 72 0a 47 4e 55 50 4c | 4f 54 2e 20 20 41 20 74 |er.GNUPL|OT. A t|
|00003ed0| 72 61 6e 73 6c 61 74 6f | 72 20 69 73 20 61 76 61 |ranslato|r is ava|
|00003ee0| 69 6c 61 62 6c 65 20 74 | 68 61 74 20 61 74 74 65 |ilable t|hat atte|
|00003ef0| 6d 70 74 73 20 74 6f 20 | 74 72 61 6e 73 6c 61 74 |mpts to |translat|
|00003f00| 65 20 79 6f 75 72 0a 6f | 6c 64 20 47 6e 75 5c 54 |e your.o|ld Gnu\T|
|00003f10| 65 58 5c 20 31 2e 36 20 | 69 6e 70 75 74 20 66 69 |eX\ 1.6 |input fi|
|00003f20| 6c 65 73 20 69 6e 74 6f | 20 47 4e 55 50 4c 4f 54 |les into| GNUPLOT|
|00003f30| 20 33 2e 30 20 66 69 6c | 65 73 2e 20 59 6f 75 20 | 3.0 fil|es. You |
|00003f40| 63 61 6e 20 66 74 70 20 | 69 74 0a 66 72 6f 6d 20 |can ftp |it.from |
|00003f50| 5c 76 65 72 62 2b 63 73 | 2e 64 75 6b 65 2e 65 64 |\verb+cs|.duke.ed|
|00003f60| 75 2b 20 61 73 20 5c 76 | 65 72 62 2b 64 69 73 74 |u+ as \v|erb+dist|
|00003f70| 2f 73 6f 75 72 63 65 73 | 2f 67 6e 75 70 6c 6f 74 |/sources|/gnuplot|
|00003f80| 2f 67 6e 75 74 32 70 2e | 74 61 72 2e 5a 2b 2e 0a |/gnut2p.|tar.Z+..|
|00003f90| 54 68 69 73 20 66 69 6c | 65 20 61 6c 73 6f 20 63 |This fil|e also c|
|00003fa0| 6f 6e 74 61 69 6e 73 20 | 64 69 72 65 63 74 69 6f |ontains |directio|
|00003fb0| 6e 73 20 61 6e 64 20 61 | 20 6c 69 73 74 20 6f 66 |ns and a| list of|
|00003fc0| 20 63 68 61 6e 67 65 73 | 20 66 72 6f 6d 20 47 6e | changes| from Gn|
|00003fd0| 75 5c 54 65 58 5c 0a 74 | 6f 20 47 4e 55 50 4c 4f |u\TeX\.t|o GNUPLO|
|00003fe0| 54 2e 0a 0a 5c 73 65 63 | 74 69 6f 6e 7b 43 6f 6e |T...\sec|tion{Con|
|00003ff0| 74 61 63 74 7d 0a 50 6c | 65 61 73 65 20 63 6f 6e |tact}.Pl|ease con|
|00004000| 74 61 63 74 20 6d 65 20 | 61 74 20 5c 76 65 72 62 |tact me |at \verb|
|00004010| 2b 44 61 76 69 64 2e 4b | 6f 74 7a 40 44 61 72 74 |+David.K|otz@Dart|
|00004020| 6d 6f 75 74 68 2e 65 64 | 75 2b 20 77 69 74 68 20 |mouth.ed|u+ with |
|00004030| 61 6e 79 20 63 6f 6d 6d | 65 6e 74 73 20 79 6f 75 |any comm|ents you|
|00004040| 20 6d 61 79 0a 68 61 76 | 65 20 6f 6e 20 47 4e 55 | may.hav|e on GNU|
|00004050| 50 4c 4f 54 27 73 20 5c | 4c 61 54 65 58 5c 20 64 |PLOT's \|LaTeX\ d|
|00004060| 72 69 76 65 72 2e 20 46 | 6f 72 20 67 65 6e 65 72 |river. F|or gener|
|00004070| 61 6c 20 47 4e 55 50 4c | 4f 54 20 71 75 65 73 74 |al GNUPL|OT quest|
|00004080| 69 6f 6e 73 2c 20 73 65 | 6e 64 0a 6d 61 69 6c 20 |ions, se|nd.mail |
|00004090| 74 6f 20 74 68 65 20 47 | 4e 55 50 4c 4f 54 20 6d |to the G|NUPLOT m|
|000040a0| 61 69 6c 69 6e 67 20 6c | 69 73 74 0a 28 5c 76 65 |ailing l|ist.(\ve|
|000040b0| 72 62 2b 70 69 78 61 72 | 21 69 6e 66 6f 2d 67 6e |rb+pixar|!info-gn|
|000040c0| 75 70 6c 6f 74 40 75 63 | 62 76 61 78 2e 62 65 72 |uplot@uc|bvax.ber|
|000040d0| 6b 65 6c 65 79 2e 65 64 | 75 2b 29 2e 20 0a 0a 0a |keley.ed|u+). ...|
|000040e0| 5c 65 6e 64 7b 64 6f 63 | 75 6d 65 6e 74 7d 0a |\end{doc|ument}. |
+--------+-------------------------+-------------------------+--------+--------+