home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| 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
| C source text
| default
| |
98%
| file
| C source, ASCII text, with CRLF line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CRLF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 20 0d 0a 5c 73 65 63 74 | 69 6f 6e 7b 43 61 72 72 | ..\sect|ion{Carr|
|00000010| 79 69 6e 67 20 4f 6e 7d | 0d 0a 5c 73 75 62 73 65 |ying On}|..\subse|
|00000020| 63 74 69 6f 6e 7b 54 65 | 78 74 7d 5c 69 6e 64 65 |ction{Te|xt}\inde|
|00000030| 78 7b 74 65 78 74 7d 0d | 0a 5c 6c 61 62 65 6c 7b |x{text}.|.\label{|
|00000040| 73 65 63 3a 74 65 78 74 | 7d 0d 0a 20 54 65 78 74 |sec:text|}.. Text|
|00000050| 20 63 61 6e 20 62 65 20 | 61 64 64 65 64 20 74 6f | can be |added to|
|00000060| 20 61 20 66 69 67 75 72 | 65 20 75 73 69 6e 67 20 | a figur|e using |
|00000070| 74 68 65 20 7b 5c 74 74 | 20 74 65 78 74 28 29 3b |the {\tt| text();|
|00000080| 7d 20 63 6f 6d 6d 61 6e | 64 2e 20 54 68 65 20 66 |} comman|d. The f|
|00000090| 69 72 73 74 20 0d 0a 20 | 74 77 6f 20 70 61 72 61 |irst .. |two para|
|000000a0| 6d 65 74 65 72 73 20 61 | 72 65 20 61 20 63 6f 6f |meters a|re a coo|
|000000b0| 72 64 69 6e 61 74 65 20 | 70 61 69 72 20 67 69 76 |rdinate |pair giv|
|000000c0| 69 6e 67 20 74 68 65 20 | 70 6f 73 69 74 69 6f 6e |ing the |position|
|000000d0| 20 61 74 20 77 68 69 63 | 68 20 74 68 65 20 74 65 | at whic|h the te|
|000000e0| 78 74 20 0d 0a 20 73 68 | 6f 75 6c 64 20 73 74 61 |xt .. sh|ould sta|
|000000f0| 72 74 2e 20 46 6f 72 20 | 73 75 62 73 65 71 75 65 |rt. For |subseque|
|00000100| 6e 74 20 6c 69 6e 65 73 | 20 6f 66 20 74 65 78 74 |nt lines| of text|
|00000110| 20 74 68 65 20 63 6f 6f | 72 64 69 6e 61 74 65 73 | the coo|rdinates|
|00000120| 20 63 61 6e 20 62 65 20 | 6f 6d 69 74 74 65 64 20 | can be |omitted |
|00000130| 0d 0a 20 69 6e 20 77 68 | 69 63 68 20 63 61 73 65 |.. in wh|ich case|
|00000140| 20 74 68 65 20 6c 69 6e | 65 20 69 73 20 70 6f 73 | the lin|e is pos|
|00000150| 69 74 69 6f 6e 65 64 20 | 62 65 6c 6f 77 20 74 68 |itioned |below th|
|00000160| 65 20 70 72 65 76 69 6f | 75 73 20 6c 69 6e 65 2e |e previo|us line.|
|00000170| 20 54 68 65 20 74 68 69 | 72 64 20 0d 0a 20 70 61 | The thi|rd .. pa|
|00000180| 72 61 6d 65 74 65 72 20 | 69 73 20 74 68 65 20 61 |rameter |is the a|
|00000190| 63 74 75 61 6c 20 74 65 | 78 74 20 74 6f 20 62 65 |ctual te|xt to be|
|000001a0| 20 70 72 69 6e 74 65 64 | 2e 20 54 68 65 72 65 20 | printed|. There |
|000001b0| 69 73 20 61 6c 73 6f 20 | 61 6e 20 6f 70 74 69 6f |is also |an optio|
|000001c0| 6e 61 6c 20 0d 0a 20 66 | 6f 75 72 74 68 20 70 61 |nal .. f|ourth pa|
|000001d0| 72 61 6d 65 74 65 72 20 | 77 68 69 63 68 20 61 6c |rameter |which al|
|000001e0| 6c 6f 77 73 20 74 68 65 | 20 74 65 78 74 20 74 6f |lows the| text to|
|000001f0| 20 62 65 20 63 65 6e 74 | 65 72 65 64 20 6f 6e 20 | be cent|ered on |
|00000200| 74 68 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |the coor|dinates |
|00000210| 0d 0a 20 6f 72 20 65 6e | 64 20 61 74 20 74 68 65 |.. or en|d at the|
|00000220| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 2e 20 53 70 | coordin|ates. Sp|
|00000230| 65 63 69 61 6c 69 7a 65 | 64 20 74 65 78 74 20 6c |ecialize|d text l|
|00000240| 61 62 65 6c 73 20 61 72 | 65 20 61 6c 73 6f 20 67 |abels ar|e also g|
|00000250| 65 6e 65 72 61 74 65 64 | 20 0d 0a 20 75 73 69 6e |enerated| .. usin|
|00000260| 67 20 74 68 65 20 7b 5c | 74 74 20 6c 61 62 65 6c |g the {\|tt label|
|00000270| 28 29 3b 7d 5c 69 6e 64 | 65 78 7b 6c 61 62 65 6c |();}\ind|ex{label|
|00000280| 7d 20 61 6e 64 20 7b 5c | 74 74 20 74 69 63 6b 6c |} and {\|tt tickl|
|00000290| 61 62 65 6c 28 20 0d 0a | 20 29 3b 7d 5c 69 6e 64 |abel( ..| );}\ind|
|000002a0| 65 78 7b 74 69 63 6b 6c | 61 62 65 6c 7d 20 63 6f |ex{tickl|abel} co|
|000002b0| 6d 6d 61 6e 64 73 20 61 | 6e 64 20 74 68 65 20 66 |mmands a|nd the f|
|000002c0| 6f 6c 6c 6f 77 69 6e 67 | 20 64 69 73 63 75 73 73 |ollowing| discuss|
|000002d0| 69 6f 6e 20 61 70 70 6c | 69 65 73 20 74 6f 20 74 |ion appl|ies to t|
|000002e0| 68 65 6d 20 0d 0a 20 61 | 73 20 77 65 6c 6c 2e 20 |hem .. a|s well. |
|000002f0| 0d 0a 0d 0a 20 54 68 65 | 20 61 70 70 65 61 72 61 |.... The| appeara|
|00000300| 6e 63 65 20 6f 66 20 74 | 68 65 20 74 65 78 74 20 |nce of t|he text |
|00000310| 69 73 20 61 66 66 65 63 | 74 65 64 20 62 79 20 73 |is affec|ted by s|
|00000320| 65 76 65 72 61 6c 20 73 | 65 74 2d 61 62 6c 65 20 |everal s|et-able |
|00000330| 70 61 72 61 6d 65 74 65 | 72 73 2e 20 54 68 65 20 |paramete|rs. The |
|00000340| 0d 0a 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 6c |.. size |of the l|
|00000350| 65 74 74 65 72 73 20 69 | 73 20 64 65 74 65 72 6d |etters i|s determ|
|00000360| 69 6e 65 64 20 62 79 20 | 7b 5c 74 74 20 73 65 74 |ined by |{\tt set|
|00000370| 28 46 4f 4e 54 57 49 44 | 54 48 20 2c 20 0d 0a 20 |(FONTWID|TH , .. |
|00000380| 73 69 7a 65 5c 5f 69 6e | 5c 5f 63 6d 29 3b 7d 5c |size\_in|\_cm);}\|
|00000390| 69 6e 64 65 78 7b 73 65 | 74 2c 20 46 4f 4e 54 57 |index{se|t, FONTW|
|000003a0| 49 44 54 48 7d 20 77 68 | 69 6c 65 20 74 68 65 20 |IDTH} wh|ile the |
|000003b0| 72 61 74 69 6f 20 6f 66 | 20 68 65 69 67 68 74 20 |ratio of| height |
|000003c0| 74 6f 20 77 69 64 74 68 | 20 0d 0a 20 69 73 20 73 |to width| .. is s|
|000003d0| 65 74 20 75 73 69 6e 67 | 20 7b 5c 74 74 20 73 65 |et using| {\tt se|
|000003e0| 74 28 46 4f 4e 54 41 53 | 50 45 43 54 20 2c 20 68 |t(FONTAS|PECT , h|
|000003f0| 65 69 67 68 74 5c 5f 64 | 69 76 5c 5f 77 69 64 74 |eight\_d|iv\_widt|
|00000400| 68 29 3b 7d 5c 69 6e 64 | 65 78 7b 73 65 74 2c 20 |h);}\ind|ex{set, |
|00000410| 0d 0a 20 46 4f 4e 54 41 | 53 50 45 43 54 7d 2e 20 |.. FONTA|SPECT}. |
|00000420| 41 6c 74 65 72 6e 61 74 | 69 76 65 6c 79 2c 20 74 |Alternat|ively, t|
|00000430| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 74 |he size |of the t|
|00000440| 65 78 74 20 63 61 6e 20 | 62 65 20 63 68 61 6e 67 |ext can |be chang|
|00000450| 65 64 20 66 72 6f 6d 20 | 69 74 73 20 0d 0a 20 63 |ed from |its .. c|
|00000460| 75 72 72 65 6e 74 20 76 | 61 6c 75 65 20 62 79 20 |urrent v|alue by |
|00000470| 75 73 69 6e 67 20 7b 5c | 74 74 20 73 65 74 28 46 |using {\|tt set(F|
|00000480| 4f 4e 54 4d 55 4c 54 20 | 2c 20 6d 75 6c 74 69 70 |ONTMULT |, multip|
|00000490| 6c 69 65 72 29 3b 7d 5c | 69 6e 64 65 78 7b 73 65 |lier);}\|index{se|
|000004a0| 74 2c 20 0d 0a 20 46 4f | 4e 54 4d 55 4c 54 7d 2e |t, .. FO|NTMULT}.|
|000004b0| 20 54 68 65 20 73 70 61 | 63 69 6e 67 20 62 65 74 | The spa|cing bet|
|000004c0| 77 65 65 6e 20 6c 65 74 | 74 65 72 73 20 63 61 6e |ween let|ters can|
|000004d0| 20 62 65 20 6d 6f 64 69 | 66 69 65 64 20 75 73 69 | be modi|fied usi|
|000004e0| 6e 67 20 7b 5c 74 74 20 | 0d 0a 20 73 65 74 28 46 |ng {\tt |.. set(F|
|000004f0| 4f 4e 54 53 50 41 43 45 | 20 2c 20 73 70 61 63 65 |ONTSPACE| , space|
|00000500| 5c 5f 69 6e 5c 5f 63 6d | 29 3b 7d 5c 69 6e 64 65 |\_in\_cm|);}\inde|
|00000510| 78 7b 73 65 74 2c 20 46 | 4f 4e 54 53 50 41 43 45 |x{set, F|ONTSPACE|
|00000520| 7d 2e 20 54 68 65 20 74 | 65 78 74 20 69 73 20 0d |}. The t|ext is .|
|00000530| 0a 20 6f 72 64 69 6e 61 | 72 69 6c 79 20 70 72 69 |. ordina|rily pri|
|00000540| 6e 74 65 64 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 6c |nted hor|izontall|
|00000550| 79 20 62 75 74 20 74 68 | 69 73 20 6d 61 79 20 62 |y but th|is may b|
|00000560| 65 20 63 68 61 6e 67 65 | 64 20 62 79 20 75 73 69 |e change|d by usi|
|00000570| 6e 67 20 7b 5c 74 74 20 | 0d 0a 20 73 65 74 28 46 |ng {\tt |.. set(F|
|00000580| 4f 4e 54 44 49 52 20 2c | 20 61 6e 67 6c 65 5c 5f |ONTDIR ,| angle\_|
|00000590| 69 6e 5c 5f 64 65 67 29 | 3b 7d 2e 5c 69 6e 64 65 |in\_deg)|;}.\inde|
|000005a0| 78 7b 73 65 74 2c 20 46 | 4f 4e 54 44 49 52 7d 20 |x{set, F|ONTDIR} |
|000005b0| 54 68 65 20 77 69 64 74 | 68 20 6f 66 20 74 68 65 |The widt|h of the|
|000005c0| 20 6c 69 6e 65 20 0d 0a | 20 75 73 65 64 20 74 6f | line ..| used to|
|000005d0| 20 64 72 61 77 20 74 68 | 65 20 74 65 78 74 20 69 | draw th|e text i|
|000005e0| 73 20 73 65 74 20 75 73 | 69 6e 67 20 7b 5c 74 74 |s set us|ing {\tt|
|000005f0| 20 73 65 74 28 4c 49 4e | 45 57 49 44 54 48 20 2c | set(LIN|EWIDTH ,|
|00000600| 20 0d 0a 20 77 69 64 74 | 68 29 3b 7d 5c 69 6e 64 | .. widt|h);}\ind|
|00000610| 65 78 7b 73 65 74 2c 20 | 4c 49 4e 45 57 49 44 54 |ex{set, |LINEWIDT|
|00000620| 48 7d 20 61 6e 64 20 74 | 68 65 20 63 6f 6c 6f 75 |H} and t|he colou|
|00000630| 72 20 69 73 20 73 65 74 | 20 75 73 69 6e 67 20 7b |r is set| using {|
|00000640| 5c 74 74 20 0d 0a 20 73 | 65 74 28 4c 49 4e 45 43 |\tt .. s|et(LINEC|
|00000650| 4f 4c 4f 55 52 20 2c 20 | 63 6f 6c 6f 75 72 5c 5f |OLOUR , |colour\_|
|00000660| 6e 75 6d 62 65 72 20 29 | 3b 7d 5c 69 6e 64 65 78 |number )|;}\index|
|00000670| 7b 73 65 74 2c 20 4c 49 | 4e 45 43 4f 4c 4f 55 52 |{set, LI|NECOLOUR|
|00000680| 7d 2e 20 54 68 65 20 74 | 65 78 74 20 69 73 20 0d |}. The t|ext is .|
|00000690| 0a 20 70 72 69 6e 74 65 | 64 20 75 73 69 6e 67 20 |. printe|d using |
|000006a0| 48 65 72 73 68 65 79 20 | 73 74 72 6f 6b 65 64 20 |Hershey |stroked |
|000006b0| 66 6f 6e 74 73 2e 20 54 | 68 65 72 65 20 61 72 65 |fonts. T|here are|
|000006c0| 20 74 77 6f 20 61 76 61 | 69 6c 61 62 6c 65 20 66 | two ava|ilable f|
|000006d0| 6f 6e 74 20 66 61 6d 69 | 6c 69 65 73 20 0d 0a 20 |ont fami|lies .. |
|000006e0| 73 69 6d 70 6c 65 78 20 | 61 6e 64 20 63 6f 6d 70 |simplex |and comp|
|000006f0| 6c 65 78 2e 20 54 68 65 | 20 63 6f 6d 70 6c 65 78 |lex. The| complex|
|00000700| 20 66 6f 6e 74 20 69 73 | 20 63 68 6f 73 65 6e 20 | font is| chosen |
|00000710| 75 73 69 6e 67 20 7b 5c | 74 74 20 73 65 74 28 46 |using {\|tt set(F|
|00000720| 4f 4e 54 20 2c 20 0d 0a | 20 43 4f 4d 50 4c 45 58 |ONT , ..| COMPLEX|
|00000730| 29 3b 7d 5c 69 6e 64 65 | 78 7b 73 65 74 2c 20 46 |);}\inde|x{set, F|
|00000740| 4f 4e 54 7d 2e 20 47 72 | 65 65 6b 5c 69 6e 64 65 |ONT}. Gr|eek\inde|
|00000750| 78 7b 67 72 65 65 6b 7d | 20 61 6e 64 20 49 74 61 |x{greek}| and Ita|
|00000760| 6c 69 63 5c 69 6e 64 65 | 78 7b 69 74 61 6c 69 63 |lic\inde|x{italic|
|00000770| 7d 20 0d 0a 20 74 65 78 | 74 20 69 73 20 73 65 6c |} .. tex|t is sel|
|00000780| 65 63 74 65 64 20 62 79 | 20 75 73 69 6e 67 20 73 |ected by| using s|
|00000790| 70 65 63 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |pecial c|haracter|
|000007a0| 73 20 69 6e 20 74 68 65 | 20 74 65 78 74 20 73 74 |s in the| text st|
|000007b0| 72 69 6e 67 2e 20 54 68 | 75 73 20 0d 0a 20 47 72 |ring. Th|us .. Gr|
|000007c0| 65 65 6b 20 6d 61 79 20 | 62 65 20 73 65 6c 65 63 |eek may |be selec|
|000007d0| 74 65 64 20 62 79 20 65 | 6e 63 6c 6f 73 69 6e 67 |ted by e|nclosing|
|000007e0| 20 61 20 73 74 72 69 6e | 67 20 77 69 74 68 20 27 | a strin|g with '|
|000007f0| 21 27 20 61 73 20 69 6e | 20 27 21 61 62 63 21 20 |!' as in| '!abc! |
|00000800| 77 68 69 6c 65 20 0d 0a | 20 69 74 61 6c 69 63 73 |while ..| italics|
|00000810| 20 61 72 65 20 73 65 6c | 65 63 74 65 64 20 75 73 | are sel|ected us|
|00000820| 69 6e 67 20 27 5c 23 27 | 2e 20 53 75 70 65 72 20 |ing '\#'|. Super |
|00000830| 61 6e 64 20 73 75 62 20 | 73 63 72 69 70 74 73 20 |and sub |scripts |
|00000840| 61 72 65 20 68 61 6e 64 | 6c 65 64 20 69 6e 20 74 |are hand|led in t|
|00000850| 68 65 20 0d 0a 20 73 61 | 6d 65 20 77 61 79 20 62 |he .. sa|me way b|
|00000860| 79 20 65 6e 63 6c 6f 73 | 69 6e 67 20 74 68 65 20 |y enclos|ing the |
|00000870| 73 75 70 65 72 2f 73 75 | 62 5c 69 6e 64 65 78 7b |super/su|b\index{|
|00000880| 73 75 70 65 72 73 63 72 | 69 70 74 7d 5c 69 6e 64 |superscr|ipt}\ind|
|00000890| 65 78 7b 73 75 62 73 63 | 72 69 70 74 7d 20 0d 0a |ex{subsc|ript} ..|
|000008a0| 20 73 63 72 69 70 74 20 | 77 69 74 68 20 27 24 5c | script |with '$\|
|000008b0| 77 65 64 67 65 24 27 20 | 6f 72 20 27 5c 5f 27 20 |wedge$' |or '\_' |
|000008c0| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2e 20 54 68 |respecti|vely. Th|
|000008d0| 65 20 70 6f 73 69 74 69 | 6f 6e 20 61 6e 64 20 73 |e positi|on and s|
|000008e0| 69 7a 65 20 6f 66 20 74 | 68 65 20 0d 0a 20 73 75 |ize of t|he .. su|
|000008f0| 70 65 72 2f 73 75 62 20 | 73 63 72 69 70 74 20 72 |per/sub |script r|
|00000900| 65 6c 61 74 69 76 65 20 | 74 6f 20 6f 72 64 69 6e |elative |to ordin|
|00000910| 61 72 79 20 74 65 78 74 | 20 6d 61 79 20 62 65 20 |ary text| may be |
|00000920| 6d 6f 64 69 66 69 65 64 | 20 75 73 69 6e 67 20 74 |modified| using t|
|00000930| 68 65 20 7b 5c 74 74 20 | 0d 0a 20 73 65 74 28 53 |he {\tt |.. set(S|
|00000940| 43 52 49 50 54 53 43 41 | 4c 45 20 2c 20 72 61 74 |CRIPTSCA|LE , rat|
|00000950| 69 6f 29 3b 7d 5c 69 6e | 64 65 78 7b 73 65 74 2c |io);}\in|dex{set,|
|00000960| 20 53 43 52 49 50 54 53 | 43 41 4c 45 7d 20 61 6e | SCRIPTS|CALE} an|
|00000970| 64 20 7b 5c 74 74 20 0d | 0a 20 73 65 74 28 53 43 |d {\tt .|. set(SC|
|00000980| 52 49 50 54 53 48 49 46 | 54 20 2c 20 66 72 61 63 |RIPTSHIF|T , frac|
|00000990| 74 69 6f 6e 20 29 3b 7d | 5c 69 6e 64 65 78 7b 73 |tion );}|\index{s|
|000009a0| 65 74 2c 20 53 43 52 49 | 50 54 53 48 49 46 54 7d |et, SCRI|PTSHIFT}|
|000009b0| 20 63 6f 6d 6d 61 6e 64 | 73 20 0d 0a 20 72 65 73 | command|s .. res|
|000009c0| 70 65 63 74 69 76 65 6c | 79 2e 20 43 68 61 72 61 |pectivel|y. Chara|
|000009d0| 63 74 65 72 73 20 66 72 | 6f 6d 20 74 68 65 20 73 |cters fr|om the s|
|000009e0| 79 6d 62 6f 6c 20 66 6f | 6e 74 20 6d 61 79 20 62 |ymbol fo|nt may b|
|000009f0| 65 20 69 6e 63 6c 75 64 | 65 64 20 69 6e 20 74 68 |e includ|ed in th|
|00000a00| 65 0d 0a 20 74 65 78 74 | 20 73 74 72 69 6e 67 20 |e.. text| string |
|00000a10| 62 79 20 65 6e 63 6c 6f | 73 69 6e 67 20 74 68 65 |by enclo|sing the|
|00000a20| 20 73 79 6d 62 6f 6c 20 | 6e 75 6d 62 65 72 20 77 | symbol |number w|
|00000a30| 69 74 68 20 27 5c 24 27 | 2e 0d 0a 0d 0a 20 54 68 |ith '\$'|..... Th|
|00000a40| 65 20 76 61 72 69 6f 75 | 73 20 74 65 78 74 20 70 |e variou|s text p|
|00000a50| 6f 73 73 69 62 69 6c 69 | 74 69 65 73 20 61 72 65 |ossibili|ties are|
|00000a60| 20 65 78 70 6c 6f 72 65 | 64 20 69 6e 20 74 68 65 | explore|d in the|
|00000a70| 20 74 77 6f 20 66 6f 6c | 6c 6f 77 69 6e 67 20 64 | two fol|lowing d|
|00000a80| 65 6d 6f 20 0d 0a 20 66 | 69 6c 65 73 2e 20 54 68 |emo .. f|iles. Th|
|00000a90| 65 20 74 68 69 72 64 20 | 64 65 6d 6f 20 66 69 6c |e third |demo fil|
|00000aa0| 65 20 69 73 20 61 20 74 | 61 62 6c 65 20 6f 66 20 |e is a t|able of |
|00000ab0| 61 6c 6c 20 74 68 65 20 | 61 76 61 69 6c 61 62 6c |all the |availabl|
|00000ac0| 65 20 74 65 78 74 20 63 | 68 61 72 61 63 74 65 72 |e text c|haracter|
|00000ad0| 73 20 0d 0a 20 69 6e 63 | 6c 75 64 65 64 20 69 6e |s .. inc|luded in|
|00000ae0| 20 74 68 65 20 66 6f 6e | 74 20 66 69 6c 65 73 2e | the fon|t files.|
|00000af0| 20 0d 0a 0d 0a 7b 5c 74 | 74 0d 0a 5c 62 65 67 69 | ....{\t|t..\begi|
|00000b00| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0d 0a 2f 2a 20 |n{verbat|im}../* |
|00000b10| 54 68 69 73 20 66 69 6c | 65 20 69 6c 6c 75 73 74 |This fil|e illust|
|00000b20| 72 61 74 65 73 20 73 6f | 6d 65 20 6f 66 20 74 68 |rates so|me of th|
|00000b30| 65 20 63 61 70 61 62 69 | 6c 69 74 69 65 73 20 6f |e capabi|lities o|
|00000b40| 66 20 74 68 65 20 2a 2f | 0d 0a 2f 2a 20 74 65 78 |f the */|../* tex|
|00000b50| 74 28 29 20 63 6f 6d 6d | 61 6e 64 20 74 6f 20 61 |t() comm|and to a|
|00000b60| 6e 6e 6f 74 61 74 65 20 | 66 69 67 75 72 65 73 20 |nnotate |figures |
|00000b70| 2a 2f 0d 0a 2f 2a 20 53 | 65 76 65 72 61 6c 20 66 |*/../* S|everal f|
|00000b80| 6f 6e 74 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |onts are| availab|
|00000b90| 6c 65 20 69 6e 63 6c 75 | 64 69 6e 67 20 66 75 6c |le inclu|ding ful|
|00000ba0| 6c 20 47 72 65 65 6b 2e | 20 2a 2f 0d 0a 2f 2a 20 |l Greek.| */../* |
|00000bb0| 54 65 78 74 20 63 61 6e | 20 62 65 20 61 6e 79 20 |Text can| be any |
|00000bc0| 73 69 7a 65 2c 20 6f 72 | 69 65 6e 74 61 74 69 6f |size, or|ientatio|
|00000bd0| 6e 20 61 6e 64 20 63 6f | 6c 6f 75 72 2e 20 2a 2f |n and co|lour. */|
|00000be0| 20 0d 0a 20 0d 0a 23 69 | 6e 63 6c 75 64 65 20 3c | .. ..#i|nclude <|
|00000bf0| 73 70 6c 6f 74 2e 68 3e | 0d 0a 6d 61 69 6e 28 29 |splot.h>|..main()|
|00000c00| 0d 0a 20 20 20 7b 0d 0a | 20 20 20 74 65 78 74 28 |.. {..| text(|
|00000c10| 32 2e 36 33 2c 32 33 2c | 22 54 68 65 20 64 65 66 |2.63,23,|"The def|
|00000c20| 61 75 6c 74 20 70 6f 73 | 69 74 69 6f 6e 20 66 6f |ault pos|ition fo|
|00000c30| 72 20 74 68 65 20 6e 65 | 78 74 20 6c 69 6e 65 22 |r the ne|xt line"|
|00000c40| 29 3b 0d 0a 20 20 20 2f | 2a 20 63 68 61 6e 67 65 |);.. /|* change|
|00000c50| 20 74 6f 20 63 6f 6d 70 | 6c 65 78 20 66 6f 6e 74 | to comp|lex font|
|00000c60| 20 66 6f 72 20 6e 65 78 | 74 20 6c 69 6e 65 20 2a | for nex|t line *|
|00000c70| 2f 0d 0a 20 20 20 73 65 | 74 28 46 4f 4e 54 2c 43 |/.. se|t(FONT,C|
|00000c80| 4f 4d 50 4c 45 58 29 3b | 0d 0a 20 20 20 74 65 78 |OMPLEX);|.. tex|
|00000c90| 74 28 22 72 69 67 68 74 | 20 62 65 6c 6f 77 20 74 |t("right| below t|
|00000ca0| 68 65 20 70 72 65 76 69 | 6f 75 73 20 6c 69 6e 65 |he previ|ous line|
|00000cb0| 22 29 3b 0d 0a 20 20 20 | 73 65 74 28 46 4f 4e 54 |");.. |set(FONT|
|00000cc0| 2c 53 49 4d 50 4c 45 58 | 29 3b 0d 0a 20 20 20 74 |,SIMPLEX|);.. t|
|00000cd0| 65 78 74 28 22 54 68 65 | 72 65 20 69 73 20 61 20 |ext("The|re is a |
|00000ce0| 63 6f 6d 70 6c 65 74 65 | 20 73 65 74 20 6f 66 20 |complete| set of |
|00000cf0| 47 72 65 65 6b 20 63 68 | 61 72 61 63 74 65 72 73 |Greek ch|aracters|
|00000d00| 22 29 3b 20 0d 0a 20 20 | 20 74 65 78 74 28 22 21 |"); .. | text("!|
|00000d10| 61 62 63 64 65 66 67 68 | 69 6a 6b 6c 6d 6e 6f 70 |abcdefgh|ijklmnop|
|00000d20| 71 72 73 74 75 76 78 79 | 7a 21 22 29 3b 0d 0a 20 |qrstuvxy|z!");.. |
|00000d30| 20 20 73 65 74 28 46 4f | 4e 54 2c 43 4f 4d 50 4c | set(FO|NT,COMPL|
|00000d40| 45 58 29 3b 0d 0a 20 20 | 20 74 65 78 74 28 22 21 |EX);.. | text("!|
|00000d50| 41 42 43 44 45 46 47 48 | 49 4a 4b 4c 4d 4e 4f 50 |ABCDEFGH|IJKLMNOP|
|00000d60| 51 52 53 54 55 56 57 58 | 59 5a 21 22 29 3b 0d 0a |QRSTUVWX|YZ!");..|
|00000d70| 20 20 20 73 65 74 28 46 | 4f 4e 54 2c 53 49 4d 50 | set(F|ONT,SIMP|
|00000d80| 4c 45 58 29 3b 0d 0a 20 | 20 20 73 65 74 28 4c 49 |LEX);.. | set(LI|
|00000d90| 4e 45 43 4f 4c 4f 55 52 | 2c 47 52 45 45 4e 29 3b |NECOLOUR|,GREEN);|
|00000da0| 0d 0a 20 20 20 2f 2a 20 | 6f 70 74 69 6f 6e 61 6c |.. /* |optional|
|00000db0| 20 63 68 61 6e 67 65 20 | 6f 66 20 73 63 72 69 70 | change |of scrip|
|00000dc0| 74 20 73 63 61 6c 65 20 | 61 6e 64 20 70 6f 73 69 |t scale |and posi|
|00000dd0| 74 69 6f 6e 20 2a 2f 0d | 0a 20 20 20 73 65 74 28 |tion */.|. set(|
|00000de0| 53 43 52 49 50 54 53 43 | 41 4c 45 2c 31 29 3b 0d |SCRIPTSC|ALE,1);.|
|00000df0| 0a 20 20 20 73 65 74 28 | 53 43 52 49 50 54 53 48 |. set(|SCRIPTSH|
|00000e00| 49 46 54 2c 31 29 3b 0d | 0a 20 20 20 74 65 78 74 |IFT,1);.|. text|
|00000e10| 28 22 48 65 72 65 20 61 | 72 65 20 5e 73 75 70 65 |("Here a|re ^supe|
|00000e20| 72 5e 20 61 6e 64 20 5f | 73 75 62 5f 20 73 63 72 |r^ and _|sub_ scr|
|00000e30| 69 70 74 73 22 29 3b 0d | 0a 20 20 20 73 65 74 28 |ipts");.|. set(|
|00000e40| 4c 49 4e 45 43 4f 4c 4f | 55 52 2c 52 45 44 29 3b |LINECOLO|UR,RED);|
|00000e50| 0d 0a 20 20 20 74 65 78 | 74 28 22 61 6e 64 20 23 |.. tex|t("and #|
|00000e60| 49 74 61 6c 69 63 73 23 | 20 69 6e 20 64 69 66 66 |Italics#| in diff|
|00000e70| 65 72 65 6e 74 20 63 6f | 6c 6f 75 72 73 22 29 3b |erent co|lours");|
|00000e80| 0d 0a 20 20 20 73 65 74 | 28 4c 49 4e 45 43 4f 4c |.. set|(LINECOL|
|00000e90| 4f 55 52 2c 42 4c 41 43 | 4b 29 3b 0d 0a 20 20 20 |OUR,BLAC|K);.. |
|00000ea0| 74 65 78 74 28 22 4c 65 | 74 74 65 72 73 20 63 61 |text("Le|tters ca|
|00000eb0| 6e 20 62 65 20 6c 61 72 | 67 65 2c 20 73 6d 61 6c |n be lar|ge, smal|
|00000ec0| 6c 2c 20 74 61 6c 6c 2c | 20 73 68 6f 72 74 22 29 |l, tall,| short")|
|00000ed0| 3b 0d 0a 20 20 20 74 65 | 78 74 28 22 66 61 74 2c |;.. te|xt("fat,|
|00000ee0| 20 74 68 69 6e 2c 20 76 | 65 72 74 69 63 61 6c 20 | thin, v|ertical |
|00000ef0| 61 6e 64 20 61 6e 67 6c | 65 64 2e 22 29 3b 0d 0a |and angl|ed.");..|
|00000f00| 20 20 20 73 65 74 28 46 | 4f 4e 54 4d 55 4c 54 2c | set(F|ONTMULT,|
|00000f10| 32 29 3b 0d 0a 20 20 20 | 74 65 78 74 28 32 2e 39 |2);.. |text(2.9|
|00000f20| 34 2c 39 2e 35 36 2c 22 | 4c 61 72 67 65 22 29 3b |4,9.56,"|Large");|
|00000f30| 0d 0a 20 20 20 73 65 74 | 28 46 4f 4e 54 4d 55 4c |.. set|(FONTMUL|
|00000f40| 54 2c 30 2e 33 30 29 3b | 0d 0a 20 20 20 74 65 78 |T,0.30);|.. tex|
|00000f50| 74 28 38 2e 39 30 2c 39 | 2e 37 31 2c 22 73 6d 61 |t(8.90,9|.71,"sma|
|00000f60| 6c 6c 22 29 3b 0d 0a 20 | 20 20 73 65 74 28 46 4f |ll");.. | set(FO|
|00000f70| 4e 54 57 49 44 54 48 2c | 31 2e 30 29 3b 0d 0a 20 |NTWIDTH,|1.0);.. |
|00000f80| 20 20 73 65 74 28 46 4f | 4e 54 41 53 50 45 43 54 | set(FO|NTASPECT|
|00000f90| 2c 33 29 3b 0d 0a 20 20 | 20 74 65 78 74 28 31 33 |,3);.. | text(13|
|00000fa0| 2e 31 30 2c 39 2e 37 31 | 2c 22 54 61 6c 6c 22 29 |.10,9.71|,"Tall")|
|00000fb0| 3b 0d 0a 20 20 20 73 65 | 74 28 46 4f 4e 54 41 53 |;.. se|t(FONTAS|
|00000fc0| 50 45 43 54 2c 30 2e 35 | 29 3b 0d 0a 20 20 20 74 |PECT,0.5|);.. t|
|00000fd0| 65 78 74 28 31 37 2e 30 | 35 2c 39 2e 37 31 2c 22 |ext(17.0|5,9.71,"|
|00000fe0| 53 68 6f 72 74 22 29 3b | 0d 0a 20 20 20 73 65 74 |Short");|.. set|
|00000ff0| 28 46 4f 4e 54 41 53 50 | 45 43 54 2c 32 29 3b 0d |(FONTASP|ECT,2);.|
|00001000| 0a 20 20 20 73 65 74 28 | 4c 49 4e 45 57 49 44 54 |. set(|LINEWIDT|
|00001010| 48 2c 30 2e 30 31 29 3b | 0d 0a 20 20 20 74 65 78 |H,0.01);|.. tex|
|00001020| 74 28 32 2e 39 34 2c 37 | 2e 32 39 2c 22 54 68 69 |t(2.94,7|.29,"Thi|
|00001030| 6e 22 29 3b 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |n");.. | set(LIN|
|00001040| 45 57 49 44 54 48 2c 30 | 2e 32 29 3b 0d 0a 20 20 |EWIDTH,0|.2);.. |
|00001050| 20 74 65 78 74 28 39 2e | 30 32 2c 37 2e 32 39 2c | text(9.|02,7.29,|
|00001060| 22 46 61 74 22 29 3b 20 | 0d 0a 20 20 20 73 65 74 |"Fat"); |.. set|
|00001070| 28 4c 49 4e 45 57 49 44 | 54 48 2c 30 2e 30 35 29 |(LINEWID|TH,0.05)|
|00001080| 3b 0d 0a 20 20 20 73 65 | 74 28 46 4f 4e 54 44 49 |;.. se|t(FONTDI|
|00001090| 52 2c 39 30 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |R,90);..| text(|
|000010a0| 33 2e 36 33 2c 31 2e 32 | 36 2c 22 56 65 72 74 69 |3.63,1.2|6,"Verti|
|000010b0| 63 61 6c 22 29 3b 0d 0a | 20 20 20 73 65 74 28 46 |cal");..| set(F|
|000010c0| 4f 4e 54 44 49 52 2c 31 | 33 30 29 3b 0d 0a 20 20 |ONTDIR,1|30);.. |
|000010d0| 20 74 65 78 74 28 31 31 | 2e 32 38 2c 31 2e 34 34 | text(11|.28,1.44|
|000010e0| 2c 22 41 6e 67 6c 65 64 | 22 29 3b 0d 0a 20 20 20 |,"Angled|");.. |
|000010f0| 7d 0d 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |}..\end{|verbatim|
|00001100| 7d 0d 0a 7d 0d 0a 0d 0a | 5c 6e 65 77 70 61 67 65 |}..}....|\newpage|
|00001110| 0d 0a 5c 76 73 70 61 63 | 65 2a 7b 32 35 63 6d 7d |..\vspac|e*{25cm}|
|00001120| 0d 0a 5c 73 70 65 63 69 | 61 6c 7b 70 73 66 69 6c |..\speci|al{psfil|
|00001130| 65 3d 74 65 78 74 2e 65 | 70 73 20 68 73 63 61 6c |e=text.e|ps hscal|
|00001140| 65 3d 38 30 20 76 73 63 | 61 6c 65 3d 38 30 20 68 |e=80 vsc|ale=80 h|
|00001150| 6f 66 66 73 65 74 3d 2d | 33 30 20 76 6f 66 66 73 |offset=-|30 voffs|
|00001160| 65 74 3d 37 35 7d 0d 0a | 0d 0a 7b 5c 74 74 0d 0a |et=75}..|..{\tt..|
|00001170| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00001180| 0d 0a 2f 2a 20 54 68 69 | 73 20 66 69 6c 65 20 69 |../* Thi|s file i|
|00001190| 6c 6c 75 73 74 72 61 74 | 65 73 20 73 6f 6d 65 20 |llustrat|es some |
|000011a0| 6f 66 20 74 68 65 20 63 | 61 70 61 62 69 6c 69 74 |of the c|apabilit|
|000011b0| 69 65 73 20 6f 66 20 74 | 68 65 20 2a 2f 0d 0a 2f |ies of t|he */../|
|000011c0| 2a 20 74 65 78 74 28 29 | 20 63 6f 6d 6d 61 6e 64 |* text()| command|
|000011d0| 20 74 6f 20 61 6e 6e 6f | 74 61 74 65 20 66 69 67 | to anno|tate fig|
|000011e0| 75 72 65 73 20 2a 2f 0d | 0a 20 0d 0a 23 69 6e 63 |ures */.|. ..#inc|
|000011f0| 6c 75 64 65 20 3c 73 70 | 6c 6f 74 2e 68 3e 0d 0a |lude <sp|lot.h>..|
|00001200| 6d 61 69 6e 28 29 0d 0a | 20 20 20 7b 0d 0a 20 20 |main()..| {.. |
|00001210| 20 74 65 78 74 28 32 2c | 32 33 2c 22 54 68 65 20 | text(2,|23,"The |
|00001220| 73 70 61 63 69 6e 67 20 | 62 65 74 77 65 65 6e 20 |spacing |between |
|00001230| 6c 65 74 74 65 72 73 20 | 63 61 6e 20 62 65 20 63 |letters |can be c|
|00001240| 68 61 6e 67 65 64 22 29 | 3b 0d 0a 20 20 20 73 65 |hanged")|;.. se|
|00001250| 74 28 46 4f 4e 54 53 50 | 41 43 45 2c 30 2e 35 29 |t(FONTSP|ACE,0.5)|
|00001260| 3b 0d 0a 20 20 20 74 65 | 78 74 28 22 74 6f 20 62 |;.. te|xt("to b|
|00001270| 65 20 66 75 72 74 68 65 | 72 20 61 70 61 72 74 20 |e furthe|r apart |
|00001280| 74 68 61 6e 20 75 73 75 | 61 6c 22 29 3b 0d 0a 20 |than usu|al");.. |
|00001290| 20 20 73 65 74 28 46 4f | 4e 54 53 50 41 43 45 2c | set(FO|NTSPACE,|
|000012a0| 2d 30 2e 32 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |-0.2);..| text(|
|000012b0| 22 6f 72 20 63 6c 6f 73 | 65 72 20 74 6f 67 65 74 |"or clos|er toget|
|000012c0| 68 65 72 2e 22 29 3b 0d | 0a 20 20 20 73 65 74 28 |her.");.|. set(|
|000012d0| 46 4f 4e 54 53 50 41 43 | 45 2c 30 29 3b 0d 0a 20 |FONTSPAC|E,0);.. |
|000012e0| 20 20 74 65 78 74 28 22 | 54 68 65 20 73 69 7a 65 | text("|The size|
|000012f0| 20 61 6e 64 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | and pos|ition of|
|00001300| 20 73 75 70 65 72 2f 73 | 75 62 20 73 63 72 69 70 | super/s|ub scrip|
|00001310| 74 73 20 63 61 6e 22 29 | 3b 0d 0a 20 20 20 74 65 |ts can")|;.. te|
|00001320| 78 74 28 32 2c 31 37 2e | 33 38 2c 22 62 65 20 76 |xt(2,17.|38,"be v|
|00001330| 61 72 69 65 64 20 61 73 | 20 69 6e 22 29 3b 0d 0a |aried as| in");..|
|00001340| 20 20 20 73 65 74 28 53 | 43 52 49 50 54 53 48 49 | set(S|CRIPTSHI|
|00001350| 46 54 2c 30 2e 37 29 3b | 0d 0a 20 20 20 73 65 74 |FT,0.7);|.. set|
|00001360| 28 53 43 52 49 50 54 53 | 43 41 4c 45 2c 30 2e 35 |(SCRIPTS|CALE,0.5|
|00001370| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 38 2e 39 34 |);.. t|ext(8.94|
|00001380| 2c 31 37 2e 33 38 2c 22 | 58 5f 31 5f 5c 62 5e 32 |,17.38,"|X_1_\b^2|
|00001390| 5e 2c 22 29 3b 0d 0a 20 | 20 20 73 65 74 28 53 43 |^,");.. | set(SC|
|000013a0| 52 49 50 54 53 48 49 46 | 54 2c 31 2e 30 29 3b 0d |RIPTSHIF|T,1.0);.|
|000013b0| 0a 20 20 20 73 65 74 28 | 53 43 52 49 50 54 53 43 |. set(|SCRIPTSC|
|000013c0| 41 4c 45 2c 30 2e 37 29 | 3b 0d 0a 20 20 20 74 65 |ALE,0.7)|;.. te|
|000013d0| 78 74 28 31 30 2e 31 39 | 2c 31 37 2e 33 38 2c 22 |xt(10.19|,17.38,"|
|000013e0| 58 5f 31 5f 5c 62 5e 32 | 5e 2c 22 29 3b 0d 0a 20 |X_1_\b^2|^,");.. |
|000013f0| 20 20 73 65 74 28 53 43 | 52 49 50 54 53 48 49 46 | set(SC|RIPTSHIF|
|00001400| 54 2c 31 2e 35 29 3b 0d | 0a 20 20 20 73 65 74 28 |T,1.5);.|. set(|
|00001410| 53 43 52 49 50 54 53 43 | 41 4c 45 2c 31 2e 30 29 |SCRIPTSC|ALE,1.0)|
|00001420| 3b 0d 0a 20 20 20 74 65 | 78 74 28 31 31 2e 34 2c |;.. te|xt(11.4,|
|00001430| 31 37 2e 33 38 2c 22 58 | 5f 31 5f 5c 62 5e 32 5e |17.38,"X|_1_\b^2^|
|00001440| 2e 22 29 3b 0d 0a 20 20 | 20 74 65 78 74 28 32 2e |.");.. | text(2.|
|00001450| 31 30 2c 31 35 2e 38 31 | 2c 22 4e 6f 74 65 20 68 |10,15.81|,"Note h|
|00001460| 6f 77 20 74 68 65 20 73 | 75 70 65 72 73 63 72 69 |ow the s|uperscri|
|00001470| 70 74 20 77 61 73 20 70 | 6c 61 63 65 64 20 61 62 |pt was p|laced ab|
|00001480| 6f 76 65 22 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |ove");..| text(|
|00001490| 22 74 68 65 20 73 75 62 | 73 63 72 69 70 74 20 75 |"the sub|script u|
|000014a0| 73 69 6e 67 20 74 68 65 | 20 62 61 63 6b 73 70 61 |sing the| backspa|
|000014b0| 63 65 20 63 68 61 72 20 | 5c 5c 62 2e 22 29 3b 0d |ce char |\\b.");.|
|000014c0| 0a 20 20 20 74 65 78 74 | 28 22 45 6e 74 65 72 20 |. text|("Enter |
|000014d0| 64 65 67 72 65 65 20 73 | 69 67 6e 20 75 73 69 6e |degree s|ign usin|
|000014e0| 67 20 27 3c 41 4c 54 20 | 58 3e 20 31 32 37 27 22 |g '<ALT |X> 127'"|
|000014f0| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 22 55 73 65 |);.. t|ext("Use|
|00001500| 20 61 20 5c 5c 20 62 65 | 66 6f 72 65 20 73 70 65 | a \\ be|fore spe|
|00001510| 63 69 61 6c 20 63 68 61 | 72 61 63 74 65 72 73 3a |cial cha|racters:|
|00001520| 20 5c 5f 5c 5e 5c 24 5c | 23 5c 21 5c 22 22 29 3b | \_\^\$\|#\!\"");|
|00001530| 0d 0a 20 20 20 74 65 78 | 74 28 22 53 79 6d 62 6f |.. tex|t("Symbo|
|00001540| 6c 73 3a 20 24 30 20 31 | 20 32 20 33 20 34 20 35 |ls: $0 1| 2 3 4 5|
|00001550| 20 36 20 37 20 38 20 39 | 20 3a 20 3b 20 3c 20 3d | 6 7 8 9| : ; < =|
|00001560| 20 3e 20 24 22 29 3b 20 | 0d 0a 20 20 0d 0a 20 20 | > $"); |.. .. |
|00001570| 20 74 65 78 74 28 32 2c | 38 2c 22 54 68 65 20 64 | text(2,|8,"The d|
|00001580| 65 66 61 75 6c 74 20 74 | 65 78 74 20 69 6e 73 65 |efault t|ext inse|
|00001590| 72 74 69 6f 6e 20 70 6f | 69 6e 74 20 69 73 20 4c |rtion po|int is L|
|000015a0| 45 46 54 22 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |EFT");..| text(|
|000015b0| 31 37 2c 36 2c 22 62 75 | 74 20 63 61 6e 20 62 65 |17,6,"bu|t can be|
|000015c0| 20 73 65 74 20 74 6f 20 | 52 49 47 48 54 22 2c 52 | set to |RIGHT",R|
|000015d0| 49 47 48 54 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |IGHT);..| text(|
|000015e0| 31 30 2c 34 2c 22 4f 72 | 20 43 45 4e 54 45 52 22 |10,4,"Or| CENTER"|
|000015f0| 2c 43 45 4e 54 45 52 29 | 3b 0d 0a 20 20 20 7d 0d |,CENTER)|;.. }.|
|00001600| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0d |.\end{ve|rbatim}.|
|00001610| 0a 7d 0d 0a 0d 0a 5c 6e | 65 77 70 61 67 65 0d 0a |.}....\n|ewpage..|
|00001620| 5c 76 73 70 61 63 65 2a | 7b 32 35 63 6d 7d 0d 0a |\vspace*|{25cm}..|
|00001630| 5c 73 70 65 63 69 61 6c | 7b 70 73 66 69 6c 65 3d |\special|{psfile=|
|00001640| 74 65 78 74 32 2e 65 70 | 73 20 68 73 63 61 6c 65 |text2.ep|s hscale|
|00001650| 3d 38 30 20 76 73 63 61 | 6c 65 3d 38 30 20 68 6f |=80 vsca|le=80 ho|
|00001660| 66 66 73 65 74 3d 2d 33 | 30 20 76 6f 66 66 73 65 |ffset=-3|0 voffse|
|00001670| 74 3d 37 35 7d 0d 0a 09 | 20 20 20 0d 0a 5c 69 6e |t=75}...| ..\in|
|00001680| 64 65 78 7b 74 65 78 74 | 2c 20 63 68 61 72 61 63 |dex{text|, charac|
|00001690| 74 65 72 20 74 61 62 6c | 65 7d 0d 0a 7b 5c 74 74 |ter tabl|e}..{\tt|
|000016a0| 0d 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |..\begin|{verbati|
|000016b0| 6d 7d 0d 0a 2f 2a 20 54 | 68 69 73 20 66 69 6c 65 |m}../* T|his file|
|000016c0| 20 64 69 73 70 6c 61 79 | 73 20 61 6c 6c 20 74 68 | display|s all th|
|000016d0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 63 68 61 72 |e availa|ble char|
|000016e0| 61 63 74 65 72 73 20 2a | 2f 0d 0a 20 0d 0a 23 69 |acters *|/.. ..#i|
|000016f0| 6e 63 6c 75 64 65 20 3c | 73 70 6c 6f 74 2e 68 3e |nclude <|splot.h>|
|00001700| 20 20 20 20 20 20 20 0d | 0a 23 64 65 66 69 6e 65 | .|.#define|
|00001710| 20 52 4f 4d 41 4e 20 31 | 0d 0a 23 64 65 66 69 6e | ROMAN 1|..#defin|
|00001720| 65 20 47 52 45 45 4b 20 | 30 0d 0a 23 64 65 66 69 |e GREEK |0..#defi|
|00001730| 6e 65 20 49 54 41 4c 49 | 43 20 30 0d 0a 69 6e 74 |ne ITALI|C 0..int|
|00001740| 20 69 2c 6a 3b 0d 0a 63 | 68 61 72 20 63 5b 31 30 | i,j;..c|har c[10|
|00001750| 5d 3b 0d 0a 0d 0a 6d 61 | 69 6e 28 29 0d 0a 20 20 |];....ma|in().. |
|00001760| 20 7b 0d 0a 20 20 20 73 | 65 74 28 50 41 47 45 52 | {.. s|et(PAGER|
|00001770| 4f 54 2c 4f 4e 29 3b 0d | 0a 23 69 66 20 52 4f 4d |OT,ON);.|.#if ROM|
|00001780| 41 4e 0d 0a 20 20 20 74 | 65 78 74 28 31 33 2e 36 |AN.. t|ext(13.6|
|00001790| 37 2c 31 39 2e 31 34 2c | 22 52 6f 6d 61 6e 22 2c |7,19.14,|"Roman",|
|000017a0| 43 45 4e 54 45 52 29 3b | 0d 0a 20 20 20 74 65 78 |CENTER);|.. tex|
|000017b0| 74 28 37 2e 35 2c 31 38 | 2c 22 53 69 6d 70 6c 65 |t(7.5,18|,"Simple|
|000017c0| 78 22 2c 43 45 4e 54 45 | 52 29 3b 0d 0a 20 20 20 |x",CENTE|R);.. |
|000017d0| 74 65 78 74 28 31 39 2c | 31 38 2c 22 43 6f 6d 70 |text(19,|18,"Comp|
|000017e0| 6c 65 78 22 2c 43 45 4e | 54 45 52 29 3b 0d 0a 20 |lex",CEN|TER);.. |
|000017f0| 20 20 67 73 61 76 65 28 | 29 3b 0d 0a 20 20 20 73 | gsave(|);.. s|
|00001800| 63 61 6c 65 28 31 2e 32 | 2c 31 2e 32 29 3b 0d 0a |cale(1.2|,1.2);..|
|00001810| 20 20 20 74 72 61 6e 73 | 6c 61 74 65 28 31 2c 2d | trans|late(1,-|
|00001820| 31 31 29 3b 0d 0a 20 20 | 20 73 65 74 28 46 4f 4e |11);.. | set(FON|
|00001830| 54 57 49 44 54 48 2c 30 | 2e 35 29 3b 0d 0a 20 20 |TWIDTH,0|.5);.. |
|00001840| 20 73 65 74 28 46 4f 4e | 54 41 53 50 45 43 54 2c | set(FON|TASPECT,|
|00001850| 31 2e 35 29 3b 0d 0a 20 | 20 20 74 61 62 6c 65 28 |1.5);.. | table(|
|00001860| 30 29 3b 0d 0a 20 20 20 | 74 72 61 6e 73 6c 61 74 |0);.. |translat|
|00001870| 65 28 31 30 2c 30 29 3b | 0d 0a 20 20 20 73 65 74 |e(10,0);|.. set|
|00001880| 28 46 4f 4e 54 2c 43 4f | 4d 50 4c 45 58 29 3b 0d |(FONT,CO|MPLEX);.|
|00001890| 0a 20 20 20 74 61 62 6c | 65 28 30 29 3b 0d 0a 20 |. tabl|e(0);.. |
|000018a0| 20 20 73 65 74 28 46 4f | 4e 54 2c 53 49 4d 50 4c | set(FO|NT,SIMPL|
|000018b0| 45 58 29 3b 0d 0a 23 65 | 6e 64 69 66 0d 0a 23 69 |EX);..#e|ndif..#i|
|000018c0| 66 20 47 52 45 45 4b 0d | 0a 20 20 20 74 65 78 74 |f GREEK.|. text|
|000018d0| 28 31 33 2e 36 37 2c 31 | 39 2e 31 34 2c 22 47 72 |(13.67,1|9.14,"Gr|
|000018e0| 65 65 6b 22 2c 43 45 4e | 54 45 52 29 3b 0d 0a 20 |eek",CEN|TER);.. |
|000018f0| 20 20 74 65 78 74 28 37 | 2e 35 2c 31 38 2c 22 53 | text(7|.5,18,"S|
|00001900| 69 6d 70 6c 65 78 22 2c | 43 45 4e 54 45 52 29 3b |implex",|CENTER);|
|00001910| 0d 0a 20 20 20 74 65 78 | 74 28 31 39 2c 31 38 2c |.. tex|t(19,18,|
|00001920| 22 43 6f 6d 70 6c 65 78 | 22 2c 43 45 4e 54 45 52 |"Complex|",CENTER|
|00001930| 29 3b 0d 0a 20 20 20 67 | 73 61 76 65 28 29 3b 0d |);.. g|save();.|
|00001940| 0a 20 20 20 73 63 61 6c | 65 28 31 2e 32 2c 31 2e |. scal|e(1.2,1.|
|00001950| 32 29 3b 0d 0a 20 20 20 | 74 72 61 6e 73 6c 61 74 |2);.. |translat|
|00001960| 65 28 31 2c 2d 31 31 29 | 3b 0d 0a 20 20 20 73 65 |e(1,-11)|;.. se|
|00001970| 74 28 46 4f 4e 54 57 49 | 44 54 48 2c 30 2e 35 29 |t(FONTWI|DTH,0.5)|
|00001980| 3b 0d 0a 20 20 20 73 65 | 74 28 46 4f 4e 54 41 53 |;.. se|t(FONTAS|
|00001990| 50 45 43 54 2c 31 2e 35 | 29 3b 0d 0a 20 20 20 74 |PECT,1.5|);.. t|
|000019a0| 61 62 6c 65 28 31 29 3b | 0d 0a 20 20 20 74 72 61 |able(1);|.. tra|
|000019b0| 6e 73 6c 61 74 65 28 31 | 30 2c 30 29 3b 0d 0a 20 |nslate(1|0,0);.. |
|000019c0| 20 20 73 65 74 28 46 4f | 4e 54 2c 43 4f 4d 50 4c | set(FO|NT,COMPL|
|000019d0| 45 58 29 3b 0d 0a 20 20 | 20 74 61 62 6c 65 28 31 |EX);.. | table(1|
|000019e0| 29 3b 0d 0a 20 20 20 73 | 65 74 28 46 4f 4e 54 2c |);.. s|et(FONT,|
|000019f0| 53 49 4d 50 4c 45 58 29 | 3b 0d 0a 23 65 6e 64 69 |SIMPLEX)|;..#endi|
|00001a00| 66 0d 0a 23 69 66 20 49 | 54 41 4c 49 43 0d 0a 20 |f..#if I|TALIC.. |
|00001a10| 20 20 74 65 78 74 28 37 | 2e 35 2c 31 38 2c 22 49 | text(7|.5,18,"I|
|00001a20| 74 61 6c 69 63 73 20 53 | 69 6d 70 6c 65 78 2f 43 |talics S|implex/C|
|00001a30| 6f 6d 70 6c 65 78 22 2c | 43 45 4e 54 45 52 29 3b |omplex",|CENTER);|
|00001a40| 0d 0a 20 20 20 74 65 78 | 74 28 31 39 2c 31 38 2c |.. tex|t(19,18,|
|00001a50| 22 53 79 6d 62 6f 6c 73 | 22 2c 43 45 4e 54 45 52 |"Symbols|",CENTER|
|00001a60| 29 3b 0d 0a 20 20 20 67 | 73 61 76 65 28 29 3b 0d |);.. g|save();.|
|00001a70| 0a 20 20 20 73 63 61 6c | 65 28 31 2e 32 2c 31 2e |. scal|e(1.2,1.|
|00001a80| 32 29 3b 0d 0a 20 20 20 | 74 72 61 6e 73 6c 61 74 |2);.. |translat|
|00001a90| 65 28 31 2c 2d 31 31 29 | 3b 0d 0a 20 20 20 73 65 |e(1,-11)|;.. se|
|00001aa0| 74 28 46 4f 4e 54 57 49 | 44 54 48 2c 30 2e 35 29 |t(FONTWI|DTH,0.5)|
|00001ab0| 3b 0d 0a 20 20 20 73 65 | 74 28 46 4f 4e 54 41 53 |;.. se|t(FONTAS|
|00001ac0| 50 45 43 54 2c 31 2e 35 | 29 3b 0d 0a 20 20 20 74 |PECT,1.5|);.. t|
|00001ad0| 61 62 6c 65 28 32 29 3b | 0d 0a 20 20 20 74 72 61 |able(2);|.. tra|
|00001ae0| 6e 73 6c 61 74 65 28 31 | 30 2c 30 29 3b 0d 0a 20 |nslate(1|0,0);.. |
|00001af0| 20 20 74 61 62 6c 65 28 | 33 29 3b 0d 0a 23 65 6e | table(|3);..#en|
|00001b00| 64 69 66 0d 0a 20 20 20 | 67 72 65 73 74 6f 72 65 |dif.. |grestore|
|00001b10| 28 29 3b 0d 0a 20 20 20 | 7d 0d 0a 0d 0a 74 61 62 |();.. |}....tab|
|00001b20| 6c 65 28 69 6e 74 20 73 | 70 65 63 69 61 6c 29 0d |le(int s|pecial).|
|00001b30| 0a 20 20 20 7b 0d 0a 20 | 20 20 2f 2a 20 6c 61 62 |. {.. | /* lab|
|00001b40| 65 6c 20 72 6f 77 73 20 | 61 6e 64 20 63 6f 6c 75 |el rows |and colu|
|00001b50| 6d 6e 73 20 2a 2f 0d 0a | 20 20 20 63 5b 31 5d 20 |mns */..| c[1] |
|00001b60| 3d 20 27 5c 30 27 3b 0d | 0a 20 20 20 66 6f 72 20 |= '\0';.|. for |
|00001b70| 28 69 20 3d 20 30 3b 20 | 69 20 3c 20 31 30 3b 69 |(i = 0; |i < 10;i|
|00001b80| 2b 2b 29 0d 0a 20 20 20 | 20 20 20 7b 0d 0a 20 20 |++).. | {.. |
|00001b90| 20 20 20 20 63 5b 30 5d | 20 3d 20 27 30 27 20 2b | c[0]| = '0' +|
|00001ba0| 20 69 3b 0d 0a 20 20 20 | 20 20 20 74 70 75 74 73 | i;.. | tputs|
|00001bb0| 28 32 20 2b 20 69 20 2a | 20 30 2e 37 2c 32 34 2e |(2 + i *| 0.7,24.|
|00001bc0| 35 2c 63 2c 30 29 3b 0d | 0a 20 20 20 20 20 20 7d |5,c,0);.|. }|
|00001bd0| 0d 0a 20 20 20 63 5b 30 | 5d 20 3d 20 27 20 27 3b |.. c[0|] = ' ';|
|00001be0| 0d 0a 20 20 20 63 5b 32 | 5d 20 3d 20 27 30 27 3b |.. c[2|] = '0';|
|00001bf0| 0d 0a 20 20 20 63 5b 33 | 5d 20 3d 20 27 5c 30 27 |.. c[3|] = '\0'|
|00001c00| 3b 0d 0a 20 20 20 66 6f | 72 20 28 6a 20 3d 20 33 |;.. fo|r (j = 3|
|00001c10| 3b 6a 20 3c 20 31 30 3b | 6a 2b 2b 29 0d 0a 20 20 |;j < 10;|j++).. |
|00001c20| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 63 5b 31 | {.. | c[1|
|00001c30| 5d 20 3d 20 27 30 27 20 | 2b 20 6a 3b 0d 0a 20 20 |] = '0' |+ j;.. |
|00001c40| 20 20 20 20 74 70 75 74 | 73 28 30 2c 32 36 20 2d | tput|s(0,26 -|
|00001c50| 20 6a 2c 63 2c 30 29 3b | 0d 0a 20 20 20 20 20 20 | j,c,0);|.. |
|00001c60| 7d 0d 0a 20 20 20 63 5b | 30 5d 20 3d 20 27 31 27 |}.. c[|0] = '1'|
|00001c70| 3b 0d 0a 20 20 20 63 5b | 32 5d 20 3d 20 27 30 27 |;.. c[|2] = '0'|
|00001c80| 3b 0d 0a 20 20 20 63 5b | 33 5d 20 3d 20 27 5c 30 |;.. c[|3] = '\0|
|00001c90| 27 3b 0d 0a 20 20 20 66 | 6f 72 20 28 6a 20 3d 20 |';.. f|or (j = |
|00001ca0| 31 30 3b 6a 20 3c 20 31 | 33 3b 6a 2b 2b 29 0d 0a |10;j < 1|3;j++)..|
|00001cb0| 20 20 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 63 | {.|. c|
|00001cc0| 5b 31 5d 20 3d 20 27 30 | 27 20 2b 20 6a 20 2d 20 |[1] = '0|' + j - |
|00001cd0| 31 30 3b 0d 0a 20 20 20 | 20 20 20 74 70 75 74 73 |10;.. | tputs|
|00001ce0| 28 30 2c 32 36 20 2d 20 | 6a 2c 63 2c 30 29 3b 0d |(0,26 - |j,c,0);.|
|00001cf0| 0a 20 20 20 20 20 20 7d | 0d 0a 20 20 20 2f 2a 20 |. }|.. /* |
|00001d00| 70 72 65 70 65 6e 64 20 | 65 61 63 68 20 63 68 61 |prepend |each cha|
|00001d10| 72 20 77 69 74 68 20 27 | 5c 27 20 73 6f 20 74 68 |r with '|\' so th|
|00001d20| 61 74 20 65 76 65 6e 20 | 73 70 65 63 69 61 6c 20 |at even |special |
|00001d30| 63 68 61 72 73 20 67 65 | 74 20 70 72 69 6e 74 65 |chars ge|t printe|
|00001d40| 64 20 2a 2f 0d 0a 20 20 | 20 63 5b 30 5d 20 3d 20 |d */.. | c[0] = |
|00001d50| 27 5c 5c 27 3b 0d 0a 20 | 20 20 63 5b 32 5d 20 3d |'\\';.. | c[2] =|
|00001d60| 20 27 5c 30 27 3b 0d 0a | 20 20 20 62 6f 78 28 31 | '\0';..| box(1|
|00001d70| 2e 32 39 2c 32 33 2e 37 | 37 2c 39 2e 30 37 2c 31 |.29,23.7|7,9.07,1|
|00001d80| 33 2e 33 36 29 3b 0d 0a | 20 20 20 73 74 72 6f 6b |3.36);..| strok|
|00001d90| 65 28 29 3b 0d 0a 20 20 | 20 2f 2a 20 66 69 6c 6c |e();.. | /* fill|
|00001da0| 20 69 6e 20 74 61 62 6c | 65 20 2a 2f 0d 0a 20 20 | in tabl|e */.. |
|00001db0| 20 66 6f 72 20 28 6a 20 | 3d 20 33 3b 6a 20 3c 20 | for (j |= 3;j < |
|00001dc0| 31 33 3b 6a 2b 2b 29 0d | 0a 20 20 20 20 20 20 7b |13;j++).|. {|
|00001dd0| 0d 0a 20 20 20 20 20 20 | 66 6f 72 20 28 69 20 3d |.. |for (i =|
|00001de0| 20 30 3b 20 69 20 3c 20 | 31 30 3b 69 2b 2b 29 0d | 0; i < |10;i++).|
|00001df0| 0a 09 20 7b 0d 0a 09 20 | 63 5b 31 5d 20 3d 20 6a |.. {... |c[1] = j|
|00001e00| 20 2a 20 31 30 20 2b 20 | 69 3b 0d 0a 09 20 69 66 | * 10 + |i;... if|
|00001e10| 20 28 63 5b 31 5d 20 3d | 3d 20 27 62 27 29 0d 0a | (c[1] =|= 'b')..|
|00001e20| 09 20 20 20 20 74 70 75 | 74 73 28 32 20 2b 20 69 |. tpu|ts(2 + i|
|00001e30| 20 2a 20 30 2e 37 2c 32 | 36 20 2d 20 6a 2c 22 62 | * 0.7,2|6 - j,"b|
|00001e40| 22 2c 73 70 65 63 69 61 | 6c 29 3b 0d 0a 09 20 65 |",specia|l);... e|
|00001e50| 6c 73 65 0d 0a 09 20 20 | 20 20 74 70 75 74 73 28 |lse... | tputs(|
|00001e60| 32 20 2b 20 69 20 2a 20 | 30 2e 37 2c 32 36 20 2d |2 + i * |0.7,26 -|
|00001e70| 6a 2c 63 2c 73 70 65 63 | 69 61 6c 29 3b 0d 0a 09 |j,c,spec|ial);...|
|00001e80| 20 7d 0d 0a 20 20 20 20 | 20 20 7d 0d 0a 20 20 20 | }.. | }.. |
|00001e90| 7d 0d 0a 0d 0a 74 70 75 | 74 73 28 64 6f 75 62 6c |}....tpu|ts(doubl|
|00001ea0| 65 20 78 2c 64 6f 75 62 | 6c 65 20 79 2c 63 68 61 |e x,doub|le y,cha|
|00001eb0| 72 20 2a 63 2c 69 6e 74 | 20 73 70 65 63 69 61 6c |r *c,int| special|
|00001ec0| 29 20 0d 0a 20 20 20 7b | 0d 0a 20 20 20 63 68 61 |) .. {|.. cha|
|00001ed0| 72 20 74 6d 70 5b 31 30 | 5d 3b 0d 0a 20 20 20 73 |r tmp[10|];.. s|
|00001ee0| 77 69 74 63 68 28 73 70 | 65 63 69 61 6c 29 0d 0a |witch(sp|ecial)..|
|00001ef0| 20 20 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 63 | {.|. c|
|00001f00| 61 73 65 20 30 3a 0d 0a | 09 20 74 65 78 74 28 78 |ase 0:..|. text(x|
|00001f10| 2c 79 2c 63 29 3b 0d 0a | 09 20 62 72 65 61 6b 3b |,y,c);..|. break;|
|00001f20| 0d 0a 20 20 20 20 20 20 | 63 61 73 65 20 31 3a 0d |.. |case 1:.|
|00001f30| 0a 09 20 2f 2a 20 67 72 | 65 65 6b 20 2a 2f 0d 0a |.. /* gr|eek */..|
|00001f40| 09 20 73 74 72 63 70 79 | 28 74 6d 70 2c 22 21 22 |. strcpy|(tmp,"!"|
|00001f50| 29 3b 0d 0a 09 20 73 74 | 72 63 61 74 28 74 6d 70 |);... st|rcat(tmp|
|00001f60| 2c 63 29 3b 0d 0a 09 20 | 73 74 72 63 61 74 28 74 |,c);... |strcat(t|
|00001f70| 6d 70 2c 22 21 22 29 3b | 0d 0a 09 20 74 65 78 74 |mp,"!");|... text|
|00001f80| 28 78 2c 79 2c 74 6d 70 | 29 3b 0d 0a 09 20 62 72 |(x,y,tmp|);... br|
|00001f90| 65 61 6b 3b 0d 0a 20 20 | 20 20 20 20 63 61 73 65 |eak;.. | case|
|00001fa0| 20 32 3a 0d 0a 09 20 2f | 2a 20 69 74 61 6c 69 63 | 2:... /|* italic|
|00001fb0| 73 20 2a 2f 0d 0a 09 20 | 73 74 72 63 70 79 28 74 |s */... |strcpy(t|
|00001fc0| 6d 70 2c 22 23 22 29 3b | 0d 0a 09 20 73 74 72 63 |mp,"#");|... strc|
|00001fd0| 61 74 28 74 6d 70 2c 63 | 29 3b 0d 0a 09 20 73 74 |at(tmp,c|);... st|
|00001fe0| 72 63 61 74 28 74 6d 70 | 2c 22 23 22 29 3b 0d 0a |rcat(tmp|,"#");..|
|00001ff0| 09 20 74 65 78 74 28 78 | 2c 79 2c 74 6d 70 29 3b |. text(x|,y,tmp);|
|00002000| 0d 0a 09 20 62 72 65 61 | 6b 3b 0d 0a 20 20 20 20 |... brea|k;.. |
|00002010| 20 20 63 61 73 65 20 33 | 3a 0d 0a 09 20 2f 2a 20 | case 3|:... /* |
|00002020| 73 79 6d 62 6f 6c 73 20 | 2a 2f 0d 0a 09 20 73 74 |symbols |*/... st|
|00002030| 72 63 70 79 28 74 6d 70 | 2c 22 24 22 29 3b 0d 0a |rcpy(tmp|,"$");..|
|00002040| 09 20 73 74 72 63 61 74 | 28 74 6d 70 2c 63 29 3b |. strcat|(tmp,c);|
|00002050| 0d 0a 09 20 73 74 72 63 | 61 74 28 74 6d 70 2c 22 |... strc|at(tmp,"|
|00002060| 24 22 29 3b 0d 0a 09 20 | 74 65 78 74 28 78 2c 79 |$");... |text(x,y|
|00002070| 2c 74 6d 70 29 3b 0d 0a | 09 20 62 72 65 61 6b 3b |,tmp);..|. break;|
|00002080| 0d 0a 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 7d 0d |.. |}.. }.|
|00002090| 0a 20 0d 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |. ..\end|{verbati|
|000020a0| 6d 7d 0d 0a 7d 0d 0a 0d | 0a 5c 6e 65 77 70 61 67 |m}..}...|.\newpag|
|000020b0| 65 0d 0a 5c 76 73 70 61 | 63 65 2a 7b 32 32 63 6d |e..\vspa|ce*{22cm|
|000020c0| 7d 0d 0a 5c 73 70 65 63 | 69 61 6c 7b 70 73 66 69 |}..\spec|ial{psfi|
|000020d0| 6c 65 3d 63 68 61 72 74 | 61 62 6c 2e 65 70 73 20 |le=chart|abl.eps |
|000020e0| 68 73 63 61 6c 65 3d 38 | 30 20 76 73 63 61 6c 65 |hscale=8|0 vscale|
|000020f0| 3d 38 30 20 68 6f 66 66 | 73 65 74 3d 30 20 76 6f |=80 hoff|set=0 vo|
|00002100| 66 66 73 65 74 3d 30 7d | 0d 0a 0d 0a 5c 6e 65 77 |ffset=0}|....\new|
|00002110| 70 61 67 65 0d 0a 5c 76 | 73 70 61 63 65 2a 7b 32 |page..\v|space*{2|
|00002120| 32 63 6d 7d 0d 0a 5c 73 | 70 65 63 69 61 6c 7b 70 |2cm}..\s|pecial{p|
|00002130| 73 66 69 6c 65 3d 63 68 | 61 72 74 61 62 31 2e 65 |sfile=ch|artab1.e|
|00002140| 70 73 20 68 73 63 61 6c | 65 3d 38 30 20 76 73 63 |ps hscal|e=80 vsc|
|00002150| 61 6c 65 3d 38 30 20 68 | 6f 66 66 73 65 74 3d 30 |ale=80 h|offset=0|
|00002160| 20 76 6f 66 66 73 65 74 | 3d 30 7d 0d 0a 0d 0a 5c | voffset|=0}....\|
|00002170| 6e 65 77 70 61 67 65 0d | 0a 5c 76 73 70 61 63 65 |newpage.|.\vspace|
|00002180| 2a 7b 32 32 63 6d 7d 0d | 0a 5c 73 70 65 63 69 61 |*{22cm}.|.\specia|
|00002190| 6c 7b 70 73 66 69 6c 65 | 3d 63 68 61 72 74 61 62 |l{psfile|=chartab|
|000021a0| 32 2e 65 70 73 20 68 73 | 63 61 6c 65 3d 38 30 20 |2.eps hs|cale=80 |
|000021b0| 76 73 63 61 6c 65 3d 38 | 30 20 68 6f 66 66 73 65 |vscale=8|0 hoffse|
|000021c0| 74 3d 30 20 76 6f 66 66 | 73 65 74 3d 30 7d 0d 0a |t=0 voff|set=0}..|
|000021d0| 0d 0a 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 53 79 |..\subse|ction{Sy|
|000021e0| 6d 62 6f 6c 73 7d 5c 69 | 6e 64 65 78 7b 73 79 6d |mbols}\i|ndex{sym|
|000021f0| 62 6f 6c 73 7d 0d 0a 20 | 53 79 6d 62 6f 6c 73 20 |bols}.. |Symbols |
|00002200| 63 61 6e 20 6f 70 74 69 | 6f 6e 61 6c 6c 79 20 62 |can opti|onally b|
|00002210| 65 20 64 72 61 77 6e 20 | 61 74 20 65 76 65 72 79 |e drawn |at every|
|00002220| 20 64 61 74 61 20 70 6f | 69 6e 74 20 62 79 20 73 | data po|int by s|
|00002230| 65 74 74 69 6e 67 20 7b | 5c 74 74 20 0d 0a 20 73 |etting {|\tt .. s|
|00002240| 65 74 28 20 50 4c 4f 54 | 54 59 50 45 20 2c 20 53 |et( PLOT|TYPE , S|
|00002250| 59 4d 42 4f 4c 53 29 3b | 7d 5c 69 6e 64 65 78 7b |YMBOLS);|}\index{|
|00002260| 73 65 74 2c 20 50 4c 4f | 54 54 59 50 45 7d 20 6f |set, PLO|TTYPE} o|
|00002270| 72 20 7b 5c 74 74 20 73 | 65 74 28 20 50 4c 4f 54 |r {\tt s|et( PLOT|
|00002280| 54 59 50 45 20 2c 20 0d | 0a 20 53 59 4d 5c 5f 4c |TYPE , .|. SYM\_L|
|00002290| 49 4e 45 53 29 3b 7d 2e | 20 54 68 65 20 61 63 74 |INES);}.| The act|
|000022a0| 75 61 6c 20 73 79 6d 62 | 6f 6c 20 75 73 65 64 20 |ual symb|ol used |
|000022b0| 69 73 20 73 65 74 20 75 | 73 69 6e 67 20 7b 5c 74 |is set u|sing {\t|
|000022c0| 74 20 73 65 74 28 20 43 | 55 52 53 59 4d 42 4f 4c |t set( C|URSYMBOL|
|000022d0| 20 2c 20 0d 0a 20 73 79 | 6d 5c 5f 6e 75 6d 62 65 | , .. sy|m\_numbe|
|000022e0| 72 20 29 3b 7d 5c 69 6e | 64 65 78 7b 73 65 74 2c |r );}\in|dex{set,|
|000022f0| 20 43 55 52 53 59 4d 42 | 4f 4c 7d 20 53 79 6d 62 | CURSYMB|OL} Symb|
|00002300| 6f 6c 73 20 61 72 65 20 | 6a 75 73 74 20 61 20 73 |ols are |just a s|
|00002310| 70 65 63 69 61 6c 20 66 | 6f 6e 74 20 61 6e 64 20 |pecial f|ont and |
|00002320| 0d 0a 20 6d 75 63 68 20 | 6f 66 20 74 68 65 20 61 |.. much |of the a|
|00002330| 62 6f 76 65 20 64 69 73 | 63 75 73 73 69 6f 6e 20 |bove dis|cussion |
|00002340| 6f 6e 20 68 6f 77 20 74 | 6f 20 63 68 61 6e 67 65 |on how t|o change|
|00002350| 20 61 20 6c 65 74 74 65 | 72 27 73 20 61 70 70 65 | a lette|r's appe|
|00002360| 61 72 61 6e 63 65 20 0d | 0a 20 61 70 70 6c 69 65 |arance .|. applie|
|00002370| 73 20 61 6c 73 6f 20 74 | 6f 20 73 79 6d 62 6f 6c |s also t|o symbol|
|00002380| 73 2e 20 54 68 65 72 65 | 20 69 73 2c 20 68 6f 77 |s. There| is, how|
|00002390| 65 76 65 72 2c 20 6e 6f | 20 63 6f 6d 70 6c 65 78 |ever, no| complex|
|000023a0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|000023b0| 0d 0a 20 73 79 6d 62 6f | 6c 73 2e 20 41 64 64 69 |.. symbo|ls. Addi|
|000023c0| 74 69 6f 6e 61 6c 6c 79 | 2c 20 74 68 65 20 73 69 |tionally|, the si|
|000023d0| 7a 65 20 6f 66 20 74 68 | 65 20 73 79 6d 62 6f 6c |ze of th|e symbol|
|000023e0| 73 20 63 61 6e 20 62 65 | 20 61 64 6a 75 73 74 65 |s can be| adjuste|
|000023f0| 64 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 0d 0a |d relati|ve to ..|
|00002400| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 66 6f 6e | the cur|rent fon|
|00002410| 74 20 73 69 7a 65 20 75 | 73 69 6e 67 20 7b 5c 74 |t size u|sing {\t|
|00002420| 74 20 73 65 74 28 20 53 | 59 4d 4d 55 4c 54 20 2c |t set( S|YMMULT ,|
|00002430| 6d 75 6c 74 69 70 6c 69 | 65 72 29 3b 7d 5c 69 6e |multipli|er);}\in|
|00002440| 64 65 78 7b 73 65 74 2c | 20 0d 0a 20 53 59 4d 4d |dex{set,| .. SYMM|
|00002450| 55 4c 54 7d 2e 20 53 79 | 6d 62 6f 6c 73 20 63 61 |ULT}. Sy|mbols ca|
|00002460| 6e 20 61 6c 73 6f 20 62 | 65 20 64 72 61 77 6e 20 |n also b|e drawn |
|00002470| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 6f 66 20 7b |independ|ent of {|
|00002480| 5c 74 74 20 64 72 61 77 | 64 61 74 61 28 20 0d 0a |\tt draw|data( ..|
|00002490| 20 29 3b 7d 5c 69 6e 64 | 65 78 7b 64 72 61 77 64 | );}\ind|ex{drawd|
|000024a0| 61 74 61 7d 20 61 74 20 | 61 6e 20 61 72 62 69 74 |ata} at |an arbit|
|000024b0| 72 61 72 79 20 6c 6f 63 | 61 74 69 6f 6e 20 62 79 |rary loc|ation by|
|000024c0| 20 75 73 69 6e 67 20 7b | 5c 74 74 20 73 79 6d 62 | using {|\tt symb|
|000024d0| 6f 6c 28 20 78 20 2c 20 | 79 20 2c 20 0d 0a 20 73 |ol( x , |y , .. s|
|000024e0| 79 6d 5c 5f 6e 75 6d 62 | 65 72 29 3b 7d 2e 20 46 |ym\_numb|er);}. F|
|000024f0| 6f 72 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |or an ex|ample of|
|00002500| 20 74 68 65 20 73 79 6d | 62 6f 6c 20 63 61 70 61 | the sym|bol capa|
|00002510| 62 69 6c 69 74 69 65 73 | 20 63 6f 6e 73 75 6c 74 |bilities| consult|
|00002520| 20 74 68 65 20 6c 61 73 | 74 20 0d 0a 20 65 78 61 | the las|t .. exa|
|00002530| 6d 70 6c 65 20 6f 66 20 | 74 68 65 20 70 72 65 76 |mple of |the prev|
|00002540| 69 6f 75 73 20 63 68 61 | 70 74 65 72 2e 20 53 79 |ious cha|pter. Sy|
|00002550| 6d 62 6f 6c 73 20 6d 61 | 79 20 61 6c 73 6f 20 62 |mbols ma|y also b|
|00002560| 65 20 69 6e 63 6c 75 64 | 65 64 20 69 6e 20 74 65 |e includ|ed in te|
|00002570| 78 74 20 20 0d 0a 20 73 | 74 72 69 6e 67 73 20 64 |xt .. s|trings d|
|00002580| 72 61 77 6e 20 77 69 74 | 68 20 7b 5c 74 74 20 74 |rawn wit|h {\tt t|
|00002590| 65 78 74 28 29 3b 7d 20 | 62 79 20 65 6e 63 6c 6f |ext();} |by enclo|
|000025a0| 73 69 6e 67 20 74 68 65 | 20 73 79 6d 62 6f 6c 20 |sing the| symbol |
|000025b0| 6e 75 6d 62 65 72 20 77 | 69 74 68 20 27 5c 24 27 |number w|ith '\$'|
|000025c0| 0d 0a 20 69 6e 20 74 68 | 65 20 74 65 78 74 20 73 |.. in th|e text s|
|000025d0| 74 72 69 6e 67 2e 20 0d | 0a 0d 0a 5c 73 75 62 73 |tring. .|...\subs|
|000025e0| 65 63 74 69 6f 6e 7b 47 | 73 61 76 65 2f 47 72 65 |ection{G|save/Gre|
|000025f0| 73 74 6f 72 65 7d 5c 69 | 6e 64 65 78 7b 67 73 61 |store}\i|ndex{gsa|
|00002600| 76 65 2f 67 72 65 73 74 | 6f 72 65 7d 0d 0a 20 54 |ve/grest|ore}.. T|
|00002610| 68 65 20 70 61 69 72 20 | 6f 66 20 66 75 6e 63 74 |he pair |of funct|
|00002620| 69 6f 6e 73 20 7b 5c 74 | 74 20 67 73 61 76 65 28 |ions {\t|t gsave(|
|00002630| 29 3b 7d 20 61 6e 64 20 | 7b 5c 74 74 20 67 72 65 |);} and |{\tt gre|
|00002640| 73 74 6f 72 65 28 29 3b | 7d 20 61 72 65 20 75 73 |store();|} are us|
|00002650| 65 66 75 6c 20 66 6f 72 | 20 0d 0a 20 61 20 76 61 |eful for| .. a va|
|00002660| 72 69 65 74 79 20 6f 66 | 20 70 75 72 70 6f 73 65 |riety of| purpose|
|00002670| 73 2e 20 7b 5c 74 74 20 | 67 73 61 76 65 28 29 3b |s. {\tt |gsave();|
|00002680| 7d 20 73 74 6f 72 65 73 | 20 74 68 65 20 63 6f 6d |} stores| the com|
|00002690| 70 6c 65 74 65 20 67 72 | 61 70 68 69 63 73 20 73 |plete gr|aphics s|
|000026a0| 74 61 74 65 20 0d 0a 20 | 69 6e 63 6c 75 64 69 6e |tate .. |includin|
|000026b0| 67 20 74 68 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |g the cu|rrently |
|000026c0| 64 65 66 69 6e 65 64 20 | 70 61 74 68 20 77 68 69 |defined |path whi|
|000026d0| 6c 65 20 7b 5c 74 74 20 | 67 72 65 73 74 6f 72 65 |le {\tt |grestore|
|000026e0| 28 29 3b 7d 20 72 65 73 | 74 6f 72 65 73 20 74 68 |();} res|tores th|
|000026f0| 65 20 0d 0a 20 73 74 61 | 74 65 20 74 6f 20 74 68 |e .. sta|te to th|
|00002700| 65 20 6c 61 73 74 20 73 | 61 76 65 64 20 73 74 61 |e last s|aved sta|
|00002710| 74 65 2e 20 45 61 63 68 | 20 7b 5c 74 74 20 67 72 |te. Each| {\tt gr|
|00002720| 65 73 74 6f 72 65 28 29 | 3b 7d 20 6d 75 73 74 20 |estore()|;} must |
|00002730| 68 61 76 65 20 61 20 6d | 61 74 63 68 69 6e 67 20 |have a m|atching |
|00002740| 0d 0a 20 7b 5c 74 74 20 | 67 73 61 76 65 28 29 3b |.. {\tt |gsave();|
|00002750| 7d 20 70 72 65 63 65 64 | 69 6e 67 20 69 74 2e 20 |} preced|ing it. |
|00002760| 0d 0a 09 0d 0a 20 54 68 | 65 20 73 69 6d 70 6c 65 |..... Th|e simple|
|00002770| 73 74 20 75 73 65 20 66 | 6f 72 20 74 68 69 73 20 |st use f|or this |
|00002780| 70 61 69 72 20 69 73 20 | 74 6f 20 72 65 73 74 6f |pair is |to resto|
|00002790| 72 65 20 74 68 65 20 69 | 6e 69 74 69 61 6c 20 73 |re the i|nitial s|
|000027a0| 74 61 74 65 20 61 66 74 | 65 72 20 0d 0a 20 74 72 |tate aft|er .. tr|
|000027b0| 61 6e 73 6c 61 74 69 6f | 6e 73 20 61 6e 64 20 73 |anslatio|ns and s|
|000027c0| 63 61 6c 69 6e 67 2e 20 | 54 68 69 73 20 6f 66 74 |caling. |This oft|
|000027d0| 65 6e 20 63 6f 6d 65 73 | 20 75 70 20 69 6e 20 63 |en comes| up in c|
|000027e0| 6f 6d 70 6f 73 69 74 65 | 20 66 69 67 75 72 65 73 |omposite| figures|
|000027f0| 20 74 68 61 74 20 0d 0a | 20 61 72 65 20 63 6f 6e | that ..| are con|
|00002800| 73 74 72 75 63 74 65 64 | 20 66 72 6f 6d 20 6f 74 |structed| from ot|
|00002810| 68 65 72 20 65 78 69 73 | 74 69 6e 67 20 70 69 63 |her exis|ting pic|
|00002820| 74 75 72 65 2e 20 54 68 | 65 20 63 6f 6d 70 6f 73 |ture. Th|e compos|
|00002830| 69 74 65 20 69 73 20 62 | 75 69 6c 74 20 62 79 20 |ite is b|uilt by |
|00002840| 0d 0a 20 73 65 74 74 69 | 6e 67 20 74 72 61 6e 73 |.. setti|ng trans|
|00002850| 6c 61 74 69 6f 6e 73 20 | 61 6e 64 20 73 63 61 6c |lations |and scal|
|00002860| 65 20 66 61 63 74 6f 72 | 73 20 66 6f 72 20 65 61 |e factor|s for ea|
|00002870| 63 68 20 63 6f 6d 70 6f | 6e 65 6e 74 20 61 6e 64 |ch compo|nent and|
|00002880| 20 74 68 65 6e 20 64 72 | 61 77 69 6e 67 20 0d 0a | then dr|awing ..|
|00002890| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 2e 20 | the com|ponent. |
|000028a0| 49 66 20 61 20 7b 5c 74 | 74 20 67 73 61 76 65 28 |If a {\t|t gsave(|
|000028b0| 29 3b 7d 20 77 61 73 20 | 64 6f 6e 65 20 61 74 20 |);} was |done at |
|000028c0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 74 68 |the begi|nning th|
|000028d0| 65 6e 20 61 20 7b 5c 74 | 74 20 0d 0a 20 67 72 65 |en a {\t|t .. gre|
|000028e0| 73 74 6f 72 65 28 29 3b | 7d 20 63 61 6e 20 62 65 |store();|} can be|
|000028f0| 20 64 6f 6e 65 20 61 66 | 74 65 72 20 64 72 61 77 | done af|ter draw|
|00002900| 69 6e 67 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e |ing the |componen|
|00002910| 74 73 20 74 6f 20 72 65 | 73 74 6f 72 65 20 74 68 |ts to re|store th|
|00002920| 65 20 0d 0a 20 69 6e 69 | 74 69 61 6c 20 73 63 61 |e .. ini|tial sca|
|00002930| 6c 65 20 61 6e 64 20 74 | 72 61 6e 73 6c 61 74 69 |le and t|ranslati|
|00002940| 6f 6e 2e 20 54 68 69 73 | 20 63 61 6e 20 62 65 20 |on. This| can be |
|00002950| 75 73 65 66 75 6c 20 66 | 6f 72 20 61 64 64 69 6e |useful f|or addin|
|00002960| 67 20 61 6e 6e 6f 74 61 | 74 69 6f 6e 73 20 0d 0a |g annota|tions ..|
|00002970| 20 74 6f 20 74 68 65 20 | 66 69 6e 61 6c 20 63 6f | to the |final co|
|00002980| 6d 70 6f 73 69 74 65 20 | 66 69 67 75 72 65 2e 20 |mposite |figure. |
|00002990| 0d 0a 0d 0a 20 49 74 20 | 69 73 20 61 6c 73 6f 20 |.... It |is also |
|000029a0| 70 6f 73 73 69 62 6c 65 | 20 74 6f 20 75 73 65 20 |possible| to use |
|000029b0| 67 73 61 76 65 2f 67 72 | 65 73 74 6f 72 65 20 74 |gsave/gr|estore t|
|000029c0| 6f 20 72 65 70 65 61 74 | 65 64 6c 79 20 64 72 61 |o repeat|edly dra|
|000029d0| 77 20 61 20 67 69 76 65 | 6e 20 70 61 74 68 20 0d |w a give|n path .|
|000029e0| 0a 20 73 69 6e 63 65 20 | 74 68 65 20 63 75 72 72 |. since |the curr|
|000029f0| 65 6e 74 6c 79 20 64 65 | 66 69 6e 65 64 20 70 61 |ently de|fined pa|
|00002a00| 74 68 20 69 73 20 61 6c | 73 6f 20 73 61 76 65 64 |th is al|so saved|
|00002a10| 2e 20 49 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |. In the| followi|
|00002a20| 6e 67 20 65 78 61 6d 70 | 6c 65 20 61 20 0d 0a 20 |ng examp|le a .. |
|00002a30| 70 61 74 68 20 69 73 20 | 64 65 66 69 6e 65 64 2c |path is |defined,|
|00002a40| 20 73 61 76 65 64 20 28 | 75 73 69 6e 67 20 7b 5c | saved (|using {\|
|00002a50| 74 74 20 67 73 61 76 65 | 28 29 3b 7d 29 2c 20 66 |tt gsave|();}), f|
|00002a60| 69 6c 6c 65 64 2c 20 72 | 65 73 74 6f 72 65 64 20 |illed, r|estored |
|00002a70| 28 75 73 69 6e 67 20 7b | 5c 74 74 20 0d 0a 20 67 |(using {|\tt .. g|
|00002a80| 72 65 73 74 6f 72 65 28 | 29 3b 7d 29 20 61 6e 64 |restore(|);}) and|
|00002a90| 20 74 68 65 6e 20 66 69 | 6e 61 6c 6c 79 20 73 74 | then fi|nally st|
|00002aa0| 72 6f 6b 65 64 2e 5c 69 | 6e 64 65 78 7b 73 74 72 |roked.\i|ndex{str|
|00002ab0| 6f 6b 65 7d 5c 69 6e 64 | 65 78 7b 66 69 6c 6c 7d |oke}\ind|ex{fill}|
|00002ac0| 20 46 69 6c 6c 69 6e 67 | 20 0d 0a 20 61 6e 64 20 | Filling| .. and |
|00002ad0| 73 74 72 6f 6b 69 6e 67 | 20 74 68 65 20 73 61 6d |stroking| the sam|
|00002ae0| 65 20 70 61 74 68 20 63 | 61 75 73 65 73 20 74 68 |e path c|auses th|
|00002af0| 65 20 66 69 6c 6c 65 64 | 20 72 65 67 69 6f 6e 20 |e filled| region |
|00002b00| 74 6f 20 68 61 76 65 20 | 61 20 62 6f 72 64 65 72 |to have |a border|
|00002b10| 20 64 72 61 77 6e 20 0d | 0a 20 69 6e 20 74 68 65 | drawn .|. in the|
|00002b20| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 20 63 6f | current| line co|
|00002b30| 6c 6f 75 72 20 61 6e 64 | 20 73 74 79 6c 65 2e 20 |lour and| style. |
|00002b40| 0d 0a 0d 0a 0d 0a 5c 76 | 73 70 61 63 65 2a 7b 30 |......\v|space*{0|
|00002b50| 2e 32 63 6d 7d 0d 0a 5c | 73 70 65 63 69 61 6c 7b |.2cm}..\|special{|
|00002b60| 70 73 66 69 6c 65 3d 61 | 72 74 2e 65 70 73 20 68 |psfile=a|rt.eps h|
|00002b70| 73 63 61 6c 65 3d 33 30 | 20 76 73 63 61 6c 65 3d |scale=30| vscale=|
|00002b80| 33 30 20 68 6f 66 66 73 | 65 74 3d 32 30 30 20 76 |30 hoffs|et=200 v|
|00002b90| 6f 66 66 73 65 74 3d 2d | 33 30 30 7d 0d 0a 0d 0a |offset=-|300}....|
|00002ba0| 7b 5c 74 74 0d 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |{\tt..\b|egin{ver|
|00002bb0| 62 61 74 69 6d 7d 0d 0a | 0d 0a 23 69 6e 63 6c 75 |batim}..|..#inclu|
|00002bc0| 64 65 20 3c 73 70 6c 6f | 74 2e 68 3e 0d 0a 2f 2a |de <splo|t.h>../*|
|00002bd0| 20 54 68 69 73 20 69 73 | 20 61 20 72 65 67 69 6f | This is| a regio|
|00002be0| 6e 20 66 69 6c 6c 69 6e | 67 20 65 78 61 6d 70 6c |n fillin|g exampl|
|00002bf0| 65 20 2a 2f 0d 0a 69 6e | 74 20 69 3b 0d 0a 6d 61 |e */..in|t i;..ma|
|00002c00| 69 6e 28 29 20 0d 0a 20 | 20 20 7b 20 20 20 20 20 |in() .. | { |
|00002c10| 0d 0a 20 20 20 73 65 74 | 28 4c 49 4e 45 57 49 44 |.. set|(LINEWID|
|00002c20| 54 48 2c 30 2e 31 29 3b | 0d 0a 20 20 20 73 65 74 |TH,0.1);|.. set|
|00002c30| 28 46 49 4c 4c 52 55 4c | 45 2c 45 56 45 4e 4f 44 |(FILLRUL|E,EVENOD|
|00002c40| 44 29 3b 0d 0a 20 20 20 | 74 72 61 6e 73 6c 61 74 |D);.. |translat|
|00002c50| 65 28 31 30 2c 31 35 29 | 3b 0d 0a 20 20 20 66 6f |e(10,15)|;.. fo|
|00002c60| 72 20 28 69 3d 30 3b 69 | 20 3c 20 38 3b 69 2b 2b |r (i=0;i| < 8;i++|
|00002c70| 29 0d 0a 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 |).. | {.. |
|00002c80| 20 20 73 65 74 28 4c 49 | 4e 45 43 4f 4c 4f 55 52 | set(LI|NECOLOUR|
|00002c90| 2c 69 29 3b 0d 0a 20 20 | 20 20 20 20 6c 65 61 66 |,i);.. | leaf|
|00002ca0| 28 29 3b 0d 0a 20 20 20 | 20 20 20 72 6f 74 61 74 |();.. | rotat|
|00002cb0| 65 28 34 35 29 3b 0d 0a | 20 20 20 20 20 20 7d 0d |e(45);..| }.|
|00002cc0| 0a 20 20 20 7d 0d 0a 0d | 0a 69 6e 74 20 6c 65 61 |. }...|.int lea|
|00002cd0| 66 28 29 0d 0a 20 20 20 | 7b 0d 0a 20 20 20 61 72 |f().. |{.. ar|
|00002ce0| 63 28 33 2e 31 2c 33 2e | 33 38 38 39 36 2c 30 2e |c(3.1,3.|38896,0.|
|00002cf0| 34 2c 30 2c 33 36 30 29 | 3b 0d 0a 20 20 20 6d 6f |4,0,360)|;.. mo|
|00002d00| 76 65 74 6f 28 30 2c 30 | 29 3b 0d 0a 20 20 20 63 |veto(0,0|);.. c|
|00002d10| 75 72 76 65 74 6f 28 33 | 2e 33 38 39 32 34 2c 30 |urveto(3|.38924,0|
|00002d20| 2e 35 39 38 30 35 31 2c | 33 2e 31 38 39 38 37 2c |.598051,|3.18987,|
|00002d30| 33 2e 38 35 34 31 31 2c | 35 2e 39 31 34 35 36 2c |3.85411,|5.91456,|
|00002d40| 36 2e 31 31 33 34 31 29 | 3b 0d 0a 20 20 20 63 75 |6.11341)|;.. cu|
|00002d50| 72 76 65 74 6f 28 32 2e | 30 36 30 31 33 2c 35 2e |rveto(2.|06013,5.|
|00002d60| 34 34 38 39 31 2c 32 2e | 35 32 35 33 32 2c 31 2e |44891,2.|52532,1.|
|00002d70| 35 39 34 38 2c 30 2c 30 | 29 3b 0d 0a 20 20 20 63 |5948,0,0|);.. c|
|00002d80| 6c 6f 73 65 70 61 74 68 | 28 29 3b 0d 0a 20 20 20 |losepath|();.. |
|00002d90| 67 73 61 76 65 28 29 3b | 0d 0a 20 20 20 66 69 6c |gsave();|.. fil|
|00002da0| 6c 28 29 3b 0d 0a 20 20 | 20 67 72 65 73 74 6f 72 |l();.. | grestor|
|00002db0| 65 28 29 3b 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |e();.. | set(LIN|
|00002dc0| 45 43 4f 4c 4f 55 52 2c | 42 4c 41 43 4b 29 3b 0d |ECOLOUR,|BLACK);.|
|00002dd0| 0a 20 20 20 73 74 72 6f | 6b 65 28 29 3b 0d 0a 20 |. stro|ke();.. |
|00002de0| 20 20 7d 0d 0a 0d 0a 5c | 65 6e 64 7b 76 65 72 62 | }....\|end{verb|
|00002df0| 61 74 69 6d 7d 0d 0a 7d | 0d 0a 0d 0a 0d 0a 20 54 |atim}..}|...... T|
|00002e00| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 65 78 61 |he follo|wing exa|
|00002e10| 6d 70 6c 65 20 61 67 61 | 69 6e 20 69 6c 6c 75 73 |mple aga|in illus|
|00002e20| 74 72 61 74 65 73 20 74 | 68 65 20 75 73 65 20 6f |trates t|he use o|
|00002e30| 66 20 67 73 61 76 65 2f | 67 72 65 73 74 6f 72 65 |f gsave/|grestore|
|00002e40| 20 74 6f 20 0d 0a 20 72 | 65 70 65 61 74 65 64 6c | to .. r|epeatedl|
|00002e50| 79 20 64 72 61 77 20 74 | 68 65 20 73 61 6d 65 20 |y draw t|he same |
|00002e60| 70 61 74 68 20 65 61 63 | 68 20 74 69 6d 65 20 77 |path eac|h time w|
|00002e70| 69 74 68 20 61 20 73 6d | 61 6c 6c 20 74 72 61 6e |ith a sm|all tran|
|00002e80| 73 6c 61 74 69 6f 6e 20 | 74 6f 20 64 72 61 77 20 |slation |to draw |
|00002e90| 61 20 0d 0a 20 73 74 61 | 63 6b 20 6f 66 20 70 61 |a .. sta|ck of pa|
|00002ea0| 67 65 73 2e 20 49 74 20 | 61 6c 73 6f 20 69 6c 6c |ges. It |also ill|
|00002eb0| 75 73 74 72 61 74 65 73 | 20 74 68 65 20 75 73 65 |ustrates| the use|
|00002ec0| 20 6f 66 20 65 6c 65 63 | 74 72 6f 6e 69 63 20 77 | of elec|tronic w|
|00002ed0| 68 69 74 65 20 0d 0a 20 | 6f 75 74 5c 69 6e 64 65 |hite .. |out\inde|
|00002ee0| 78 7b 77 68 69 74 65 20 | 6f 75 74 2c 20 65 78 61 |x{white |out, exa|
|00002ef0| 6d 70 6c 65 7d 20 28 66 | 69 6c 6c 69 6e 67 20 77 |mple} (f|illing w|
|00002f00| 69 74 68 20 63 6f 6c 6f | 75 72 20 77 68 69 74 65 |ith colo|ur white|
|00002f10| 29 20 74 6f 20 72 65 6d | 6f 76 65 20 0d 0a 20 75 |) to rem|ove .. u|
|00002f20| 6e 77 61 6e 74 65 64 20 | 6c 69 6e 65 73 2e 20 0d |nwanted |lines. .|
|00002f30| 0a 0d 0a 5c 76 73 70 61 | 63 65 2a 7b 30 2e 32 63 |...\vspa|ce*{0.2c|
|00002f40| 6d 7d 0d 0a 5c 73 70 65 | 63 69 61 6c 7b 70 73 66 |m}..\spe|cial{psf|
|00002f50| 69 6c 65 3d 67 73 61 76 | 65 2e 65 70 73 20 68 73 |ile=gsav|e.eps hs|
|00002f60| 63 61 6c 65 3d 35 30 20 | 76 73 63 61 6c 65 3d 35 |cale=50 |vscale=5|
|00002f70| 30 20 68 6f 66 66 73 65 | 74 3d 32 38 30 20 76 6f |0 hoffse|t=280 vo|
|00002f80| 66 66 73 65 74 3d 2d 34 | 32 30 7d 0d 0a 0d 0a 7b |ffset=-4|20}....{|
|00002f90| 5c 74 74 0d 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |\tt..\be|gin{verb|
|00002fa0| 61 74 69 6d 7d 0d 0a 20 | 0d 0a 23 69 6e 63 6c 75 |atim}.. |..#inclu|
|00002fb0| 64 65 20 3c 73 70 6c 6f | 74 2e 68 3e 0d 0a 0d 0a |de <splo|t.h>....|
|00002fc0| 69 6e 74 20 69 3b 0d 0a | 64 6f 75 62 6c 65 20 78 |int i;..|double x|
|00002fd0| 2c 79 2c 64 2c 6c 3b 0d | 0a 0d 0a 6d 61 69 6e 28 |,y,d,l;.|...main(|
|00002fe0| 29 0d 0a 20 20 20 7b 0d | 0a 20 20 20 2f 2a 20 64 |).. {.|. /* d|
|00002ff0| 72 61 77 20 33 64 20 73 | 74 61 63 6b 20 6f 66 20 |raw 3d s|tack of |
|00003000| 70 61 67 65 73 20 2a 2f | 0d 0a 20 20 20 78 20 3d |pages */|.. x =|
|00003010| 20 35 3b 0d 0a 20 20 20 | 79 20 3d 20 31 35 3b 0d | 5;.. |y = 15;.|
|00003020| 0a 20 20 20 6c 20 3d 20 | 34 3b 0d 0a 20 20 20 66 |. l = |4;.. f|
|00003030| 6f 72 20 28 69 20 3d 20 | 30 3b 69 20 3c 3d 20 31 |or (i = |0;i <= 1|
|00003040| 30 3b 69 2b 2b 3b 29 0d | 0a 20 20 20 20 20 20 7b |0;i++;).|. {|
|00003050| 0d 0a 20 20 20 20 20 20 | 64 20 3d 20 69 20 2a 20 |.. |d = i * |
|00003060| 30 2e 32 3b 0d 0a 20 20 | 20 20 20 20 62 6f 78 28 |0.2;.. | box(|
|00003070| 78 20 2d 20 64 20 2c 79 | 20 2d 20 64 2c 20 78 20 |x - d ,y| - d, x |
|00003080| 2d 20 64 20 2b 20 6c 2c | 20 79 20 2d 20 64 20 2b |- d + l,| y - d +|
|00003090| 20 6c 29 3b 0d 0a 20 20 | 20 20 20 20 67 73 61 76 | l);.. | gsav|
|000030a0| 65 28 29 3b 0d 0a 20 20 | 20 20 20 20 73 65 74 28 |e();.. | set(|
|000030b0| 4c 49 4e 45 43 4f 4c 4f | 55 52 2c 57 48 49 54 45 |LINECOLO|UR,WHITE|
|000030c0| 29 3b 0d 0a 20 20 20 20 | 20 20 66 69 6c 6c 28 29 |);.. | fill()|
|000030d0| 3b 0d 0a 20 20 20 20 20 | 20 67 72 65 73 74 6f 72 |;.. | grestor|
|000030e0| 65 28 29 3b 0d 0a 20 20 | 20 20 20 20 73 74 72 6f |e();.. | stro|
|000030f0| 6b 65 28 29 3b 0d 0a 20 | 20 20 20 20 20 7d 0d 0a |ke();.. | }..|
|00003100| 20 20 20 2f 2a 20 64 72 | 61 77 20 73 61 6d 70 6c | /* dr|aw sampl|
|00003110| 65 20 2a 2f 0d 0a 20 20 | 20 61 72 63 28 35 2e 30 |e */.. | arc(5.0|
|00003120| 32 2c 31 34 2e 39 36 2c | 31 2e 32 2c 30 2c 33 36 |2,14.96,|1.2,0,36|
|00003130| 30 29 3b 0d 0a 20 20 20 | 66 69 6c 6c 28 29 3b 0d |0);.. |fill();.|
|00003140| 0a 20 20 20 77 68 69 74 | 65 5f 62 6f 78 28 33 2e |. whit|e_box(3.|
|00003150| 39 35 2c 31 33 2e 35 31 | 2c 36 2e 31 33 34 2c 31 |95,13.51|,6.134,1|
|00003160| 33 2e 39 30 34 29 3b 0d | 0a 20 20 20 77 68 69 74 |3.904);.|. whit|
|00003170| 65 5f 62 6f 78 28 33 2e | 38 36 32 2c 31 33 2e 36 |e_box(3.|862,13.6|
|00003180| 38 39 2c 33 2e 37 35 32 | 2c 31 35 2e 34 34 33 29 |89,3.752|,15.443)|
|00003190| 3b 0d 0a 20 20 20 2f 2a | 20 64 72 61 77 20 61 78 |;.. /*| draw ax|
|000031a0| 65 73 20 2a 2f 0d 0a 20 | 20 20 6d 6f 76 65 74 6f |es */.. | moveto|
|000031b0| 28 33 2e 30 30 2c 31 30 | 2e 31 39 29 3b 0d 0a 20 |(3.00,10|.19);.. |
|000031c0| 20 20 72 61 72 72 6f 77 | 74 6f 28 30 2e 30 2c 32 | rarrow|to(0.0,2|
|000031d0| 29 3b 0d 0a 20 20 20 6d | 6f 76 65 74 6f 28 33 2e |);.. m|oveto(3.|
|000031e0| 30 30 2c 31 30 2e 31 39 | 29 3b 0d 0a 20 20 20 72 |00,10.19|);.. r|
|000031f0| 61 72 72 6f 77 74 6f 28 | 32 2c 30 29 3b 0d 0a 20 |arrowto(|2,0);.. |
|00003200| 20 20 6d 6f 76 65 74 6f | 28 33 2e 30 30 2c 31 30 | moveto|(3.00,10|
|00003210| 2e 31 39 29 3b 0d 0a 20 | 20 20 72 61 72 72 6f 77 |.19);.. | rarrow|
|00003220| 74 6f 28 31 2e 36 2c 31 | 2e 36 29 3b 0d 0a 20 20 |to(1.6,1|.6);.. |
|00003230| 20 73 74 72 6f 6b 65 28 | 29 3b 0d 0a 20 20 20 2f | stroke(|);.. /|
|00003240| 2a 20 61 64 64 20 6c 61 | 62 65 6c 73 20 2a 2f 0d |* add la|bels */.|
|00003250| 0a 20 20 20 74 65 78 74 | 28 35 2e 32 30 2c 39 2e |. text|(5.20,9.|
|00003260| 37 31 2c 22 58 22 29 3b | 0d 0a 20 20 20 74 65 78 |71,"X");|.. tex|
|00003270| 74 28 32 2e 33 31 2c 31 | 31 2e 38 32 2c 22 59 22 |t(2.31,1|1.82,"Y"|
|00003280| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 35 2e 30 31 |);.. t|ext(5.01|
|00003290| 2c 31 31 2e 36 34 2c 22 | 21 6c 22 29 3b 0d 0a 20 |,11.64,"|!l");.. |
|000032a0| 20 20 7d 0d 0a 0d 0a 69 | 6e 74 20 77 68 69 74 65 | }....i|nt white|
|000032b0| 5f 62 6f 78 28 64 6f 75 | 62 6c 65 20 78 31 2c 64 |_box(dou|ble x1,d|
|000032c0| 6f 75 62 6c 65 20 79 31 | 2c 64 6f 75 62 6c 65 20 |ouble y1|,double |
|000032d0| 78 32 2c 64 6f 75 62 6c | 65 20 79 32 29 0d 0a 20 |x2,doubl|e y2).. |
|000032e0| 20 20 7b 20 0d 0a 20 20 | 20 67 73 61 76 65 28 29 | { .. | gsave()|
|000032f0| 3b 0d 0a 20 20 20 6e 65 | 77 70 61 74 68 28 29 3b |;.. ne|wpath();|
|00003300| 0d 0a 20 20 20 62 6f 78 | 28 78 31 2c 79 31 2c 78 |.. box|(x1,y1,x|
|00003310| 32 2c 79 32 29 3b 0d 0a | 20 20 20 73 65 74 28 4c |2,y2);..| set(L|
|00003320| 49 4e 45 43 4f 4c 4f 55 | 52 2c 57 48 49 54 45 29 |INECOLOU|R,WHITE)|
|00003330| 3b 0d 0a 20 20 20 66 69 | 6c 6c 28 29 3b 0d 0a 20 |;.. fi|ll();.. |
|00003340| 20 20 67 72 65 73 74 6f | 72 65 28 29 3b 0d 0a 20 | gresto|re();.. |
|00003350| 20 20 7d 0d 0a 0d 0a 5c | 65 6e 64 7b 76 65 72 62 | }....\|end{verb|
|00003360| 61 74 69 6d 7d 0d 0a 7d | 0d 0a 0d 0a 20 55 73 69 |atim}..}|.... Usi|
|00003370| 6e 67 20 74 68 65 20 61 | 62 6f 76 65 20 74 65 63 |ng the a|bove tec|
|00003380| 68 6e 69 71 75 65 20 74 | 6f 20 72 65 70 65 61 74 |hnique t|o repeat|
|00003390| 65 64 6c 79 20 64 72 61 | 77 20 74 68 65 20 73 61 |edly dra|w the sa|
|000033a0| 6d 65 20 65 6c 65 6d 65 | 6e 74 20 77 69 6c 6c 20 |me eleme|nt will |
|000033b0| 6e 6f 74 20 0d 0a 20 77 | 6f 72 6b 20 77 69 74 68 |not .. w|ork with|
|000033c0| 20 66 75 6e 63 74 69 6f | 6e 73 20 73 75 63 68 20 | functio|ns such |
|000033d0| 61 73 20 7b 5c 74 74 20 | 74 65 78 74 28 29 3b 7d |as {\tt |text();}|
|000033e0| 5c 69 6e 64 65 78 7b 74 | 65 78 74 7d 20 77 68 69 |\index{t|ext} whi|
|000033f0| 63 68 20 61 72 65 20 69 | 6d 70 6c 69 63 69 74 6c |ch are i|mplicitl|
|00003400| 79 20 0d 0a 20 73 74 72 | 6f 6b 65 64 20 73 69 6e |y .. str|oked sin|
|00003410| 63 65 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 63 |ce there| is no c|
|00003420| 68 61 6e 63 65 20 74 6f | 20 64 6f 20 61 20 7b 5c |hance to| do a {\|
|00003430| 74 74 20 67 73 61 76 65 | 28 29 3b 7d 20 62 65 66 |tt gsave|();} bef|
|00003440| 6f 72 65 20 74 68 65 20 | 73 74 72 6f 6b 65 2e 20 |ore the |stroke. |
|00003450| 0d 0a 20 48 6f 77 65 76 | 65 72 2c 20 69 6d 70 6c |.. Howev|er, impl|
|00003460| 69 63 69 74 20 73 74 72 | 6f 6b 69 6e 67 20 63 61 |icit str|oking ca|
|00003470| 6e 20 62 65 20 74 65 6d | 70 6f 72 61 72 69 6c 79 |n be tem|porarily|
|00003480| 20 74 75 72 6e 65 64 20 | 6f 66 66 20 77 69 74 68 | turned |off with|
|00003490| 20 74 68 65 20 7b 5c 74 | 74 20 0d 0a 20 6e 65 77 | the {\t|t .. new|
|000034a0| 70 61 74 68 28 29 3b 7d | 5c 69 6e 64 65 78 7b 6e |path();}|\index{n|
|000034b0| 65 77 70 61 74 68 7d 20 | 63 6f 6d 6d 61 6e 64 2e |ewpath} |command.|
|000034c0| 20 57 69 74 68 6f 75 74 | 20 74 68 65 20 7b 5c 74 | Without| the {\t|
|000034d0| 74 20 6e 65 77 70 61 74 | 68 28 29 3b 7d 20 69 6e |t newpat|h();} in|
|000034e0| 20 74 68 65 20 0d 0a 20 | 66 6f 6c 6c 6f 77 69 6e | the .. |followin|
|000034f0| 67 20 65 78 61 6d 70 6c | 65 20 6f 6e 6c 79 20 74 |g exampl|e only t|
|00003500| 68 65 20 66 69 72 73 74 | 20 22 53 50 4c 4f 54 22 |he first| "SPLOT"|
|00003510| 20 77 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e | would h|ave been|
|00003520| 20 70 72 69 6e 74 65 64 | 2e 20 54 68 65 20 0d 0a | printed|. The ..|
|00003530| 20 66 69 72 73 74 20 7b | 5c 74 74 20 73 74 72 6f | first {|\tt stro|
|00003540| 6b 65 28 29 3b 7d 5c 69 | 6e 64 65 78 7b 73 74 72 |ke();}\i|ndex{str|
|00003550| 6f 6b 65 7d 20 61 66 74 | 65 72 20 61 20 7b 5c 74 |oke} aft|er a {\t|
|00003560| 74 20 6e 65 77 70 61 74 | 68 28 29 3b 7d 20 74 75 |t newpat|h();} tu|
|00003570| 72 6e 73 20 6f 6e 20 0d | 0a 20 69 6d 70 6c 69 63 |rns on .|. implic|
|00003580| 69 74 20 73 74 72 6f 6b | 69 6e 67 20 61 67 61 69 |it strok|ing agai|
|00003590| 6e 20 77 69 74 68 20 74 | 68 65 73 65 20 66 75 6e |n with t|hese fun|
|000035a0| 63 74 69 6f 6e 73 2e 20 | 0d 0a 0d 0a 7b 5c 74 74 |ctions. |....{\tt|
|000035b0| 0d 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |..\begin|{verbati|
|000035c0| 6d 7d 0d 0a 20 0d 0a 23 | 69 6e 63 6c 75 64 65 20 |m}.. ..#|include |
|000035d0| 3c 73 70 6c 6f 74 2e 68 | 3e 0d 0a 6d 61 69 6e 28 |<splot.h|>..main(|
|000035e0| 29 0d 0a 20 20 20 7b 0d | 0a 20 20 20 69 6e 74 20 |).. {.|. int |
|000035f0| 69 3b 0d 0a 20 20 20 6e | 65 77 70 61 74 68 28 29 |i;.. n|ewpath()|
|00003600| 3b 0d 0a 20 20 20 74 72 | 61 6e 73 6c 61 74 65 28 |;.. tr|anslate(|
|00003610| 31 30 2c 31 30 29 3b 0d | 0a 20 20 20 74 65 78 74 |10,10);.|. text|
|00003620| 28 30 2c 30 2c 22 20 20 | 20 20 20 20 53 50 4c 4f |(0,0," | SPLO|
|00003630| 54 22 29 3b 0d 0a 20 20 | 20 66 6f 72 20 28 69 3d |T");.. | for (i=|
|00003640| 30 3b 69 20 3c 20 33 36 | 30 3b 69 20 2b 3d 20 33 |0;i < 36|0;i += 3|
|00003650| 30 29 0d 0a 20 20 20 20 | 20 20 7b 0d 0a 20 20 20 |0).. | {.. |
|00003660| 20 20 20 67 73 61 76 65 | 28 29 3b 0d 0a 20 20 20 | gsave|();.. |
|00003670| 20 20 20 72 6f 74 61 74 | 65 28 69 29 3b 0d 0a 20 | rotat|e(i);.. |
|00003680| 20 20 20 20 20 73 74 72 | 6f 6b 65 28 29 3b 0d 0a | str|oke();..|
|00003690| 20 20 20 20 20 20 67 72 | 65 73 74 6f 72 65 28 29 | gr|estore()|
|000036a0| 3b 0d 0a 20 20 20 20 20 | 20 7d 0d 0a 20 20 20 7d |;.. | }.. }|
|000036b0| 0d 0a 0d 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |....\end|{verbati|
|000036c0| 6d 7d 0d 0a 7d 0d 0a 0d | 0a 5c 76 73 70 61 63 65 |m}..}...|.\vspace|
|000036d0| 2a 7b 30 2e 32 63 6d 7d | 0d 0a 5c 73 70 65 63 69 |*{0.2cm}|..\speci|
|000036e0| 61 6c 7b 70 73 66 69 6c | 65 3d 6c 6f 67 6f 2e 65 |al{psfil|e=logo.e|
|000036f0| 70 73 20 68 73 63 61 6c | 65 3d 35 30 20 76 73 63 |ps hscal|e=50 vsc|
|00003700| 61 6c 65 3d 35 30 20 20 | 68 6f 66 66 73 65 74 3d |ale=50 |hoffset=|
|00003710| 31 38 30 20 76 6f 66 66 | 73 65 74 3d 2d 34 30 7d |180 voff|set=-40}|
|00003720| 0d 0a 20 0d 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |.. ..\su|bsection|
|00003730| 7b 49 6e 73 65 74 73 7d | 5c 69 6e 64 65 78 7b 69 |{Insets}|\index{i|
|00003740| 6e 73 65 74 7d 0d 0a 20 | 49 6e 73 65 74 20 66 69 |nset}.. |Inset fi|
|00003750| 67 75 72 65 73 20 63 61 | 6e 20 65 61 73 69 6c 79 |gures ca|n easily|
|00003760| 20 62 65 20 6d 61 64 65 | 20 66 72 6f 6d 20 65 78 | be made| from ex|
|00003770| 69 73 74 69 6e 67 20 66 | 69 67 75 72 65 73 20 62 |isting f|igures b|
|00003780| 79 20 6d 6f 76 69 6e 67 | 20 74 68 65 20 0d 0a 20 |y moving| the .. |
|00003790| 6f 72 69 67 69 6e 20 74 | 6f 20 74 68 65 20 64 65 |origin t|o the de|
|000037a0| 73 69 72 65 64 20 69 6e | 73 65 72 74 69 6f 6e 20 |sired in|sertion |
|000037b0| 70 6f 69 6e 74 20 75 73 | 69 6e 67 20 7b 5c 74 74 |point us|ing {\tt|
|000037c0| 20 74 72 61 6e 73 6c 61 | 74 65 28 78 70 6f 73 2c | transla|te(xpos,|
|000037d0| 79 70 6f 73 20 0d 0a 20 | 29 3b 7d 5c 69 6e 64 65 |ypos .. |);}\inde|
|000037e0| 78 7b 74 72 61 6e 73 6c | 61 74 65 7d 2c 20 63 68 |x{transl|ate}, ch|
|000037f0| 61 6e 67 69 6e 67 20 74 | 68 65 20 73 63 61 6c 65 |anging t|he scale|
|00003800| 20 77 69 74 68 20 7b 5c | 74 74 20 0d 0a 20 73 63 | with {\|tt .. sc|
|00003810| 61 6c 65 28 78 66 61 63 | 74 2c 79 66 61 63 74 29 |ale(xfac|t,yfact)|
|00003820| 3b 7d 5c 69 6e 64 65 78 | 7b 73 63 61 6c 65 7d 2c |;}\index|{scale},|
|00003830| 20 61 6e 64 20 63 6f 70 | 79 69 6e 67 20 74 68 65 | and cop|ying the|
|00003840| 20 65 78 69 73 74 69 6e | 67 20 63 6f 64 65 20 64 | existin|g code d|
|00003850| 65 66 69 6e 69 6e 67 20 | 0d 0a 20 74 68 65 20 69 |efining |.. the i|
|00003860| 6e 73 65 74 20 66 69 67 | 75 72 65 20 69 6e 74 6f |nset fig|ure into|
|00003870| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 66 69 6c | the cur|rent fil|
|00003880| 65 20 75 73 69 6e 67 20 | 74 68 65 20 65 64 69 74 |e using |the edit|
|00003890| 6f 72 20 62 6c 6f 63 6b | 20 6d 6f 76 65 20 0d 0a |or block| move ..|
|000038a0| 20 66 75 6e 63 74 69 6f | 6e 73 2e 20 49 74 20 69 | functio|ns. It i|
|000038b0| 73 20 61 6c 73 6f 20 75 | 73 65 66 75 6c 20 74 6f |s also u|seful to|
|000038c0| 20 62 72 61 63 6b 65 74 | 20 74 68 65 20 69 6e 73 | bracket| the ins|
|000038d0| 65 74 20 66 69 67 75 72 | 65 20 77 69 74 68 20 61 |et figur|e with a|
|000038e0| 20 7b 5c 74 74 20 0d 0a | 20 67 73 61 76 65 28 29 | {\tt ..| gsave()|
|000038f0| 3b 7d 20 2f 20 7b 5c 74 | 74 20 67 72 65 73 74 6f |;} / {\t|t gresto|
|00003900| 72 65 28 29 3b 7d 20 70 | 61 69 72 20 69 6e 20 6f |re();} p|air in o|
|00003910| 72 64 65 72 20 74 6f 20 | 72 65 73 74 6f 72 65 20 |rder to |restore |
|00003920| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 0d 0a 20 |the orig|inal .. |
|00003930| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 61 66 74 65 |coordina|tes afte|
|00003940| 72 20 74 68 65 20 69 6e | 73 65 74 2e 20 0d 0a 0d |r the in|set. ...|
|00003950| 0a 5c 69 6e 64 65 78 7b | 61 78 65 73 2c 20 6c 6f |.\index{|axes, lo|
|00003960| 67 20 65 78 61 6d 70 6c | 65 7d 0d 0a 7b 5c 74 74 |g exampl|e}..{\tt|
|00003970| 0d 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |..\begin|{verbati|
|00003980| 6d 7d 0d 0a 2f 2a 20 54 | 68 69 73 20 66 69 67 75 |m}../* T|his figu|
|00003990| 72 65 20 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |re demon|strates |
|000039a0| 68 6f 77 20 74 6f 20 75 | 73 65 20 61 78 65 73 20 |how to u|se axes |
|000039b0| 6f 74 68 65 72 20 2a 2f | 0d 0a 2f 2a 20 74 68 61 |other */|../* tha|
|000039c0| 6e 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 6c |n the st|andard l|
|000039d0| 69 6e 65 61 72 20 61 78 | 65 73 2e 20 41 6c 73 6f |inear ax|es. Also|
|000039e0| 20 69 74 20 69 6c 6c 75 | 73 74 72 61 74 65 73 20 | it illu|strates |
|000039f0| 2a 2f 0d 0a 2f 2a 20 68 | 6f 77 20 69 6e 73 65 74 |*/../* h|ow inset|
|00003a00| 73 20 63 61 6e 20 62 65 | 20 6d 61 64 65 2e 20 49 |s can be| made. I|
|00003a10| 6e 73 65 74 73 20 61 6c | 74 65 72 6e 61 74 69 76 |nsets al|ternativ|
|00003a20| 65 6c 79 20 63 61 6e 20 | 2a 2f 0d 0a 2f 2a 20 62 |ely can |*/../* b|
|00003a30| 65 20 6d 61 64 65 20 62 | 79 20 65 6e 63 61 70 73 |e made b|y encaps|
|00003a40| 75 6c 61 74 69 6e 67 20 | 61 6e 20 65 6e 74 69 72 |ulating |an entir|
|00003a50| 65 20 64 72 61 77 69 6e | 67 20 69 6e 20 61 20 2a |e drawin|g in a *|
|00003a60| 2f 0d 0a 2f 2a 20 73 75 | 62 72 6f 75 74 69 6e 65 |/../* su|broutine|
|00003a70| 2e 20 2a 2f 0d 0a 0d 0a | 23 69 6e 63 6c 75 64 65 |. */....|#include|
|00003a80| 20 3c 73 70 6c 6f 74 2e | 68 3e 0d 0a 09 09 09 20 | <splot.|h>..... |
|00003a90| 20 20 0d 0a 64 6f 75 62 | 6c 65 20 2a 6c 69 66 65 | ..doub|le *life|
|00003aa0| 74 69 6d 65 2c 20 2a 72 | 61 77 74 69 6d 65 3b 20 |time, *r|awtime; |
|00003ab0| 20 20 20 20 20 20 20 20 | 20 0d 0a 0d 0a 6d 61 69 | | ....mai|
|00003ac0| 6e 28 29 20 20 20 20 20 | 20 20 20 20 20 20 0d 0a |n() | ..|
|00003ad0| 20 20 20 7b 20 20 20 20 | 20 20 20 20 20 20 20 20 | { | |
|00003ae0| 20 0d 0a 20 20 20 69 6e | 74 20 69 3b 0d 0a 20 20 | .. in|t i;.. |
|00003af0| 20 64 6f 75 62 6c 65 20 | 6d 61 6a 6f 72 74 69 63 | double |majortic|
|00003b00| 2c 6d 69 6e 6f 72 74 69 | 63 3b 0d 0a 0d 0a 20 20 |,minorti|c;.... |
|00003b10| 20 2f 2a 20 64 65 66 69 | 6e 65 20 61 20 74 69 63 | /* defi|ne a tic|
|00003b20| 20 6c 65 6e 67 74 68 20 | 20 2a 2f 0d 0a 20 20 20 | length | */.. |
|00003b30| 2f 2a 20 6d 61 6a 6f 72 | 20 61 6e 64 20 6d 69 6e |/* major| and min|
|00003b40| 6f 72 20 74 69 63 73 20 | 2a 2f 0d 0a 0d 0a 20 20 |or tics |*/.... |
|00003b50| 20 6d 61 6a 6f 72 74 69 | 63 3d 30 2e 33 3b 0d 0a | majorti|c=0.3;..|
|00003b60| 20 20 20 6d 69 6e 6f 72 | 74 69 63 3d 30 2e 32 35 | minor|tic=0.25|
|00003b70| 3b 0d 0a 0d 0a 20 20 20 | 2f 2a 20 73 65 74 20 75 |;.... |/* set u|
|00003b80| 70 20 73 6f 6d 65 20 64 | 65 66 61 75 6c 74 20 76 |p some d|efault v|
|00003b90| 61 6c 75 65 73 20 2a 2f | 0d 0a 0d 0a 20 20 20 73 |alues */|.... s|
|00003ba0| 65 74 28 46 4f 4e 54 41 | 53 50 45 43 54 2c 31 2e |et(FONTA|SPECT,1.|
|00003bb0| 32 29 3b 0d 0a 20 20 20 | 73 65 74 28 46 4f 4e 54 |2);.. |set(FONT|
|00003bc0| 57 49 44 54 48 2c 30 2e | 38 29 3b 0d 0a 20 20 20 |WIDTH,0.|8);.. |
|00003bd0| 73 65 74 28 50 4c 4f 54 | 54 59 50 45 2c 53 59 4d |set(PLOT|TYPE,SYM|
|00003be0| 5f 4c 49 4e 45 53 29 3b | 0d 0a 20 20 20 73 65 74 |_LINES);|.. set|
|00003bf0| 28 43 55 52 53 59 4d 42 | 4f 4c 2c 43 49 52 43 4c |(CURSYMB|OL,CIRCL|
|00003c00| 45 29 3b 0d 0a 20 20 20 | 73 65 74 28 41 58 45 53 |E);.. |set(AXES|
|00003c10| 43 4c 49 50 2c 4f 4e 29 | 3b 0d 0a 20 20 20 73 65 |CLIP,ON)|;.. se|
|00003c20| 74 28 4c 49 4e 45 57 49 | 44 54 48 2c 30 2e 31 29 |t(LINEWI|DTH,0.1)|
|00003c30| 3b 0d 0a 20 20 20 73 65 | 74 28 41 58 45 53 54 59 |;.. se|t(AXESTY|
|00003c40| 50 45 2c 4c 4f 47 59 29 | 3b 0d 0a 0d 0a 20 20 20 |PE,LOGY)|;.... |
|00003c50| 2f 2a 20 67 65 74 20 74 | 68 65 20 64 61 74 61 20 |/* get t|he data |
|00003c60| 61 6e 64 20 73 65 74 20 | 74 68 65 20 62 6f 78 20 |and set |the box |
|00003c70| 20 2a 2f 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | */ | |
|00003c80| 20 20 20 0d 0a 20 20 0d | 0a 20 20 20 72 65 61 64 | .. .|. read|
|00003c90| 64 61 74 61 28 22 64 65 | 6d 6f 5c 6c 69 66 65 74 |data("de|mo\lifet|
|00003ca0| 69 6d 65 2e 64 61 74 22 | 2c 6c 69 66 65 74 69 6d |ime.dat"|,lifetim|
|00003cb0| 65 29 3b 0d 0a 20 20 20 | 2f 2a 20 64 72 61 77 20 |e);.. |/* draw |
|00003cc0| 61 78 65 73 20 62 6f 78 | 20 62 75 74 20 6e 6f 74 |axes box| but not|
|00003cd0| 20 63 65 6e 74 65 72 65 | 64 20 6f 6e 20 74 68 65 | centere|d on the|
|00003ce0| 20 70 61 67 65 20 2a 2f | 0d 0a 20 20 20 61 78 65 | page */|.. axe|
|00003cf0| 73 5f 62 6f 78 28 31 33 | 2c 31 37 2c 2d 33 30 2c |s_box(13|,17,-30,|
|00003d00| 30 2e 39 2c 33 33 30 2c | 36 30 2c 35 2e 35 31 2c |0.9,330,|60,5.51,|
|00003d10| 37 2e 35 29 3b 0d 0a 20 | 20 0d 0a 20 20 20 2f 2a |7.5);.. | .. /*|
|00003d20| 20 78 2d 61 78 69 73 20 | 20 20 2a 2f 20 20 0d 0a | x-axis | */ ..|
|00003d30| 20 20 0d 0a 20 20 20 2f | 2a 20 6d 61 6a 6f 72 20 | .. /|* major |
|00003d40| 74 69 63 73 2a 2f 0d 0a | 20 20 0d 0a 20 20 20 73 |tics*/..| .. s|
|00003d50| 65 74 28 54 49 43 4b 4c | 45 4e 47 54 48 2c 6d 61 |et(TICKL|ENGTH,ma|
|00003d60| 6a 6f 72 74 69 63 29 3b | 0d 0a 20 20 20 74 69 63 |jortic);|.. tic|
|00003d70| 6b 6d 61 72 6b 73 28 58 | 41 58 45 53 2c 30 2c 31 |kmarks(X|AXES,0,1|
|00003d80| 30 30 2c 32 30 30 2c 33 | 30 30 29 3b 0d 0a 20 20 |00,200,3|00);.. |
|00003d90| 0d 0a 20 20 20 2f 2a 20 | 6d 69 6e 6f 72 20 74 69 |.. /* |minor ti|
|00003da0| 63 6b 73 20 2a 2f 0d 0a | 20 20 0d 0a 20 20 20 73 |cks */..| .. s|
|00003db0| 65 74 28 54 49 43 4b 4c | 45 4e 47 54 48 2c 6d 69 |et(TICKL|ENGTH,mi|
|00003dc0| 6e 6f 72 74 69 63 29 3b | 0d 0a 20 20 20 73 65 74 |nortic);|.. set|
|00003dd0| 28 4c 49 4e 45 57 49 44 | 54 48 2c 30 2e 30 35 29 |(LINEWID|TH,0.05)|
|00003de0| 3b 0d 0a 20 20 20 74 69 | 63 6b 6d 61 72 6b 73 28 |;.. ti|ckmarks(|
|00003df0| 58 41 58 45 53 2c 32 35 | 2c 35 30 2c 37 35 2c 31 |XAXES,25|,50,75,1|
|00003e00| 32 35 2c 31 35 30 2c 31 | 37 35 2c 32 32 35 2c 32 |25,150,1|75,225,2|
|00003e10| 35 30 2c 32 37 35 29 3b | 0d 0a 20 20 20 74 69 63 |50,275);|.. tic|
|00003e20| 6b 6c 61 62 65 6c 28 42 | 4f 54 54 4f 4d 2c 30 2c |klabel(B|OTTOM,0,|
|00003e30| 22 30 22 2c 31 30 30 2c | 22 31 30 30 22 2c 32 30 |"0",100,|"100",20|
|00003e40| 30 2c 22 32 30 30 22 2c | 33 30 30 2c 22 33 30 30 |0,"200",|300,"300|
|00003e50| 22 29 3b 0d 0a 20 20 0d | 0a 20 20 20 2f 2a 20 79 |");.. .|. /* y|
|00003e60| 2d 61 78 69 73 20 2a 2f | 0d 0a 20 20 0d 0a 20 20 |-axis */|.. .. |
|00003e70| 20 2f 2a 20 6d 61 6a 6f | 72 20 74 69 63 73 2a 2f | /* majo|r tics*/|
|00003e80| 0d 0a 20 20 0d 0a 20 20 | 20 73 65 74 28 54 49 43 |.. .. | set(TIC|
|00003e90| 4b 4c 45 4e 47 54 48 2c | 6d 61 6a 6f 72 74 69 63 |KLENGTH,|majortic|
|00003ea0| 29 3b 0d 0a 20 20 20 73 | 65 74 28 4c 49 4e 45 57 |);.. s|et(LINEW|
|00003eb0| 49 44 54 48 2c 30 2e 31 | 29 3b 0d 0a 20 20 20 74 |IDTH,0.1|);.. t|
|00003ec0| 69 63 6b 6d 61 72 6b 73 | 28 59 41 58 45 53 2c 31 |ickmarks|(YAXES,1|
|00003ed0| 2c 31 30 2c 35 30 29 3b | 0d 0a 20 20 0d 0a 20 20 |,10,50);|.. .. |
|00003ee0| 20 2f 2a 20 6d 69 6e 6f | 72 20 74 69 63 6b 73 20 | /* mino|r ticks |
|00003ef0| 2a 2f 0d 0a 20 20 0d 0a | 20 20 20 73 65 74 28 54 |*/.. ..| set(T|
|00003f00| 49 43 4b 4c 45 4e 47 54 | 48 2c 6d 69 6e 6f 72 74 |ICKLENGT|H,minort|
|00003f10| 69 63 29 3b 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |ic);.. | set(LIN|
|00003f20| 45 57 49 44 54 48 2c 30 | 2e 30 35 29 3b 0d 0a 20 |EWIDTH,0|.05);.. |
|00003f30| 20 20 74 69 63 6b 6d 61 | 72 6b 73 28 59 41 58 45 | tickma|rks(YAXE|
|00003f40| 53 2c 32 2c 33 2c 34 2c | 35 2c 36 2c 37 2c 38 2c |S,2,3,4,|5,6,7,8,|
|00003f50| 39 2c 32 30 2c 33 30 2c | 34 30 29 3b 0d 0a 20 20 |9,20,30,|40);.. |
|00003f60| 20 74 69 63 6b 6c 61 62 | 65 6c 28 4c 45 46 54 2c | ticklab|el(LEFT,|
|00003f70| 31 2c 31 30 2c 35 30 29 | 3b 0d 0a 20 20 0d 0a 20 |1,10,50)|;.. .. |
|00003f80| 20 20 2f 2a 20 61 78 69 | 73 20 6c 61 62 65 6c 73 | /* axi|s labels|
|00003f90| 20 2a 2f 0d 0a 20 20 0d | 0a 20 20 20 6c 61 62 65 | */.. .|. labe|
|00003fa0| 6c 28 4c 4f 57 45 52 2c | 22 54 65 6d 70 65 72 61 |l(LOWER,|"Tempera|
|00003fb0| 74 75 72 65 20 28 4b 29 | 22 29 3b 0d 0a 20 20 20 |ture (K)|");.. |
|00003fc0| 6c 61 62 65 6c 28 4c 45 | 46 54 2c 22 4c 69 66 65 |label(LE|FT,"Life|
|00003fd0| 74 69 6d 65 20 28 6d 73 | 29 22 29 3b 0d 0a 20 20 |time (ms|)");.. |
|00003fe0| 0d 0a 20 20 20 64 72 61 | 77 64 61 74 61 28 6c 69 |.. dra|wdata(li|
|00003ff0| 66 65 74 69 6d 65 2c 30 | 2c 31 29 3b 20 20 20 20 |fetime,0|,1); |
|00004000| 20 20 20 20 0d 0a 0d 0a | 20 20 20 2f 2a 20 6e 6f | ....| /* no|
|00004010| 77 20 62 75 69 6c 64 20 | 74 68 65 20 69 6e 73 65 |w build |the inse|
|00004020| 74 20 66 69 67 75 72 65 | 20 2a 2f 0d 0a 20 20 20 |t figure| */.. |
|00004030| 2f 2a 20 69 6e 73 65 72 | 74 20 20 73 65 74 75 70 |/* inser|t setup|
|00004040| 20 73 74 75 66 66 20 2a | 2f 20 0d 0a 20 20 20 73 | stuff *|/ .. s|
|00004050| 65 74 28 50 4c 4f 54 54 | 59 50 45 2c 4c 49 4e 45 |et(PLOTT|YPE,LINE|
|00004060| 53 29 3b 0d 0a 20 20 20 | 73 65 74 28 4c 49 4e 45 |S);.. |set(LINE|
|00004070| 57 49 44 54 48 2c 30 2e | 30 36 35 29 3b 0d 0a 20 |WIDTH,0.|065);.. |
|00004080| 20 20 73 65 74 28 41 58 | 45 53 54 59 50 45 2c 4c | set(AX|ESTYPE,L|
|00004090| 4f 47 59 29 3b 0d 0a 20 | 20 20 72 65 61 64 64 61 |OGY);.. | readda|
|000040a0| 74 61 28 22 64 65 6d 6f | 5c 72 61 77 74 69 6d 65 |ta("demo|\rawtime|
|000040b0| 2e 64 61 74 22 2c 72 61 | 77 74 69 6d 65 29 3b 0d |.dat",ra|wtime);.|
|000040c0| 0a 20 20 20 61 78 65 73 | 5f 62 6f 78 28 36 2c 37 |. axes|_box(6,7|
|000040d0| 2e 38 35 2c 30 2e 30 30 | 2c 32 30 2c 30 2e 34 30 |.85,0.00|,20,0.40|
|000040e0| 30 2c 32 35 30 30 30 30 | 2c 38 2e 30 32 2c 31 30 |0,250000|,8.02,10|
|000040f0| 2e 31 39 29 3b 0d 0a 20 | 20 20 73 65 74 28 4c 49 |.19);.. | set(LI|
|00004100| 4e 45 57 49 44 54 48 2c | 30 2e 30 35 29 3b 0d 0a |NEWIDTH,|0.05);..|
|00004110| 20 20 20 74 69 63 6b 6d | 61 72 6b 73 28 58 41 58 | tickm|arks(XAX|
|00004120| 45 53 2c 30 2e 31 29 3b | 0d 0a 20 20 20 74 69 63 |ES,0.1);|.. tic|
|00004130| 6b 6d 61 72 6b 73 28 59 | 41 58 45 53 2c 31 29 3b |kmarks(Y|AXES,1);|
|00004140| 0d 0a 20 20 20 73 65 74 | 28 46 4f 4e 54 41 53 50 |.. set|(FONTASP|
|00004150| 45 43 54 2c 31 2e 30 29 | 3b 0d 0a 20 20 20 73 65 |ECT,1.0)|;.. se|
|00004160| 74 28 46 4f 4e 54 57 49 | 44 54 48 2c 30 2e 36 37 |t(FONTWI|DTH,0.67|
|00004170| 29 3b 0d 0a 20 20 20 74 | 69 63 6b 6c 61 62 65 6c |);.. t|icklabel|
|00004180| 28 42 4f 54 54 4f 4d 2c | 30 2c 30 2e 34 29 3b 0d |(BOTTOM,|0,0.4);.|
|00004190| 0a 20 20 20 64 72 61 77 | 64 61 74 61 28 72 61 77 |. draw|data(raw|
|000041a0| 74 69 6d 65 2c 30 2c 31 | 29 3b 20 20 20 20 20 20 |time,0,1|); |
|000041b0| 20 20 0d 0a 20 20 20 74 | 65 78 74 28 31 31 2e 33 | .. t|ext(11.3|
|000041c0| 30 2c 31 36 2e 36 34 2c | 22 54 3d 32 30 4b 22 29 |0,16.64,|"T=20K")|
|000041d0| 3b 0d 0a 20 20 20 6c 61 | 62 65 6c 28 4c 45 46 54 |;.. la|bel(LEFT|
|000041e0| 2c 22 4c 6f 67 20 43 6f | 75 6e 74 73 20 28 44 65 |,"Log Co|unts (De|
|000041f0| 63 61 64 65 73 29 22 29 | 3b 0d 0a 20 20 20 73 65 |cades)")|;.. se|
|00004200| 74 28 4c 41 42 45 4c 4d | 41 52 47 2c 2d 30 2e 38 |t(LABELM|ARG,-0.8|
|00004210| 29 3b 0d 0a 20 20 20 6c | 61 62 65 6c 28 42 4f 54 |);.. l|abel(BOT|
|00004220| 54 4f 4d 2c 22 74 69 6d | 65 20 28 6d 73 29 22 29 |TOM,"tim|e (ms)")|
|00004230| 3b 0d 0a 20 20 20 7d 20 | 20 20 20 20 20 20 20 20 |;.. } | |
|00004240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004250| 20 0d 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d | ..\end{|verbatim|
|00004260| 7d 0d 0a 7d 0d 0a 0d 0a | 5c 76 73 70 61 63 65 2a |}..}....|\vspace*|
|00004270| 7b 32 35 63 6d 7d 0d 0a | 5c 73 70 65 63 69 61 6c |{25cm}..|\special|
|00004280| 7b 70 73 66 69 6c 65 3d | 6c 6f 67 61 78 65 73 2e |{psfile=|logaxes.|
|00004290| 65 70 73 20 68 73 63 61 | 6c 65 3d 38 30 20 76 73 |eps hsca|le=80 vs|
|000042a0| 63 61 6c 65 3d 38 30 20 | 20 68 6f 66 66 73 65 74 |cale=80 | hoffset|
|000042b0| 3d 2d 35 30 20 76 6f 66 | 66 73 65 74 3d 30 7d 0d |=-50 vof|fset=0}.|
|000042c0| 0a 0d 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 54 |...\subs|ection{T|
|000042d0| 69 63 6b 20 4d 61 72 6b | 73 20 61 6e 64 20 54 69 |ick Mark|s and Ti|
|000042e0| 63 6b 20 4c 61 62 65 6c | 73 7d 5c 69 6e 64 65 78 |ck Label|s}\index|
|000042f0| 7b 74 69 63 6b 20 6d 61 | 72 6b 73 7d 5c 69 6e 64 |{tick ma|rks}\ind|
|00004300| 65 78 7b 74 69 63 6b 20 | 0d 0a 6c 61 62 65 6c 73 |ex{tick |..labels|
|00004310| 7d 0d 0a 0d 0a 20 54 69 | 63 6b 20 6d 61 72 6b 73 |}.... Ti|ck marks|
|00004320| 20 61 72 65 20 61 64 64 | 65 64 20 74 6f 20 61 6e | are add|ed to an|
|00004330| 20 65 78 69 73 74 69 6e | 67 20 61 78 65 73 20 62 | existin|g axes b|
|00004340| 6f 78 20 75 73 69 6e 67 | 20 74 68 65 20 7b 5c 74 |ox using| the {\t|
|00004350| 74 20 74 69 63 6b 6d 61 | 72 6b 73 28 29 3b 7d 20 |t tickma|rks();} |
|00004360| 0d 0a 20 63 6f 6d 6d 61 | 6e 64 2e 20 41 74 20 69 |.. comma|nd. At i|
|00004370| 74 73 20 73 69 6d 70 6c | 65 73 74 20 6e 6f 20 70 |ts simpl|est no p|
|00004380| 61 72 61 6d 65 74 65 72 | 73 20 61 72 65 20 72 65 |arameter|s are re|
|00004390| 71 75 69 72 65 64 20 61 | 6e 64 20 53 70 6c 6f 74 |quired a|nd Splot|
|000043a0| 20 74 72 69 65 73 20 74 | 6f 20 0d 0a 20 73 65 6c | tries t|o .. sel|
|000043b0| 65 63 74 20 61 20 73 65 | 74 20 6f 66 20 72 65 61 |ect a se|t of rea|
|000043c0| 73 6f 6e 61 62 6c 65 20 | 74 69 63 6b 20 6d 61 72 |sonable |tick mar|
|000043d0| 6b 73 20 66 6f 72 20 62 | 6f 74 68 20 74 68 65 20 |ks for b|oth the |
|000043e0| 78 20 61 6e 64 20 79 20 | 61 78 65 73 2e 20 0d 0a |x and y |axes. ..|
|000043f0| 20 41 6c 74 65 72 6e 61 | 74 69 76 65 6c 79 2c 20 | Alterna|tively, |
|00004400| 61 20 6c 69 73 74 20 6f | 66 20 74 69 63 6b 20 70 |a list o|f tick p|
|00004410| 6f 73 69 74 69 6f 6e 73 | 20 63 61 6e 20 62 65 20 |ositions| can be |
|00004420| 70 72 6f 76 69 64 65 64 | 20 66 6f 72 20 65 61 63 |provided| for eac|
|00004430| 68 20 61 78 69 73 2e 20 | 0d 0a 20 54 69 63 6b 20 |h axis. |.. Tick |
|00004440| 6d 61 72 6b 73 20 61 72 | 65 20 6c 69 6e 65 73 20 |marks ar|e lines |
|00004450| 61 6e 64 20 73 6f 20 74 | 68 65 20 77 69 64 74 68 |and so t|he width|
|00004460| 20 6f 66 20 61 20 74 69 | 63 6b 20 6d 61 72 6b 20 | of a ti|ck mark |
|00004470| 69 73 20 73 65 74 20 75 | 73 69 6e 67 20 7b 5c 74 |is set u|sing {\t|
|00004480| 74 20 73 65 74 20 0d 0a | 20 28 4c 49 4e 45 57 49 |t set ..| (LINEWI|
|00004490| 44 54 48 2c 20 77 69 64 | 74 68 29 3b 7d 5c 69 6e |DTH, wid|th);}\in|
|000044a0| 64 65 78 7b 74 69 63 6b | 20 6d 61 72 6b 73 2c 20 |dex{tick| marks, |
|000044b0| 77 69 64 74 68 7d 2e 20 | 54 68 65 20 6c 65 6e 67 |width}. |The leng|
|000044c0| 74 68 20 6f 66 20 61 20 | 74 69 63 6b 20 6d 61 72 |th of a |tick mar|
|000044d0| 6b 20 0d 0a 20 69 73 20 | 73 65 74 20 75 73 69 6e |k .. is |set usin|
|000044e0| 67 20 7b 5c 74 74 20 73 | 65 74 28 54 49 43 4b 4c |g {\tt s|et(TICKL|
|000044f0| 45 4e 47 54 48 2c 20 6c | 65 6e 67 74 68 29 3b 7d |ENGTH, l|ength);}|
|00004500| 5c 69 6e 64 65 78 7b 74 | 69 63 6b 20 6d 61 72 6b |\index{t|ick mark|
|00004510| 73 2c 20 6c 65 6e 67 74 | 68 7d 2e 20 47 72 69 64 |s, lengt|h}. Grid|
|00004520| 20 0d 0a 20 6c 69 6e 65 | 73 20 6d 61 79 20 62 65 | .. line|s may be|
|00004530| 20 70 72 6f 64 75 63 65 | 64 20 62 79 20 63 68 6f | produce|d by cho|
|00004540| 6f 73 69 6e 67 20 74 68 | 65 20 6c 65 6e 67 74 68 |osing th|e length|
|00004550| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 74 68 65 | the sam|e as the|
|00004560| 20 6c 65 6e 67 74 68 20 | 6f 66 20 74 68 65 20 0d | length |of the .|
|00004570| 0a 20 61 78 65 73 20 62 | 6f 78 2e 20 49 66 20 74 |. axes b|ox. If t|
|00004580| 69 63 6b 6d 61 72 6b 73 | 20 6f 6e 20 74 68 65 20 |ickmarks| on the |
|00004590| 6f 75 74 73 69 64 65 20 | 6f 66 20 74 68 65 20 61 |outside |of the a|
|000045a0| 78 65 73 20 62 6f 78 20 | 61 72 65 20 64 65 73 69 |xes box |are desi|
|000045b0| 72 65 64 20 74 68 65 79 | 20 6d 61 79 20 0d 0a 20 |red they| may .. |
|000045c0| 62 65 20 67 65 6e 65 72 | 61 74 65 64 20 62 79 20 |be gener|ated by |
|000045d0| 73 65 74 74 69 6e 67 20 | 61 20 6e 65 67 61 74 69 |setting |a negati|
|000045e0| 76 65 20 74 69 63 6b 20 | 6c 65 6e 67 74 68 2e 20 |ve tick |length. |
|000045f0| 0d 0a 0d 0a 20 54 69 63 | 6b 20 6c 61 62 65 6c 73 |.... Tic|k labels|
|00004600| 20 61 72 65 20 70 72 6f | 64 75 63 65 64 20 77 69 | are pro|duced wi|
|00004610| 74 68 20 74 68 65 20 7b | 5c 74 74 20 74 69 63 6b |th the {|\tt tick|
|00004620| 6c 61 62 65 6c 28 29 3b | 7d 20 63 6f 6d 6d 61 6e |label();|} comman|
|00004630| 64 2e 20 41 74 20 69 74 | 73 20 0d 0a 20 73 69 6d |d. At it|s .. sim|
|00004640| 70 6c 65 73 74 20 6e 6f | 20 70 61 72 61 6d 65 74 |plest no| paramet|
|00004650| 65 72 73 20 61 72 65 20 | 72 65 71 75 69 72 65 64 |ers are |required|
|00004660| 20 61 6e 64 20 53 70 6c | 6f 74 20 6c 61 62 65 6c | and Spl|ot label|
|00004670| 73 20 61 20 73 75 62 73 | 65 74 20 6f 66 20 74 68 |s a subs|et of th|
|00004680| 65 20 0d 0a 20 65 78 69 | 73 74 69 6e 67 20 74 69 |e .. exi|sting ti|
|00004690| 63 6b 20 6d 61 72 6b 73 | 20 6f 6e 20 74 68 65 20 |ck marks| on the |
|000046a0| 62 6f 74 74 6f 6d 20 61 | 6e 64 20 6c 65 66 74 20 |bottom a|nd left |
|000046b0| 73 69 64 65 2e 20 41 6c | 74 65 72 6e 61 74 69 76 |side. Al|ternativ|
|000046c0| 65 6c 79 2c 20 61 6e 20 | 61 78 69 73 20 0d 0a 20 |ely, an |axis .. |
|000046d0| 6d 61 79 20 62 65 20 73 | 70 65 63 69 66 69 65 64 |may be s|pecified|
|000046e0| 20 61 6c 6f 6e 67 20 77 | 69 74 68 20 61 20 6c 69 | along w|ith a li|
|000046f0| 73 74 20 6f 66 20 74 69 | 63 6b 20 6c 61 62 65 6c |st of ti|ck label|
|00004700| 20 70 6f 73 69 74 69 6f | 6e 73 2e 20 41 74 20 69 | positio|ns. At i|
|00004710| 74 73 20 6d 6f 73 74 20 | 0d 0a 20 70 6f 77 65 72 |ts most |.. power|
|00004720| 66 75 6c 20 65 61 63 68 | 20 74 69 63 6b 20 70 6f |ful each| tick po|
|00004730| 73 69 74 69 6f 6e 20 6d | 61 79 20 62 65 20 70 61 |sition m|ay be pa|
|00004740| 69 72 65 64 20 77 69 74 | 68 20 61 20 74 65 78 74 |ired wit|h a text|
|00004750| 20 73 74 72 69 6e 67 20 | 61 6c 6c 6f 77 69 6e 67 | string |allowing|
|00004760| 20 61 6e 79 20 0d 0a 20 | 61 72 62 69 74 72 61 72 | any .. |arbitrar|
|00004770| 79 20 73 74 72 69 6e 67 | 20 74 6f 20 61 70 70 65 |y string| to appe|
|00004780| 61 72 20 61 74 20 74 68 | 65 20 64 65 73 69 72 65 |ar at th|e desire|
|00004790| 64 20 6c 6f 63 61 74 69 | 6f 6e 2e 20 49 6e 20 74 |d locati|on. In t|
|000047a0| 68 69 73 20 77 61 79 20 | 74 69 63 6b 20 0d 0a 20 |his way |tick .. |
|000047b0| 6c 61 62 65 6c 73 20 6e | 65 65 64 20 6e 6f 74 20 |labels n|eed not |
|000047c0| 62 65 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 75 |be in th|e same u|
|000047d0| 6e 69 74 73 20 61 73 20 | 74 68 6f 73 65 20 75 73 |nits as |those us|
|000047e0| 65 64 20 74 6f 20 64 72 | 61 77 20 74 68 65 20 67 |ed to dr|aw the g|
|000047f0| 72 61 70 68 2e 20 54 69 | 63 6b 20 0d 0a 20 6c 61 |raph. Ti|ck .. la|
|00004800| 62 65 6c 73 20 61 72 65 | 20 6a 75 73 74 20 74 65 |bels are| just te|
|00004810| 78 74 20 61 6e 64 20 74 | 69 63 6b 20 6c 61 62 65 |xt and t|ick labe|
|00004820| 6c 20 61 70 70 65 61 72 | 61 6e 63 65 20 69 73 20 |l appear|ance is |
|00004830| 61 66 66 65 63 74 65 64 | 20 62 79 20 0d 0a 20 74 |affected| by .. t|
|00004840| 68 65 20 74 65 78 74 20 | 61 74 74 72 69 62 75 74 |he text |attribut|
|00004850| 65 73 20 64 69 73 63 75 | 73 73 65 64 20 69 6e 20 |es discu|ssed in |
|00004860| 5c 72 65 66 7b 73 65 63 | 3a 74 65 78 74 7d 2e 20 |\ref{sec|:text}. |
|00004870| 0d 0a 0d 0a 5c 69 6e 64 | 65 78 7b 74 69 63 6b 20 |....\ind|ex{tick |
|00004880| 6d 61 72 6b 73 2c 20 65 | 78 61 6d 70 6c 65 7d 0d |marks, e|xample}.|
|00004890| 0a 7b 5c 74 74 0d 0a 5c | 62 65 67 69 6e 7b 76 65 |.{\tt..\|begin{ve|
|000048a0| 72 62 61 74 69 6d 7d 0d | 0a 0d 0a 23 69 6e 63 6c |rbatim}.|...#incl|
|000048b0| 75 64 65 20 3c 73 70 6c | 6f 74 2e 68 3e 0d 0a 6d |ude <spl|ot.h>..m|
|000048c0| 61 69 6e 28 29 20 0d 0a | 20 20 20 7b 0d 0a 20 20 |ain() ..| {.. |
|000048d0| 20 2f 2a 20 74 69 63 6b | 20 6d 61 72 6b 73 20 61 | /* tick| marks a|
|000048e0| 6e 64 20 74 69 63 6b 20 | 6c 61 62 65 6c 20 65 78 |nd tick |label ex|
|000048f0| 61 6d 70 6c 65 20 2a 2f | 0d 0a 20 20 20 61 62 6f |ample */|.. abo|
|00004900| 78 28 31 32 2c 31 32 2c | 35 2c 36 29 3b 0d 0a 20 |x(12,12,|5,6);.. |
|00004910| 20 20 61 73 63 61 6c 65 | 28 58 41 58 45 53 2c 30 | ascale|(XAXES,0|
|00004920| 2c 31 30 30 29 3b 0d 0a | 20 20 20 61 73 63 61 6c |,100);..| ascal|
|00004930| 65 28 59 41 58 45 53 2c | 30 2c 33 30 29 3b 0d 0a |e(YAXES,|0,30);..|
|00004940| 0d 0a 20 20 20 2f 2a 20 | 64 65 66 61 75 6c 74 20 |.. /* |default |
|00004950| 74 69 63 6b 20 6d 61 72 | 6b 73 20 61 6e 64 20 6c |tick mar|ks and l|
|00004960| 61 62 65 6c 73 20 2a 2f | 0d 0a 20 20 20 74 69 63 |abels */|.. tic|
|00004970| 6b 6d 61 72 6b 73 28 42 | 4f 54 54 4f 4d 29 3b 0d |kmarks(B|OTTOM);.|
|00004980| 0a 20 20 20 74 69 63 6b | 6c 61 62 65 6c 28 42 4f |. tick|label(BO|
|00004990| 54 54 4f 4d 29 3b 0d 0a | 0d 0a 20 20 20 67 73 61 |TTOM);..|.. gsa|
|000049a0| 76 65 28 29 3b 0d 0a 0d | 0a 20 20 20 2f 2a 20 67 |ve();...|. /* g|
|000049b0| 72 69 64 20 6c 69 6e 65 | 73 20 2a 2f 0d 0a 20 20 |rid line|s */.. |
|000049c0| 20 73 65 74 28 54 49 43 | 4b 4c 45 4e 47 54 48 2c | set(TIC|KLENGTH,|
|000049d0| 31 32 29 3b 0d 0a 20 20 | 20 74 69 63 6b 6d 61 72 |12);.. | tickmar|
|000049e0| 6b 73 28 4c 45 46 54 29 | 3b 0d 0a 20 20 20 74 69 |ks(LEFT)|;.. ti|
|000049f0| 63 6b 6c 61 62 65 6c 28 | 4c 45 46 54 29 3b 0d 0a |cklabel(|LEFT);..|
|00004a00| 0d 0a 20 20 20 2f 2a 20 | 74 68 69 63 6b 20 2d 76 |.. /* |thick -v|
|00004a10| 65 20 74 69 63 6b 73 20 | 61 74 20 73 70 65 63 69 |e ticks |at speci|
|00004a20| 66 69 65 64 20 70 6f 73 | 69 74 69 6f 6e 73 20 20 |fied pos|itions |
|00004a30| 2a 2f 0d 0a 20 20 20 73 | 65 74 28 4c 49 4e 45 57 |*/.. s|et(LINEW|
|00004a40| 49 44 54 48 2c 30 2e 32 | 29 3b 20 20 20 20 0d 0a |IDTH,0.2|); ..|
|00004a50| 20 20 20 73 65 74 28 54 | 49 43 4b 4c 45 4e 47 54 | set(T|ICKLENGT|
|00004a60| 48 2c 2d 30 2e 33 29 3b | 0d 0a 20 20 20 74 69 63 |H,-0.3);|.. tic|
|00004a70| 6b 6d 61 72 6b 73 28 52 | 49 47 48 54 2c 30 2c 35 |kmarks(R|IGHT,0,5|
|00004a80| 2c 31 30 2c 31 35 2c 32 | 30 2c 32 35 2c 33 30 29 |,10,15,2|0,25,30)|
|00004a90| 3b 0d 0a 20 20 20 73 65 | 74 28 4c 49 4e 45 57 49 |;.. se|t(LINEWI|
|00004aa0| 44 54 48 2c 30 2e 30 35 | 29 3b 20 20 20 20 0d 0a |DTH,0.05|); ..|
|00004ab0| 20 20 20 73 65 74 28 54 | 49 43 4b 4c 4d 41 52 47 | set(T|ICKLMARG|
|00004ac0| 2c 30 2e 35 29 3b 0d 0a | 20 20 20 74 69 63 6b 6c |,0.5);..| tickl|
|00004ad0| 61 62 65 6c 28 52 49 47 | 48 54 2c 30 2c 33 30 29 |abel(RIG|HT,0,30)|
|00004ae0| 3b 0d 0a 0d 0a 20 20 20 | 67 72 65 73 74 6f 72 65 |;.... |grestore|
|00004af0| 28 29 3b 0d 0a 0d 0a 20 | 20 20 2f 2a 20 74 69 63 |();.... | /* tic|
|00004b00| 6b 73 20 62 79 20 73 70 | 61 63 69 6e 67 20 61 6e |ks by sp|acing an|
|00004b10| 64 20 63 75 73 74 6f 6d | 20 6c 61 62 65 6c 73 20 |d custom| labels |
|00004b20| 2a 2f 0d 0a 20 20 20 74 | 69 63 6b 6d 61 72 6b 73 |*/.. t|ickmarks|
|00004b30| 28 54 4f 50 2c 35 29 3b | 0d 0a 20 20 20 74 69 63 |(TOP,5);|.. tic|
|00004b40| 6b 6c 61 62 65 6c 28 54 | 4f 50 2c 30 2c 22 30 22 |klabel(T|OP,0,"0"|
|00004b50| 2c 35 30 2c 22 35 78 31 | 30 5e 31 5e 22 2c 31 30 |,50,"5x1|0^1^",10|
|00004b60| 30 2c 22 31 30 5e 32 5e | 22 29 3b 0d 0a 0d 0a 20 |0,"10^2^|");.... |
|00004b70| 20 20 7d 0d 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 | }..\en|d{verbat|
|00004b80| 69 6d 7d 0d 0a 7d 0d 0a | 0d 0a 5c 76 73 70 61 63 |im}..}..|..\vspac|
|00004b90| 65 2a 7b 30 2e 32 63 6d | 7d 0d 0a 5c 73 70 65 63 |e*{0.2cm|}..\spec|
|00004ba0| 69 61 6c 7b 70 73 66 69 | 6c 65 3d 74 69 63 6b 64 |ial{psfi|le=tickd|
|00004bb0| 65 6d 6f 2e 65 70 73 20 | 68 73 63 61 6c 65 3d 35 |emo.eps |hscale=5|
|00004bc0| 30 20 76 73 63 61 6c 65 | 3d 35 30 20 68 6f 66 66 |0 vscale|=50 hoff|
|00004bd0| 73 65 74 3d 32 30 30 20 | 76 6f 66 66 73 65 74 3d |set=200 |voffset=|
|00004be0| 37 30 7d 0d 0a 0d 0a 5c | 73 75 62 73 65 63 74 69 |70}....\|subsecti|
|00004bf0| 6f 6e 7b 63 6c 69 70 70 | 69 6e 67 7d 5c 69 6e 64 |on{clipp|ing}\ind|
|00004c00| 65 78 7b 63 6c 69 70 7d | 20 0d 0a 0d 0a 20 41 20 |ex{clip}| .... A |
|00004c10| 64 72 61 77 69 6e 67 20 | 63 61 6e 20 62 65 20 63 |drawing |can be c|
|00004c20| 6c 69 70 70 65 64 20 74 | 6f 20 61 6e 20 61 72 62 |lipped t|o an arb|
|00004c30| 69 74 72 61 72 79 20 70 | 61 74 68 20 62 79 20 66 |itrary p|ath by f|
|00004c40| 69 72 73 74 20 62 75 69 | 6c 64 69 6e 67 20 61 20 |irst bui|lding a |
|00004c50| 70 61 74 68 20 0d 0a 20 | 77 69 74 68 20 74 68 65 |path .. |with the|
|00004c60| 20 70 61 74 68 20 62 75 | 69 6c 64 69 6e 67 20 66 | path bu|ilding f|
|00004c70| 75 6e 63 74 69 6f 6e 73 | 20 73 75 63 68 20 61 73 |unctions| such as|
|00004c80| 20 7b 5c 74 74 20 6d 6f | 76 65 74 6f 28 29 3b 7d | {\tt mo|veto();}|
|00004c90| 20 61 6e 64 20 7b 5c 74 | 74 20 0d 0a 20 6c 69 6e | and {\t|t .. lin|
|00004ca0| 65 74 6f 28 29 3b 7d 20 | 61 6e 64 20 74 68 65 6e |eto();} |and then|
|00004cb0| 20 73 65 74 74 69 6e 67 | 20 69 74 20 75 70 20 61 | setting| it up a|
|00004cc0| 73 20 74 68 65 20 63 6c | 69 70 20 70 61 74 68 20 |s the cl|ip path |
|00004cd0| 77 69 74 68 20 74 68 65 | 20 7b 5c 74 74 20 63 6c |with the| {\tt cl|
|00004ce0| 69 70 28 29 3b 7d 20 0d | 0a 20 66 75 6e 63 74 69 |ip();} .|. functi|
|00004cf0| 6f 6e 2e 20 54 68 65 20 | 63 6c 69 70 20 70 61 74 |on. The |clip pat|
|00004d00| 68 20 6d 75 73 74 20 62 | 65 20 73 65 74 20 62 65 |h must b|e set be|
|00004d10| 66 6f 72 65 20 74 68 65 | 20 64 72 61 77 69 6e 67 |fore the| drawing|
|00004d20| 20 74 6f 20 62 65 20 63 | 6c 69 70 70 65 64 20 69 | to be c|lipped i|
|00004d30| 73 20 0d 0a 20 6d 61 64 | 65 2e 20 49 6e 20 74 68 |s .. mad|e. In th|
|00004d40| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 78 61 6d |e follow|ing exam|
|00004d50| 70 6c 65 20 61 20 74 72 | 69 61 6e 67 75 6c 61 72 |ple a tr|iangular|
|00004d60| 20 70 61 74 68 20 69 73 | 20 6d 61 64 65 20 61 6e | path is| made an|
|00004d70| 64 20 74 68 65 6e 20 73 | 61 76 65 64 20 75 73 69 |d then s|aved usi|
|00004d80| 6e 67 20 0d 0a 20 7b 5c | 74 74 20 67 73 61 76 65 |ng .. {\|tt gsave|
|00004d90| 28 29 3b 7d 2e 20 54 68 | 69 73 20 70 61 74 68 20 |();}. Th|is path |
|00004da0| 69 73 20 74 68 65 6e 20 | 73 65 74 20 75 70 20 61 |is then |set up a|
|00004db0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 6c |s the cu|rrent cl|
|00004dc0| 69 70 20 70 61 74 68 20 | 75 73 69 6e 67 20 0d 0a |ip path |using ..|
|00004dd0| 20 74 68 65 20 7b 5c 74 | 74 20 63 6c 69 70 28 29 | the {\t|t clip()|
|00004de0| 3b 7d 20 66 75 6e 63 74 | 69 6f 6e 2e 20 54 68 65 |;} funct|ion. The|
|00004df0| 20 70 61 74 68 20 69 73 | 20 74 68 65 6e 20 72 65 | path is| then re|
|00004e00| 73 74 6f 72 65 64 20 61 | 6e 64 20 73 74 72 6f 6b |stored a|nd strok|
|00004e10| 65 64 20 69 6e 20 0d 0a | 20 6f 72 64 65 72 20 74 |ed in ..| order t|
|00004e20| 6f 20 73 68 6f 77 20 74 | 68 65 20 63 6c 69 70 20 |o show t|he clip |
|00004e30| 70 61 74 68 2e 20 54 68 | 65 20 63 6c 69 70 20 70 |path. Th|e clip p|
|00004e40| 61 74 68 20 69 73 20 6e | 6f 74 20 6f 72 64 69 6e |ath is n|ot ordin|
|00004e50| 61 72 69 6c 79 20 76 69 | 73 69 62 6c 65 20 6f 6e |arily vi|sible on|
|00004e60| 20 0d 0a 20 74 68 65 20 | 70 61 67 65 2e 20 46 69 | .. the |page. Fi|
|00004e70| 6e 61 6c 6c 79 20 74 68 | 65 20 70 61 74 68 20 69 |nally th|e path i|
|00004e80| 73 20 72 65 73 74 6f 72 | 65 64 20 6f 6e 63 65 20 |s restor|ed once |
|00004e90| 6d 6f 72 65 20 74 68 65 | 20 79 20 61 78 69 73 20 |more the| y axis |
|00004ea0| 6d 69 72 72 6f 72 65 64 | 20 61 6e 64 20 0d 0a 20 |mirrored| and .. |
|00004eb0| 74 68 65 20 74 72 69 61 | 6e 67 6c 65 20 66 69 6c |the tria|ngle fil|
|00004ec0| 6c 65 64 2e 20 54 68 65 | 20 72 65 73 75 6c 74 20 |led. The| result |
|00004ed0| 69 73 20 74 68 65 20 69 | 6e 76 65 72 74 65 64 20 |is the i|nverted |
|00004ee0| 74 72 69 61 6e 67 6c 65 | 20 63 6c 69 70 70 65 64 |triangle| clipped|
|00004ef0| 20 61 67 61 69 6e 73 74 | 20 0d 0a 20 74 68 65 20 | against| .. the |
|00004f00| 6f 72 69 67 69 6e 61 6c | 20 74 72 69 61 6e 67 6c |original| triangl|
|00004f10| 65 2e 0d 0a 0d 0a 5c 69 | 6e 64 65 78 7b 63 6c 69 |e.....\i|ndex{cli|
|00004f20| 70 2c 20 65 78 61 6d 70 | 6c 65 7d 0d 0a 5c 76 73 |p, examp|le}..\vs|
|00004f30| 70 61 63 65 2a 7b 30 2e | 32 63 6d 7d 0d 0a 5c 73 |pace*{0.|2cm}..\s|
|00004f40| 70 65 63 69 61 6c 7b 70 | 73 66 69 6c 65 3d 63 6c |pecial{p|sfile=cl|
|00004f50| 69 70 2e 65 70 73 20 68 | 73 63 61 6c 65 3d 33 30 |ip.eps h|scale=30|
|00004f60| 20 76 73 63 61 6c 65 3d | 33 30 20 68 6f 66 66 73 | vscale=|30 hoffs|
|00004f70| 65 74 3d 32 30 30 20 76 | 6f 66 66 73 65 74 3d 2d |et=200 v|offset=-|
|00004f80| 32 34 35 7d 0d 0a 0d 0a | 7b 5c 74 74 0d 0a 5c 62 |245}....|{\tt..\b|
|00004f90| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0d 0a |egin{ver|batim}..|
|00004fa0| 20 0d 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 70 6c | ..#incl|ude <spl|
|00004fb0| 6f 74 2e 68 3e 0d 0a 6d | 61 69 6e 28 29 0d 0a 20 |ot.h>..m|ain().. |
|00004fc0| 20 20 7b 0d 0a 20 20 20 | 74 72 61 6e 73 6c 61 74 | {.. |translat|
|00004fd0| 65 28 31 30 2c 31 33 29 | 3b 0d 0a 20 20 20 6d 6f |e(10,13)|;.. mo|
|00004fe0| 76 65 74 6f 28 2d 34 2c | 2d 34 29 3b 0d 0a 20 20 |veto(-4,|-4);.. |
|00004ff0| 20 72 6c 69 6e 65 74 6f | 28 31 30 2c 30 29 3b 0d | rlineto|(10,0);.|
|00005000| 0a 20 20 20 61 6c 69 6e | 65 74 6f 28 31 30 2c 31 |. alin|eto(10,1|
|00005010| 32 30 29 3b 0d 0a 20 20 | 20 63 6c 6f 73 65 70 61 |20);.. | closepa|
|00005020| 74 68 28 29 3b 0d 0a 20 | 20 20 67 73 61 76 65 28 |th();.. | gsave(|
|00005030| 29 3b 0d 0a 20 20 20 63 | 6c 69 70 28 29 3b 0d 0a |);.. c|lip();..|
|00005040| 20 20 20 67 72 65 73 74 | 6f 72 65 28 29 3b 0d 0a | grest|ore();..|
|00005050| 20 20 20 67 73 61 76 65 | 28 29 3b 0d 0a 20 20 20 | gsave|();.. |
|00005060| 73 74 72 6f 6b 65 28 29 | 3b 0d 0a 20 20 20 67 72 |stroke()|;.. gr|
|00005070| 65 73 74 6f 72 65 28 29 | 3b 0d 0a 20 20 20 2f 2a |estore()|;.. /*|
|00005080| 20 6d 69 72 72 6f 72 20 | 61 62 6f 75 74 20 79 20 | mirror |about y |
|00005090| 61 78 69 73 20 2a 2f 0d | 0a 20 20 20 73 63 61 6c |axis */.|. scal|
|000050a0| 65 28 31 2c 2d 31 29 3b | 0d 0a 20 20 20 66 69 6c |e(1,-1);|.. fil|
|000050b0| 6c 28 29 3b 0d 0a 20 20 | 20 7d 0d 0a 5c 65 6e 64 |l();.. | }..\end|
|000050c0| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 0a 7d 0d 0a 0d |{verbati|m}..}...|
|000050d0| 0a 20 44 61 74 61 20 64 | 72 61 77 6e 20 75 73 69 |. Data d|rawn usi|
|000050e0| 6e 67 20 7b 5c 74 74 20 | 64 72 61 77 64 61 74 61 |ng {\tt |drawdata|
|000050f0| 28 29 3b 7d 20 6f 72 20 | 7b 5c 74 74 20 70 6c 6f |();} or |{\tt plo|
|00005100| 74 64 61 74 61 28 29 3b | 7d 5c 69 6e 64 65 78 7b |tdata();|}\index{|
|00005110| 64 72 61 77 64 61 74 61 | 2c 20 0d 0a 20 63 6c 69 |drawdata|, .. cli|
|00005120| 70 70 69 6e 67 7d 5c 69 | 6e 64 65 78 7b 70 6c 6f |pping}\i|ndex{plo|
|00005130| 74 64 61 74 61 2c 20 63 | 6c 69 70 70 69 6e 67 7d |tdata, c|lipping}|
|00005140| 20 6d 61 79 20 62 65 20 | 63 6c 69 70 70 65 64 20 | may be |clipped |
|00005150| 74 6f 20 74 68 65 20 6d | 6f 73 74 20 72 65 63 65 |to the m|ost rece|
|00005160| 6e 74 6c 79 20 0d 0a 20 | 64 72 61 77 6e 20 61 78 |ntly .. |drawn ax|
|00005170| 65 73 20 62 6f 78 20 62 | 79 20 73 65 74 74 69 6e |es box b|y settin|
|00005180| 67 20 7b 5c 74 74 20 73 | 65 74 28 41 58 45 53 43 |g {\tt s|et(AXESC|
|00005190| 4c 49 50 2c 4f 4e 20 29 | 3b 7d 5c 69 6e 64 65 78 |LIP,ON )|;}\index|
|000051a0| 7b 73 65 74 2c 20 41 58 | 45 53 43 4c 49 50 7d 20 |{set, AX|ESCLIP} |
|000051b0| 62 65 66 6f 72 65 20 0d | 0a 20 63 61 6c 6c 69 6e |before .|. callin|
|000051c0| 67 20 7b 5c 74 74 20 70 | 6c 6f 74 64 61 74 61 28 |g {\tt p|lotdata(|
|000051d0| 29 3b 7d 20 6f 72 20 7b | 5c 74 74 20 64 72 61 77 |);} or {|\tt draw|
|000051e0| 64 61 74 61 28 29 3b 7d | 2e 20 54 68 69 73 20 6d |data();}|. This m|
|000051f0| 61 6b 65 73 20 75 73 65 | 20 6f 66 20 74 68 65 20 |akes use| of the |
|00005200| 0d 0a 20 63 6c 69 70 70 | 69 6e 67 20 6d 65 63 68 |.. clipp|ing mech|
|00005210| 61 6e 69 73 6d 20 69 6e | 74 65 72 6e 61 6c 6c 79 |anism in|ternally|
|00005220| 20 62 79 20 74 65 6d 70 | 6f 72 61 72 69 6c 79 20 | by temp|orarily |
|00005230| 61 64 64 69 6e 67 20 74 | 68 65 20 61 78 65 73 20 |adding t|he axes |
|00005240| 62 6f 78 20 74 6f 20 74 | 68 65 20 0d 0a 20 63 6c |box to t|he .. cl|
|00005250| 69 70 20 70 61 74 68 20 | 61 6e 64 20 74 68 65 6e |ip path |and then|
|00005260| 20 72 65 73 74 6f 72 69 | 6e 67 20 74 68 65 20 70 | restori|ng the p|
|00005270| 72 65 76 69 6f 75 73 20 | 63 6c 69 70 20 70 61 74 |revious |clip pat|
|00005280| 68 20 61 66 74 65 72 20 | 74 68 65 20 64 61 74 61 |h after |the data|
|00005290| 20 69 73 20 0d 0a 20 64 | 72 61 77 6e 2e 20 0d 0a | is .. d|rawn. ..|
|000052a0| 0d 0a 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 75 6e |..\subse|ction{un|
|000052b0| 69 74 73 7d 5c 69 6e 64 | 65 78 7b 63 6f 6f 72 64 |its}\ind|ex{coord|
|000052c0| 69 6e 61 74 65 2c 20 6d | 61 74 63 68 69 6e 67 7d |inate, m|atching}|
|000052d0| 5c 69 6e 64 65 78 7b 75 | 6e 69 74 73 7d 0d 0a 0d |\index{u|nits}...|
|000052e0| 0a 20 54 68 65 20 64 65 | 66 61 75 6c 74 20 75 6e |. The de|fault un|
|000052f0| 69 74 73 20 66 6f 72 20 | 74 68 65 20 64 72 61 77 |its for |the draw|
|00005300| 69 6e 67 20 70 61 67 65 | 20 61 72 65 20 63 65 6e |ing page| are cen|
|00005310| 74 69 6d 65 74 65 72 73 | 2e 20 54 68 65 20 70 68 |timeters|. The ph|
|00005320| 79 73 69 63 61 6c 20 70 | 61 67 65 20 0d 0a 20 61 |ysical p|age .. a|
|00005330| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 64 72 61 |vailable| for dra|
|00005340| 77 69 6e 67 20 69 6e 20 | 69 73 20 32 30 20 63 6d |wing in |is 20 cm|
|00005350| 20 77 69 64 65 20 62 79 | 20 32 36 20 63 6d 20 68 | wide by| 26 cm h|
|00005360| 69 67 68 20 28 61 70 70 | 72 6f 78 69 6d 61 74 65 |igh (app|roximate|
|00005370| 6c 79 20 38 20 78 20 31 | 31 20 0d 0a 20 69 6e 63 |ly 8 x 1|1 .. inc|
|00005380| 68 65 73 29 2e 20 49 74 | 20 69 73 20 6e 6f 74 20 |hes). It| is not |
|00005390| 70 6f 73 73 69 62 6c 65 | 20 74 6f 20 63 68 61 6e |possible| to chan|
|000053a0| 67 65 20 74 68 65 20 70 | 68 79 73 69 63 61 6c 20 |ge the p|hysical |
|000053b0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 64 72 61 77 |size of |the draw|
|000053c0| 69 6e 67 20 0d 0a 20 61 | 72 65 61 20 62 75 74 20 |ing .. a|rea but |
|000053d0| 74 68 65 20 75 6e 69 74 | 73 20 63 61 6e 20 65 61 |the unit|s can ea|
|000053e0| 73 69 6c 79 20 62 65 20 | 63 68 61 6e 67 65 64 20 |sily be |changed |
|000053f0| 75 73 69 6e 67 20 74 68 | 65 20 7b 5c 74 74 20 73 |using th|e {\tt s|
|00005400| 63 61 6c 65 28 78 66 61 | 63 74 2c 20 0d 0a 20 79 |cale(xfa|ct, .. y|
|00005410| 66 61 63 74 29 3b 7d 5c | 69 6e 64 65 78 20 7b 73 |fact);}\|index {s|
|00005420| 63 61 6c 65 7d 20 63 6f | 6d 6d 61 6e 64 2e 20 54 |cale} co|mmand. T|
|00005430| 68 75 73 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |hus in o|rder to |
|00005440| 63 68 61 6e 67 65 20 74 | 68 65 20 75 6e 69 74 73 |change t|he units|
|00005450| 20 74 6f 20 0d 0a 20 69 | 6e 63 68 65 73 20 66 6f | to .. i|nches fo|
|00005460| 72 20 65 78 61 6d 70 6c | 65 20 70 75 74 20 7b 5c |r exampl|e put {\|
|00005470| 74 74 20 73 63 61 6c 65 | 28 30 2e 33 39 33 37 2c |tt scale|(0.3937,|
|00005480| 30 2e 33 39 33 37 29 3b | 7d 20 72 69 67 68 74 20 |0.3937);|} right |
|00005490| 61 66 74 65 72 20 7b 5c | 74 74 20 0d 0a 20 6d 61 |after {\|tt .. ma|
|000054a0| 69 6e 28 29 7d 20 69 6e | 20 74 68 65 20 66 69 6c |in()} in| the fil|
|000054b0| 65 2e 20 54 68 65 20 64 | 65 66 61 75 6c 74 20 6f |e. The d|efault o|
|000054c0| 72 69 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 74 68 |rientati|on of th|
|000054d0| 65 20 70 61 67 65 20 69 | 73 20 0d 0a 20 70 6f 72 |e page i|s .. por|
|000054e0| 74 72 61 69 74 5c 69 6e | 64 65 78 7b 70 6f 72 74 |trait\in|dex{port|
|000054f0| 72 61 69 74 7d 20 77 69 | 74 68 20 74 68 65 20 78 |rait} wi|th the x|
|00005500| 20 61 78 65 73 20 61 6c | 6f 6e 67 20 74 68 65 20 | axes al|ong the |
|00005510| 73 68 6f 72 74 20 73 69 | 64 65 2e 20 54 68 65 20 |short si|de. The |
|00005520| 6f 72 69 67 69 6e 20 0d | 0a 20 6d 61 79 20 62 65 |origin .|. may be|
|00005530| 20 73 68 69 66 74 65 64 | 20 75 73 69 6e 67 20 7b | shifted| using {|
|00005540| 5c 74 74 20 74 72 61 6e | 73 6c 61 74 65 28 29 3b |\tt tran|slate();|
|00005550| 7d 5c 69 6e 64 65 78 7b | 74 72 61 6e 73 6c 61 74 |}\index{|translat|
|00005560| 65 7d 20 61 6e 64 20 78 | 20 61 6e 64 20 79 20 0d |e} and x| and y .|
|00005570| 0a 20 69 6e 74 65 72 63 | 68 61 6e 67 65 64 20 75 |. interc|hanged u|
|00005580| 73 69 6e 67 20 7b 5c 74 | 74 20 72 6f 74 61 74 65 |sing {\t|t rotate|
|00005590| 28 39 30 29 3b 7d 5c 69 | 6e 64 65 78 7b 72 6f 74 |(90);}\i|ndex{rot|
|000055a0| 61 74 65 7d 2e 20 49 74 | 20 69 73 20 74 68 75 73 |ate}. It| is thus|
|000055b0| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 20 0d 0a 20 | possibl|e to .. |
|000055c0| 63 68 61 6e 67 65 20 74 | 6f 20 6c 61 6e 64 73 63 |change t|o landsc|
|000055d0| 61 70 65 20 6d 6f 64 65 | 20 75 73 69 6e 67 20 61 |ape mode| using a|
|000055e0| 20 63 6f 6d 62 69 6e 61 | 74 69 6f 6e 20 6f 66 20 | combina|tion of |
|000055f0| 7b 5c 74 74 20 74 72 61 | 6e 73 6c 61 74 65 28 29 |{\tt tra|nslate()|
|00005600| 3b 7d 20 61 6e 64 20 0d | 0a 20 7b 5c 74 74 20 72 |;} and .|. {\tt r|
|00005610| 6f 74 61 74 65 28 29 3b | 7d 20 62 75 74 20 69 74 |otate();|} but it|
|00005620| 20 69 73 20 6d 75 63 68 | 20 65 61 73 69 65 72 20 | is much| easier |
|00005630| 74 6f 20 6a 75 73 74 20 | 73 70 65 63 69 66 79 20 |to just |specify |
|00005640| 7b 5c 74 74 20 73 65 74 | 28 50 41 47 45 5c 5f 52 |{\tt set|(PAGE\_R|
|00005650| 4f 54 2c 20 0d 0a 20 4f | 4e 29 3b 7d 5c 69 6e 64 |OT, .. O|N);}\ind|
|00005660| 65 78 7b 73 65 74 2c 20 | 50 41 47 45 5c 5f 52 4f |ex{set, |PAGE\_RO|
|00005670| 54 7d 5c 69 6e 64 65 78 | 7b 6c 61 6e 64 73 63 61 |T}\index|{landsca|
|00005680| 70 65 7d 20 61 74 20 74 | 68 65 20 74 6f 70 20 6f |pe} at t|he top o|
|00005690| 66 20 74 68 65 20 66 69 | 6c 65 20 61 66 74 65 72 |f the fi|le after|
|000056a0| 20 0d 0a 20 7b 5c 74 74 | 20 6d 61 69 6e 28 29 7d | .. {\tt| main()}|
|000056b0| 2e 20 0d 0a 0d 0a 20 49 | 74 20 69 73 20 73 6f 6d |. .... I|t is som|
|000056c0| 65 74 69 6d 65 73 20 63 | 6f 6e 76 65 6e 69 65 6e |etimes c|onvenien|
|000056d0| 74 20 74 6f 20 63 68 61 | 6e 67 65 20 74 68 65 20 |t to cha|nge the |
|000056e0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 6f 66 20 74 |coordina|tes of t|
|000056f0| 68 65 20 70 61 67 65 20 | 74 6f 20 0d 0a 20 6d 61 |he page |to .. ma|
|00005700| 74 63 68 5c 69 6e 64 65 | 78 7b 63 6d 61 74 63 68 |tch\inde|x{cmatch|
|00005710| 7d 20 74 68 6f 73 65 20 | 75 73 65 64 20 74 6f 20 |} those |used to |
|00005720| 64 72 61 77 20 64 61 74 | 61 20 77 69 74 68 69 6e |draw dat|a within|
|00005730| 20 74 68 65 20 61 78 65 | 73 20 62 6f 78 2e 20 54 | the axe|s box. T|
|00005740| 68 69 73 20 63 61 6e 20 | 0d 0a 20 62 65 20 75 73 |his can |.. be us|
|00005750| 65 66 75 6c 20 66 6f 72 | 20 61 64 64 69 6e 67 20 |eful for| adding |
|00005760| 6c 61 62 65 6c 73 20 74 | 6f 20 66 65 61 74 75 72 |labels t|o featur|
|00005770| 65 73 20 69 6e 20 74 68 | 65 20 0d 0a 20 64 61 74 |es in th|e .. dat|
|00005780| 61 2e 20 54 68 69 73 20 | 63 6f 75 6c 64 20 62 65 |a. This |could be|
|00005790| 20 64 6f 6e 65 20 75 73 | 69 6e 67 20 7b 5c 74 74 | done us|ing {\tt|
|000057a0| 20 74 72 61 6e 73 6c 61 | 74 65 28 29 3b 7d 20 61 | transla|te();} a|
|000057b0| 6e 64 20 7b 5c 74 74 20 | 73 63 61 6c 65 28 29 3b |nd {\tt |scale();|
|000057c0| 7d 20 62 75 74 20 0d 0a | 20 69 73 20 6d 75 63 68 |} but ..| is much|
|000057d0| 20 6d 6f 72 65 20 65 61 | 73 69 6c 79 20 61 63 68 | more ea|sily ach|
|000057e0| 69 65 76 65 64 20 77 69 | 74 68 20 74 68 65 20 66 |ieved wi|th the f|
|000057f0| 75 6e 63 74 69 6f 6e 20 | 7b 5c 74 74 20 63 6d 61 |unction |{\tt cma|
|00005800| 74 63 68 28 4f 4e 29 3b | 7d 20 69 6e 20 74 68 65 |tch(ON);|} in the|
|00005810| 20 0d 0a 20 63 6f 64 65 | 20 6f 72 20 74 68 65 20 | .. code| or the |
|00005820| 63 6f 6f 72 64 69 6e 61 | 74 65 20 6d 61 74 63 68 |coordina|te match|
|00005830| 20 6d 65 6e 75 20 63 68 | 6f 69 63 65 20 69 6e 20 | menu ch|oice in |
|00005840| 74 68 65 20 6d 69 73 63 | 20 6d 65 6e 75 2e 20 54 |the misc| menu. T|
|00005850| 68 65 20 6d 65 6e 75 20 | 62 75 74 74 6f 6e 20 0d |he menu |button .|
|00005860| 0a 20 69 73 20 61 20 74 | 6f 67 67 6c 65 20 61 6e |. is a t|oggle an|
|00005870| 64 20 61 6c 74 65 72 6e | 61 74 65 6c 79 20 74 75 |d altern|ately tu|
|00005880| 72 6e 73 20 6f 6e 20 61 | 6e 64 20 6f 66 66 20 74 |rns on a|nd off t|
|00005890| 68 65 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 6d 61 |he coord|inate ma|
|000058a0| 74 63 68 69 6e 67 2e 20 | 49 66 20 0d 0a 20 74 68 |tching. |If .. th|
|000058b0| 65 72 65 20 61 72 65 20 | 6d 75 6c 74 69 70 6c 65 |ere are |multiple|
|000058c0| 20 61 78 65 73 20 62 6f | 78 65 73 20 69 6e 20 61 | axes bo|xes in a|
|000058d0| 20 66 69 67 75 72 65 20 | 74 68 65 20 6c 61 73 74 | figure |the last|
|000058e0| 20 64 72 61 77 6e 20 6f | 6e 65 20 69 73 20 75 73 | drawn o|ne is us|
|000058f0| 65 64 20 74 6f 20 0d 0a | 20 6d 61 74 63 68 20 74 |ed to ..| match t|
|00005900| 6f 2e 20 54 68 69 73 20 | 6d 61 79 20 62 65 20 63 |o. This |may be c|
|00005910| 68 61 6e 67 65 64 20 62 | 79 20 68 69 67 68 20 6c |hanged b|y high l|
|00005920| 69 67 68 74 69 6e 67 20 | 61 20 64 69 66 66 65 72 |ighting |a differ|
|00005930| 65 6e 74 20 61 78 65 73 | 20 62 6f 78 20 75 73 69 |ent axes| box usi|
|00005940| 6e 67 20 0d 0a 20 74 68 | 65 20 72 69 67 68 74 20 |ng .. th|e right |
|00005950| 6d 6f 75 73 65 20 62 75 | 74 74 6f 6e 2e 20 0d 0a |mouse bu|tton. ..|
+--------+-------------------------+-------------------------+--------+--------+