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
| data
| 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| 5c 63 68 61 70 74 65 72 | 7b 53 70 6c 6f 74 20 4c |\chapter|{Splot L|
|00000010| 69 62 72 61 72 79 20 46 | 75 6e 63 74 69 6f 6e 73 |ibrary F|unctions|
|00000020| 7d 20 0d 0a 0d 0a 57 68 | 61 74 20 66 6f 6c 6c 6f |} ....Wh|at follo|
|00000030| 77 73 20 69 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |ws is a |list of |
|00000040| 74 68 65 20 62 75 69 6c | 74 20 69 6e 20 6c 69 62 |the buil|t in lib|
|00000050| 72 61 72 79 20 66 75 6e | 63 74 69 6f 6e 73 2e 20 |rary fun|ctions. |
|00000060| 54 68 69 73 20 0d 0a 64 | 6f 63 75 6d 65 6e 74 20 |This ..d|ocument |
|00000070| 64 6f 65 73 20 6e 6f 74 | 20 69 6e 63 6c 75 64 65 |does not| include|
|00000080| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | informa|tion on |
|00000090| 43 5c 69 6e 64 65 78 7b | 43 7d 20 69 6e 20 67 65 |C\index{|C} in ge|
|000000a0| 6e 65 72 61 6c 20 6f 72 | 20 64 65 74 61 69 6c 73 |neral or| details|
|000000b0| 20 6f 66 20 74 68 65 20 | 0d 0a 65 64 69 74 6f 72 | of the |..editor|
|000000c0| 20 75 73 61 67 65 2e 20 | 45 64 69 74 6f 72 20 64 | usage. |Editor d|
|000000d0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 69 73 20 |ocumenta|tion is |
|000000e0| 66 6f 75 6e 64 20 69 6e | 20 63 68 61 70 74 65 72 |found in| chapter|
|000000f0| 20 5c 72 65 66 7b 63 68 | 61 70 3a 65 64 69 74 7d | \ref{ch|ap:edit}|
|00000100| 20 61 6e 64 20 43 20 0d | 0a 69 6e 66 6f 72 6d 61 | and C .|.informa|
|00000110| 74 69 6f 6e 20 63 61 6e | 20 62 65 20 66 6f 75 6e |tion can| be foun|
|00000120| 64 20 69 6e 20 61 6e 79 | 20 6e 75 6d 62 65 72 20 |d in any| number |
|00000130| 6f 66 20 72 65 61 64 69 | 6c 79 20 61 76 61 69 6c |of readi|ly avail|
|00000140| 61 62 6c 65 20 74 65 78 | 74 73 2e 20 0d 0a 0d 0a |able tex|ts. ....|
|00000150| 5c 73 65 63 74 69 6f 6e | 7b 44 72 61 77 69 6e 67 |\section|{Drawing|
|00000160| 20 4c 69 62 72 61 72 79 | 20 52 65 66 65 72 65 6e | Library| Referen|
|00000170| 63 65 7d 0d 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |ce}..\su|bsection|
|00000180| 7b 44 72 61 77 69 6e 67 | 20 46 75 6e 63 74 69 6f |{Drawing| Functio|
|00000190| 6e 73 7d 5c 69 6e 64 65 | 78 7b 64 72 61 77 69 6e |ns}\inde|x{drawin|
|000001a0| 67 20 66 75 6e 63 74 69 | 6f 6e 73 7d 0d 0a 0d 0a |g functi|ons}....|
|000001b0| 5c 76 73 70 61 63 65 7b | 33 6d 6d 7d 0d 0a 0d 0a |\vspace{|3mm}....|
|000001c0| 5c 6e 6f 69 6e 64 65 6e | 74 0d 0a 76 6f 69 64 20 |\noinden|t..void |
|000001d0| 7b 5c 62 66 20 61 62 6f | 78 7d 28 64 6f 75 62 6c |{\bf abo|x}(doubl|
|000001e0| 65 20 78 73 69 2c 20 64 | 6f 75 62 6c 65 20 79 73 |e xsi, d|ouble ys|
|000001f0| 69 2c 20 64 6f 75 62 6c | 65 20 78 6f 72 69 67 2c |i, doubl|e xorig,|
|00000200| 20 64 6f 75 62 6c 65 20 | 79 6f 72 69 67 29 3b 20 | double |yorig); |
|00000210| 0d 0a 5c 69 6e 64 65 78 | 7b 61 62 6f 78 7d 20 0d |..\index|{abox} .|
|00000220| 0a 5c 62 65 67 69 6e 7b | 71 75 6f 74 65 7d 0d 0a |.\begin{|quote}..|
|00000230| 20 20 0d 0a 20 20 20 20 | 20 20 20 20 41 64 64 73 | .. | Adds|
|00000240| 20 61 6e 20 61 78 65 73 | 20 62 6f 78 20 74 6f 20 | an axes| box to |
|00000250| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 61 74 68 |the curr|ent path|
|00000260| 2e 20 54 68 65 20 62 6f | 78 20 69 73 20 64 72 61 |. The bo|x is dra|
|00000270| 77 6e 20 77 69 74 68 20 | 61 20 73 69 7a 65 20 0d |wn with |a size .|
|00000280| 0a 6f 66 20 78 73 69 20 | 62 79 20 79 73 69 20 61 |.of xsi |by ysi a|
|00000290| 6e 64 20 63 65 6e 74 65 | 72 65 64 20 6f 6e 20 74 |nd cente|red on t|
|000002a0| 68 65 20 70 61 67 65 2e | 20 4e 6f 20 69 6e 74 65 |he page.| No inte|
|000002b0| 72 6e 61 6c 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |rnal coo|rdinate |
|000002c0| 73 79 73 74 65 6d 20 69 | 73 20 0d 0a 73 65 74 20 |system i|s ..set |
|000002d0| 75 70 2e 20 55 73 65 20 | 61 73 63 61 6c 65 28 29 |up. Use |ascale()|
|000002e0| 20 66 6f 72 20 74 68 69 | 73 20 6f 72 20 75 73 65 | for thi|s or use|
|000002f0| 20 61 78 65 73 5c 5f 62 | 6f 78 28 29 20 74 6f 20 | axes\_b|ox() to |
|00000300| 63 6f 6d 62 69 6e 65 20 | 62 6f 74 68 20 66 75 6e |combine |both fun|
|00000310| 63 74 69 6f 6e 73 2e 20 | 0d 0a 54 68 65 20 6c 61 |ctions. |..The la|
|00000320| 73 74 20 74 77 6f 20 70 | 61 72 61 6d 65 74 65 72 |st two p|arameter|
|00000330| 73 20 61 72 65 20 6f 70 | 74 69 6f 6e 61 6c 20 61 |s are op|tional a|
|00000340| 6e 64 20 69 66 20 70 72 | 65 73 65 6e 74 2c 20 73 |nd if pr|esent, s|
|00000350| 70 65 63 69 66 79 20 74 | 68 65 20 70 6f 73 69 74 |pecify t|he posit|
|00000360| 69 6f 6e 20 6f 66 20 0d | 0a 74 68 65 20 61 78 65 |ion of .|.the axe|
|00000370| 73 20 6f 72 69 67 69 6e | 20 72 65 6c 61 74 69 76 |s origin| relativ|
|00000380| 65 20 74 6f 20 74 68 65 | 20 70 61 67 65 20 6f 72 |e to the| page or|
|00000390| 69 67 69 6e 2e 20 46 6f | 72 20 74 68 65 20 6c 61 |igin. Fo|r the la|
|000003a0| 73 74 20 74 77 6f 20 70 | 61 72 61 6d 65 74 65 72 |st two p|arameter|
|000003b0| 73 20 0d 0a 74 68 65 20 | 73 70 65 63 69 61 6c 20 |s ..the |special |
|000003c0| 63 6f 6e 73 74 61 6e 74 | 73 20 58 43 45 4e 54 45 |constant|s XCENTE|
|000003d0| 52 20 61 6e 64 20 59 43 | 45 4e 54 45 52 20 63 61 |R and YC|ENTER ca|
|000003e0| 6e 20 62 65 20 75 73 65 | 64 20 66 6f 72 20 74 68 |n be use|d for th|
|000003f0| 65 20 78 20 6f 72 20 79 | 20 0d 0a 70 6f 73 69 74 |e x or y| ..posit|
|00000400| 69 6f 6e 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 72 |ion coor|dinate r|
|00000410| 65 73 70 65 63 74 69 76 | 65 6c 79 20 61 6e 64 20 |espectiv|ely and |
|00000420| 77 69 6c 6c 20 63 61 75 | 73 65 20 74 68 65 20 61 |will cau|se the a|
|00000430| 78 65 73 20 62 6f 78 20 | 74 6f 20 62 65 20 63 65 |xes box |to be ce|
|00000440| 6e 74 65 72 65 64 20 0d | 0a 6f 6e 20 74 68 65 20 |ntered .|.on the |
|00000450| 70 61 67 65 20 61 6c 6f | 6e 67 20 74 68 61 74 20 |page alo|ng that |
|00000460| 61 78 69 73 2e 20 55 73 | 69 6e 67 20 62 6f 74 68 |axis. Us|ing both|
|00000470| 20 58 43 45 4e 54 45 52 | 20 61 6e 64 20 59 43 45 | XCENTER| and YCE|
|00000480| 4e 54 45 52 20 69 73 20 | 65 71 75 69 76 61 6c 65 |NTER is |equivale|
|00000490| 6e 74 20 0d 0a 74 6f 20 | 74 68 65 20 64 65 66 61 |nt ..to |the defa|
|000004a0| 75 6c 74 20 62 65 68 61 | 76 69 6f 75 72 20 77 69 |ult beha|viour wi|
|000004b0| 74 68 20 74 68 65 20 6c | 61 73 74 20 74 77 6f 20 |th the l|ast two |
|000004c0| 70 61 72 61 6d 65 74 65 | 72 73 20 61 62 73 65 6e |paramete|rs absen|
|000004d0| 74 2e 20 0d 0a 61 62 6f | 78 28 29 20 69 73 20 69 |t. ..abo|x() is i|
|000004e0| 6d 70 6c 69 63 69 74 6c | 79 20 73 74 72 6f 6b 65 |mplicitl|y stroke|
|000004f0| 64 2e 0d 0a 5c 65 6e 64 | 7b 71 75 6f 74 65 7d 0d |d...\end|{quote}.|
|00000500| 0a 0d 0a 5c 76 73 70 61 | 63 65 7b 33 6d 6d 7d 0d |...\vspa|ce{3mm}.|
|00000510| 0a 0d 0a 5c 6e 6f 69 6e | 64 65 6e 74 0d 0a 76 6f |...\noin|dent..vo|
|00000520| 69 64 20 7b 5c 62 66 20 | 61 6c 69 6e 65 74 6f 7d |id {\bf |alineto}|
|00000530| 20 28 64 6f 75 62 6c 65 | 20 6c 65 6e 2c 20 64 6f | (double| len, do|
|00000540| 75 62 6c 65 20 61 6e 67 | 29 3b 0d 0a 5c 69 6e 64 |uble ang|);..\ind|
|00000550| 65 78 7b 61 6c 69 6e 65 | 74 6f 7d 0d 0a 5c 62 65 |ex{aline|to}..\be|
|00000560| 67 69 6e 7b 71 75 6f 74 | 65 7d 0d 0a 20 20 20 20 |gin{quot|e}.. |
|00000570| 20 20 20 20 41 64 64 73 | 20 61 20 6c 69 6e 65 20 | Adds| a line |
|00000580| 6f 66 20 6c 65 6e 67 74 | 68 20 6c 65 6e 20 61 74 |of lengt|h len at|
|00000590| 20 61 6e 20 61 6e 67 6c | 65 20 6f 66 20 61 6e 67 | an angl|e of ang|
|000005a0| 20 77 69 74 68 20 72 65 | 73 70 65 63 74 20 74 6f | with re|spect to|
|000005b0| 20 74 68 65 20 0d 0a 70 | 72 65 76 69 6f 75 73 20 | the ..p|revious |
|000005c0| 6c 69 6e 65 20 74 6f 20 | 74 68 65 20 63 75 72 72 |line to |the curr|
|000005d0| 65 6e 74 20 70 61 74 68 | 2e 20 47 65 6e 65 72 61 |ent path|. Genera|
|000005e0| 74 65 73 20 61 6e 20 65 | 72 72 6f 72 20 69 66 20 |tes an e|rror if |
|000005f0| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 0d 0a 70 72 |there is| no ..pr|
|00000600| 65 76 69 6f 75 73 20 6c | 69 6e 65 20 69 6e 20 74 |evious l|ine in t|
|00000610| 68 65 20 63 75 72 72 65 | 6e 74 20 70 61 74 68 2e |he curre|nt path.|
|00000620| 20 0d 0a 5c 65 6e 64 7b | 71 75 6f 74 65 7d 0d 0a | ..\end{|quote}..|
|00000630| 0d 0a 5c 76 73 70 61 63 | 65 7b 33 6d 6d 7d 0d 0a |..\vspac|e{3mm}..|
|00000640| 0d 0a 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 76 6f 69 |..\noind|ent..voi|
|00000650| 64 20 7b 5c 62 66 20 61 | 72 63 7d 28 64 6f 75 62 |d {\bf a|rc}(doub|
|00000660| 6c 65 20 78 63 65 6e 2c | 20 64 6f 75 62 6c 65 20 |le xcen,| double |
|00000670| 79 63 65 6e 2c 20 64 6f | 75 62 6c 65 20 72 61 64 |ycen, do|uble rad|
|00000680| 2c 20 64 6f 75 62 6c 65 | 20 61 6c 70 68 61 2c 20 |, double| alpha, |
|00000690| 64 6f 75 62 6c 65 20 62 | 65 74 61 29 3b 0d 0a 5c |double b|eta);..\|
|000006a0| 69 6e 64 65 78 7b 61 72 | 63 7d 0d 0a 5c 62 65 67 |index{ar|c}..\beg|
|000006b0| 69 6e 7b 71 75 6f 74 65 | 7d 0d 0a 20 20 20 20 20 |in{quote|}.. |
|000006c0| 20 20 20 41 64 64 73 20 | 61 20 63 69 72 63 75 6c | Adds |a circul|
|000006d0| 61 72 20 61 72 63 20 6f | 66 20 72 61 64 69 75 73 |ar arc o|f radius|
|000006e0| 20 72 61 64 20 63 65 6e | 74 65 72 65 64 20 61 74 | rad cen|tered at|
|000006f0| 20 28 78 63 65 6e 2c 20 | 79 63 65 6e 29 20 74 6f | (xcen, |ycen) to|
|00000700| 20 74 68 65 20 0d 0a 63 | 75 72 72 65 6e 74 20 70 | the ..c|urrent p|
|00000710| 61 74 68 2e 20 54 68 65 | 20 73 74 61 72 74 69 6e |ath. The| startin|
|00000720| 67 20 61 6e 67 6c 65 20 | 69 73 20 61 6c 70 68 61 |g angle |is alpha|
|00000730| 20 61 6e 64 20 74 68 65 | 20 73 74 6f 70 70 69 6e | and the| stoppin|
|00000740| 67 20 61 6e 67 6c 65 20 | 69 73 20 62 65 74 61 2e |g angle |is beta.|
|00000750| 20 0d 0a 54 68 65 20 61 | 72 63 20 69 73 20 64 72 | ..The a|rc is dr|
|00000760| 61 77 6e 20 69 6e 20 74 | 68 65 20 63 6f 75 6e 74 |awn in t|he count|
|00000770| 65 72 20 63 6c 6f 63 6b | 77 69 73 65 20 64 69 72 |er clock|wise dir|
|00000780| 65 63 74 69 6f 6e 2e 20 | 41 20 73 74 72 61 69 67 |ection. |A straig|
|00000790| 68 74 20 6c 69 6e 65 20 | 0d 0a 73 65 63 74 69 6f |ht line |..sectio|
|000007a0| 6e 20 77 69 6c 6c 20 62 | 65 20 61 64 64 65 64 20 |n will b|e added |
|000007b0| 66 72 6f 6d 20 74 68 65 | 20 70 72 65 76 69 6f 75 |from the| previou|
|000007c0| 73 20 63 75 72 72 65 6e | 74 20 70 6f 69 6e 74 20 |s curren|t point |
|000007d0| 69 66 20 61 6e 79 20 74 | 6f 20 74 68 65 20 0d 0a |if any t|o the ..|
|000007e0| 73 74 61 72 74 69 6e 67 | 20 70 6f 69 6e 74 20 6f |starting| point o|
|000007f0| 66 20 74 68 65 20 61 72 | 63 2e 20 0d 0a 5c 65 6e |f the ar|c. ..\en|
|00000800| 64 7b 71 75 6f 74 65 7d | 0d 0a 0d 0a 5c 6e 6f 69 |d{quote}|....\noi|
|00000810| 6e 64 65 6e 74 0d 0a 76 | 6f 69 64 20 7b 5c 62 66 |ndent..v|oid {\bf|
|00000820| 20 61 72 63 6e 7d 28 64 | 6f 75 62 6c 65 20 78 63 | arcn}(d|ouble xc|
|00000830| 65 6e 2c 20 64 6f 75 62 | 6c 65 20 79 63 65 6e 2c |en, doub|le ycen,|
|00000840| 20 64 6f 75 62 6c 65 20 | 72 61 64 2c 20 64 6f 75 | double |rad, dou|
|00000850| 62 6c 65 20 61 6c 70 68 | 61 2c 20 64 6f 75 62 6c |ble alph|a, doubl|
|00000860| 65 20 62 65 74 61 29 3b | 0d 0a 5c 62 65 67 69 6e |e beta);|..\begin|
|00000870| 7b 71 75 6f 74 65 7d 0d | 0a 20 20 20 20 20 20 20 |{quote}.|. |
|00000880| 20 41 64 64 73 20 61 20 | 63 69 72 63 75 6c 61 72 | Adds a |circular|
|00000890| 20 61 72 63 20 6f 66 20 | 72 61 64 69 75 73 20 72 | arc of |radius r|
|000008a0| 61 64 20 63 65 6e 74 65 | 72 65 64 20 61 74 20 28 |ad cente|red at (|
|000008b0| 78 63 65 6e 2c 20 79 63 | 65 6e 29 20 74 6f 20 74 |xcen, yc|en) to t|
|000008c0| 68 65 20 0d 0a 63 75 72 | 72 65 6e 74 20 70 61 74 |he ..cur|rent pat|
|000008d0| 68 2e 20 54 68 65 20 73 | 74 61 72 74 69 6e 67 20 |h. The s|tarting |
|000008e0| 61 6e 67 6c 65 20 69 73 | 20 61 6c 70 68 61 20 61 |angle is| alpha a|
|000008f0| 6e 64 20 74 68 65 20 73 | 74 6f 70 70 69 6e 67 20 |nd the s|topping |
|00000900| 61 6e 67 6c 65 20 69 73 | 20 62 65 74 61 2e 20 0d |angle is| beta. .|
|00000910| 0a 54 68 65 20 61 72 63 | 20 69 73 20 64 72 61 77 |.The arc| is draw|
|00000920| 6e 20 69 6e 20 74 68 65 | 20 63 6c 6f 63 6b 77 69 |n in the| clockwi|
|00000930| 73 65 20 64 69 72 65 63 | 74 69 6f 6e 2e 20 41 20 |se direc|tion. A |
|00000940| 73 74 72 61 69 67 68 74 | 20 6c 69 6e 65 20 73 65 |straight| line se|
|00000950| 63 74 69 6f 6e 20 77 69 | 6c 6c 20 0d 0a 62 65 20 |ction wi|ll ..be |
|00000960| 61 64 64 65 64 20 66 72 | 6f 6d 20 74 68 65 20 70 |added fr|om the p|
|00000970| 72 65 76 69 6f 75 73 20 | 63 75 72 72 65 6e 74 20 |revious |current |
|00000980| 70 6f 69 6e 74 20 69 66 | 20 61 6e 79 20 74 6f 20 |point if| any to |
|00000990| 74 68 65 20 73 74 61 72 | 74 69 6e 67 20 70 6f 69 |the star|ting poi|
|000009a0| 6e 74 20 6f 66 20 0d 0a | 74 68 65 20 61 72 63 2e |nt of ..|the arc.|
|000009b0| 20 45 78 61 63 74 6c 79 | 20 61 73 20 61 72 63 28 | Exactly| as arc(|
|000009c0| 29 20 62 75 74 20 64 72 | 61 77 73 20 74 68 65 20 |) but dr|aws the |
|000009d0| 61 72 63 20 69 6e 20 74 | 68 65 20 6f 70 70 6f 73 |arc in t|he oppos|
|000009e0| 69 74 65 20 64 69 72 65 | 63 74 69 6f 6e 2e 20 0d |ite dire|ction. .|
|000009f0| 0a 5c 65 6e 64 7b 71 75 | 6f 74 65 7d 0d 0a 0d 0a |.\end{qu|ote}....|
|00000a00| 5c 76 73 70 61 63 65 7b | 33 6d 6d 7d 0d 0a 0d 0a |\vspace{|3mm}....|
|00000a10| 5c 6e 6f 69 6e 64 65 6e | 74 0d 0a 76 6f 69 64 20 |\noinden|t..void |
|00000a20| 7b 5c 62 66 20 61 72 63 | 74 6f 7d 28 64 6f 75 62 |{\bf arc|to}(doub|
|00000a30| 6c 65 20 78 31 2c 20 64 | 6f 75 62 6c 65 20 79 31 |le x1, d|ouble y1|
|00000a40| 2c 20 64 6f 75 62 6c 65 | 20 78 32 2c 20 64 6f 75 |, double| x2, dou|
|00000a50| 62 6c 65 20 79 32 2c 20 | 64 6f 75 62 6c 65 20 72 |ble y2, |double r|
|00000a60| 61 64 29 3b 0d 0a 5c 62 | 65 67 69 6e 7b 71 75 6f |ad);..\b|egin{quo|
|00000a70| 74 65 7d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |te} | |
|00000a80| 0d 0a 20 20 20 20 20 20 | 20 20 41 64 64 73 20 61 |.. | Adds a|
|00000a90| 20 63 69 72 63 75 6c 61 | 72 20 61 72 63 20 6f 66 | circula|r arc of|
|00000aa0| 20 72 61 64 69 75 73 20 | 72 61 64 20 74 6f 20 74 | radius |rad to t|
|00000ab0| 68 65 20 63 75 72 72 65 | 6e 74 20 70 61 74 68 2e |he curre|nt path.|
|00000ac0| 20 54 68 65 20 63 65 6e | 74 65 72 20 0d 0a 61 6e | The cen|ter ..an|
|00000ad0| 64 20 61 6e 67 6c 65 73 | 20 61 72 65 20 63 68 6f |d angles| are cho|
|00000ae0| 73 65 6e 20 73 6f 20 74 | 68 61 74 20 74 68 65 20 |sen so t|hat the |
|00000af0| 61 72 63 20 69 73 20 74 | 61 6e 67 65 6e 74 20 74 |arc is t|angent t|
|00000b00| 6f 20 74 68 65 20 6c 69 | 6e 65 20 66 6f 72 6d 65 |o the li|ne forme|
|00000b10| 64 20 62 79 20 0d 0a 28 | 78 31 2c 79 31 29 20 61 |d by ..(|x1,y1) a|
|00000b20| 6e 64 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 |nd the c|urrent p|
|00000b30| 6f 69 6e 74 20 61 74 20 | 69 74 73 20 73 74 61 72 |oint at |its star|
|00000b40| 74 20 61 6e 64 20 74 61 | 6e 67 65 6e 74 20 74 6f |t and ta|ngent to|
|00000b50| 20 74 68 65 20 6c 69 6e | 65 20 28 78 31 2c 79 31 | the lin|e (x1,y1|
|00000b60| 29 20 0d 0a 2d 20 28 78 | 32 2c 79 32 29 20 61 74 |) ..- (x|2,y2) at|
|00000b70| 20 69 74 73 20 65 6e 64 | 20 70 6f 69 6e 74 2e 20 | its end| point. |
|00000b80| 41 20 73 74 72 61 69 67 | 68 74 20 6c 69 6e 65 20 |A straig|ht line |
|00000b90| 73 65 67 6d 65 6e 74 20 | 69 73 20 61 64 64 65 64 |segment |is added|
|00000ba0| 20 66 72 6f 6d 20 74 68 | 65 20 0d 0a 63 75 72 72 | from th|e ..curr|
|00000bb0| 65 6e 74 20 70 6f 69 6e | 74 20 74 6f 20 74 68 65 |ent poin|t to the|
|00000bc0| 20 73 74 61 72 74 20 6f | 66 20 74 68 65 20 61 72 | start o|f the ar|
|00000bd0| 63 2e 20 41 6e 20 65 72 | 72 6f 72 20 69 73 20 67 |c. An er|ror is g|
|00000be0| 65 6e 65 72 61 74 65 64 | 20 69 73 20 74 68 65 72 |enerated| is ther|
|00000bf0| 65 20 69 73 20 6e 6f 20 | 0d 0a 63 75 72 72 65 6e |e is no |..curren|
|00000c00| 74 20 70 6f 69 6e 74 2e | 20 0d 0a 5c 65 6e 64 7b |t point.| ..\end{|
|00000c10| 71 75 6f 74 65 7d 0d 0a | 0d 0a 0d 0a 5c 76 73 70 |quote}..|....\vsp|
|00000c20| 61 63 65 7b 33 6d 6d 7d | 0d 0a 0d 0a 5c 6e 6f 69 |ace{3mm}|....\noi|
|00000c30| 6e 64 65 6e 74 0d 0a 76 | 6f 69 64 20 7b 5c 62 66 |ndent..v|oid {\bf|
|00000c40| 20 61 72 72 6f 77 74 6f | 7d 28 64 6f 75 62 6c 65 | arrowto|}(double|
|00000c50| 20 78 2c 64 6f 75 62 6c | 65 20 79 2c 2e 2e 2e 29 | x,doubl|e y,...)|
|00000c60| 3b 20 0d 0a 5c 69 6e 64 | 65 78 7b 61 72 72 6f 77 |; ..\ind|ex{arrow|
|00000c70| 74 6f 7d 0d 0a 5c 62 65 | 67 69 6e 7b 71 75 6f 74 |to}..\be|gin{quot|
|00000c80| 65 7d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0d |e} | .|
|00000c90| 0a 20 20 0d 0a 20 41 64 | 64 73 20 61 20 6c 69 6e |. .. Ad|ds a lin|
|00000ca0| 65 20 73 65 67 6d 65 6e | 74 20 74 6f 20 74 68 65 |e segmen|t to the|
|00000cb0| 20 63 75 72 72 65 6e 74 | 20 70 61 74 68 20 66 72 | current| path fr|
|00000cc0| 6f 6d 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 0d |om the c|urrent .|
|00000cd0| 0a 20 70 6f 69 6e 74 20 | 74 6f 20 28 78 2c 79 29 |. point |to (x,y)|
|00000ce0| 2e 20 54 68 65 20 6c 69 | 6e 65 20 69 73 20 74 65 |. The li|ne is te|
|00000cf0| 72 6d 69 6e 61 74 65 64 | 20 62 79 20 64 72 61 77 |rminated| by draw|
|00000d00| 69 6e 67 20 61 6e 20 61 | 72 72 6f 77 20 0d 0a 20 |ing an a|rrow .. |
|00000d10| 68 65 61 64 20 6f 72 69 | 65 6e 74 65 64 20 69 6e |head ori|ented in|
|00000d20| 20 74 68 65 20 64 69 72 | 65 63 74 69 6f 6e 20 6f | the dir|ection o|
|00000d30| 66 20 74 68 65 20 6c 69 | 6e 65 2e 20 4d 6f 72 65 |f the li|ne. More|
|00000d40| 20 74 68 61 6e 20 6f 6e | 65 20 0d 0a 20 63 6f 6f | than on|e .. coo|
|00000d50| 72 64 69 6e 61 74 65 20 | 70 6f 69 6e 74 20 63 61 |rdinate |point ca|
|00000d60| 6e 20 62 65 20 73 70 65 | 63 69 66 69 65 64 20 69 |n be spe|cified i|
|00000d70| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 69 6e |n the co|mmand in|
|00000d80| 20 77 68 69 63 68 20 0d | 0a 20 63 61 73 65 20 61 | which .|. case a|
|00000d90| 20 73 65 72 69 65 73 20 | 6f 66 20 6c 69 6e 65 20 | series |of line |
|00000da0| 73 65 67 6d 65 6e 74 73 | 20 74 65 72 6d 69 6e 61 |segments| termina|
|00000db0| 74 65 64 20 62 79 20 61 | 72 72 6f 77 73 20 0d 0a |ted by a|rrows ..|
|00000dc0| 20 63 6f 6e 6e 65 63 74 | 69 6e 67 20 74 68 65 20 | connect|ing the |
|00000dd0| 70 6f 69 6e 74 73 20 77 | 69 6c 6c 20 62 65 20 61 |points w|ill be a|
|00000de0| 64 64 65 64 20 74 6f 20 | 74 68 65 20 63 75 72 72 |dded to |the curr|
|00000df0| 65 6e 74 20 70 61 74 68 | 2e 20 49 66 20 0d 0a 20 |ent path|. If .. |
|00000e00| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 63 75 72 72 |there is| no curr|
|00000e10| 65 6e 74 20 70 6f 69 6e | 74 20 74 68 65 6e 20 61 |ent poin|t then a|
|00000e20| 6e 20 65 72 72 6f 72 20 | 77 69 6c 6c 20 62 65 20 |n error |will be |
|00000e30| 67 65 6e 65 72 61 74 65 | 64 2e 20 0d 0a 20 54 68 |generate|d. .. Th|
|00000e40| 65 20 73 69 7a 65 20 6f | 66 20 74 68 65 20 61 72 |e size o|f the ar|
|00000e50| 72 6f 77 20 68 65 61 64 | 20 6d 61 79 20 62 65 20 |row head| may be |
|00000e60| 63 68 61 6e 67 65 64 20 | 77 69 74 68 20 74 68 65 |changed |with the|
|00000e70| 20 0d 0a 20 73 65 74 28 | 46 4f 4e 54 57 49 44 54 | .. set(|FONTWIDT|
|00000e80| 48 2c 2e 2e 2e 29 3b 20 | 63 6f 6d 6d 61 6e 64 2e |H,...); |command.|
|00000e90| 0d 0a 5c 65 6e 64 7b 71 | 75 6f 74 65 7d 0d 0a 0d |..\end{q|uote}...|
|00000ea0| 0a 5c 76 73 70 61 63 65 | 7b 33 6d 6d 7d 0d 0a 0d |.\vspace|{3mm}...|
|00000eb0| 0a 5c 6e 6f 69 6e 64 65 | 6e 74 0d 0a 76 6f 69 64 |.\noinde|nt..void|
|00000ec0| 20 7b 5c 62 66 20 61 73 | 63 61 6c 65 7d 28 69 6e | {\bf as|cale}(in|
|00000ed0| 74 20 61 78 65 73 2c 20 | 64 6f 75 62 6c 65 20 78 |t axes, |double x|
|00000ee0| 73 74 61 72 74 2c 20 64 | 6f 75 62 6c 65 20 79 73 |start, d|ouble ys|
|00000ef0| 74 61 72 74 2c 20 64 6f | 75 62 6c 65 20 78 65 6e |tart, do|uble xen|
|00000f00| 64 2c 20 64 6f 75 62 6c | 65 20 79 65 6e 64 29 3b |d, doubl|e yend);|
|00000f10| 20 20 0d 0a 5c 69 6e 64 | 65 78 7b 61 73 63 61 6c | ..\ind|ex{ascal|
|00000f20| 65 7d 5c 69 6e 64 65 78 | 7b 73 63 61 6c 65 7d 0d |e}\index|{scale}.|
|00000f30| 0a 5c 6e 65 77 6c 69 6e | 65 0d 0a 6f 72 0d 0a 5c |.\newlin|e..or..\|
|00000f40| 6e 65 77 6c 69 6e 65 0d | 0a 5c 6e 6f 69 6e 64 65 |newline.|.\noinde|
|00000f50| 6e 74 0d 0a 76 6f 69 64 | 20 7b 5c 62 66 20 61 73 |nt..void| {\bf as|
|00000f60| 63 61 6c 65 7d 28 69 6e | 74 20 61 78 65 73 2c 20 |cale}(in|t axes, |
|00000f70| 64 6f 75 62 6c 65 20 2a | 64 61 74 61 2c 20 69 6e |double *|data, in|
|00000f80| 74 20 63 6f 6c 2c 2e 2e | 2e 29 3b 20 0d 0a 5c 62 |t col,..|.); ..\b|
|00000f90| 65 67 69 6e 7b 71 75 6f | 74 65 7d 0d 0a 0d 0a 20 |egin{quo|te}.... |
|00000fa0| 20 20 20 20 20 20 20 41 | 6e 20 69 6e 74 65 72 6e | A|n intern|
|00000fb0| 61 6c 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 73 79 |al coord|inate sy|
|00000fc0| 73 74 65 6d 20 69 73 20 | 73 65 74 20 75 70 20 66 |stem is |set up f|
|00000fd0| 6f 72 20 73 75 62 73 65 | 71 75 65 6e 74 20 70 6c |or subse|quent pl|
|00000fe0| 6f 74 74 69 6e 67 20 6f | 66 20 0d 0a 64 61 74 61 |otting o|f ..data|
|00000ff0| 20 77 69 74 68 69 6e 20 | 74 68 65 20 65 78 69 73 | within |the exis|
|00001000| 74 69 6e 67 20 61 78 65 | 73 20 62 6f 78 2e 20 54 |ting axe|s box. T|
|00001010| 68 65 20 78 20 61 78 69 | 73 20 73 74 61 72 74 20 |he x axi|s start |
|00001020| 61 6e 64 20 73 74 6f 70 | 20 76 61 6c 75 65 73 20 |and stop| values |
|00001030| 61 72 65 20 0d 0a 78 73 | 74 61 72 74 20 61 6e 64 |are ..xs|tart and|
|00001040| 20 78 65 6e 64 20 72 65 | 73 70 65 63 74 69 76 65 | xend re|spective|
|00001050| 6c 79 20 61 6e 64 20 79 | 73 74 61 72 74 2c 20 79 |ly and y|start, y|
|00001060| 65 6e 64 20 66 6f 72 20 | 74 68 65 20 79 20 61 78 |end for |the y ax|
|00001070| 69 73 2e 20 66 6f 72 20 | 74 68 65 20 79 20 0d 0a |is. for |the y ..|
|00001080| 61 78 69 73 2e 20 49 66 | 20 74 68 65 20 61 78 69 |axis. If| the axi|
|00001090| 73 20 63 68 6f 69 63 65 | 20 69 73 20 58 41 58 45 |s choice| is XAXE|
|000010a0| 53 20 6f 72 20 59 41 58 | 45 53 20 72 61 74 68 65 |S or YAX|ES rathe|
|000010b0| 72 20 74 68 61 6e 20 58 | 59 41 58 45 53 20 74 68 |r than X|YAXES th|
|000010c0| 65 6e 20 6f 6e 6c 79 20 | 74 77 6f 20 0d 0a 6e 75 |en only |two ..nu|
|000010d0| 6d 62 65 72 73 20 66 6f | 6c 6c 6f 77 20 74 68 65 |mbers fo|llow the|
|000010e0| 20 61 78 65 73 20 73 70 | 65 63 69 66 69 65 72 20 | axes sp|ecifier |
|000010f0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 66 6f 75 72 |rather t|han four|
|00001100| 2e 20 54 68 69 73 20 61 | 6c 6c 6f 77 73 20 74 68 |. This a|llows th|
|00001110| 65 20 78 20 61 6e 64 20 | 79 20 0d 0a 61 78 65 73 |e x and |y ..axes|
|00001120| 20 73 63 61 6c 65 73 20 | 74 6f 20 62 65 20 73 65 | scales |to be se|
|00001130| 74 20 69 6e 64 65 70 65 | 6e 64 65 6e 74 6c 79 20 |t indepe|ndently |
|00001140| 6f 66 20 65 61 63 68 20 | 6f 74 68 65 72 2e 20 54 |of each |other. T|
|00001150| 68 65 20 61 6c 74 65 72 | 6e 61 74 65 20 66 6f 72 |he alter|nate for|
|00001160| 6d 61 74 20 0d 0a 61 6c | 6c 6f 77 73 20 66 6f 72 |mat ..al|lows for|
|00001170| 20 61 75 74 6f 20 73 63 | 61 6c 69 6e 67 20 74 6f | auto sc|aling to|
|00001180| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 64 | the spe|cified d|
|00001190| 61 74 61 2e 20 54 68 65 | 72 65 20 63 61 6e 20 62 |ata. The|re can b|
|000011a0| 65 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |e more t|han one |
|000011b0| 0d 0a 64 61 74 61 20 61 | 72 72 61 79 20 69 6e 20 |..data a|rray in |
|000011c0| 74 68 65 20 6c 69 73 74 | 20 69 6e 20 77 68 69 63 |the list| in whic|
|000011d0| 68 20 63 61 73 65 20 74 | 68 65 20 73 63 61 6c 65 |h case t|he scale|
|000011e0| 73 20 61 72 65 20 63 68 | 6f 73 65 6e 20 73 6f 20 |s are ch|osen so |
|000011f0| 74 68 61 74 20 74 68 65 | 79 20 0d 0a 77 69 6c 6c |that the|y ..will|
|00001200| 20 61 6c 6c 20 66 69 74 | 2e 20 45 61 63 68 20 64 | all fit|. Each d|
|00001210| 61 74 61 20 61 72 72 61 | 79 20 63 61 6e 20 6f 70 |ata arra|y can op|
|00001220| 74 69 6f 6e 61 6c 6c 79 | 20 62 65 20 66 6f 6c 6c |tionally| be foll|
|00001230| 6f 77 65 64 20 62 79 20 | 6f 6e 65 20 6f 72 20 74 |owed by |one or t|
|00001240| 77 6f 20 0d 0a 69 6e 74 | 65 67 65 72 73 20 73 70 |wo ..int|egers sp|
|00001250| 65 63 69 66 79 69 6e 67 | 20 77 68 69 63 68 20 63 |ecifying| which c|
|00001260| 6f 6c 75 6d 6e 73 20 74 | 6f 20 75 73 65 20 66 6f |olumns t|o use fo|
|00001270| 72 20 74 68 65 20 78 20 | 61 6e 64 20 79 20 76 61 |r the x |and y va|
|00001280| 6c 75 65 73 2e 20 49 66 | 20 61 78 65 73 20 69 73 |lues. If| axes is|
|00001290| 20 0d 0a 6e 6f 74 20 58 | 59 41 58 45 53 20 6f 6e | ..not X|YAXES on|
|000012a0| 6c 79 20 6f 6e 65 20 69 | 6e 74 65 67 65 72 20 69 |ly one i|nteger i|
|000012b0| 73 20 61 6c 6c 6f 77 65 | 64 2e 20 0d 0a 0d 0a 5c |s allowe|d. ....\|
|000012c0| 65 6e 64 7b 71 75 6f 74 | 65 7d 0d 0a 0d 0a 5c 76 |end{quot|e}....\v|
|000012d0| 73 70 61 63 65 7b 33 6d | 6d 7d 0d 0a 0d 0a 5c 6e |space{3m|m}....\n|
|000012e0| 6f 69 6e 64 65 6e 74 0d | 0a 76 6f 69 64 20 7b 5c |oindent.|.void {\|
|000012f0| 62 66 20 61 78 65 73 5c | 5f 62 6f 78 7d 28 64 6f |bf axes\|_box}(do|
|00001300| 75 62 6c 65 20 78 73 69 | 2c 20 64 6f 75 62 6c 65 |uble xsi|, double|
|00001310| 20 79 73 69 2c 20 64 6f | 75 62 6c 65 20 78 73 74 | ysi, do|uble xst|
|00001320| 61 72 74 2c 20 64 6f 75 | 62 6c 65 20 79 73 74 61 |art, dou|ble ysta|
|00001330| 72 74 0d 0a 20 20 20 20 | 20 20 20 20 20 20 64 6f |rt.. | do|
|00001340| 75 62 6c 65 20 78 65 6e | 64 2c 20 64 6f 75 62 6c |uble xen|d, doubl|
|00001350| 65 20 79 65 6e 64 2c 20 | 64 6f 75 62 6c 65 20 78 |e yend, |double x|
|00001360| 6f 72 69 67 2c 20 64 6f | 75 62 6c 65 20 79 6f 72 |orig, do|uble yor|
|00001370| 69 67 29 3b 0d 0a 5c 69 | 6e 64 65 78 7b 61 78 65 |ig);..\i|ndex{axe|
|00001380| 73 20 62 6f 78 7d 0d 0a | 5c 62 65 67 69 6e 7b 71 |s box}..|\begin{q|
|00001390| 75 6f 74 65 7d 0d 0a 20 | 20 20 20 20 20 20 20 41 |uote}.. | A|
|000013a0| 64 64 73 20 61 6e 20 61 | 78 65 73 20 62 6f 78 20 |dds an a|xes box |
|000013b0| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 |to the c|urrent p|
|000013c0| 61 74 68 2e 20 54 68 65 | 20 62 6f 78 20 69 73 20 |ath. The| box is |
|000013d0| 64 72 61 77 6e 20 77 69 | 74 68 20 61 20 73 69 7a |drawn wi|th a siz|
|000013e0| 65 20 0d 0a 6f 66 20 78 | 73 69 20 62 79 20 79 73 |e ..of x|si by ys|
|000013f0| 69 20 61 6e 64 20 63 65 | 6e 74 65 72 65 64 20 6f |i and ce|ntered o|
|00001400| 6e 20 74 68 65 20 70 61 | 67 65 2e 20 41 6e 20 69 |n the pa|ge. An i|
|00001410| 6e 74 65 72 6e 61 6c 20 | 63 6f 6f 72 64 69 6e 61 |nternal |coordina|
|00001420| 74 65 20 73 79 73 74 65 | 6d 20 69 73 20 0d 0a 73 |te syste|m is ..s|
|00001430| 65 74 20 75 70 20 66 6f | 72 20 73 75 62 73 65 71 |et up fo|r subseq|
|00001440| 75 65 6e 74 20 70 6c 6f | 74 74 69 6e 67 20 6f 66 |uent plo|tting of|
|00001450| 20 64 61 74 61 20 77 69 | 74 68 69 6e 20 74 68 65 | data wi|thin the|
|00001460| 20 62 6f 78 2e 20 54 68 | 65 20 78 20 61 78 69 73 | box. Th|e x axis|
|00001470| 20 73 74 61 72 74 20 61 | 6e 64 20 0d 0a 73 74 6f | start a|nd ..sto|
|00001480| 70 20 76 61 6c 75 65 73 | 20 61 72 65 20 78 73 74 |p values| are xst|
|00001490| 61 72 74 20 61 6e 64 20 | 78 65 6e 64 20 72 65 73 |art and |xend res|
|000014a0| 70 65 63 74 69 76 65 6c | 79 20 61 6e 64 20 79 73 |pectivel|y and ys|
|000014b0| 74 61 72 74 2c 20 79 65 | 6e 64 20 66 6f 72 20 74 |tart, ye|nd for t|
|000014c0| 68 65 20 79 20 0d 0a 61 | 78 69 73 2e 20 66 6f 72 |he y ..a|xis. for|
|000014d0| 20 74 68 65 20 79 20 61 | 78 69 73 2e 20 54 68 65 | the y a|xis. The|
|000014e0| 20 6c 61 73 74 20 74 77 | 6f 20 70 61 72 61 6d 65 | last tw|o parame|
|000014f0| 74 65 72 73 20 61 72 65 | 20 6f 70 74 69 6f 6e 61 |ters are| optiona|
|00001500| 6c 20 61 6e 64 20 69 66 | 20 70 72 65 73 65 6e 74 |l and if| present|
|00001510| 20 0d 0a 73 70 65 63 69 | 66 79 20 74 68 65 20 70 | ..speci|fy the p|
|00001520| 6f 73 69 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 61 |osition |of the a|
|00001530| 78 65 73 20 6f 72 69 67 | 69 6e 20 72 65 6c 61 74 |xes orig|in relat|
|00001540| 69 76 65 20 74 6f 20 74 | 68 65 20 70 61 67 65 20 |ive to t|he page |
|00001550| 6f 72 69 67 69 6e 2e 20 | 46 6f 72 20 0d 0a 74 68 |origin. |For ..th|
|00001560| 65 20 6c 61 73 74 20 74 | 77 6f 20 70 61 72 61 6d |e last t|wo param|
|00001570| 65 74 65 72 73 20 74 68 | 65 20 73 70 65 63 69 61 |eters th|e specia|
|00001580| 6c 20 63 6f 6e 73 74 61 | 6e 74 73 20 58 43 45 4e |l consta|nts XCEN|
|00001590| 54 45 52 20 61 6e 64 20 | 59 43 45 4e 54 45 52 20 |TER and |YCENTER |
|000015a0| 63 61 6e 20 62 65 20 0d | 0a 75 73 65 64 20 66 6f |can be .|.used fo|
|000015b0| 72 20 74 68 65 20 78 20 | 6f 72 20 79 20 70 6f 73 |r the x |or y pos|
|000015c0| 69 74 69 6f 6e 20 63 6f | 6f 72 64 69 6e 61 74 65 |ition co|ordinate|
|000015d0| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 20 61 6e | respect|ively an|
|000015e0| 64 20 77 69 6c 6c 20 63 | 61 75 73 65 20 74 68 65 |d will c|ause the|
|000015f0| 20 0d 0a 61 78 65 73 20 | 62 6f 78 20 74 6f 20 62 | ..axes |box to b|
|00001600| 65 20 63 65 6e 74 65 72 | 65 64 20 6f 6e 20 74 68 |e center|ed on th|
|00001610| 65 20 70 61 67 65 20 61 | 6c 6f 6e 67 20 74 68 61 |e page a|long tha|
|00001620| 74 20 61 78 69 73 2e 20 | 55 73 69 6e 67 20 62 6f |t axis. |Using bo|
|00001630| 74 68 20 58 43 45 4e 54 | 45 52 20 61 6e 64 20 0d |th XCENT|ER and .|
|00001640| 0a 59 43 45 4e 54 45 52 | 20 69 73 20 65 71 75 69 |.YCENTER| is equi|
|00001650| 76 61 6c 65 6e 74 20 74 | 6f 20 74 68 65 20 64 65 |valent t|o the de|
|00001660| 66 61 75 6c 74 20 62 65 | 68 61 76 69 6f 75 72 20 |fault be|haviour |
|00001670| 77 69 74 68 20 74 68 65 | 20 6c 61 73 74 20 74 77 |with the| last tw|
|00001680| 6f 20 70 61 72 61 6d 65 | 74 65 72 73 20 0d 0a 61 |o parame|ters ..a|
|00001690| 62 73 65 6e 74 2e 20 4d | 6f 72 65 20 66 6c 65 78 |bsent. M|ore flex|
|000016a0| 69 62 69 6c 69 74 79 20 | 69 73 20 70 72 6f 76 69 |ibility |is provi|
|000016b0| 64 65 64 20 62 79 20 74 | 68 65 20 70 61 69 72 20 |ded by t|he pair |
|000016c0| 6f 66 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 62 6f |of funct|ions abo|
|000016d0| 78 28 29 20 61 6e 64 20 | 0d 0a 61 73 63 61 6c 65 |x() and |..ascale|
|000016e0| 28 29 20 77 68 69 63 68 | 20 70 72 6f 76 69 64 65 |() which| provide|
|000016f0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 61 6c 69 | the fun|ctionali|
|00001700| 74 79 20 6f 66 20 61 78 | 65 73 5c 5f 62 6f 78 28 |ty of ax|es\_box(|
|00001710| 29 20 69 6e 20 73 65 76 | 65 72 61 6c 20 73 74 65 |) in sev|eral ste|
|00001720| 70 73 2e 20 0d 0a 61 78 | 65 73 5c 5f 62 6f 78 28 |ps. ..ax|es\_box(|
|00001730| 29 20 69 73 20 69 6d 70 | 6c 69 63 69 74 6c 79 20 |) is imp|licitly |
|00001740| 73 74 72 6f 6b 65 64 2e | 0d 0a 5c 65 6e 64 7b 71 |stroked.|..\end{q|
|00001750| 75 6f 74 65 7d 0d 0a 0d | 0a 5c 76 73 70 61 63 65 |uote}...|.\vspace|
|00001760| 7b 33 6d 6d 7d 0d 0a 0d | 0a 0d 0a 5c 6e 6f 69 6e |{3mm}...|...\noin|
|00001770| 64 65 6e 74 0d 0a 76 6f | 69 64 20 7b 5c 62 66 20 |dent..vo|id {\bf |
|00001780| 62 6f 78 7d 28 64 6f 75 | 62 6c 65 20 78 31 2c 20 |box}(dou|ble x1, |
|00001790| 64 6f 75 62 6c 65 20 79 | 31 2c 20 64 6f 75 62 6c |double y|1, doubl|
|000017a0| 65 20 78 32 2c 20 64 6f | 75 62 6c 65 20 79 32 29 |e x2, do|uble y2)|
|000017b0| 3b 0d 0a 5c 69 6e 64 65 | 78 7b 62 6f 78 7d 0d 0a |;..\inde|x{box}..|
|000017c0| 5c 62 65 67 69 6e 7b 71 | 75 6f 74 65 7d 0d 0a 20 |\begin{q|uote}.. |
|000017d0| 20 20 20 20 20 20 20 41 | 64 64 73 20 61 20 62 6f | A|dds a bo|
|000017e0| 78 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |x to the| current|
|000017f0| 20 70 61 74 68 2e 20 54 | 68 65 20 74 77 6f 20 65 | path. T|he two e|
|00001800| 6e 64 20 70 6f 69 6e 74 | 73 20 6f 66 20 74 68 65 |nd point|s of the|
|00001810| 20 62 6f 78 20 61 72 65 | 20 0d 0a 28 78 31 2c 79 | box are| ..(x1,y|
|00001820| 31 29 20 61 6e 64 20 28 | 78 32 2c 79 32 29 3b 20 |1) and (|x2,y2); |
|00001830| 0d 0a 5c 65 6e 64 7b 71 | 75 6f 74 65 7d 0d 0a 0d |..\end{q|uote}...|
|00001840| 0a 5c 76 73 70 61 63 65 | 7b 33 6d 6d 7d 0d 0a 0d |.\vspace|{3mm}...|
|00001850| 0a 5c 6e 6f 69 6e 64 65 | 6e 74 0d 0a 76 6f 69 64 |.\noinde|nt..void|
|00001860| 20 7b 5c 62 66 20 63 6c | 65 61 72 7d 28 29 3b 0d | {\bf cl|ear}();.|
|00001870| 0a 5c 69 6e 64 65 78 7b | 63 6c 65 61 72 7d 0d 0a |.\index{|clear}..|
|00001880| 5c 62 65 67 69 6e 7b 71 | 75 6f 74 65 7d 0d 0a 20 |\begin{q|uote}.. |
|00001890| 20 20 20 20 20 20 20 43 | 6c 65 61 72 73 20 74 68 | C|lears th|
|000018a0| 65 20 73 63 72 65 65 6e | 20 77 68 65 6e 20 74 68 |e screen| when th|
|000018b0| 65 20 70 72 6f 67 72 61 | 6d 20 69 73 20 65 78 65 |e progra|m is exe|
|000018c0| 63 75 74 65 64 2e 20 0d | 0a 54 68 69 73 20 66 75 |cuted. .|.This fu|
|000018d0| 6e 63 74 69 6f 6e 20 73 | 68 6f 75 6c 64 20 6e 6f |nction s|hould no|
|000018e0| 74 20 62 65 20 6e 65 65 | 64 65 64 20 66 6f 72 20 |t be nee|ded for |
|000018f0| 6f 72 64 69 6e 61 72 79 | 20 70 6c 6f 74 73 2e 20 |ordinary| plots. |
|00001900| 0d 0a 5c 65 6e 64 7b 71 | 75 6f 74 65 7d 0d 0a 0d |..\end{q|uote}...|
|00001910| 0a 5c 76 73 70 61 63 65 | 7b 33 6d 6d 7d 0d 0a 0d |.\vspace|{3mm}...|
|00001920| 0a 5c 6e 6f 69 6e 64 65 | 6e 74 0d 0a 76 6f 69 64 |.\noinde|nt..void|
|00001930| 20 7b 5c 62 66 20 63 6c | 69 70 7d 28 29 0d 0a 5c | {\bf cl|ip}()..\|
|00001940| 69 6e 64 65 78 7b 63 6c | 69 70 7d 0d 0a 5c 62 65 |index{cl|ip}..\be|
|00001950| 67 69 6e 7b 71 75 6f 74 | 65 7d 0d 0a 20 20 20 20 |gin{quot|e}.. |
|00001960| 20 20 20 20 43 6f 6e 76 | 65 72 74 73 20 74 68 65 | Conv|erts the|
|00001970| 20 63 75 72 72 65 6e 74 | 6c 79 20 64 65 66 69 6e | current|ly defin|
|00001980| 65 64 20 70 61 74 68 5c | 69 6e 64 65 78 7b 70 61 |ed path\|index{pa|
|00001990| 74 68 7d 20 69 6e 74 6f | 20 61 20 63 6c 69 70 70 |th} into| a clipp|
|000019a0| 69 6e 67 20 70 61 74 68 | 2e 20 41 6c 6c 20 0d 0a |ing path|. All ..|
|000019b0| 73 75 62 73 65 71 75 65 | 6e 74 20 64 72 61 77 69 |subseque|nt drawi|
|000019c0| 6e 67 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 61 72 |ng opera|tions ar|
|000019d0| 65 20 74 68 65 6e 20 63 | 6c 69 70 70 65 64 20 61 |e then c|lipped a|
|000019e0| 67 61 69 6e 73 74 20 74 | 68 69 73 20 70 61 74 68 |gainst t|his path|
|000019f0| 20 61 6e 64 20 6f 6e 6c | 79 20 0d 0a 70 6f 72 74 | and onl|y ..port|
|00001a00| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 64 72 61 77 |ions of |the draw|
|00001a10| 69 6e 67 20 6f 6e 20 74 | 68 65 20 69 6e 73 69 64 |ing on t|he insid|
|00001a20| 65 20 6f 66 20 74 68 65 | 20 63 6c 69 70 20 70 61 |e of the| clip pa|
|00001a30| 74 68 20 61 72 65 20 64 | 69 73 70 6c 61 79 65 64 |th are d|isplayed|
|00001a40| 2e 20 57 68 61 74 20 0d | 0a 69 73 20 69 6e 73 69 |. What .|.is insi|
|00001a50| 64 65 20 61 6e 64 20 77 | 68 61 74 20 69 73 20 6f |de and w|hat is o|
|00001a60| 75 74 73 69 64 65 20 64 | 65 70 65 6e 64 73 20 6f |utside d|epends o|
|00001a70| 6e 20 77 68 65 74 68 65 | 72 20 65 76 65 6e 2d 6f |n whethe|r even-o|
|00001a80| 64 64 20 6f 72 20 6e 6f | 6e 2d 7a 65 72 6f 20 77 |dd or no|n-zero w|
|00001a90| 69 6e 64 20 0d 0a 68 61 | 73 20 62 65 65 6e 20 73 |ind ..ha|s been s|
|00001aa0| 65 6c 65 63 74 65 64 20 | 61 73 20 74 68 65 20 66 |elected |as the f|
|00001ab0| 69 6c 6c 20 72 75 6c 65 | 20 75 73 69 6e 67 20 61 |ill rule| using a|
|00001ac0| 20 73 65 74 28 29 3b 20 | 49 66 20 74 68 65 20 63 | set(); |If the c|
|00001ad0| 75 72 72 65 6e 74 20 70 | 61 74 68 20 69 73 20 0d |urrent p|ath is .|
|00001ae0| 0a 6e 6f 74 20 63 6c 6f | 73 65 64 20 74 68 65 6e |.not clo|sed then|
|00001af0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 70 61 74 | the cur|rent pat|
|00001b00| 68 20 69 73 20 66 69 72 | 73 74 20 63 6c 6f 73 65 |h is fir|st close|
|00001b10| 64 2e 20 49 66 20 74 68 | 65 72 65 20 69 73 20 6e |d. If th|ere is n|
|00001b20| 6f 20 63 75 72 72 65 6e | 74 20 0d 0a 70 61 74 68 |o curren|t ..path|
|00001b30| 20 61 6e 20 65 72 72 6f | 72 20 69 73 20 67 65 6e | an erro|r is gen|
|00001b40| 65 72 61 74 65 64 2e 20 | 63 6c 69 70 28 29 20 69 |erated. |clip() i|
|00001b50| 73 20 69 6d 70 6c 69 63 | 69 74 6c 79 20 73 74 72 |s implic|itly str|
|00001b60| 6f 6b 65 64 20 61 6e 64 | 20 74 61 6b 65 73 20 65 |oked and| takes e|
|00001b70| 66 66 65 63 74 20 69 6d | 6d 65 64 69 61 74 65 6c |ffect im|mediatel|
|00001b80| 79 2e 0d 0a 5c 65 6e 64 | 7b 71 75 6f 74 65 7d 20 |y...\end|{quote} |
|00001b90| 0d 0a 0d 0a 5c 76 73 70 | 61 63 65 7b 33 6d 6d 7d |....\vsp|ace{3mm}|
|00001ba0| 0d 0a 0d 0a 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 76 |....\noi|ndent..v|
|00001bb0| 6f 69 64 20 7b 5c 62 66 | 20 63 6c 6f 73 65 70 61 |oid {\bf| closepa|
|00001bc0| 74 68 7d 28 29 3b 0d 0a | 5c 69 6e 64 65 78 7b 63 |th}();..|\index{c|
|00001bd0| 6c 6f 73 65 70 61 74 68 | 7d 0d 0a 5c 62 65 67 69 |losepath|}..\begi|
|00001be0| 6e 7b 71 75 6f 74 65 7d | 0d 0a 20 20 20 20 20 20 |n{quote}|.. |
|00001bf0| 20 20 43 6c 6f 73 65 73 | 20 74 68 65 20 63 75 72 | Closes| the cur|
|00001c00| 72 65 6e 74 20 70 61 74 | 68 2e 20 41 20 73 74 72 |rent pat|h. A str|
|00001c10| 61 69 67 68 74 20 6c 69 | 6e 65 20 73 65 67 6d 65 |aight li|ne segme|
|00001c20| 6e 74 20 69 73 20 61 64 | 64 65 64 20 66 72 6f 6d |nt is ad|ded from|
|00001c30| 20 74 68 65 20 0d 0a 63 | 75 72 72 65 6e 74 20 70 | the ..c|urrent p|
|00001c40| 6f 69 6e 74 20 74 6f 20 | 74 68 65 20 73 74 61 72 |oint to |the star|
|00001c50| 74 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |t of the| current|
|00001c60| 20 70 61 74 68 20 61 73 | 20 73 65 74 20 62 79 20 | path as| set by |
|00001c70| 74 68 65 20 6d 6f 76 65 | 74 6f 28 29 20 6f 66 20 |the move|to() of |
|00001c80| 0d 0a 72 6d 6f 76 65 74 | 6f 28 29 20 63 6f 6d 6d |..rmovet|o() comm|
|00001c90| 61 6e 64 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |and at t|he begin|
|00001ca0| 6e 69 6e 67 20 6f 66 20 | 74 68 65 20 70 61 74 68 |ning of |the path|
|00001cb0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 2e 20 47 65 6e | definit|ion. Gen|
|00001cc0| 65 72 61 74 65 73 20 61 | 6e 20 0d 0a 65 72 72 6f |erates a|n ..erro|
|00001cd0| 72 20 69 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f |r if the|re is no|
|00001ce0| 20 63 75 72 72 65 6e 74 | 20 70 6f 69 6e 74 2e 20 | current| point. |
|00001cf0| 0d 0a 5c 65 6e 64 7b 71 | 75 6f 74 65 7d 0d 0a 0d |..\end{q|uote}...|
|00001d00| 0a 5c 76 73 70 61 63 65 | 7b 33 6d 6d 7d 0d 0a 0d |.\vspace|{3mm}...|
|00001d10| 0a 5c 6e 6f 69 6e 64 65 | 6e 74 0d 0a 76 6f 69 64 |.\noinde|nt..void|
|00001d20| 20 7b 5c 62 66 20 63 6d | 61 74 63 68 7d 28 69 6e | {\bf cm|atch}(in|
|00001d30| 74 20 6f 6e 29 3b 0d 0a | 5c 69 6e 64 65 78 7b 63 |t on);..|\index{c|
|00001d40| 6d 61 74 63 68 7d 0d 0a | 5c 62 65 67 69 6e 7b 71 |match}..|\begin{q|
|00001d50| 75 6f 74 65 7d 0d 0a 20 | 20 20 20 20 20 20 20 49 |uote}.. | I|
|00001d60| 66 20 74 68 65 20 70 61 | 73 73 65 64 20 70 61 72 |f the pa|ssed par|
|00001d70| 61 6d 65 74 65 72 20 69 | 73 20 54 52 55 45 20 74 |ameter i|s TRUE t|
|00001d80| 68 65 6e 20 69 74 20 64 | 6f 65 73 20 74 68 65 20 |hen it d|oes the |
|00001d90| 6e 65 63 65 73 73 61 72 | 79 20 0d 0a 74 72 61 6e |necessar|y ..tran|
|00001da0| 73 6c 61 74 69 6f 6e 73 | 20 61 6e 64 20 73 63 61 |slations| and sca|
|00001db0| 6c 69 6e 67 20 73 6f 20 | 74 68 61 74 20 74 68 65 |ling so |that the|
|00001dc0| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 73 79 73 74 | coordin|ate syst|
|00001dd0| 65 6d 20 66 6f 72 20 74 | 68 65 20 70 61 67 65 20 |em for t|he page |
|00001de0| 6d 61 74 63 68 65 73 20 | 0d 0a 74 68 61 74 20 75 |matches |..that u|
|00001df0| 73 65 64 20 77 69 74 68 | 69 6e 20 74 68 65 20 61 |sed with|in the a|
|00001e00| 78 65 73 5c 5f 62 6f 78 | 2e 20 41 6e 20 65 72 72 |xes\_box|. An err|
|00001e10| 6f 72 20 69 73 20 67 65 | 6e 65 72 61 74 65 64 20 |or is ge|nerated |
|00001e20| 69 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 63 |if there| is no c|
|00001e30| 75 72 72 65 6e 74 20 0d | 0a 61 78 65 73 5c 5f 62 |urrent .|.axes\_b|
|00001e40| 6f 78 2e 20 54 68 65 20 | 66 6f 6e 74 20 73 63 61 |ox. The |font sca|
|00001e50| 6c 65 20 69 73 20 63 6f | 6d 70 65 6e 73 61 74 65 |le is co|mpensate|
|00001e60| 64 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |d automa|tically |
|00001e70| 66 6f 72 20 74 68 65 20 | 63 68 61 6e 67 65 20 69 |for the |change i|
|00001e80| 6e 20 0d 0a 63 6f 6f 72 | 64 69 6e 61 74 65 20 73 |n ..coor|dinate s|
|00001e90| 79 73 74 65 6d 20 73 6f | 20 74 68 61 74 20 63 68 |ystem so| that ch|
|00001ea0| 61 72 61 63 74 65 72 73 | 20 77 69 6c 6c 20 73 74 |aracters| will st|
|00001eb0| 69 6c 6c 20 62 65 20 74 | 68 65 20 73 61 6d 65 20 |ill be t|he same |
|00001ec0| 73 69 7a 65 20 61 73 20 | 62 65 66 6f 72 65 2e 20 |size as |before. |
|00001ed0| 0d 0a 49 66 20 74 68 65 | 20 70 61 72 61 6d 65 74 |..If the| paramet|
|00001ee0| 65 72 20 69 73 20 46 41 | 4c 53 45 20 74 68 65 6e |er is FA|LSE then|
|00001ef0| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 75 6e | the pre|vious un|
|00001f00| 6d 61 74 63 68 65 64 20 | 63 6f 6f 72 64 69 6e 61 |matched |coordina|
|00001f10| 74 65 73 20 77 69 6c 6c | 20 62 65 20 0d 0a 72 65 |tes will| be ..re|
|00001f20| 73 74 6f 72 65 64 2e 20 | 49 66 20 74 68 65 72 65 |stored. |If there|
|00001f30| 20 69 73 20 6e 6f 20 70 | 61 72 61 6d 65 74 65 72 | is no p|arameter|
|00001f40| 20 54 52 55 45 20 69 73 | 20 61 73 73 75 6d 65 64 | TRUE is| assumed|
|00001f50| 2e 20 0d 0a 5c 65 6e 64 | 7b 71 75 6f 74 65 7d 0d |. ..\end|{quote}.|
|00001f60| 0a 0d 0a 5c 76 73 70 61 | 63 65 7b 33 6d 6d 7d 0d |...\vspa|ce{3mm}.|
|00001f70| 0a 0d 0a 5c 6e 6f 69 6e | 64 65 6e 74 0d 0a 76 6f |...\noin|dent..vo|
|00001f80| 69 64 20 7b 5c 62 66 20 | 63 75 72 76 65 74 6f 7d |id {\bf |curveto}|
|00001f90| 28 64 6f 75 62 6c 65 20 | 78 31 2c 20 64 6f 75 62 |(double |x1, doub|
|00001fa0| 6c 65 20 79 31 2c 20 64 | 6f 75 62 6c 65 20 78 32 |le y1, d|ouble x2|
|00001fb0| 2c 20 64 6f 75 62 6c 65 | 20 79 32 2c 20 64 6f 75 |, double| y2, dou|
|00001fc0| 62 6c 65 20 78 33 2c 20 | 64 6f 75 62 6c 65 20 0d |ble x3, |double .|
|00001fd0| 0a 79 33 29 3b 0d 0a 5c | 69 6e 64 65 78 7b 63 75 |.y3);..\|index{cu|
|00001fe0| 72 76 65 74 6f 7d 5c 69 | 6e 64 65 78 7b 42 65 7a |rveto}\i|ndex{Bez|
|00001ff0| 69 65 72 20 63 75 72 76 | 65 73 7d 0d 0a 5c 62 65 |ier curv|es}..\be|
|00002000| 67 69 6e 7b 71 75 6f 74 | 65 7d 0d 0a 20 20 20 20 |gin{quot|e}.. |
|00002010| 20 20 20 20 41 64 64 73 | 20 61 20 42 65 7a 69 65 | Adds| a Bezie|
|00002020| 72 20 63 75 72 76 65 20 | 73 65 63 74 69 6f 6e 20 |r curve |section |
|00002030| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 |to the c|urrent p|
|00002040| 61 74 68 20 73 74 61 72 | 74 69 6e 67 20 61 74 20 |ath star|ting at |
|00002050| 74 68 65 20 0d 0a 63 75 | 72 72 65 6e 74 20 70 6f |the ..cu|rrent po|
|00002060| 69 6e 74 2e 20 54 68 65 | 20 63 75 72 76 65 20 73 |int. The| curve s|
|00002070| 74 61 72 74 73 20 74 61 | 6e 67 65 6e 74 20 74 6f |tarts ta|ngent to|
|00002080| 20 28 78 63 75 72 2c 79 | 63 75 72 29 20 2d 20 28 | (xcur,y|cur) - (|
|00002090| 78 31 2c 78 32 29 20 61 | 6e 64 20 65 6e 64 73 20 |x1,x2) a|nd ends |
|000020a0| 0d 0a 74 61 6e 67 65 6e | 74 69 61 6c 20 74 6f 20 |..tangen|tial to |
|000020b0| 28 78 32 2c 79 32 29 20 | 2d 20 28 78 33 2c 79 33 |(x2,y2) |- (x3,y3|
|000020c0| 29 20 61 74 20 28 78 33 | 2c 79 33 29 3b 20 41 6e |) at (x3|,y3); An|
|000020d0| 20 65 72 72 6f 72 20 69 | 73 20 67 65 6e 65 72 61 | error i|s genera|
|000020e0| 74 65 64 20 69 66 20 74 | 68 65 72 65 20 0d 0a 69 |ted if t|here ..i|
|000020f0| 73 20 6e 6f 20 63 75 72 | 72 65 6e 74 20 70 6f 69 |s no cur|rent poi|
|00002100| 6e 74 2e 20 0d 0a 0d 0a | 5c 65 6e 64 7b 71 75 6f |nt. ....|\end{quo|
|00002110| 74 65 7d 0d 0a 0d 0a 5c | 76 73 70 61 63 65 7b 33 |te}....\|vspace{3|
|00002120| 6d 6d 7d 0d 0a 0d 0a 5c | 6e 6f 69 6e 64 65 6e 74 |mm}....\|noindent|
|00002130| 0d 0a 76 6f 69 64 20 7b | 5c 62 66 20 64 72 61 77 |..void {|\bf draw|
|00002140| 64 61 74 61 7d 28 64 6f | 75 62 6c 65 20 2a 64 61 |data}(do|uble *da|
|00002150| 74 61 2c 20 69 6e 74 20 | 78 63 6f 6c 2c 20 69 6e |ta, int |xcol, in|
|00002160| 74 20 79 63 6f 6c 29 3b | 0d 0a 5c 69 6e 64 65 78 |t ycol);|..\index|
|00002170| 7b 64 72 61 77 64 61 74 | 61 7d 0d 0a 5c 62 65 67 |{drawdat|a}..\beg|
|00002180| 69 6e 7b 71 75 6f 74 65 | 7d 0d 0a 20 20 20 20 20 |in{quote|}.. |
|00002190| 20 20 20 44 72 61 77 73 | 20 74 68 65 20 64 61 74 | Draws| the dat|
|000021a0| 61 20 63 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 74 |a contai|ned in t|
|000021b0| 68 65 20 61 72 72 61 79 | 20 64 61 74 61 20 69 6e |he array| data in|
|000021c0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 61 78 65 | the cur|rent axe|
|000021d0| 73 5c 5f 62 6f 78 2e 20 | 0d 0a 54 68 65 20 74 77 |s\_box. |..The tw|
|000021e0| 6f 20 6e 75 6d 62 65 72 | 73 20 78 63 6f 6c 20 61 |o number|s xcol a|
|000021f0| 6e 64 20 79 63 6f 6c 20 | 61 72 65 20 6f 70 74 69 |nd ycol |are opti|
|00002200| 6f 6e 61 6c 20 61 6e 64 | 20 61 72 65 20 74 68 65 |onal and| are the|
|00002210| 20 63 6f 6c 75 6d 6e 73 | 20 6f 66 20 74 68 65 20 | columns| of the |
|00002220| 61 72 72 61 79 20 0d 0a | 64 61 74 61 20 74 68 61 |array ..|data tha|
|00002230| 74 20 61 72 65 20 74 6f | 20 62 65 20 75 73 65 64 |t are to| be used|
|00002240| 20 66 6f 72 20 74 68 65 | 20 78 2d 61 78 69 73 20 | for the| x-axis |
|00002250| 61 6e 64 20 79 2d 61 78 | 69 73 20 64 61 74 61 20 |and y-ax|is data |
|00002260| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2e 20 49 66 |respecti|vely. If|
|00002270| 20 0d 0a 74 68 65 73 65 | 20 76 61 6c 75 65 73 20 | ..these| values |
|00002280| 61 72 65 20 6f 6d 69 74 | 74 65 64 20 30 20 2c 20 |are omit|ted 0 , |
|00002290| 31 20 61 72 65 20 61 73 | 73 75 6d 65 64 2e 20 45 |1 are as|sumed. E|
|000022a0| 61 63 68 20 72 6f 77 20 | 6f 66 20 74 68 65 20 61 |ach row |of the a|
|000022b0| 72 72 61 79 20 64 61 74 | 61 20 0d 0a 72 65 70 72 |rray dat|a ..repr|
|000022c0| 65 73 65 6e 74 73 20 6f | 6e 65 20 63 6f 6f 72 64 |esents o|ne coord|
|000022d0| 69 6e 61 74 65 20 70 6f | 69 6e 74 20 74 6f 20 62 |inate po|int to b|
|000022e0| 65 20 70 6c 6f 74 74 65 | 64 2e 20 54 68 65 20 76 |e plotte|d. The v|
|000022f0| 61 6c 75 65 73 20 77 69 | 6c 6c 20 62 65 20 70 6c |alues wi|ll be pl|
|00002300| 6f 74 74 65 64 20 0d 0a | 75 73 69 6e 67 20 74 68 |otted ..|using th|
|00002310| 65 20 69 6e 74 65 72 6e | 61 6c 20 63 6f 6f 72 64 |e intern|al coord|
|00002320| 69 6e 61 74 65 20 73 79 | 73 74 65 6d 20 65 73 74 |inate sy|stem est|
|00002330| 61 62 6c 69 73 68 65 64 | 20 62 79 20 74 68 65 20 |ablished| by the |
|00002340| 74 68 65 20 63 61 6c 6c | 20 74 6f 20 0d 0a 61 78 |the call| to ..ax|
|00002350| 65 73 5c 5f 62 6f 78 2e | 20 49 66 20 74 68 65 72 |es\_box.| If ther|
|00002360| 65 20 69 73 20 6e 6f 20 | 63 75 72 72 65 6e 74 20 |e is no |current |
|00002370| 61 78 65 73 20 62 6f 78 | 20 61 6e 20 65 72 72 6f |axes box| an erro|
|00002380| 72 20 77 69 6c 6c 20 62 | 65 20 67 65 6e 65 72 61 |r will b|e genera|
|00002390| 74 65 64 2e 20 0d 0a 64 | 72 61 77 64 61 74 61 28 |ted. ..d|rawdata(|
|000023a0| 29 20 69 73 20 69 6d 70 | 6c 69 63 69 74 6c 79 20 |) is imp|licitly |
|000023b0| 73 74 72 6f 6b 65 64 2e | 0d 0a 0d 0a 5c 65 6e 64 |stroked.|....\end|
|000023c0| 7b 71 75 6f 74 65 7d 0d | 0a 0d 0a 5c 76 73 70 61 |{quote}.|...\vspa|
|000023d0| 63 65 7b 33 6d 6d 7d 0d | 0a 0d 0a 5c 6e 6f 69 6e |ce{3mm}.|...\noin|
|000023e0| 64 65 6e 74 0d 0a 76 6f | 69 64 20 7b 5c 62 66 20 |dent..vo|id {\bf |
|000023f0| 65 72 72 6f 72 62 61 72 | 73 7d 28 69 6e 74 20 61 |errorbar|s}(int a|
|00002400| 78 65 73 2c 64 6f 75 62 | 6c 65 20 2a 64 61 74 61 |xes,doub|le *data|
|00002410| 2c 20 69 6e 74 20 78 63 | 6f 6c 2c 20 69 6e 74 20 |, int xc|ol, int |
|00002420| 79 63 6f 6c 2c 20 69 6e | 74 20 65 72 72 63 6f 6c |ycol, in|t errcol|
|00002430| 29 3b 0d 0a 5c 69 6e 64 | 65 78 7b 65 72 72 6f 72 |);..\ind|ex{error|
|00002440| 20 62 61 72 73 7d 0d 0a | 5c 62 65 67 69 6e 7b 71 | bars}..|\begin{q|
|00002450| 75 6f 74 65 7d 0d 0a 20 | 20 20 20 20 20 20 20 44 |uote}.. | D|
|00002460| 72 61 77 73 20 65 72 72 | 6f 72 20 62 61 72 73 20 |raws err|or bars |
|00002470| 66 6f 72 20 74 68 65 20 | 64 61 74 61 20 70 6f 69 |for the |data poi|
|00002480| 6e 74 73 20 69 6e 20 74 | 68 65 20 61 72 72 61 79 |nts in t|he array|
|00002490| 20 0d 0a 22 64 61 74 61 | 22 5c 69 6e 64 65 78 7b | .."data|"\index{|
|000024a0| 64 61 74 61 7d 2e 20 54 | 68 65 20 66 69 72 73 74 |data}. T|he first|
|000024b0| 20 70 61 72 61 6d 65 74 | 65 72 20 69 73 20 65 69 | paramet|er is ei|
|000024c0| 74 68 65 72 20 58 56 41 | 4c 53 20 6f 72 20 59 56 |ther XVA|LS or YV|
|000024d0| 41 4c 53 20 69 6e 64 69 | 63 61 74 69 6e 67 20 0d |ALS indi|cating .|
|000024e0| 0a 61 6c 6f 6e 67 20 77 | 68 69 63 68 20 61 78 65 |.along w|hich axe|
|000024f0| 73 20 74 68 65 20 65 72 | 72 6f 72 20 62 61 72 73 |s the er|ror bars|
|00002500| 20 61 72 65 20 74 6f 20 | 62 65 20 64 72 61 77 6e | are to |be drawn|
|00002510| 2e 20 54 68 65 20 6e 75 | 6d 62 65 72 73 20 78 63 |. The nu|mbers xc|
|00002520| 6f 6c 20 61 6e 64 20 79 | 63 6f 6c 20 0d 0a 61 72 |ol and y|col ..ar|
|00002530| 65 20 74 68 65 20 63 6f | 6c 75 6d 6e 73 20 6f 66 |e the co|lumns of|
|00002540| 20 74 68 65 20 61 72 72 | 61 79 20 64 61 74 61 20 | the arr|ay data |
|00002550| 74 68 61 74 20 61 72 65 | 20 74 6f 20 62 65 20 75 |that are| to be u|
|00002560| 73 65 64 20 66 6f 72 20 | 74 68 65 20 78 2d 61 78 |sed for |the x-ax|
|00002570| 69 73 20 61 6e 64 20 0d | 0a 79 2d 61 78 69 73 20 |is and .|.y-axis |
|00002580| 64 61 74 61 20 72 65 73 | 70 65 63 74 69 76 65 6c |data res|pectivel|
|00002590| 79 2e 20 45 61 63 68 20 | 72 6f 77 20 6f 66 20 74 |y. Each |row of t|
|000025a0| 68 65 20 61 72 72 61 79 | 20 64 61 74 61 20 72 65 |he array| data re|
|000025b0| 70 72 65 73 65 6e 74 73 | 20 6f 6e 65 20 0d 0a 63 |presents| one ..c|
|000025c0| 6f 6f 72 64 69 6e 61 74 | 65 20 70 6f 69 6e 74 20 |oordinat|e point |
|000025d0| 74 6f 20 62 65 20 70 6c | 6f 74 74 65 64 2e 20 54 |to be pl|otted. T|
|000025e0| 68 65 20 76 61 6c 75 65 | 73 20 77 69 6c 6c 20 62 |he value|s will b|
|000025f0| 65 20 70 6c 6f 74 74 65 | 64 20 75 73 69 6e 67 20 |e plotte|d using |
|00002600| 74 68 65 20 0d 0a 69 6e | 74 65 72 6e 61 6c 20 63 |the ..in|ternal c|
|00002610| 6f 6f 72 64 69 6e 61 74 | 65 20 73 79 73 74 65 6d |oordinat|e system|
|00002620| 20 65 73 74 61 62 6c 69 | 73 68 65 64 20 62 79 20 | establi|shed by |
|00002630| 74 68 65 20 74 68 65 20 | 63 61 6c 6c 20 74 6f 20 |the the |call to |
|00002640| 61 78 65 73 5c 5f 62 6f | 78 2e 20 54 68 65 20 0d |axes\_bo|x. The .|
|00002650| 0a 6c 61 73 74 20 70 61 | 72 61 6d 65 74 65 72 20 |.last pa|rameter |
|00002660| 22 65 72 72 63 6f 6c 22 | 20 69 73 20 74 68 65 20 |"errcol"| is the |
|00002670| 63 6f 6c 75 6d 6e 20 6f | 66 20 74 68 65 20 61 72 |column o|f the ar|
|00002680| 72 61 79 20 22 64 61 74 | 61 22 20 77 68 69 63 68 |ray "dat|a" which|
|00002690| 20 68 6f 6c 64 73 20 74 | 68 65 20 0d 0a 73 69 7a | holds t|he ..siz|
|000026a0| 65 20 6f 66 20 74 68 65 | 20 65 72 72 6f 72 20 66 |e of the| error f|
|000026b0| 6f 72 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |or the c|orrespon|
|000026c0| 64 69 6e 67 20 64 61 74 | 61 20 70 6f 69 6e 74 20 |ding dat|a point |
|000026d0| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 72 6f 77 2e |in the s|ame row.|
|000026e0| 20 49 66 20 0d 0a 74 68 | 65 72 65 20 69 73 20 6e | If ..th|ere is n|
|000026f0| 6f 20 63 75 72 72 65 6e | 74 20 61 78 65 73 20 62 |o curren|t axes b|
|00002700| 6f 78 20 61 6e 20 65 72 | 72 6f 72 20 77 69 6c 6c |ox an er|ror will|
|00002710| 20 62 65 20 67 65 6e 65 | 72 61 74 65 64 2e 20 65 | be gene|rated. e|
|00002720| 72 72 6f 72 62 61 72 73 | 28 29 20 69 73 20 0d 0a |rrorbars|() is ..|
|00002730| 69 6d 70 6c 69 63 69 74 | 6c 79 20 73 74 72 6f 6b |implicit|ly strok|
|00002740| 65 64 2e 20 5c 65 6e 64 | 7b 71 75 6f 74 65 7d 20 |ed. \end|{quote} |
|00002750| 0d 0a 0d 0a 5c 76 73 70 | 61 63 65 7b 33 6d 6d 7d |....\vsp|ace{3mm}|
|00002760| 0d 0a 0d 0a 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 76 |....\noi|ndent..v|
|00002770| 6f 69 64 20 7b 5c 62 66 | 20 66 69 6c 6c 7d 28 29 |oid {\bf| fill}()|
|00002780| 3b 0d 0a 5c 69 6e 64 65 | 78 7b 66 69 6c 6c 7d 0d |;..\inde|x{fill}.|
|00002790| 0a 5c 62 65 67 69 6e 7b | 71 75 6f 74 65 7d 20 0d |.\begin{|quote} .|
|000027a0| 0a 20 20 20 20 20 20 20 | 20 43 6c 6f 73 65 73 20 |. | Closes |
|000027b0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 61 74 68 |the curr|ent path|
|000027c0| 5c 69 6e 64 65 78 7b 70 | 61 74 68 7d 20 69 66 20 |\index{p|ath} if |
|000027d0| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 63 6c 6f 73 |not alre|ady clos|
|000027e0| 65 64 20 61 6e 64 20 66 | 69 6c 6c 73 20 0d 0a 74 |ed and f|ills ..t|
|000027f0| 68 65 20 69 6e 74 65 72 | 69 6f 72 20 72 65 67 69 |he inter|ior regi|
|00002800| 6f 6e 20 77 69 74 68 20 | 74 68 65 20 63 75 72 72 |on with |the curr|
|00002810| 65 6e 74 20 63 6f 6c 6f | 75 72 20 61 73 20 73 70 |ent colo|ur as sp|
|00002820| 65 63 69 66 69 65 64 20 | 62 79 20 74 68 65 20 6c |ecified |by the l|
|00002830| 61 73 74 20 73 65 74 28 | 20 0d 0a 29 5c 69 6e 64 |ast set(| ..)\ind|
|00002840| 65 78 7b 73 65 74 7d 20 | 63 61 6c 6c 2e 20 57 68 |ex{set} |call. Wh|
|00002850| 61 74 20 69 73 20 69 6e | 73 69 64 65 20 61 6e 64 |at is in|side and|
|00002860| 20 77 68 61 74 20 69 73 | 20 6f 75 74 73 69 64 65 | what is| outside|
|00002870| 20 74 68 65 20 70 61 74 | 68 20 64 65 70 65 6e 64 | the pat|h depend|
|00002880| 73 20 6f 6e 20 0d 0a 74 | 68 65 20 63 75 72 72 65 |s on ..t|he curre|
|00002890| 6e 74 6c 79 20 63 68 6f | 73 65 6e 20 66 69 6c 6c |ntly cho|sen fill|
|000028a0| 20 72 75 6c 65 2e 20 54 | 68 65 20 66 69 6c 6c 20 | rule. T|he fill |
|000028b0| 72 75 6c 65 20 69 73 20 | 65 69 74 68 65 72 20 65 |rule is |either e|
|000028c0| 76 65 6e 2d 6f 64 64 20 | 6f 72 20 0d 0a 6e 6f 6e |ven-odd |or ..non|
|000028d0| 2d 7a 65 72 6f 20 77 69 | 6e 64 20 28 74 68 65 20 |-zero wi|nd (the |
|000028e0| 64 65 66 61 75 6c 74 29 | 20 61 6e 64 20 69 73 20 |default)| and is |
|000028f0| 73 70 65 63 69 66 69 65 | 64 20 75 73 69 6e 67 20 |specifie|d using |
|00002900| 61 20 73 65 74 28 29 20 | 63 61 6c 6c 2e 20 41 6e |a set() |call. An|
|00002910| 20 65 72 72 6f 72 20 0d | 0a 69 73 20 67 65 6e 65 | error .|.is gene|
|00002920| 72 61 74 65 64 20 69 66 | 20 74 68 65 72 65 20 69 |rated if| there i|
|00002930| 73 20 6e 6f 20 63 75 72 | 72 65 6e 74 20 70 61 74 |s no cur|rent pat|
|00002940| 68 2e 20 5c 65 6e 64 7b | 71 75 6f 74 65 7d 20 0d |h. \end{|quote} .|
|00002950| 0a 0d 0a 5c 76 73 70 61 | 63 65 7b 33 6d 6d 7d 0d |...\vspa|ce{3mm}.|
|00002960| 0a 0d 0a 5c 6e 6f 69 6e | 64 65 6e 74 0d 0a 76 6f |...\noin|dent..vo|
|00002970| 69 64 20 7b 5c 62 66 20 | 66 69 74 6c 69 6e 65 7d |id {\bf |fitline}|
|00002980| 28 64 6f 75 62 6c 65 20 | 2a 64 61 74 61 2c 20 69 |(double |*data, i|
|00002990| 6e 74 20 78 63 6f 6c 2c | 20 69 6e 74 20 79 63 6f |nt xcol,| int yco|
|000029a0| 6c 2c 64 6f 75 62 6c 65 | 20 2a 79 69 6e 74 2c 64 |l,double| *yint,d|
|000029b0| 6f 75 62 6c 65 20 2a 73 | 6c 6f 70 65 29 3b 0d 0a |ouble *s|lope);..|
|000029c0| 5c 69 6e 64 65 78 7b 66 | 69 74 20 6c 69 6e 65 7d |\index{f|it line}|
|000029d0| 0d 0a 5c 62 65 67 69 6e | 7b 71 75 6f 74 65 7d 0d |..\begin|{quote}.|
|000029e0| 0a 20 20 20 20 20 20 20 | 20 46 69 74 73 20 74 68 |. | Fits th|
|000029f0| 65 20 62 65 73 74 20 73 | 74 72 61 69 67 68 74 20 |e best s|traight |
|00002a00| 6c 69 6e 65 20 74 6f 20 | 74 68 65 20 64 61 74 61 |line to |the data|
|00002a10| 20 69 6e 20 74 68 65 20 | 61 72 72 61 79 20 0d 0a | in the |array ..|
|00002a20| 22 64 61 74 61 22 5c 69 | 6e 64 65 78 7b 64 61 74 |"data"\i|ndex{dat|
|00002a30| 61 7d 20 75 73 69 6e 67 | 20 74 68 65 20 63 6f 6c |a} using| the col|
|00002a40| 75 6d 6e 20 78 63 6f 6c | 20 6f 66 20 74 68 65 20 |umn xcol| of the |
|00002a50| 61 72 72 61 79 20 61 73 | 20 74 68 65 20 78 20 76 |array as| the x v|
|00002a60| 61 6c 75 65 73 20 61 6e | 64 20 0d 0a 74 68 65 20 |alues an|d ..the |
|00002a70| 63 6f 6c 75 6d 6e 20 79 | 63 6f 6c 20 61 73 20 74 |column y|col as t|
|00002a80| 68 65 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |he corre|sponding|
|00002a90| 20 79 20 76 61 6c 75 65 | 73 2e 20 54 68 65 20 62 | y value|s. The b|
|00002aa0| 65 73 74 20 6c 69 6e 65 | 20 69 73 20 64 72 61 77 |est line| is draw|
|00002ab0| 6e 20 0d 0a 63 6f 6e 73 | 74 72 61 69 6e 65 64 20 |n ..cons|trained |
|00002ac0| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 61 |to the c|urrent a|
|00002ad0| 78 65 73 20 62 6f 78 2e | 20 49 66 20 74 68 65 72 |xes box.| If ther|
|00002ae0| 65 20 69 73 20 6e 6f 20 | 63 75 72 72 65 6e 74 20 |e is no |current |
|00002af0| 61 78 65 73 20 62 6f 78 | 20 61 6e 20 0d 0a 65 72 |axes box| an ..er|
|00002b00| 72 6f 72 20 69 73 20 67 | 65 6e 65 72 61 74 65 64 |ror is g|enerated|
|00002b10| 2e 20 54 68 65 20 6c 61 | 73 74 20 74 77 6f 20 70 |. The la|st two p|
|00002b20| 61 72 61 6d 65 74 65 72 | 73 20 61 72 65 20 74 68 |arameter|s are th|
|00002b30| 65 20 72 65 74 75 72 6e | 65 64 20 76 61 6c 75 65 |e return|ed value|
|00002b40| 73 20 67 69 76 69 6e 67 | 20 0d 0a 74 68 65 20 79 |s giving| ..the y|
|00002b50| 20 69 6e 74 65 72 63 65 | 70 74 20 61 6e 64 20 73 | interce|pt and s|
|00002b60| 6c 6f 70 65 20 6f 66 20 | 74 68 65 20 66 69 74 74 |lope of |the fitt|
|00002b70| 65 64 20 6c 69 6e 65 2e | 20 4e 6f 74 65 20 74 68 |ed line.| Note th|
|00002b80| 61 74 20 74 68 65 79 20 | 61 72 65 20 70 6f 69 6e |at they |are poin|
|00002b90| 74 65 72 73 20 0d 0a 74 | 6f 20 64 6f 75 62 6c 65 |ters ..t|o double|
|00002ba0| 73 20 77 68 69 63 68 20 | 6d 75 73 74 20 62 65 20 |s which |must be |
|00002bb0| 64 65 63 6c 61 72 65 64 | 20 61 74 20 74 68 65 20 |declared| at the |
|00002bc0| 74 6f 70 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |top of t|he progr|
|00002bd0| 61 6d 2e 20 47 69 76 65 | 6e 20 61 20 0d 0a 64 65 |am. Give|n a ..de|
|00002be0| 63 6c 61 72 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |claratio|n of the|
|00002bf0| 20 66 6f 72 6d 3a 20 64 | 6f 75 62 6c 65 20 73 6c | form: d|ouble sl|
|00002c00| 6f 70 65 2c 79 69 6e 74 | 3b 20 0d 0a 0d 0a 43 61 |ope,yint|; ....Ca|
|00002c10| 6c 6c 20 66 69 74 6c 69 | 6e 65 20 75 73 69 6e 67 |ll fitli|ne using|
|00002c20| 3a 0d 0a 0d 0a 5c 68 73 | 70 61 63 65 7b 32 63 6d |:....\hs|pace{2cm|
|00002c30| 7d 20 20 7b 5c 74 74 20 | 66 69 74 6c 69 6e 65 28 |} {\tt |fitline(|
|00002c40| 64 61 74 61 2c 30 2c 31 | 2c 5c 26 79 69 6e 74 2c |data,0,1|,\&yint,|
|00002c50| 5c 26 73 6c 6f 70 65 29 | 3b 7d 0d 0a 0d 0a 20 20 |\&slope)|;}.... |
|00002c60| 20 20 20 20 20 20 41 73 | 73 75 6d 69 6e 67 20 74 | As|suming t|
|00002c70| 68 61 74 20 74 68 65 20 | 66 69 72 73 74 20 61 6e |hat the |first an|
|00002c80| 64 20 73 65 63 6f 6e 64 | 20 63 6f 6c 75 6d 6e 20 |d second| column |
|00002c90| 6f 66 20 64 61 74 61 20 | 61 72 65 20 74 68 65 20 |of data |are the |
|00002ca0| 78 20 61 6e 64 20 79 20 | 0d 0a 76 61 6c 75 65 73 |x and y |..values|
|00002cb0| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 2e 20 44 | respect|ively. D|
|00002cc0| 61 74 61 20 70 6f 69 6e | 74 73 20 63 61 6e 20 62 |ata poin|ts can b|
|00002cd0| 65 20 65 78 63 6c 75 64 | 65 64 20 66 72 6f 6d 20 |e exclud|ed from |
|00002ce0| 74 68 65 20 66 69 74 20 | 62 79 20 75 73 69 6e 67 |the fit |by using|
|00002cf0| 20 74 68 65 20 0d 0a 73 | 65 74 28 58 52 41 4e 47 | the ..s|et(XRANG|
|00002d00| 45 2c 20 78 6d 69 6e 2c | 20 78 6d 61 78 29 3b 5c |E, xmin,| xmax);\|
|00002d10| 69 6e 64 65 78 7b 73 65 | 74 2c 20 58 52 41 4e 47 |index{se|t, XRANG|
|00002d20| 45 7d 20 6f 72 20 73 65 | 74 28 59 52 41 4e 47 45 |E} or se|t(YRANGE|
|00002d30| 2c 20 79 6d 69 6e 2c 20 | 79 6d 61 78 29 3b 20 0d |, ymin, |ymax); .|
|00002d40| 0a 63 6f 6d 6d 61 6e 64 | 73 2e 20 4f 6e 6c 79 20 |.command|s. Only |
|00002d50| 64 61 74 61 20 70 6f 69 | 6e 74 73 20 77 69 74 68 |data poi|nts with|
|00002d60| 69 6e 20 74 68 65 20 6c | 69 6d 69 74 73 20 77 69 |in the l|imits wi|
|00002d70| 6c 6c 20 62 65 20 75 73 | 65 64 20 66 6f 72 20 74 |ll be us|ed for t|
|00002d80| 68 65 20 66 69 74 2e 20 | 0d 0a 66 69 74 6c 69 6e |he fit. |..fitlin|
|00002d90| 65 28 29 20 69 73 20 69 | 6d 70 6c 69 63 69 74 6c |e() is i|mplicitl|
|00002da0| 79 20 73 74 72 6f 6b 65 | 64 2e 20 0d 0a 0d 0a 5c |y stroke|d. ....\|
|00002db0| 65 6e 64 7b 71 75 6f 74 | 65 7d 0d 0a 0d 0a 5c 76 |end{quot|e}....\v|
|00002dc0| 73 70 61 63 65 7b 33 6d | 6d 7d 0d 0a 0d 0a 5c 6e |space{3m|m}....\n|
|00002dd0| 6f 69 6e 64 65 6e 74 0d | 0a 69 6e 74 20 6f 72 20 |oindent.|.int or |
|00002de0| 64 6f 75 62 6c 65 20 7b | 5c 62 66 20 67 65 74 7d |double {|\bf get}|
|00002df0| 28 69 6e 74 20 6f 70 74 | 69 6f 6e 2c 63 68 61 72 |(int opt|ion,char|
|00002e00| 20 2a 73 74 72 29 3b 0d | 0a 5c 69 6e 64 65 78 7b | *str);.|.\index{|
|00002e10| 67 65 74 20 61 74 74 72 | 69 62 75 74 65 73 7d 0d |get attr|ibutes}.|
|00002e20| 0a 5c 62 65 67 69 6e 7b | 71 75 6f 74 65 7d 0d 0a |.\begin{|quote}..|
|00002e30| 20 20 20 20 20 20 20 20 | 52 65 74 75 72 6e 73 20 | |Returns |
|00002e40| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|00002e50| 20 73 70 65 63 69 66 69 | 65 64 20 6f 70 74 69 6f | specifi|ed optio|
|00002e60| 6e 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |n in the| current|
|00002e70| 20 67 72 61 70 68 69 63 | 73 20 0d 0a 73 74 61 74 | graphic|s ..stat|
|00002e80| 65 2e 20 54 68 65 20 6e | 75 6d 65 72 69 63 61 6c |e. The n|umerical|
|00002e90| 20 76 61 6c 75 65 20 66 | 6f 72 20 73 69 6e 67 6c | value f|or singl|
|00002ea0| 65 20 76 61 6c 75 65 64 | 20 65 6c 65 6d 65 6e 74 |e valued| element|
|00002eb0| 73 20 69 73 20 72 65 74 | 75 72 6e 65 64 20 62 79 |s is ret|urned by|
|00002ec0| 20 74 68 65 20 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 | the ..f|unction |
|00002ed0| 6f 74 68 65 72 77 69 73 | 65 20 74 68 65 20 72 65 |otherwis|e the re|
|00002ee0| 74 75 72 6e 20 76 61 6c | 75 65 20 69 73 20 30 2e |turn val|ue is 0.|
|00002ef0| 20 41 20 74 65 78 74 20 | 72 65 70 72 65 73 65 6e | A text |represen|
|00002f00| 74 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 0d 0a |tation o|f the ..|
|00002f10| 76 61 6c 75 65 20 69 73 | 20 6f 70 74 69 6f 6e 61 |value is| optiona|
|00002f20| 6c 6c 79 20 72 65 74 75 | 72 6e 65 64 20 69 6e 20 |lly retu|rned in |
|00002f30| 73 74 72 2e 20 49 66 20 | 75 73 65 64 2c 20 62 65 |str. If |used, be|
|00002f40| 20 73 75 72 65 20 74 6f | 20 61 6c 6c 6f 63 61 74 | sure to| allocat|
|00002f50| 65 20 61 20 0d 0a 63 68 | 61 72 61 63 74 65 72 20 |e a ..ch|aracter |
|00002f60| 61 72 72 61 79 20 77 69 | 74 68 20 73 75 66 66 69 |array wi|th suffi|
|00002f70| 63 69 65 6e 74 20 73 70 | 61 63 65 20 66 6f 72 20 |cient sp|ace for |
|00002f80| 73 74 72 20 62 65 66 6f | 72 65 20 63 61 6c 6c 69 |str befo|re calli|
|00002f90| 6e 67 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |ng this |function|
|00002fa0| 20 0d 0a 61 73 20 69 6e | 20 7b 5c 74 74 20 63 68 | ..as in| {\tt ch|
|00002fb0| 61 72 20 73 74 72 5b 38 | 30 5d 3b 7d 20 61 74 20 |ar str[8|0];} at |
|00002fc0| 74 68 65 20 74 6f 70 20 | 6f 66 20 74 68 65 20 70 |the top |of the p|
|00002fd0| 72 6f 67 72 61 6d 2e 20 | 54 68 65 20 76 61 6c 69 |rogram. |The vali|
|00002fe0| 64 20 6f 70 74 69 6f 6e | 20 0d 0a 76 61 6c 75 65 |d option| ..value|
|00002ff0| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 20 69 6e |s are de|fined in|
|00003000| 20 73 70 6c 6f 74 2e 68 | 2e 20 53 65 65 20 61 6c | splot.h|. See al|
|00003010| 73 6f 20 73 65 74 28 29 | 20 66 6f 72 20 61 20 64 |so set()| for a d|
|00003020| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 74 68 |escripti|on of th|
|00003030| 65 20 0d 0a 76 61 72 69 | 6f 75 73 20 6f 70 74 69 |e ..vari|ous opti|
|00003040| 6f 6e 73 2e 20 54 68 65 | 20 72 65 74 75 72 6e 65 |ons. The| returne|
|00003050| 64 20 73 74 72 69 6e 67 | 20 63 61 6e 20 62 65 20 |d string| can be |
|00003060| 70 72 69 6e 74 65 64 20 | 75 73 69 6e 67 20 74 68 |printed |using th|
|00003070| 65 20 63 6f 6d 6d 61 6e | 64 20 0d 0a 70 75 74 73 |e comman|d ..puts|
|00003080| 28 73 74 72 29 3b 5c 69 | 6e 64 65 78 7b 70 75 74 |(str);\i|ndex{put|
|00003090| 73 7d 20 69 6e 20 74 68 | 65 20 70 72 6f 67 72 61 |s} in th|e progra|
|000030a0| 6d 20 77 68 65 72 65 20 | 22 73 74 72 22 20 69 73 |m where |"str" is|
|000030b0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|000030c0| 20 61 72 72 61 79 20 0d | 0a 69 6e 20 74 68 65 20 | array .|.in the |
|000030d0| 63 61 6c 6c 20 74 6f 20 | 67 65 74 28 29 2e 20 52 |call to |get(). R|
|000030e0| 65 74 75 72 6e 65 64 20 | 6e 75 6d 65 72 69 63 61 |eturned |numerica|
|000030f0| 6c 20 76 61 6c 75 65 73 | 20 63 61 6e 20 62 65 20 |l values| can be |
|00003100| 70 72 69 6e 74 65 64 20 | 75 73 69 6e 67 20 0d 0a |printed |using ..|
|00003110| 70 72 69 6e 74 28 76 61 | 6c 75 65 29 3b 2e 20 54 |print(va|lue);. T|
|00003120| 68 65 20 73 65 63 6f 6e | 64 20 61 72 72 61 79 20 |he secon|d array |
|00003130| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 6f 70 74 |paramete|r is opt|
|00003140| 69 6f 6e 61 6c 20 61 6e | 64 20 69 73 20 6f 6e 6c |ional an|d is onl|
|00003150| 79 20 72 65 61 6c 6c 79 | 20 0d 0a 6e 65 65 64 65 |y really| ..neede|
|00003160| 64 20 66 6f 72 20 67 65 | 74 74 69 6e 67 20 6f 70 |d for ge|tting op|
|00003170| 74 69 6f 6e 73 20 74 68 | 61 74 20 61 72 65 20 6d |tions th|at are m|
|00003180| 6f 72 65 20 74 68 61 6e | 20 6a 75 73 74 20 61 20 |ore than| just a |
|00003190| 73 69 6e 67 6c 65 20 76 | 61 6c 75 65 20 73 75 63 |single v|alue suc|
|000031a0| 68 20 61 73 20 0d 0a 6c | 69 6e 65 20 70 61 74 74 |h as ..l|ine patt|
|000031b0| 65 72 6e 73 2e 20 0d 0a | 0d 0a 5c 65 6e 64 7b 71 |erns. ..|..\end{q|
|000031c0| 75 6f 74 65 7d 20 0d 0a | 0d 0a 5c 76 73 70 61 63 |uote} ..|..\vspac|
|000031d0| 65 7b 33 6d 6d 7d 0d 0a | 0d 0a 5c 6e 6f 69 6e 64 |e{3mm}..|..\noind|
|000031e0| 65 6e 74 0d 0a 76 6f 69 | 64 20 7b 5c 62 66 20 67 |ent..voi|d {\bf g|
|000031f0| 72 65 73 74 6f 72 65 7d | 28 29 3b 0d 0a 5c 69 6e |restore}|();..\in|
|00003200| 64 65 78 7b 67 73 61 76 | 65 2f 67 72 65 73 74 6f |dex{gsav|e/gresto|
|00003210| 72 65 7d 0d 0a 5c 62 65 | 67 69 6e 7b 71 75 6f 74 |re}..\be|gin{quot|
|00003220| 65 7d 0d 0a 20 20 20 20 | 20 20 20 20 50 6f 70 73 |e}.. | Pops|
|00003230| 20 61 20 67 72 61 70 68 | 69 63 73 20 73 74 61 74 | a graph|ics stat|
|00003240| 65 20 6f 66 66 20 74 68 | 65 20 73 74 61 74 65 20 |e off th|e state |
|00003250| 73 74 61 63 6b 20 74 68 | 65 72 65 62 79 20 72 65 |stack th|ereby re|
|00003260| 73 74 6f 72 69 6e 67 20 | 74 68 65 20 0d 0a 67 72 |storing |the ..gr|
|00003270| 61 70 68 69 63 73 20 73 | 74 61 74 65 20 74 68 61 |aphics s|tate tha|
|00003280| 74 20 77 61 73 20 69 6e | 20 65 66 66 65 63 74 20 |t was in| effect |
|00003290| 61 74 20 74 68 65 20 74 | 69 6d 65 20 74 68 65 20 |at the t|ime the |
|000032a0| 6d 61 74 63 68 69 6e 67 | 20 67 73 61 76 65 28 29 |matching| gsave()|
|000032b0| 20 77 61 73 20 0d 0a 65 | 78 65 63 75 74 65 64 2e | was ..e|xecuted.|
|000032c0| 20 49 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2c 20 | In part|icular, |
|000032d0| 74 68 65 20 70 61 74 68 | 2c 20 74 68 65 20 63 6c |the path|, the cl|
|000032e0| 69 70 20 70 61 74 68 2c | 20 74 68 65 20 6c 69 6e |ip path,| the lin|
|000032f0| 65 20 73 74 79 6c 65 73 | 2c 20 6c 69 6e 65 20 0d |e styles|, line .|
|00003300| 0a 63 6f 6c 6f 75 72 73 | 20 65 74 63 2e 20 61 72 |.colours| etc. ar|
|00003310| 65 20 72 65 73 74 6f 72 | 65 64 20 74 6f 20 74 68 |e restor|ed to th|
|00003320| 65 69 72 20 70 72 65 76 | 69 6f 75 73 20 76 61 6c |eir prev|ious val|
|00003330| 75 65 73 2e 20 0d 0a 5c | 65 6e 64 7b 71 75 6f 74 |ues. ..\|end{quot|
|00003340| 65 7d 0d 0a 0d 0a 5c 76 | 73 70 61 63 65 7b 33 6d |e}....\v|space{3m|
|00003350| 6d 7d 0d 0a 0d 0a 5c 6e | 6f 69 6e 64 65 6e 74 0d |m}....\n|oindent.|
|00003360| 0a 76 6f 69 64 20 7b 5c | 62 66 20 67 73 61 76 65 |.void {\|bf gsave|
|00003370| 7d 28 29 3b 0d 0a 5c 62 | 65 67 69 6e 7b 71 75 6f |}();..\b|egin{quo|
|00003380| 74 65 7d 0d 0a 20 20 20 | 20 20 20 20 20 50 75 73 |te}.. | Pus|
|00003390| 68 65 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |hes the |current |
|000033a0| 67 72 61 70 68 69 63 73 | 20 73 74 61 74 65 20 6f |graphics| state o|
|000033b0| 6e 74 6f 20 74 68 65 20 | 73 74 61 74 65 20 73 74 |nto the |state st|
|000033c0| 61 63 6b 2e 20 54 68 65 | 20 63 75 72 72 65 6e 74 |ack. The| current|
|000033d0| 20 0d 0a 70 61 74 68 2c | 20 63 6c 69 70 20 70 61 | ..path,| clip pa|
|000033e0| 74 68 2c 20 6c 69 6e 65 | 20 73 74 79 6c 65 2c 20 |th, line| style, |
|000033f0| 63 6f 6c 6f 75 72 20 65 | 74 63 2e 20 61 72 65 20 |colour e|tc. are |
|00003400| 73 61 76 65 64 20 73 6f | 20 74 68 61 74 20 74 68 |saved so| that th|
|00003410| 65 79 20 63 61 6e 20 62 | 65 20 0d 0a 72 65 73 74 |ey can b|e ..rest|
|00003420| 6f 72 65 64 20 6c 61 74 | 65 72 20 75 73 69 6e 67 |ored lat|er using|
|00003430| 20 61 20 67 72 65 73 74 | 6f 72 65 28 29 20 63 6f | a grest|ore() co|
|00003440| 6d 6d 61 6e 64 2e 20 0d | 0a 5c 65 6e 64 7b 71 75 |mmand. .|.\end{qu|
|00003450| 6f 74 65 7d 0d 0a 0d 0a | 5c 76 73 70 61 63 65 7b |ote}....|\vspace{|
|00003460| 33 6d 6d 7d 0d 0a 0d 0a | 5c 6e 6f 69 6e 64 65 6e |3mm}....|\noinden|
|00003470| 74 0d 0a 76 6f 69 64 20 | 7b 5c 62 66 20 6c 61 62 |t..void |{\bf lab|
|00003480| 65 6c 7d 28 69 6e 74 20 | 61 78 69 73 2c 20 63 68 |el}(int |axis, ch|
|00003490| 61 72 20 2a 6c 61 62 65 | 6c 29 3b 0d 0a 5c 69 6e |ar *labe|l);..\in|
|000034a0| 64 65 78 7b 6c 61 62 65 | 6c 7d 0d 0a 5c 62 65 67 |dex{labe|l}..\beg|
|000034b0| 69 6e 7b 71 75 6f 74 65 | 7d 0d 0a 20 20 20 20 20 |in{quote|}.. |
|000034c0| 20 20 20 41 64 64 20 6c | 61 62 65 6c 73 20 74 6f | Add l|abels to|
|000034d0| 20 74 68 65 20 61 78 65 | 73 20 62 6f 78 20 70 72 | the axe|s box pr|
|000034e0| 65 76 69 6f 75 73 6c 79 | 20 64 65 66 69 6e 65 64 |eviously| defined|
|000034f0| 2e 20 54 68 65 20 66 69 | 72 73 74 20 70 61 72 61 |. The fi|rst para|
|00003500| 6d 65 74 65 72 20 0d 0a | 69 73 20 77 68 69 63 68 |meter ..|is which|
|00003510| 20 61 78 69 73 20 74 6f | 20 6c 61 62 65 6c 20 65 | axis to| label e|
|00003520| 69 74 68 65 72 20 42 4f | 54 54 4f 4d 2c 20 54 4f |ither BO|TTOM, TO|
|00003530| 50 2c 20 4c 45 46 54 20 | 6f 72 20 52 49 47 48 54 |P, LEFT |or RIGHT|
|00003540| 2e 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |. The fo|llowing |
|00003550| 0d 0a 70 61 72 61 6d 65 | 74 65 72 20 69 73 20 74 |..parame|ter is t|
|00003560| 68 65 20 6c 61 62 65 6c | 20 74 6f 20 62 65 20 70 |he label| to be p|
|00003570| 72 69 6e 74 65 64 2e 20 | 54 68 65 20 6c 61 62 65 |rinted. |The labe|
|00003580| 6c 20 77 69 6c 6c 20 62 | 65 20 70 72 69 6e 74 65 |l will b|e printe|
|00003590| 64 20 63 65 6e 74 65 72 | 65 64 20 0d 0a 62 65 74 |d center|ed ..bet|
|000035a0| 77 65 65 6e 20 74 68 65 | 20 61 70 70 72 6f 70 72 |ween the| appropr|
|000035b0| 69 61 74 65 20 65 64 67 | 65 73 20 6f 66 20 74 68 |iate edg|es of th|
|000035c0| 65 20 63 75 72 72 65 6e | 74 20 61 78 65 73 20 62 |e curren|t axes b|
|000035d0| 6f 78 2e 20 41 6e 20 65 | 72 72 6f 72 20 69 73 20 |ox. An e|rror is |
|000035e0| 0d 0a 67 65 6e 65 72 61 | 74 65 64 20 69 66 20 74 |..genera|ted if t|
|000035f0| 68 65 72 65 20 69 73 20 | 6e 6f 20 63 75 72 72 65 |here is |no curre|
|00003600| 6e 74 20 61 78 65 73 20 | 62 6f 78 2e 20 41 6c 6c |nt axes |box. All|
|00003610| 20 6c 61 62 65 6c 73 20 | 73 68 6f 75 6c 64 20 62 | labels |should b|
|00003620| 65 20 61 66 74 65 72 20 | 0d 0a 70 6c 6f 74 64 61 |e after |..plotda|
|00003630| 74 61 28 29 20 69 66 20 | 75 73 65 64 20 6f 74 68 |ta() if |used oth|
|00003640| 65 72 77 69 73 65 20 73 | 70 61 63 69 6e 67 20 66 |erwise s|pacing f|
|00003650| 72 6f 6d 20 74 68 65 20 | 61 78 65 73 20 6d 61 79 |rom the |axes may|
|00003660| 20 6e 6f 74 20 62 65 20 | 63 6f 72 72 65 63 74 2e | not be |correct.|
|00003670| 20 54 68 65 20 0d 0a 73 | 70 61 63 69 6e 67 20 63 | The ..s|pacing c|
|00003680| 61 6e 20 61 6c 73 6f 20 | 62 65 20 63 68 61 6e 67 |an also |be chang|
|00003690| 65 64 20 75 73 69 6e 67 | 20 73 65 74 28 4c 41 42 |ed using| set(LAB|
|000036a0| 45 4c 4d 41 52 47 2c 2e | 2e 2e 29 3b 5c 69 6e 64 |ELMARG,.|..);\ind|
|000036b0| 65 78 7b 73 65 74 2c 20 | 0d 0a 4c 41 42 45 4c 4d |ex{set, |..LABELM|
|000036c0| 41 52 47 7d 2e 20 6c 61 | 62 65 6c 28 29 3b 20 69 |ARG}. la|bel(); i|
|000036d0| 73 20 69 6d 70 6c 69 63 | 69 74 6c 79 20 73 74 72 |s implic|itly str|
|000036e0| 6f 6b 65 64 2e 20 0d 0a | 0d 0a 5c 65 6e 64 7b 71 |oked. ..|..\end{q|
|000036f0| 75 6f 74 65 7d 0d 0a 0d | 0a 5c 76 73 70 61 63 65 |uote}...|.\vspace|
|00003700| 7b 33 6d 6d 7d 0d 0a 0d | 0a 5c 6e 6f 69 6e 64 65 |{3mm}...|.\noinde|
|00003710| 6e 74 0d 0a 76 6f 69 64 | 20 7b 5c 62 66 20 6c 69 |nt..void| {\bf li|
|00003720| 6e 65 74 6f 7d 28 64 6f | 75 62 6c 65 20 78 2c 64 |neto}(do|uble x,d|
|00003730| 6f 75 62 6c 65 20 79 2c | 2e 2e 2e 29 3b 0d 0a 5c |ouble y,|...);..\|
|00003740| 69 6e 64 65 78 7b 6c 69 | 6e 65 74 6f 7d 0d 0a 5c |index{li|neto}..\|
|00003750| 62 65 67 69 6e 7b 71 75 | 6f 74 65 7d 0d 0a 20 20 |begin{qu|ote}.. |
|00003760| 20 20 20 20 20 20 41 64 | 64 73 20 61 20 6c 69 6e | Ad|ds a lin|
|00003770| 65 20 73 65 67 6d 65 6e | 74 20 74 6f 20 74 68 65 |e segmen|t to the|
|00003780| 20 63 75 72 72 65 6e 74 | 20 70 61 74 68 20 66 72 | current| path fr|
|00003790| 6f 6d 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 |om the c|urrent p|
|000037a0| 6f 69 6e 74 20 74 6f 20 | 0d 0a 28 78 2c 79 29 2e |oint to |..(x,y).|
|000037b0| 20 4d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 63 | More th|an one c|
|000037c0| 6f 6f 72 64 69 6e 61 74 | 65 20 70 6f 69 6e 74 20 |oordinat|e point |
|000037d0| 63 61 6e 20 62 65 20 73 | 70 65 63 69 66 69 65 64 |can be s|pecified|
|000037e0| 20 69 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | in the |command |
|000037f0| 69 6e 20 0d 0a 77 68 69 | 63 68 20 63 61 73 65 20 |in ..whi|ch case |
|00003800| 61 20 73 65 72 69 65 73 | 20 6f 66 20 6c 69 6e 65 |a series| of line|
|00003810| 20 73 65 67 6d 65 6e 74 | 73 20 63 6f 6e 6e 65 63 | segment|s connec|
|00003820| 74 69 6e 67 20 74 68 65 | 20 70 6f 69 6e 74 73 20 |ting the| points |
|00003830| 77 69 6c 6c 20 62 65 20 | 61 64 64 65 64 20 74 6f |will be |added to|
|00003840| 20 0d 0a 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 | ..the c|urrent p|
|00003850| 61 74 68 2e 20 49 66 20 | 74 68 65 72 65 20 69 73 |ath. If |there is|
|00003860| 20 6e 6f 20 63 75 72 72 | 65 6e 74 20 70 6f 69 6e | no curr|ent poin|
|00003870| 74 20 74 68 65 6e 20 61 | 6e 20 65 72 72 6f 72 20 |t then a|n error |
|00003880| 77 69 6c 6c 20 62 65 20 | 0d 0a 67 65 6e 65 72 61 |will be |..genera|
|00003890| 74 65 64 2e 20 0d 0a 0d | 0a 5c 65 6e 64 7b 71 75 |ted. ...|.\end{qu|
|000038a0| 6f 74 65 7d 0d 0a 0d 0a | 5c 76 73 70 61 63 65 7b |ote}....|\vspace{|
|000038b0| 33 6d 6d 7d 0d 0a 0d 0a | 5c 6e 6f 69 6e 64 65 6e |3mm}....|\noinden|
|000038c0| 74 0d 0a 76 6f 69 64 20 | 7b 5c 62 66 20 6d 6f 76 |t..void |{\bf mov|
|000038d0| 65 74 6f 7d 28 64 6f 75 | 62 6c 65 20 78 2c 20 64 |eto}(dou|ble x, d|
|000038e0| 6f 75 62 6c 65 20 79 29 | 3b 0d 0a 5c 69 6e 64 65 |ouble y)|;..\inde|
|000038f0| 78 7b 6d 6f 76 65 74 6f | 7d 0d 0a 5c 62 65 67 69 |x{moveto|}..\begi|
|00003900| 6e 7b 71 75 6f 74 65 7d | 0d 0a 20 20 20 20 20 20 |n{quote}|.. |
|00003910| 20 20 53 65 74 73 20 74 | 68 65 20 63 75 72 72 65 | Sets t|he curre|
|00003920| 6e 74 20 70 6f 69 6e 74 | 20 74 6f 20 28 78 2c 79 |nt point| to (x,y|
|00003930| 29 2e 20 41 6c 73 6f 20 | 73 65 74 73 20 74 68 65 |). Also |sets the|
|00003940| 20 70 61 74 68 20 63 6c | 6f 73 65 20 70 6f 69 6e | path cl|ose poin|
|00003950| 74 20 74 6f 20 0d 0a 28 | 78 2c 79 29 20 66 6f 72 |t to ..(|x,y) for|
|00003960| 20 73 75 62 73 65 71 75 | 65 6e 74 20 75 73 65 20 | subsequ|ent use |
|00003970| 77 69 74 68 20 63 6c 6f | 73 65 70 61 74 68 28 29 |with clo|sepath()|
|00003980| 2e 20 4d 61 6e 79 20 70 | 61 74 68 20 62 75 69 6c |. Many p|ath buil|
|00003990| 64 69 6e 67 20 63 6f 6d | 6d 61 6e 64 73 20 73 75 |ding com|mands su|
|000039a0| 63 68 20 0d 0a 61 73 20 | 63 75 72 76 65 74 6f 28 |ch ..as |curveto(|
|000039b0| 29 20 61 6e 64 20 6c 69 | 6e 65 74 6f 28 29 20 72 |) and li|neto() r|
|000039c0| 65 71 75 69 72 65 20 74 | 68 61 74 20 61 20 63 75 |equire t|hat a cu|
|000039d0| 72 72 65 6e 74 20 70 6f | 69 6e 74 20 65 78 69 73 |rrent po|int exis|
|000039e0| 74 20 62 65 66 6f 72 65 | 20 63 61 6c 6c 69 6e 67 |t before| calling|
|000039f0| 20 0d 0a 74 68 65 6d 2e | 20 0d 0a 5c 65 6e 64 7b | ..them.| ..\end{|
|00003a00| 71 75 6f 74 65 7d 0d 0a | 0d 0a 5c 76 73 70 61 63 |quote}..|..\vspac|
|00003a10| 65 7b 33 6d 6d 7d 0d 0a | 0d 0a 5c 6e 6f 69 6e 64 |e{3mm}..|..\noind|
|00003a20| 65 6e 74 0d 0a 76 6f 69 | 64 20 7b 5c 62 66 20 6e |ent..voi|d {\bf n|
|00003a30| 65 77 70 61 74 68 7d 28 | 29 3b 0d 0a 5c 69 6e 64 |ewpath}(|);..\ind|
|00003a40| 65 78 7b 6e 65 77 70 61 | 74 68 7d 0d 0a 5c 62 65 |ex{newpa|th}..\be|
|00003a50| 67 69 6e 7b 71 75 6f 74 | 65 7d 0d 0a 20 20 20 20 |gin{quot|e}.. |
|00003a60| 20 20 20 20 52 65 73 65 | 74 73 20 74 68 65 20 63 | Rese|ts the c|
|00003a70| 75 72 72 65 6e 74 20 70 | 61 74 68 20 74 6f 20 4e |urrent p|ath to N|
|00003a80| 55 4c 4c 20 61 6e 64 20 | 61 6c 73 6f 20 63 61 75 |ULL and |also cau|
|00003a90| 73 65 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ses the |current |
|00003aa0| 70 6f 69 6e 74 20 0d 0a | 74 6f 20 62 65 20 75 6e |point ..|to be un|
|00003ab0| 64 65 66 69 6e 65 64 2e | 20 46 75 72 74 68 65 72 |defined.| Further|
|00003ac0| 6d 6f 72 65 2c 20 69 74 | 20 74 75 72 6e 73 20 6f |more, it| turns o|
|00003ad0| 66 66 20 74 68 65 20 69 | 6d 70 6c 69 63 69 74 20 |ff the i|mplicit |
|00003ae0| 0d 0a 73 74 72 6f 6b 69 | 6e 67 5c 69 6e 64 65 78 |..stroki|ng\index|
|00003af0| 7b 69 6d 70 6c 69 63 69 | 74 20 73 74 72 6f 6b 69 |{implici|t stroki|
|00003b00| 6e 67 7d 20 6f 66 20 65 | 6c 65 6d 65 6e 74 73 20 |ng} of e|lements |
|00003b10| 74 68 61 74 20 61 72 65 | 20 6e 6f 72 6d 61 6c 6c |that are| normall|
|00003b20| 79 20 69 6d 70 6c 69 63 | 69 74 6c 79 20 0d 0a 73 |y implic|itly ..s|
|00003b30| 74 72 6f 6b 65 64 20 73 | 75 63 68 20 61 73 20 74 |troked s|uch as t|
|00003b40| 65 78 74 28 29 5c 69 6e | 64 65 78 7b 74 65 78 74 |ext()\in|dex{text|
|00003b50| 7d 3b 2e 20 54 68 75 73 | 20 75 73 69 6e 67 20 6e |};. Thus| using n|
|00003b60| 65 77 70 61 74 68 28 29 | 20 74 68 65 73 65 20 65 |ewpath()| these e|
|00003b70| 6c 65 6d 65 6e 74 73 20 | 63 61 6e 20 62 65 20 61 |lements |can be a|
|00003b80| 64 64 65 64 20 0d 0a 74 | 6f 20 61 20 70 61 74 68 |dded ..t|o a path|
|00003b90| 20 77 68 69 63 68 20 6d | 75 73 74 20 74 68 65 6e | which m|ust then|
|00003ba0| 20 62 65 20 65 78 70 6c | 69 63 69 74 6c 79 20 73 | be expl|icitly s|
|00003bb0| 74 72 6f 6b 65 64 2e 20 | 73 74 72 6f 6b 65 28 29 |troked. |stroke()|
|00003bc0| 20 74 75 72 6e 73 20 6f | 6e 20 69 6d 70 6c 69 63 | turns o|n implic|
|00003bd0| 69 74 20 0d 0a 73 74 72 | 6f 6b 69 6e 67 20 61 67 |it ..str|oking ag|
|00003be0| 61 69 6e 2e 20 0d 0a 0d | 0a 5c 65 6e 64 7b 71 75 |ain. ...|.\end{qu|
|00003bf0| 6f 74 65 7d 0d 0a 0d 0a | 5c 76 73 70 61 63 65 7b |ote}....|\vspace{|
|00003c00| 33 6d 6d 7d 0d 0a 0d 0a | 5c 6e 6f 69 6e 64 65 6e |3mm}....|\noinden|
|00003c10| 74 0d 0a 76 6f 69 64 20 | 7b 5c 62 66 20 70 6c 6f |t..void |{\bf plo|
|00003c20| 74 64 61 74 61 7d 28 64 | 6f 75 62 6c 65 20 2a 64 |tdata}(d|ouble *d|
|00003c30| 61 74 61 2c 69 6e 74 20 | 78 63 6f 6c 2c 20 69 6e |ata,int |xcol, in|
|00003c40| 74 20 79 63 6f 6c 29 3b | 0d 0a 5c 69 6e 64 65 78 |t ycol);|..\index|
|00003c50| 7b 70 6c 6f 74 64 61 74 | 61 7d 0d 0a 5c 62 65 67 |{plotdat|a}..\beg|
|00003c60| 69 6e 7b 71 75 6f 74 65 | 7d 0d 0a 20 20 20 20 20 |in{quote|}.. |
|00003c70| 20 20 20 50 6c 6f 74 73 | 20 74 68 65 20 64 61 74 | Plots| the dat|
|00003c80| 61 20 66 6f 75 6e 64 20 | 69 6e 20 61 72 72 61 79 |a found |in array|
|00003c90| 20 64 61 74 61 5c 69 6e | 64 65 78 7b 64 61 74 61 | data\in|dex{data|
|00003ca0| 7d 20 69 6e 20 61 20 62 | 6f 78 2e 20 54 68 69 73 |} in a b|ox. This|
|00003cb0| 20 0d 0a 63 6f 6d 6d 61 | 6e 64 20 63 68 6f 6f 73 | ..comma|nd choos|
|00003cc0| 65 73 20 74 68 65 20 73 | 63 61 6c 65 20 73 69 7a |es the s|cale siz|
|00003cd0| 65 73 20 74 69 63 6b 20 | 6d 61 72 6b 73 5c 69 6e |es tick |marks\in|
|00003ce0| 64 65 78 7b 74 69 63 6b | 20 6d 61 72 6b 73 7d 20 |dex{tick| marks} |
|00003cf0| 65 74 63 2e 20 74 6f 20 | 0d 0a 64 69 73 70 6c 61 |etc. to |..displa|
|00003d00| 79 20 74 68 65 20 64 61 | 74 61 20 77 68 69 63 68 |y the da|ta which|
|00003d10| 20 69 73 20 61 73 73 75 | 6d 65 64 20 74 6f 20 62 | is assu|med to b|
|00003d20| 65 20 69 6e 20 6f 72 64 | 65 72 20 6f 66 20 6d 6f |e in ord|er of mo|
|00003d30| 6e 6f 74 6f 6e 69 63 61 | 6c 6c 79 20 0d 0a 69 6e |notonica|lly ..in|
|00003d40| 63 72 65 61 73 69 6e 67 | 20 6f 72 20 64 65 63 72 |creasing| or decr|
|00003d50| 65 61 73 69 6e 67 20 78 | 20 76 61 6c 75 65 20 6f |easing x| value o|
|00003d60| 72 64 65 72 2e 20 54 68 | 65 20 6f 70 74 69 6f 6e |rder. Th|e option|
|00003d70| 61 6c 20 70 61 72 61 6d | 65 74 65 72 73 20 78 63 |al param|eters xc|
|00003d80| 6f 6c 20 61 6e 64 20 0d | 0a 79 63 6f 6c 20 63 6f |ol and .|.ycol co|
|00003d90| 72 72 65 73 70 6f 6e 64 | 20 74 6f 20 74 68 65 20 |rrespond| to the |
|00003da0| 63 6f 6c 75 6d 6e 20 6e | 75 6d 62 65 72 73 20 28 |column n|umbers (|
|00003db0| 73 74 61 72 74 73 20 61 | 74 20 7a 65 72 6f 29 20 |starts a|t zero) |
|00003dc0| 6f 66 20 74 68 65 20 74 | 61 62 75 6c 61 72 20 61 |of the t|abular a|
|00003dd0| 72 72 61 79 20 0d 0a 77 | 68 69 63 68 20 61 72 65 |rray ..w|hich are|
|00003de0| 20 74 6f 20 62 65 20 75 | 73 65 64 20 66 6f 72 20 | to be u|sed for |
|00003df0| 74 68 65 20 78 20 61 6e | 64 20 79 20 61 78 69 73 |the x an|d y axis|
|00003e00| 20 76 61 6c 75 65 73 20 | 72 65 73 70 65 63 74 69 | values |respecti|
|00003e10| 76 65 6c 79 2e 20 49 66 | 20 74 68 65 73 65 20 0d |vely. If| these .|
|00003e20| 0a 70 61 72 61 6d 65 74 | 65 72 73 20 61 72 65 20 |.paramet|ers are |
|00003e30| 6f 6d 69 74 74 65 64 20 | 74 68 65 6e 20 74 68 65 |omitted |then the|
|00003e40| 20 76 61 6c 75 65 73 20 | 30 20 61 6e 64 20 31 20 | values |0 and 1 |
|00003e50| 61 72 65 20 61 73 73 75 | 6d 65 64 2e 20 49 66 20 |are assu|med. If |
|00003e60| 74 68 65 20 64 65 66 61 | 75 6c 74 20 0d 0a 63 68 |the defa|ult ..ch|
|00003e70| 6f 69 63 65 73 20 6f 66 | 20 70 6c 6f 74 64 61 74 |oices of| plotdat|
|00003e80| 61 20 61 72 65 20 6e 6f | 74 20 61 63 63 65 70 74 |a are no|t accept|
|00003e90| 61 62 6c 65 20 61 20 70 | 6c 6f 74 20 63 61 6e 20 |able a p|lot can |
|00003ea0| 62 65 20 67 65 6e 65 72 | 61 74 65 64 20 75 73 69 |be gener|ated usi|
|00003eb0| 6e 67 20 74 68 65 20 0d | 0a 73 74 65 70 20 62 79 |ng the .|.step by|
|00003ec0| 20 73 74 65 70 20 6d 65 | 74 68 6f 64 20 75 73 69 | step me|thod usi|
|00003ed0| 6e 67 20 61 78 65 73 5c | 5f 62 6f 78 28 29 2c 20 |ng axes\|_box(), |
|00003ee0| 74 69 63 6b 6d 61 72 6b | 73 28 29 2c 20 74 69 63 |tickmark|s(), tic|
|00003ef0| 6b 6c 61 62 65 6c 28 29 | 5c 69 6e 64 65 78 7b 74 |klabel()|\index{t|
|00003f00| 69 63 6b 20 0d 0a 6c 61 | 62 65 6c 73 7d 20 61 6e |ick ..la|bels} an|
|00003f10| 64 20 64 72 61 77 64 61 | 74 61 28 29 5c 69 6e 64 |d drawda|ta()\ind|
|00003f20| 65 78 7b 64 72 61 77 64 | 61 74 61 7d 2e 20 54 68 |ex{drawd|ata}. Th|
|00003f30| 65 20 64 61 74 61 20 6d | 75 73 74 20 66 69 72 73 |e data m|ust firs|
|00003f40| 74 20 62 65 20 72 65 61 | 64 20 69 6e 20 74 6f 20 |t be rea|d in to |
|00003f50| 0d 0a 61 72 72 61 79 20 | 64 61 74 61 20 75 73 69 |..array |data usi|
|00003f60| 6e 67 20 72 65 61 64 64 | 61 74 61 28 20 29 5c 69 |ng readd|ata( )\i|
|00003f70| 6e 64 65 78 7b 72 65 61 | 64 64 61 74 61 7d 2e 20 |ndex{rea|ddata}. |
|00003f80| 54 68 65 20 76 61 6c 69 | 64 20 6f 70 74 69 6f 6e |The vali|d option|
|00003f90| 20 76 61 6c 75 65 73 20 | 61 72 65 20 0d 0a 64 65 | values |are ..de|
|00003fa0| 66 69 6e 65 64 20 69 6e | 20 73 70 6c 6f 74 2e 68 |fined in| splot.h|
|00003fb0| 2e 20 53 65 65 20 61 6c | 73 6f 20 73 65 74 28 29 |. See al|so set()|
|00003fc0| 20 66 6f 72 20 61 20 64 | 65 73 63 72 69 70 74 69 | for a d|escripti|
|00003fd0| 6f 6e 20 6f 66 20 74 68 | 65 20 76 61 72 69 6f 75 |on of th|e variou|
|00003fe0| 73 20 0d 0a 6f 70 74 69 | 6f 6e 73 2e 20 70 6c 6f |s ..opti|ons. plo|
|00003ff0| 74 64 61 74 61 28 29 20 | 69 73 20 69 6d 70 6c 69 |tdata() |is impli|
|00004000| 63 69 74 6c 79 20 73 74 | 72 6f 6b 65 64 2e 20 0d |citly st|roked. .|
|00004010| 0a 0d 0a 5c 65 6e 64 7b | 71 75 6f 74 65 7d 0d 0a |...\end{|quote}..|
|00004020| 0d 0a 5c 76 73 70 61 63 | 65 7b 33 6d 6d 7d 0d 0a |..\vspac|e{3mm}..|
|00004030| 0d 0a 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 76 6f 69 |..\noind|ent..voi|
|00004040| 64 20 7b 5c 62 66 20 72 | 65 61 64 64 61 74 61 7d |d {\bf r|eaddata}|
|00004050| 28 63 68 61 72 20 2a 20 | 66 69 6c 65 6e 61 6d 65 |(char * |filename|
|00004060| 2c 20 64 6f 75 62 6c 65 | 20 2a 20 64 61 74 61 29 |, double| * data)|
|00004070| 3b 0d 0a 5c 69 6e 64 65 | 78 7b 72 65 61 64 64 61 |;..\inde|x{readda|
|00004080| 74 61 7d 0d 0a 5c 62 65 | 67 69 6e 7b 71 75 6f 74 |ta}..\be|gin{quot|
|00004090| 65 7d 0d 0a 20 20 20 20 | 20 20 20 20 52 65 61 64 |e}.. | Read|
|000040a0| 73 20 61 20 66 69 6c 65 | 20 6f 66 20 6e 61 6d 65 |s a file| of name|
|000040b0| 20 66 69 6c 65 6e 61 6d | 65 20 61 6e 64 20 70 75 | filenam|e and pu|
|000040c0| 74 73 20 74 68 65 20 64 | 61 74 61 20 69 6e 74 6f |ts the d|ata into|
|000040d0| 20 74 68 65 20 61 72 72 | 61 79 20 0d 0a 22 64 61 | the arr|ay .."da|
|000040e0| 74 61 22 5c 69 6e 64 65 | 78 7b 64 61 74 61 7d 2e |ta"\inde|x{data}.|
|000040f0| 20 54 68 65 20 66 69 6c | 65 20 73 68 6f 75 6c 64 | The fil|e should|
|00004100| 20 62 65 20 69 6e 20 41 | 53 43 49 49 20 66 6f 72 | be in A|SCII for|
|00004110| 6d 61 74 20 77 69 74 68 | 20 74 68 65 20 78 20 64 |mat with| the x d|
|00004120| 61 74 61 20 69 6e 20 0d | 0a 6f 6e 65 20 63 6f 6c |ata in .|.one col|
|00004130| 75 6d 6e 20 61 6e 64 20 | 74 68 65 20 79 20 64 61 |umn and |the y da|
|00004140| 74 61 20 76 61 6c 75 65 | 73 20 6e 65 78 74 20 63 |ta value|s next c|
|00004150| 6f 6c 75 6d 6e 28 73 29 | 2e 20 41 6e 79 20 6c 69 |olumn(s)|. Any li|
|00004160| 6e 65 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 6e 6f |ne conta|ining no|
|00004170| 6e 20 0d 0a 6e 75 6d 65 | 72 69 63 20 63 68 61 72 |n ..nume|ric char|
|00004180| 61 63 74 65 72 73 20 6f | 72 20 69 73 20 62 6c 61 |acters o|r is bla|
|00004190| 6e 6b 20 77 69 6c 6c 20 | 62 65 20 63 6f 6e 73 69 |nk will |be consi|
|000041a0| 64 65 72 65 64 20 61 20 | 63 6f 6d 6d 65 6e 74 20 |dered a |comment |
|000041b0| 61 6e 64 20 69 67 6e 6f | 72 65 64 2e 20 0d 0a 57 |and igno|red. ..W|
|000041c0| 41 52 4e 49 4e 47 21 20 | 41 73 20 61 6e 20 6f 70 |ARNING! |As an op|
|000041d0| 74 69 6d 69 7a 61 74 69 | 6f 6e 20 64 61 74 61 20 |timizati|on data |
|000041e0| 69 73 20 6f 6e 6c 79 20 | 72 65 61 64 20 66 72 6f |is only |read fro|
|000041f0| 6d 20 64 69 73 6b 20 6f | 6e 63 65 20 69 66 20 74 |m disk o|nce if t|
|00004200| 68 65 20 0d 0a 63 6f 6e | 66 69 67 75 72 61 74 69 |he ..con|figurati|
|00004210| 6f 6e 20 70 61 72 61 6d | 65 74 65 72 20 61 6c 77 |on param|eter alw|
|00004220| 61 79 73 5c 5f 6c 6f 61 | 64 5c 69 6e 64 65 78 7b |ays\_loa|d\index{|
|00004230| 64 61 74 61 2c 20 61 6c | 77 61 79 73 20 6c 6f 61 |data, al|ways loa|
|00004240| 64 7d 20 69 73 20 6f 66 | 66 2e 20 0d 0a 53 75 62 |d} is of|f. ..Sub|
|00004250| 73 65 71 75 65 6e 74 20 | 65 78 65 63 75 74 69 6f |sequent |executio|
|00004260| 6e 73 20 75 73 65 20 74 | 68 65 20 73 74 6f 72 65 |ns use t|he store|
|00004270| 64 20 64 61 74 61 20 61 | 6c 72 65 61 64 79 20 69 |d data a|lready i|
|00004280| 6e 20 6d 65 6d 6f 72 79 | 20 28 65 78 63 65 70 74 |n memory| (except|
|00004290| 20 61 66 74 65 72 20 61 | 20 0d 0a 72 65 73 65 74 | after a| ..reset|
|000042a0| 28 29 2e 20 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |(). This| means t|
|000042b0| 68 61 74 20 69 66 20 79 | 6f 75 20 6d 6f 64 69 66 |hat if y|ou modif|
|000042c0| 79 20 74 68 65 20 61 72 | 72 61 79 20 22 64 61 74 |y the ar|ray "dat|
|000042d0| 61 22 20 61 66 74 65 72 | 20 72 65 61 64 69 6e 67 |a" after| reading|
|000042e0| 20 69 6e 20 0d 0a 76 61 | 6c 75 65 73 20 74 68 65 | in ..va|lues the|
|000042f0| 20 6e 65 78 74 20 74 69 | 6d 65 20 74 68 65 20 66 | next ti|me the f|
|00004300| 69 6c 65 20 69 73 20 65 | 78 65 63 75 74 65 64 20 |ile is e|xecuted |
|00004310| 79 6f 75 20 77 69 6c 6c | 20 67 65 74 20 73 74 72 |you will| get str|
|00004320| 61 6e 67 65 20 72 65 73 | 75 6c 74 73 2e 20 0d 0a |ange res|ults. ..|
|00004330| 53 69 6d 69 6c 61 72 6c | 79 2c 20 69 66 20 79 6f |Similarl|y, if yo|
|00004340| 75 20 72 65 75 73 65 20 | 74 68 65 20 73 61 6d 65 |u reuse |the same|
|00004350| 20 61 72 72 61 79 20 66 | 6f 72 20 64 69 66 66 65 | array f|or diffe|
|00004360| 72 65 6e 74 20 70 6c 6f | 74 73 20 69 6e 20 74 68 |rent plo|ts in th|
|00004370| 65 20 73 61 6d 65 20 0d | 0a 64 72 61 77 69 6e 67 |e same .|.drawing|
|00004380| 20 79 6f 75 20 77 69 6c | 6c 20 68 61 76 65 20 74 | you wil|l have t|
|00004390| 72 6f 75 62 6c 65 2e 20 | 54 68 65 20 6d 6f 74 74 |rouble. |The mott|
|000043a0| 6f 20 69 73 20 6e 65 76 | 65 72 20 63 68 61 6e 67 |o is nev|er chang|
|000043b0| 65 20 74 68 65 20 76 61 | 6c 75 65 73 20 69 6e 20 |e the va|lues in |
|000043c0| 74 68 65 20 0d 0a 61 72 | 72 61 79 20 22 64 61 74 |the ..ar|ray "dat|
|000043d0| 61 22 2e 20 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |a". If y|ou want |
|000043e0| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 76 61 |to chang|e the va|
|000043f0| 6c 75 65 73 20 64 65 63 | 6c 61 72 65 20 61 6e 6f |lues dec|lare ano|
|00004400| 74 68 65 72 20 61 72 72 | 61 79 20 61 6e 64 20 0d |ther arr|ay and .|
|00004410| 0a 63 6f 70 79 20 74 68 | 65 20 76 61 6c 75 65 73 |.copy th|e values|
|00004420| 2e 20 41 6c 73 6f 20 72 | 65 6d 65 6d 62 65 72 20 |. Also r|emember |
|00004430| 74 68 61 74 20 72 65 61 | 64 64 61 74 61 28 29 20 |that rea|ddata() |
|00004440| 69 6d 70 6c 69 63 69 74 | 6c 79 20 61 6c 6c 6f 63 |implicit|ly alloc|
|00004450| 61 74 65 73 20 6d 65 6d | 6f 72 79 20 0d 0a 66 6f |ates mem|ory ..fo|
|00004460| 72 20 74 68 65 20 64 61 | 74 61 20 61 72 72 61 79 |r the da|ta array|
|00004470| 20 73 6f 20 69 74 20 69 | 73 20 63 6f 72 72 65 63 | so it i|s correc|
|00004480| 74 20 74 6f 20 64 65 63 | 6c 61 72 65 20 74 68 65 |t to dec|lare the|
|00004490| 20 64 61 74 61 20 61 72 | 72 61 79 20 61 73 20 64 | data ar|ray as d|
|000044a0| 6f 75 62 6c 65 20 0d 0a | 2a 64 61 74 61 3b 20 61 |ouble ..|*data; a|
|000044b0| 74 20 74 68 65 20 74 6f | 70 2e 20 49 66 20 68 6f |t the to|p. If ho|
|000044c0| 77 65 76 65 72 2c 20 79 | 6f 75 20 61 72 65 20 67 |wever, y|ou are g|
|000044d0| 6f 69 6e 67 20 74 6f 20 | 66 69 6c 6c 20 69 6e 20 |oing to |fill in |
|000044e0| 61 20 6e 65 77 20 61 72 | 72 61 79 20 77 69 74 68 |a new ar|ray with|
|000044f0| 20 0d 0a 63 61 6c 63 75 | 6c 61 74 65 64 20 76 61 | ..calcu|lated va|
|00004500| 6c 75 65 73 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |lues you| need to|
|00004510| 20 64 65 63 6c 61 72 65 | 20 74 68 65 20 61 72 72 | declare| the arr|
|00004520| 61 79 20 61 73 20 64 6f | 75 62 6c 65 20 0d 0a 6e |ay as do|uble ..n|
|00004530| 65 77 64 61 74 61 5b 79 | 73 69 7a 65 5d 5b 78 73 |ewdata[y|size][xs|
|00004540| 69 7a 65 5d 3b 20 73 6f | 20 74 68 61 74 20 73 70 |ize]; so| that sp|
|00004550| 61 63 65 20 77 69 6c 6c | 20 62 65 20 61 6c 6c 6f |ace will| be allo|
|00004560| 63 61 74 65 64 2e 20 0d | 0a 0d 0a 5c 65 6e 64 7b |cated. .|...\end{|
|00004570| 71 75 6f 74 65 7d 20 0d | 0a 0d 0a 5c 76 73 70 61 |quote} .|...\vspa|
|00004580| 63 65 7b 33 6d 6d 7d 0d | 0a 0d 0a 5c 6e 6f 69 6e |ce{3mm}.|...\noin|
|00004590| 64 65 6e 74 0d 0a 0d 0a | 76 6f 69 64 20 7b 5c 62 |dent....|void {\b|
|000045a0| 66 20 72 61 72 72 6f 77 | 74 6f 7d 28 64 6f 75 62 |f rarrow|to}(doub|
|000045b0| 6c 65 20 78 2c 20 64 6f | 75 62 6c 65 20 79 2c 2e |le x, do|uble y,.|
|000045c0| 2e 2e 29 3b 20 0d 0a 5c | 69 6e 64 65 78 7b 72 61 |..); ..\|index{ra|
|000045d0| 72 72 6f 77 74 6f 7d 0d | 0a 5c 62 65 67 69 6e 7b |rrowto}.|.\begin{|
|000045e0| 71 75 6f 74 65 7d 0d 0a | 20 20 0d 0a 20 41 64 64 |quote}..| .. Add|
|000045f0| 73 20 61 20 6c 69 6e 65 | 20 73 65 67 6d 65 6e 74 |s a line| segment|
|00004600| 20 74 6f 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | to the |current |
|00004610| 70 61 74 68 20 66 72 6f | 6d 20 74 68 65 20 63 75 |path fro|m the cu|
|00004620| 72 72 65 6e 74 20 0d 0a | 20 70 6f 69 6e 74 20 74 |rrent ..| point t|
|00004630| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 6f |o the cu|rrent po|
|00004640| 69 6e 74 20 70 6c 75 73 | 20 78 2c 20 79 2e 20 54 |int plus| x, y. T|
|00004650| 68 65 20 6c 69 6e 65 20 | 69 73 20 0d 0a 20 74 65 |he line |is .. te|
|00004660| 72 6d 69 6e 61 74 65 64 | 20 62 79 20 64 72 61 77 |rminated| by draw|
|00004670| 69 6e 67 20 61 6e 20 61 | 72 72 6f 77 20 68 65 61 |ing an a|rrow hea|
|00004680| 64 20 6f 72 69 65 6e 74 | 65 64 20 69 6e 20 74 68 |d orient|ed in th|
|00004690| 65 20 0d 0a 20 64 69 72 | 65 63 74 69 6f 6e 20 6f |e .. dir|ection o|
|000046a0| 66 20 74 68 65 20 6c 69 | 6e 65 2e 20 54 68 69 73 |f the li|ne. This|
|000046b0| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 69 64 65 6e | command| is iden|
|000046c0| 74 69 63 61 6c 20 74 6f | 20 61 72 72 6f 77 74 6f |tical to| arrowto|
|000046d0| 20 0d 0a 20 65 78 63 65 | 70 74 20 74 68 61 74 20 | .. exce|pt that |
|000046e0| 74 68 65 20 64 69 73 70 | 6c 61 63 65 6d 65 6e 74 |the disp|lacement|
|000046f0| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 20 72 65 | is spec|ified re|
|00004700| 6c 61 74 69 76 65 20 74 | 6f 20 74 68 65 20 0d 0a |lative t|o the ..|
|00004710| 20 63 75 72 72 65 6e 74 | 20 70 6f 69 6e 74 2e 20 | current| point. |
|00004720| 4d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 63 6f |More tha|n one co|
|00004730| 6f 72 64 69 6e 61 74 65 | 20 70 6f 69 6e 74 20 63 |ordinate| point c|
|00004740| 61 6e 20 62 65 20 0d 0a | 20 73 70 65 63 69 66 69 |an be ..| specifi|
|00004750| 65 64 20 69 6e 20 74 68 | 65 20 63 6f 6d 6d 61 6e |ed in th|e comman|
|00004760| 64 20 69 6e 20 77 68 69 | 63 68 20 63 61 73 65 20 |d in whi|ch case |
|00004770| 61 20 73 65 72 69 65 73 | 20 6f 66 20 6c 69 6e 65 |a series| of line|
|00004780| 20 0d 0a 20 73 65 67 6d | 65 6e 74 73 20 74 65 72 | .. segm|ents ter|
|00004790| 6d 69 6e 61 74 65 64 20 | 62 79 20 61 72 72 6f 77 |minated |by arrow|
|000047a0| 73 20 63 6f 6e 6e 65 63 | 74 69 6e 67 20 74 68 65 |s connec|ting the|
|000047b0| 20 70 6f 69 6e 74 73 20 | 77 69 6c 6c 20 62 65 20 | points |will be |
|000047c0| 0d 0a 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |.. added| to the |
|000047d0| 63 75 72 72 65 6e 74 20 | 70 61 74 68 2e 20 49 66 |current |path. If|
|000047e0| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 63 75 72 | there i|s no cur|
|000047f0| 72 65 6e 74 20 70 6f 69 | 6e 74 20 0d 0a 20 74 68 |rent poi|nt .. th|
|00004800| 65 6e 20 61 6e 20 65 72 | 72 6f 72 20 77 69 6c 6c |en an er|ror will|
|00004810| 20 62 65 20 67 65 6e 65 | 72 61 74 65 64 2e 20 54 | be gene|rated. T|
|00004820| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 61 |he size |of the a|
|00004830| 72 72 6f 77 20 0d 0a 20 | 68 65 61 64 20 6d 61 79 |rrow .. |head may|
|00004840| 20 62 65 20 63 68 61 6e | 67 65 64 20 77 69 74 68 | be chan|ged with|
|00004850| 20 74 68 65 20 73 65 74 | 28 46 4f 4e 54 57 49 44 | the set|(FONTWID|
|00004860| 54 48 2c 2e 2e 2e 29 3b | 20 63 6f 6d 6d 61 6e 64 |TH,...);| command|
|00004870| 2e 0d 0a 5c 65 6e 64 7b | 71 75 6f 74 65 7d 0d 0a |...\end{|quote}..|
|00004880| 20 20 0d 0a 0d 0a 5c 76 | 73 70 61 63 65 7b 33 6d | ....\v|space{3m|
|00004890| 6d 7d 0d 0a 0d 0a 5c 6e | 6f 69 6e 64 65 6e 74 0d |m}....\n|oindent.|
|000048a0| 0a 76 6f 69 64 20 7b 5c | 62 66 20 72 65 73 65 74 |.void {\|bf reset|
|000048b0| 7d 28 29 3b 0d 0a 5c 69 | 6e 64 65 78 7b 72 65 73 |}();..\i|ndex{res|
|000048c0| 65 74 7d 0d 0a 5c 62 65 | 67 69 6e 7b 71 75 6f 74 |et}..\be|gin{quot|
|000048d0| 65 7d 0d 0a 20 20 20 20 | 20 20 20 20 52 65 73 74 |e}.. | Rest|
|000048e0| 6f 72 65 73 20 61 6c 6c | 20 73 65 74 20 61 62 6c |ores all| set abl|
|000048f0| 65 20 70 61 72 61 6d 65 | 74 65 72 73 20 74 6f 20 |e parame|ters to |
|00004900| 74 68 65 69 72 20 64 65 | 66 61 75 6c 74 20 76 61 |their de|fault va|
|00004910| 6c 75 65 73 2e 20 43 6c | 65 61 72 73 20 0d 0a 74 |lues. Cl|ears ..t|
|00004920| 68 65 20 63 75 72 72 65 | 6e 74 20 70 61 74 68 20 |he curre|nt path |
|00004930| 61 6e 64 20 63 6c 69 70 | 20 70 61 74 68 2e 20 0d |and clip| path. .|
|00004940| 0a 5c 65 6e 64 7b 71 75 | 6f 74 65 7d 0d 0a 0d 0a |.\end{qu|ote}....|
|00004950| 5c 76 73 70 61 63 65 7b | 33 6d 6d 7d 0d 0a 0d 0a |\vspace{|3mm}....|
|00004960| 5c 6e 6f 69 6e 64 65 6e | 74 0d 0a 76 6f 69 64 20 |\noinden|t..void |
|00004970| 7b 5c 62 66 20 72 6c 69 | 6e 65 74 6f 7d 28 64 6f |{\bf rli|neto}(do|
|00004980| 75 62 6c 65 20 78 2c 64 | 6f 75 62 6c 65 20 79 2c |uble x,d|ouble y,|
|00004990| 2e 2e 2e 29 3b 0d 0a 5c | 69 6e 64 65 78 7b 72 6c |...);..\|index{rl|
|000049a0| 69 6e 65 74 6f 7d 0d 0a | 5c 62 65 67 69 6e 7b 71 |ineto}..|\begin{q|
|000049b0| 75 6f 74 65 7d 0d 0a 20 | 20 20 20 20 20 20 20 41 |uote}.. | A|
|000049c0| 64 64 73 20 61 20 6c 69 | 6e 65 20 73 65 67 6d 65 |dds a li|ne segme|
|000049d0| 6e 74 20 74 6f 20 74 68 | 65 20 63 75 72 72 65 6e |nt to th|e curren|
|000049e0| 74 20 70 61 74 68 20 66 | 72 6f 6d 20 74 68 65 20 |t path f|rom the |
|000049f0| 63 75 72 72 65 6e 74 20 | 70 6f 69 6e 74 20 74 6f |current |point to|
|00004a00| 20 0d 0a 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 | ..the c|urrent p|
|00004a10| 6f 69 6e 74 20 70 6c 75 | 73 20 78 2c 20 79 2e 20 |oint plu|s x, y. |
|00004a20| 54 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |This com|mand is |
|00004a30| 69 64 65 6e 74 69 63 61 | 6c 20 74 6f 20 6c 69 6e |identica|l to lin|
|00004a40| 65 74 6f 20 65 78 63 65 | 70 74 20 0d 0a 74 68 61 |eto exce|pt ..tha|
|00004a50| 74 20 74 68 65 20 64 69 | 73 70 6c 61 63 65 6d 65 |t the di|splaceme|
|00004a60| 6e 74 20 69 73 20 73 70 | 65 63 69 66 69 65 64 20 |nt is sp|ecified |
|00004a70| 72 65 6c 61 74 69 76 65 | 20 74 6f 20 74 68 65 20 |relative| to the |
|00004a80| 63 75 72 72 65 6e 74 20 | 70 6f 69 6e 74 2e 20 4d |current |point. M|
|00004a90| 6f 72 65 20 74 68 61 6e | 20 0d 0a 6f 6e 65 20 63 |ore than| ..one c|
|00004aa0| 6f 6f 72 64 69 6e 61 74 | 65 20 70 6f 69 6e 74 20 |oordinat|e point |
|00004ab0| 63 61 6e 20 62 65 20 73 | 70 65 63 69 66 69 65 64 |can be s|pecified|
|00004ac0| 20 69 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | in the |command |
|00004ad0| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 20 61 20 |in which| case a |
|00004ae0| 73 65 72 69 65 73 20 0d | 0a 6f 66 20 6c 69 6e 65 |series .|.of line|
|00004af0| 20 73 65 67 6d 65 6e 74 | 73 20 63 6f 6e 6e 65 63 | segment|s connec|
|00004b00| 74 69 6e 67 20 74 68 65 | 20 70 6f 69 6e 74 73 20 |ting the| points |
|00004b10| 77 69 6c 6c 20 62 65 20 | 61 64 64 65 64 20 74 6f |will be |added to|
|00004b20| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 70 61 74 | the cur|rent pat|
|00004b30| 68 2e 20 0d 0a 49 66 20 | 74 68 65 72 65 20 69 73 |h. ..If |there is|
|00004b40| 20 6e 6f 20 63 75 72 72 | 65 6e 74 20 70 6f 69 6e | no curr|ent poin|
|00004b50| 74 20 74 68 65 6e 20 61 | 6e 20 65 72 72 6f 72 20 |t then a|n error |
|00004b60| 77 69 6c 6c 20 62 65 20 | 67 65 6e 65 72 61 74 65 |will be |generate|
|00004b70| 64 2e 20 0d 0a 5c 65 6e | 64 7b 71 75 6f 74 65 7d |d. ..\en|d{quote}|
|00004b80| 0d 0a 0d 0a 5c 76 73 70 | 61 63 65 7b 33 6d 6d 7d |....\vsp|ace{3mm}|
|00004b90| 0d 0a 0d 0a 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 76 |....\noi|ndent..v|
|00004ba0| 6f 69 64 20 7b 5c 62 66 | 20 72 6d 6f 76 65 74 6f |oid {\bf| rmoveto|
|00004bb0| 7d 28 64 6f 75 62 6c 65 | 20 78 2c 20 64 6f 75 62 |}(double| x, doub|
|00004bc0| 6c 65 20 79 29 3b 0d 0a | 5c 69 6e 64 65 78 7b 72 |le y);..|\index{r|
|00004bd0| 6d 6f 76 65 74 6f 7d 0d | 0a 5c 62 65 67 69 6e 7b |moveto}.|.\begin{|
|00004be0| 71 75 6f 74 65 7d 0d 0a | 20 20 20 20 20 20 20 20 |quote}..| |
|00004bf0| 53 65 74 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |Sets the| current|
|00004c00| 20 70 6f 69 6e 74 20 74 | 6f 20 74 68 65 20 63 75 | point t|o the cu|
|00004c10| 72 72 65 6e 74 20 70 6f | 69 6e 74 20 70 6c 75 73 |rrent po|int plus|
|00004c20| 20 78 2c 79 2e 20 54 68 | 69 73 20 63 6f 6d 6d 61 | x,y. Th|is comma|
|00004c30| 6e 64 20 0d 0a 69 73 20 | 74 68 65 20 73 61 6d 65 |nd ..is |the same|
|00004c40| 20 61 73 20 6d 6f 76 65 | 74 6f 20 65 78 63 65 70 | as move|to excep|
|00004c50| 74 20 74 68 61 74 20 61 | 20 72 65 6c 61 74 69 76 |t that a| relativ|
|00004c60| 65 20 6d 6f 76 65 20 69 | 73 20 73 70 65 63 69 66 |e move i|s specif|
|00004c70| 69 65 64 2e 20 49 74 20 | 61 6c 73 6f 20 0d 0a 73 |ied. It |also ..s|
|00004c80| 65 74 73 20 74 68 65 20 | 70 61 74 68 20 63 6c 6f |ets the |path clo|
|00004c90| 73 65 20 70 6f 69 6e 74 | 20 66 6f 72 20 73 75 62 |se point| for sub|
|00004ca0| 73 65 71 75 65 6e 74 20 | 75 73 65 20 77 69 74 68 |sequent |use with|
|00004cb0| 20 63 6c 6f 73 65 70 61 | 74 68 28 29 2e 20 4d 61 | closepa|th(). Ma|
|00004cc0| 6e 79 20 70 61 74 68 20 | 0d 0a 62 75 69 6c 64 69 |ny path |..buildi|
|00004cd0| 6e 67 20 63 6f 6d 6d 61 | 6e 64 73 20 73 75 63 68 |ng comma|nds such|
|00004ce0| 20 61 73 20 63 75 72 76 | 65 74 6f 20 61 6e 64 20 | as curv|eto and |
|00004cf0| 6c 69 6e 65 74 6f 20 72 | 65 71 75 69 72 65 20 74 |lineto r|equire t|
|00004d00| 68 61 74 20 61 20 63 75 | 72 72 65 6e 74 20 70 6f |hat a cu|rrent po|
|00004d10| 69 6e 74 20 0d 0a 65 78 | 69 73 74 20 62 65 66 6f |int ..ex|ist befo|
|00004d20| 72 65 20 63 61 6c 6c 69 | 6e 67 20 74 68 65 6d 2e |re calli|ng them.|
|00004d30| 20 0d 0a 5c 65 6e 64 7b | 71 75 6f 74 65 7d 0d 0a | ..\end{|quote}..|
|00004d40| 0d 0a 5c 76 73 70 61 63 | 65 7b 33 6d 6d 7d 0d 0a |..\vspac|e{3mm}..|
|00004d50| 0d 0a 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 76 6f 69 |..\noind|ent..voi|
|00004d60| 64 20 7b 5c 62 66 20 72 | 6f 74 61 74 65 7d 28 64 |d {\bf r|otate}(d|
|00004d70| 6f 75 62 6c 65 20 61 6e | 67 29 3b 0d 0a 5c 69 6e |ouble an|g);..\in|
|00004d80| 64 65 78 7b 72 6f 74 61 | 74 65 7d 0d 0a 5c 62 65 |dex{rota|te}..\be|
|00004d90| 67 69 6e 7b 71 75 6f 74 | 65 7d 0d 0a 20 52 6f 74 |gin{quot|e}.. Rot|
|00004da0| 61 74 65 73 20 74 68 65 | 20 66 69 67 75 72 65 20 |ates the| figure |
|00004db0| 61 62 6f 75 74 20 74 68 | 65 0d 0a 20 63 75 72 72 |about th|e.. curr|
|00004dc0| 65 6e 74 20 6f 72 69 67 | 69 6e 20 62 79 20 74 68 |ent orig|in by th|
|00004dd0| 65 20 74 68 65 20 61 6e | 67 6c 65 20 0d 0a 20 73 |e the an|gle .. s|
|00004de0| 70 65 63 69 66 69 65 64 | 2e 20 54 68 65 20 61 6e |pecified|. The an|
|00004df0| 67 6c 65 20 75 6e 69 74 | 73 20 61 72 65 0d 0a 20 |gle unit|s are.. |
|00004e00| 64 65 67 72 65 65 73 20 | 61 6e 64 20 74 68 65 20 |degrees |and the |
|00004e10| 2b 76 65 20 64 69 72 65 | 63 74 69 6f 6e 0d 0a 20 |+ve dire|ction.. |
|00004e20| 69 73 20 63 6f 75 6e 74 | 65 72 63 6c 6f 63 6b 77 |is count|erclockw|
|00004e30| 69 73 65 2e 20 20 0d 0a | 20 43 68 61 6e 67 65 73 |ise. ..| Changes|
|00004e40| 20 69 6e 20 72 6f 74 61 | 74 69 6f 6e 20 61 72 65 | in rota|tion are|
|00004e50| 20 63 75 6d 75 6c 61 74 | 69 76 65 2e 0d 0a 5c 65 | cumulat|ive...\e|
|00004e60| 6e 64 7b 71 75 6f 74 65 | 7d 0d 0a 0d 0a 5c 76 73 |nd{quote|}....\vs|
|00004e70| 70 61 63 65 7b 33 6d 6d | 7d 0d 0a 0d 0a 5c 6e 6f |pace{3mm|}....\no|
|00004e80| 69 6e 64 65 6e 74 0d 0a | 76 6f 69 64 20 7b 5c 62 |indent..|void {\b|
|00004e90| 66 20 73 63 61 6c 65 7d | 28 64 6f 75 62 6c 65 20 |f scale}|(double |
|00004ea0| 78 73 2c 20 64 6f 75 62 | 6c 65 20 79 73 29 3b 0d |xs, doub|le ys);.|
|00004eb0| 0a 5c 69 6e 64 65 78 7b | 73 63 61 6c 65 7d 0d 0a |.\index{|scale}..|
|00004ec0| 5c 62 65 67 69 6e 7b 71 | 75 6f 74 65 7d 0d 0a 20 |\begin{q|uote}.. |
|00004ed0| 43 68 61 6e 67 65 73 20 | 74 68 65 20 73 63 61 6c |Changes |the scal|
|00004ee0| 65 20 6f 66 20 74 68 65 | 20 66 69 67 75 72 65 0d |e of the| figure.|
|00004ef0| 0a 20 62 79 20 74 68 65 | 20 66 61 63 74 6f 72 73 |. by the| factors|
|00004f00| 20 73 70 65 63 69 66 69 | 65 64 20 66 6f 72 0d 0a | specifi|ed for..|
|00004f10| 20 74 68 65 20 78 20 61 | 6e 64 20 79 20 61 78 65 | the x a|nd y axe|
|00004f20| 73 20 72 65 73 70 65 63 | 74 69 76 65 6c 79 2e 0d |s respec|tively..|
|00004f30| 0a 20 43 68 61 6e 67 65 | 73 20 69 6e 20 73 63 61 |. Change|s in sca|
|00004f40| 6c 65 20 61 72 65 20 63 | 75 6d 75 6c 61 74 69 76 |le are c|umulativ|
|00004f50| 65 2e 0d 0a 5c 65 6e 64 | 7b 71 75 6f 74 65 7d 0d |e...\end|{quote}.|
|00004f60| 0a 0d 0a 5c 76 73 70 61 | 63 65 7b 33 6d 6d 7d 0d |...\vspa|ce{3mm}.|
|00004f70| 0a 0d 0a 5c 6e 6f 69 6e | 64 65 6e 74 0d 0a 76 6f |...\noin|dent..vo|
|00004f80| 69 64 20 7b 5c 62 66 20 | 73 65 74 7d 28 69 6e 74 |id {\bf |set}(int|
|00004f90| 20 6f 70 74 69 6f 6e 2c | 20 2e 2e 2e 29 3b 0d 0a | option,| ...);..|
|00004fa0| 5c 69 6e 64 65 78 7b 73 | 65 74 20 61 74 74 72 69 |\index{s|et attri|
|00004fb0| 62 75 74 65 73 7d 0d 0a | 0d 0a 5c 62 65 67 69 6e |butes}..|..\begin|
|00004fc0| 7b 71 75 6f 74 65 7d 0d | 0a 20 20 20 20 20 20 20 |{quote}.|. |
|00004fd0| 20 41 6c 6c 20 73 65 74 | 20 61 62 6c 65 20 70 61 | All set| able pa|
|00004fe0| 72 61 6d 65 74 65 72 73 | 20 63 61 6e 20 62 65 20 |rameters| can be |
|00004ff0| 73 65 74 20 75 73 69 6e | 67 20 74 68 65 20 73 65 |set usin|g the se|
|00005000| 74 20 63 6f 6d 6d 61 6e | 64 2e 20 54 68 65 20 66 |t comman|d. The f|
|00005010| 69 72 73 74 20 0d 0a 70 | 61 72 61 6d 65 74 65 72 |irst ..p|arameter|
|00005020| 20 73 70 65 63 69 66 69 | 65 73 20 77 68 69 63 68 | specifi|es which|
|00005030| 20 6f 70 74 69 6f 6e 20 | 74 6f 20 73 65 74 2e 20 | option |to set. |
|00005040| 54 68 65 20 64 65 66 69 | 6e 65 64 20 63 6f 6e 73 |The defi|ned cons|
|00005050| 74 61 6e 74 73 20 0d 0a | 63 6f 72 72 65 73 70 6f |tants ..|correspo|
|00005060| 6e 64 69 6e 67 20 74 6f | 20 76 61 6c 69 64 20 6f |nding to| valid o|
|00005070| 70 74 69 6f 6e 73 20 61 | 72 65 20 64 65 66 69 6e |ptions a|re defin|
|00005080| 65 64 20 69 6e 20 74 68 | 65 20 68 65 61 64 65 72 |ed in th|e header|
|00005090| 20 66 69 6c 65 20 73 70 | 6c 6f 74 2e 68 2e 20 0d | file sp|lot.h. .|
|000050a0| 0a 28 53 65 65 20 53 65 | 63 74 69 6f 6e 20 5c 72 |.(See Se|ction \r|
|000050b0| 65 66 7b 73 65 63 3a 73 | 65 74 7d 2c 20 60 73 65 |ef{sec:s|et}, `se|
|000050c0| 74 27 20 46 75 6e 63 74 | 69 6f 6e 73 2e 29 0d 0a |t' Funct|ions.)..|
|000050d0| 5c 65 6e 64 7b 71 75 6f | 74 65 7d 0d 0a 20 20 20 |\end{quo|te}.. |
|000050e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 0d 0a 5c 76 | | ..\v|
|000050f0| 73 70 61 63 65 7b 33 6d | 6d 7d 0d 0a 0d 0a 5c 6e |space{3m|m}....\n|
|00005100| 6f 69 6e 64 65 6e 74 0d | 0a 76 6f 69 64 20 7b 5c |oindent.|.void {\|
|00005110| 62 66 20 73 68 6f 77 70 | 61 67 65 7d 28 29 3b 0d |bf showp|age}();.|
|00005120| 0a 5c 69 6e 64 65 78 7b | 73 68 6f 77 70 61 67 65 |.\index{|showpage|
|00005130| 7d 0d 0a 5c 62 65 67 69 | 6e 7b 71 75 6f 74 65 7d |}..\begi|n{quote}|
|00005140| 0d 0a 20 20 20 20 20 20 | 20 20 54 72 61 6e 73 66 |.. | Transf|
|00005150| 65 72 73 20 74 68 65 20 | 6d 61 72 6b 65 64 20 70 |ers the |marked p|
|00005160| 61 67 65 20 63 72 65 61 | 74 65 64 20 69 6e 20 6d |age crea|ted in m|
|00005170| 65 6d 6f 72 79 20 62 79 | 20 74 68 65 20 73 74 72 |emory by| the str|
|00005180| 6f 6b 65 20 61 6e 64 20 | 66 69 6c 6c 20 0d 0a 63 |oke and |fill ..c|
|00005190| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 74 68 65 20 70 |ommands |to the p|
|000051a0| 68 79 73 69 63 61 6c 20 | 70 61 67 65 2e 20 54 68 |hysical |page. Th|
|000051b0| 69 73 20 69 73 20 0d 0a | 20 61 75 74 6f 6d 61 74 |is is ..| automat|
|000051c0| 69 63 61 6c 6c 79 20 64 | 6f 6e 65 20 61 74 20 74 |ically d|one at t|
|000051d0| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 66 69 |he end o|f the fi|
|000051e0| 6c 65 20 61 6e 64 20 74 | 68 75 73 20 74 68 69 73 |le and t|hus this|
|000051f0| 0d 0a 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 6f 6e |.. comma|nd is on|
|00005200| 6c 79 20 6e 65 65 64 65 | 64 20 69 66 20 69 74 20 |ly neede|d if it |
|00005210| 69 73 20 64 65 73 69 72 | 61 62 6c 65 20 74 6f 20 |is desir|able to |
|00005220| 64 72 61 77 20 70 61 72 | 74 73 0d 0a 20 6f 66 20 |draw par|ts.. of |
|00005230| 74 68 65 20 66 69 67 75 | 72 65 20 62 65 66 6f 72 |the figu|re befor|
|00005240| 65 20 74 68 65 20 65 6e | 64 20 6f 66 20 65 78 65 |e the en|d of exe|
|00005250| 63 75 74 69 6f 6e 2e 0d | 0a 5c 65 6e 64 7b 71 75 |cution..|.\end{qu|
|00005260| 6f 74 65 7d 20 0d 0a 0d | 0a 5c 76 73 70 61 63 65 |ote} ...|.\vspace|
|00005270| 7b 33 6d 6d 7d 0d 0a 0d | 0a 5c 6e 6f 69 6e 64 65 |{3mm}...|.\noinde|
|00005280| 6e 74 0d 0a 76 6f 69 64 | 20 7b 5c 62 66 20 73 74 |nt..void| {\bf st|
|00005290| 72 6f 6b 65 7d 28 29 3b | 0d 0a 5c 69 6e 64 65 78 |roke}();|..\index|
|000052a0| 7b 73 74 72 6f 6b 65 7d | 0d 0a 5c 62 65 67 69 6e |{stroke}|..\begin|
|000052b0| 7b 71 75 6f 74 65 7d 0d | 0a 20 20 20 20 20 20 20 |{quote}.|. |
|000052c0| 20 4d 61 72 6b 73 20 74 | 68 65 20 70 61 67 65 20 | Marks t|he page |
|000052d0| 69 6e 20 6d 65 6d 6f 72 | 79 20 77 69 74 68 20 74 |in memor|y with t|
|000052e0| 68 65 20 63 75 72 72 65 | 6e 74 20 70 61 74 68 5c |he curre|nt path\|
|000052f0| 69 6e 64 65 78 7b 70 61 | 74 68 7d 2e 20 54 68 65 |index{pa|th}. The|
|00005300| 20 70 61 74 68 20 0d 0a | 63 6f 6f 72 64 69 6e 61 | path ..|coordina|
|00005310| 74 65 73 20 61 72 65 20 | 74 72 61 6e 73 66 6f 72 |tes are |transfor|
|00005320| 6d 65 64 20 75 73 69 6e | 67 20 74 68 65 20 63 75 |med usin|g the cu|
|00005330| 72 72 65 6e 74 20 63 6f | 6f 72 64 69 6e 61 74 65 |rrent co|ordinate|
|00005340| 20 74 72 61 6e 73 66 6f | 72 6d 61 74 69 6f 6e 20 | transfo|rmation |
|00005350| 0d 0a 6d 61 74 72 69 78 | 20 61 6e 64 20 74 68 65 |..matrix| and the|
|00005360| 20 70 61 74 68 20 69 73 | 20 66 6c 65 73 68 65 64 | path is| fleshed|
|00005370| 20 6f 75 74 20 75 73 69 | 6e 67 20 74 68 65 20 63 | out usi|ng the c|
|00005380| 75 72 72 65 6e 74 20 6c | 69 6e 65 20 77 69 64 74 |urrent l|ine widt|
|00005390| 68 2c 20 73 74 79 6c 65 | 20 61 6e 64 20 0d 0a 63 |h, style| and ..c|
|000053a0| 6f 6c 6f 75 72 20 69 6e | 20 65 66 66 65 63 74 20 |olour in| effect |
|000053b0| 61 74 20 74 68 65 20 74 | 69 6d 65 20 6f 66 20 74 |at the t|ime of t|
|000053c0| 68 65 20 73 74 72 6f 6b | 65 28 29 20 63 6f 6d 6d |he strok|e() comm|
|000053d0| 61 6e 64 2e 20 0d 0a 5c | 65 6e 64 7b 71 75 6f 74 |and. ..\|end{quot|
|000053e0| 65 7d 0d 0a 0d 0a 5c 76 | 73 70 61 63 65 7b 33 6d |e}....\v|space{3m|
|000053f0| 6d 7d 0d 0a 0d 0a 5c 6e | 6f 69 6e 64 65 6e 74 0d |m}....\n|oindent.|
|00005400| 0a 76 6f 69 64 20 7b 5c | 62 66 20 73 79 6d 62 6f |.void {\|bf symbo|
|00005410| 6c 7d 28 64 6f 75 62 6c | 65 20 78 2c 20 64 6f 75 |l}(doubl|e x, dou|
|00005420| 62 6c 65 20 79 2c 20 69 | 6e 74 20 73 79 6d 62 6f |ble y, i|nt symbo|
|00005430| 6c 63 6f 6e 73 74 29 3b | 20 0d 0a 5c 69 6e 64 65 |lconst);| ..\inde|
|00005440| 78 7b 73 79 6d 62 6f 6c | 7d 0d 0a 5c 6e 65 77 6c |x{symbol|}..\newl|
|00005450| 69 6e 65 0d 0a 6f 72 0d | 0a 5c 6e 65 77 6c 69 6e |ine..or.|.\newlin|
|00005460| 65 0d 0a 5c 6e 6f 69 6e | 64 65 6e 74 0d 0a 76 6f |e..\noin|dent..vo|
|00005470| 69 64 20 7b 5c 62 66 20 | 73 79 6d 62 6f 6c 7d 28 |id {\bf |symbol}(|
|00005480| 69 6e 74 20 73 79 6d 62 | 6f 6c 63 6f 6e 73 74 29 |int symb|olconst)|
|00005490| 3b 20 0d 0a 5c 62 65 67 | 69 6e 7b 71 75 6f 74 65 |; ..\beg|in{quote|
|000054a0| 7d 0d 0a 20 50 6c 6f 74 | 73 20 74 68 65 20 73 79 |}.. Plot|s the sy|
|000054b0| 6d 62 6f 6c 20 63 68 6f | 73 65 6e 20 62 79 20 73 |mbol cho|sen by s|
|000054c0| 79 6d 62 6f 6c 63 6f 6e | 73 74 20 61 74 20 74 68 |ymbolcon|st at th|
|000054d0| 65 20 70 6f 69 6e 74 20 | 78 2c 79 2e 20 0d 0a 20 |e point |x,y. .. |
|000054e0| 73 79 6d 62 6f 6c 63 6f | 6e 73 74 20 6d 75 73 74 |symbolco|nst must|
|000054f0| 20 62 65 20 6f 6e 65 20 | 6f 66 20 4f 43 49 52 43 | be one |of OCIRC|
|00005500| 4c 45 2c 20 4f 53 51 55 | 41 52 45 2c 20 4f 54 52 |LE, OSQU|ARE, OTR|
|00005510| 49 41 4e 47 4c 45 2c 20 | 0d 0a 20 4f 44 49 41 4d |IANGLE, |.. ODIAM|
|00005520| 4f 4e 44 20 4f 53 54 41 | 52 2c 20 4f 41 52 52 4f |OND OSTA|R, OARRO|
|00005530| 57 2c 20 50 4c 55 53 2c | 20 43 52 4f 53 53 2c 20 |W, PLUS,| CROSS, |
|00005540| 4d 55 4c 54 2c 20 43 49 | 52 43 4c 45 2c 20 53 51 |MULT, CI|RCLE, SQ|
|00005550| 55 41 52 45 2c 20 0d 0a | 20 54 52 49 41 4e 47 4c |UARE, ..| TRIANGL|
|00005560| 45 2c 20 44 49 41 4d 4f | 4e 44 2c 20 53 54 41 52 |E, DIAMO|ND, STAR|
|00005570| 2c 6f 72 20 41 52 52 4f | 57 2e 20 49 66 20 74 68 |,or ARRO|W. If th|
|00005580| 65 20 70 6f 69 6e 74 20 | 78 2c 79 20 69 73 20 0d |e point |x,y is .|
|00005590| 0a 20 6f 6d 69 74 74 65 | 64 20 74 68 65 20 73 79 |. omitte|d the sy|
|000055a0| 6d 62 6f 6c 20 69 73 20 | 64 72 61 77 6e 20 61 74 |mbol is |drawn at|
|000055b0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 70 6f 69 | the cur|rent poi|
|000055c0| 6e 74 20 61 73 20 73 65 | 74 20 0d 0a 20 62 79 20 |nt as se|t .. by |
|000055d0| 61 20 70 72 65 76 69 6f | 75 73 20 6d 6f 76 65 74 |a previo|us movet|
|000055e0| 6f 28 29 3b 2e 20 73 79 | 6d 62 6f 6c 28 29 20 69 |o();. sy|mbol() i|
|000055f0| 73 20 6e 6f 74 20 69 6d | 70 6c 69 63 69 74 6c 79 |s not im|plicitly|
|00005600| 20 0d 0a 20 73 74 72 6f | 6b 65 64 20 73 6f 20 66 | .. stro|ked so f|
|00005610| 6f 6c 6c 6f 77 20 77 69 | 74 68 20 61 20 73 74 72 |ollow wi|th a str|
|00005620| 6f 6b 65 28 29 3b 2e 20 | 20 0d 0a 20 54 68 65 20 |oke();. | .. The |
|00005630| 73 69 7a 65 20 6f 66 20 | 61 20 73 79 6d 62 6f 6c |size of |a symbol|
|00005640| 20 63 61 6e 20 62 65 20 | 63 68 61 6e 67 65 64 20 | can be |changed |
|00005650| 75 73 69 6e 67 20 73 65 | 74 28 46 4f 4e 54 57 49 |using se|t(FONTWI|
|00005660| 44 54 48 2c 20 0d 0a 20 | 76 61 6c 5c 5f 69 6e 5c |DTH, .. |val\_in\|
|00005670| 5f 63 6d 29 3b 20 73 69 | 6e 63 65 20 73 79 6d 62 |_cm); si|nce symb|
|00005680| 6f 6c 73 20 61 72 65 20 | 6a 75 73 74 20 61 20 73 |ols are |just a s|
|00005690| 70 65 63 69 61 6c 20 66 | 6f 6e 74 2e 20 54 68 65 |pecial f|ont. The|
|000056a0| 20 73 69 7a 65 20 0d 0a | 20 72 65 6c 61 74 69 76 | size ..| relativ|
|000056b0| 65 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |e to the| current|
|000056c0| 20 46 4f 4e 54 57 49 44 | 54 48 20 63 61 6e 20 62 | FONTWID|TH can b|
|000056d0| 65 20 73 65 74 20 75 73 | 69 6e 67 20 0d 0a 20 73 |e set us|ing .. s|
|000056e0| 65 74 28 53 59 4d 4d 55 | 4c 54 2c 6d 75 6c 74 29 |et(SYMMU|LT,mult)|
|000056f0| 3b 0d 0a 5c 65 6e 64 7b | 71 75 6f 74 65 7d 0d 0a |;..\end{|quote}..|
|00005700| 0d 0a 5c 76 73 70 61 63 | 65 7b 33 6d 6d 7d 0d 0a |..\vspac|e{3mm}..|
|00005710| 0d 0a 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 76 6f 69 |..\noind|ent..voi|
|00005720| 64 20 7b 5c 62 66 20 74 | 65 78 74 7d 28 64 6f 75 |d {\bf t|ext}(dou|
|00005730| 62 6c 65 20 78 2c 20 64 | 6f 75 62 6c 65 20 79 2c |ble x, d|ouble y,|
|00005740| 20 63 68 61 72 20 2a 20 | 73 74 72 2c 69 6e 74 20 | char * |str,int |
|00005750| 6a 75 73 74 29 3b 20 20 | 20 20 20 0d 0a 5c 69 6e |just); | ..\in|
|00005760| 64 65 78 7b 74 65 78 74 | 7d 0d 0a 5c 62 65 67 69 |dex{text|}..\begi|
|00005770| 6e 7b 71 75 6f 74 65 7d | 0d 0a 20 41 64 64 73 20 |n{quote}|.. Adds |
|00005780| 74 68 65 20 74 65 78 74 | 20 73 74 72 69 6e 67 20 |the text| string |
|00005790| 73 74 72 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |str to t|he curre|
|000057a0| 6e 74 20 70 61 74 68 20 | 73 74 61 72 74 69 6e 67 |nt path |starting|
|000057b0| 20 61 74 20 6c 6f 63 61 | 74 69 6f 6e 20 28 78 2c | at loca|tion (x,|
|000057c0| 79 29 2e 20 0d 0a 20 54 | 68 65 20 63 75 72 72 65 |y). .. T|he curre|
|000057d0| 6e 74 20 66 6f 6e 74 2c | 20 73 69 7a 65 20 61 6e |nt font,| size an|
|000057e0| 64 20 6f 72 69 65 6e 74 | 61 74 69 6f 6e 20 61 73 |d orient|ation as|
|000057f0| 20 73 65 74 20 75 73 69 | 6e 67 20 74 68 65 20 73 | set usi|ng the s|
|00005800| 65 74 28 29 20 63 6f 6d | 6d 61 6e 64 20 61 72 65 |et() com|mand are|
|00005810| 20 0d 0a 20 75 73 65 64 | 2e 20 53 75 70 65 72 2f | .. used|. Super/|
|00005820| 73 75 62 20 73 63 72 69 | 70 74 73 20 63 61 6e 20 |sub scri|pts can |
|00005830| 62 65 20 65 6e 74 65 72 | 65 64 20 61 73 20 24 5c |be enter|ed as $\|
|00005840| 77 65 64 67 65 24 32 24 | 5c 77 65 64 67 65 24 20 |wedge$2$|\wedge$ |
|00005850| 61 6e 64 20 5c 5f 32 5c | 5f 20 72 65 73 70 65 63 |and \_2\|_ respec|
|00005860| 74 69 76 65 6c 79 2e 20 | 0d 0a 20 4c 65 74 74 65 |tively. |.. Lette|
|00005870| 72 73 20 73 75 72 72 6f | 75 6e 64 65 64 20 62 79 |rs surro|unded by|
|00005880| 20 27 21 27 20 6f 72 20 | 27 5c 23 27 20 61 72 65 | '!' or |'\#' are|
|00005890| 20 70 72 69 6e 74 65 64 | 20 69 6e 20 47 72 65 65 | printed| in Gree|
|000058a0| 6b 20 6f 72 20 69 74 61 | 6c 69 63 73 20 0d 0a 20 |k or ita|lics .. |
|000058b0| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2e 20 46 6f |respecti|vely. Fo|
|000058c0| 72 20 65 78 61 6d 70 6c | 65 20 21 6d 21 20 67 65 |r exampl|e !m! ge|
|000058d0| 6e 65 72 61 74 65 73 20 | 74 68 65 20 47 72 65 65 |nerates |the Gree|
|000058e0| 6b 20 6c 6f 77 65 72 20 | 63 61 73 65 20 6d 75 2e |k lower |case mu.|
|000058f0| 20 54 68 65 20 0d 0a 20 | 73 70 65 63 69 61 6c 20 | The .. |special |
|00005900| 63 68 61 72 61 63 74 65 | 72 73 20 60 60 24 5c 77 |characte|rs ``$\w|
|00005910| 65 64 67 65 24 5c 5f 21 | 5c 23 5c 24 27 27 20 63 |edge$\_!|\#\$'' c|
|00005920| 61 6e 20 62 65 20 70 72 | 69 6e 74 65 64 20 62 79 |an be pr|inted by|
|00005930| 20 70 72 65 63 65 64 69 | 6e 67 20 74 68 65 6d 20 | precedi|ng them |
|00005940| 77 69 74 68 20 0d 0a 20 | 24 5c 62 61 63 6b 73 6c |with .. |$\backsl|
|00005950| 61 73 68 24 20 61 73 20 | 69 6e 20 24 5c 62 61 63 |ash$ as |in $\bac|
|00005960| 6b 73 6c 61 73 68 24 21 | 2e 20 54 68 65 20 63 6f |kslash$!|. The co|
|00005970| 6d 62 69 6e 61 74 69 6f | 6e 20 24 5c 62 61 63 6b |mbinatio|n $\back|
|00005980| 73 6c 61 73 68 24 62 20 | 62 61 63 6b 20 0d 0a 20 |slash$b |back .. |
|00005990| 73 70 61 63 65 73 20 62 | 79 20 6f 6e 65 20 63 68 |spaces b|y one ch|
|000059a0| 61 72 61 63 74 65 72 2e | 20 53 79 6d 62 6f 6c 73 |aracter.| Symbols|
|000059b0| 20 6d 61 79 20 62 65 20 | 69 6e 63 6c 75 64 65 64 | may be |included|
|000059c0| 20 69 6e 20 74 68 65 20 | 74 65 78 74 20 73 74 72 | in the |text str|
|000059d0| 69 6e 67 20 62 79 20 0d | 0a 20 65 6e 63 6c 6f 73 |ing by .|. enclos|
|000059e0| 69 6e 67 20 74 68 65 6d | 20 77 69 74 68 20 5c 24 |ing them| with \$|
|000059f0| 2e 20 49 66 20 74 68 65 | 20 73 74 61 72 74 69 6e |. If the| startin|
|00005a00| 67 20 78 2c 79 20 63 6f | 6f 72 64 69 6e 61 74 65 |g x,y co|ordinate|
|00005a10| 73 20 61 72 65 20 6f 6d | 69 74 74 65 64 20 74 68 |s are om|itted th|
|00005a20| 65 6e 20 0d 0a 20 74 68 | 65 20 63 75 72 72 65 6e |en .. th|e curren|
|00005a30| 74 20 73 74 72 69 6e 67 | 20 69 73 20 70 6f 73 69 |t string| is posi|
|00005a40| 74 69 6f 6e 65 64 20 6f | 6e 65 20 6c 69 6e 65 20 |tioned o|ne line |
|00005a50| 62 65 6c 6f 77 20 74 68 | 65 20 70 72 65 76 69 6f |below th|e previo|
|00005a60| 75 73 20 73 74 72 69 6e | 67 20 61 64 64 65 64 20 |us strin|g added |
|00005a70| 0d 0a 20 74 6f 20 74 68 | 65 20 70 61 74 68 20 75 |.. to th|e path u|
|00005a80| 73 69 6e 67 20 74 65 78 | 74 28 29 2e 20 54 68 65 |sing tex|t(). The|
|00005a90| 20 6c 61 73 74 20 70 61 | 72 61 6d 65 74 65 72 20 | last pa|rameter |
|00005aa0| 69 73 20 74 68 65 20 6a | 75 73 74 69 66 69 63 61 |is the j|ustifica|
|00005ab0| 74 69 6f 6e 20 61 6e 64 | 20 6d 75 73 74 20 0d 0a |tion and| must ..|
|00005ac0| 20 62 65 20 6f 6e 65 20 | 6f 66 20 4c 45 46 54 2c | be one |of LEFT,|
|00005ad0| 20 52 49 47 48 54 20 6f | 72 20 43 45 4e 54 45 52 | RIGHT o|r CENTER|
|00005ae0| 2e 20 54 68 69 73 20 6c | 61 73 74 20 70 61 72 61 |. This l|ast para|
|00005af0| 6d 65 74 65 72 20 63 61 | 6e 20 62 65 20 6f 6d 69 |meter ca|n be omi|
|00005b00| 74 74 65 64 20 69 6e 20 | 0d 0a 20 77 68 69 63 68 |tted in |.. which|
|00005b10| 20 63 61 73 65 20 74 68 | 65 20 64 65 66 61 75 6c | case th|e defaul|
|00005b20| 74 20 76 61 6c 75 65 20 | 6f 66 20 4c 45 46 54 20 |t value |of LEFT |
|00005b30| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 2e 20 74 65 |will be |used. te|
|00005b40| 78 74 28 29 20 69 73 20 | 69 6d 70 6c 69 63 69 74 |xt() is |implicit|
|00005b50| 6c 79 20 0d 0a 20 73 74 | 72 6f 6b 65 64 2e 20 0d |ly .. st|roked. .|
|00005b60| 0a 0d 0a 5c 65 6e 64 7b | 71 75 6f 74 65 7d 0d 0a |...\end{|quote}..|
|00005b70| 0d 0a 5c 76 73 70 61 63 | 65 7b 33 6d 6d 7d 0d 0a |..\vspac|e{3mm}..|
|00005b80| 0d 0a 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 76 6f 69 |..\noind|ent..voi|
|00005b90| 64 20 7b 5c 62 66 20 74 | 69 63 6b 6c 61 62 65 6c |d {\bf t|icklabel|
|00005ba0| 7d 28 69 6e 74 20 61 78 | 69 73 2c 20 64 6f 75 62 |}(int ax|is, doub|
|00005bb0| 6c 65 20 76 2c 20 63 68 | 61 72 20 2a 6c 61 62 65 |le v, ch|ar *labe|
|00005bc0| 6c 2c 2e 2e 2e 29 3b 0d | 0a 5c 69 6e 64 65 78 7b |l,...);.|.\index{|
|00005bd0| 74 69 63 6b 6c 61 62 65 | 6c 7d 0d 0a 5c 62 65 67 |ticklabe|l}..\beg|
|00005be0| 69 6e 7b 71 75 6f 74 65 | 7d 0d 0a 20 20 20 20 20 |in{quote|}.. |
|00005bf0| 20 20 20 41 64 64 20 74 | 69 63 6b 20 6c 61 62 65 | Add t|ick labe|
|00005c00| 6c 73 20 74 6f 20 74 68 | 65 20 61 78 65 73 20 62 |ls to th|e axes b|
|00005c10| 6f 78 20 70 72 65 76 69 | 6f 75 73 6c 79 20 64 65 |ox previ|ously de|
|00005c20| 66 69 6e 65 64 2e 20 54 | 68 65 20 66 69 72 73 74 |fined. T|he first|
|00005c30| 20 0d 0a 70 61 72 61 6d | 65 74 65 72 20 69 73 20 | ..param|eter is |
|00005c40| 77 68 69 63 68 20 61 78 | 69 73 20 74 6f 20 6c 61 |which ax|is to la|
|00005c50| 62 65 6c 20 65 69 74 68 | 65 72 20 42 4f 54 54 4f |bel eith|er BOTTO|
|00005c60| 4d 2c 20 54 4f 50 2c 20 | 4c 45 46 54 20 6f 72 20 |M, TOP, |LEFT or |
|00005c70| 52 49 47 48 54 2e 20 54 | 68 65 20 0d 0a 66 6f 6c |RIGHT. T|he ..fol|
|00005c80| 6c 6f 77 69 6e 67 20 70 | 61 72 61 6d 65 74 65 72 |lowing p|arameter|
|00005c90| 73 20 61 72 65 20 70 61 | 69 72 65 64 20 76 61 6c |s are pa|ired val|
|00005ca0| 75 65 73 20 67 69 76 69 | 6e 67 20 74 68 65 20 74 |ues givi|ng the t|
|00005cb0| 69 63 6b 20 70 6f 73 69 | 74 69 6f 6e 20 69 6e 20 |ick posi|tion in |
|00005cc0| 64 61 74 61 20 0d 0a 63 | 6f 6f 72 64 69 6e 61 74 |data ..c|oordinat|
|00005cd0| 65 73 20 61 73 20 65 73 | 74 61 62 6c 69 73 68 65 |es as es|tablishe|
|00005ce0| 64 20 62 79 20 61 20 70 | 72 69 6f 72 20 63 61 6c |d by a p|rior cal|
|00005cf0| 6c 20 74 6f 20 61 78 65 | 73 5c 5f 62 6f 78 28 29 |l to axe|s\_box()|
|00005d00| 20 6f 72 20 61 73 63 61 | 6c 65 28 29 20 61 6e 64 | or asca|le() and|
|00005d10| 20 74 68 65 20 74 65 78 | 74 20 0d 0a 73 74 72 69 | the tex|t ..stri|
|00005d20| 6e 67 20 74 6f 20 62 65 | 20 70 6c 61 63 65 64 20 |ng to be| placed |
|00005d30| 61 74 20 74 68 61 74 20 | 6c 6f 63 61 74 69 6f 6e |at that |location|
|00005d40| 2e 20 41 6e 20 65 72 72 | 6f 72 20 69 73 20 67 65 |. An err|or is ge|
|00005d50| 6e 65 72 61 74 65 64 20 | 69 66 20 74 68 65 72 65 |nerated |if there|
|00005d60| 20 69 73 20 6e 6f 20 0d | 0a 63 75 72 72 65 6e 74 | is no .|.current|
|00005d70| 20 61 78 65 73 20 62 6f | 78 2e 20 54 68 65 72 65 | axes bo|x. There|
|00005d80| 20 61 72 65 20 73 65 76 | 65 72 61 6c 20 64 65 66 | are sev|eral def|
|00005d90| 61 75 6c 74 20 70 6f 73 | 73 69 62 69 6c 69 74 69 |ault pos|sibiliti|
|00005da0| 65 73 2e 20 49 66 20 27 | 74 69 63 6b 6c 61 62 65 |es. If '|ticklabe|
|00005db0| 6c 28 29 3b 27 20 0d 0a | 69 73 20 63 61 6c 6c 65 |l();' ..|is calle|
|00005dc0| 64 20 77 69 74 68 6f 75 | 74 20 61 6e 79 20 70 61 |d withou|t any pa|
|00005dd0| 72 61 6d 65 74 65 72 73 | 20 74 68 65 6e 20 69 66 |rameters| then if|
|00005de0| 20 74 69 63 6b 20 6d 61 | 72 6b 73 20 68 61 76 65 | tick ma|rks have|
|00005df0| 20 62 65 65 6e 20 67 65 | 6e 65 72 61 74 65 64 20 | been ge|nerated |
|00005e00| 0d 0a 70 72 65 76 69 6f | 75 73 6c 79 20 75 73 69 |..previo|usly usi|
|00005e10| 6e 67 20 27 74 69 63 6b | 6d 61 72 6b 73 28 29 3b |ng 'tick|marks();|
|00005e20| 27 5c 69 6e 64 65 78 7b | 74 69 63 6b 6d 61 72 6b |'\index{|tickmark|
|00005e30| 73 7d 20 74 68 65 6e 20 | 74 68 65 79 20 77 69 6c |s} then |they wil|
|00005e40| 6c 20 62 65 20 73 65 6c | 65 63 74 69 76 65 6c 79 |l be sel|ectively|
|00005e50| 20 6c 61 62 65 6c 6c 65 | 64 20 0d 0a 61 6c 6f 6e | labelle|d ..alon|
|00005e60| 67 20 74 68 65 20 6c 65 | 66 74 20 61 6e 64 20 62 |g the le|ft and b|
|00005e70| 6f 74 74 6f 6d 20 61 78 | 65 73 2e 20 49 66 20 6f |ottom ax|es. If o|
|00005e80| 6e 6c 79 20 61 6e 20 61 | 78 69 73 20 70 61 72 61 |nly an a|xis para|
|00005e90| 6d 65 74 65 72 20 69 73 | 20 67 69 76 65 6e 20 74 |meter is| given t|
|00005ea0| 68 65 6e 20 74 68 65 20 | 0d 0a 63 6f 72 72 65 73 |hen the |..corres|
|00005eb0| 70 6f 6e 64 69 6e 67 20 | 61 78 69 73 20 74 69 63 |ponding |axis tic|
|00005ec0| 6b 20 6d 61 72 6b 73 20 | 69 66 20 61 6e 79 20 77 |k marks |if any w|
|00005ed0| 69 6c 6c 20 62 65 20 6c | 61 62 65 6c 6c 65 64 2e |ill be l|abelled.|
|00005ee0| 20 49 66 20 74 68 65 20 | 61 78 69 73 20 0d 0a 70 | If the |axis ..p|
|00005ef0| 61 72 61 6d 65 74 65 72 | 20 69 73 20 66 6f 6c 6c |arameter| is foll|
|00005f00| 6f 77 65 64 20 62 79 20 | 61 20 6c 69 73 74 20 6f |owed by |a list o|
|00005f10| 66 20 6e 75 6d 62 65 72 | 73 20 6f 6e 6c 79 20 74 |f number|s only t|
|00005f20| 68 65 79 20 77 69 6c 6c | 20 62 65 20 0d 0a 61 73 |hey will| be ..as|
|00005f30| 73 75 6d 65 64 20 74 6f | 20 62 65 20 62 6f 74 68 |sumed to| be both|
|00005f40| 20 74 68 65 20 74 69 63 | 6b 20 70 6f 73 69 74 69 | the tic|k positi|
|00005f50| 6f 6e 20 61 6e 64 20 74 | 68 65 20 64 65 73 69 72 |on and t|he desir|
|00005f60| 65 64 20 6c 61 62 65 6c | 2e 20 49 66 20 74 68 65 |ed label|. If the|
|00005f70| 20 6e 75 6d 62 65 72 73 | 20 0d 0a 61 72 65 20 70 | numbers| ..are p|
|00005f80| 61 69 72 65 64 20 77 69 | 74 68 20 73 74 72 69 6e |aired wi|th strin|
|00005f90| 67 73 20 69 6e 20 74 68 | 65 20 70 61 72 61 6d 65 |gs in th|e parame|
|00005fa0| 74 65 72 20 6c 69 73 74 | 20 74 68 65 6e 20 74 68 |ter list| then th|
|00005fb0| 65 20 6e 75 6d 62 65 72 | 20 77 69 6c 6c 20 62 65 |e number| will be|
|00005fc0| 20 75 73 65 64 20 0d 0a | 61 73 20 74 68 65 20 74 | used ..|as the t|
|00005fd0| 69 63 6b 20 6c 61 62 65 | 6c 20 70 6f 73 69 74 69 |ick labe|l positi|
|00005fe0| 6f 6e 20 61 6e 64 20 74 | 68 65 20 73 74 72 69 6e |on and t|he strin|
|00005ff0| 67 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 20 61 |g will b|e used a|
|00006000| 73 20 74 68 65 20 6c 69 | 74 65 72 61 6c 20 0d 0a |s the li|teral ..|
|00006010| 6c 61 62 65 6c 2e 20 54 | 68 65 20 73 70 61 63 69 |label. T|he spaci|
|00006020| 6e 67 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 74 |ng betwe|en the t|
|00006030| 69 63 6b 20 6c 61 62 65 | 6c 73 20 61 6e 64 20 74 |ick labe|ls and t|
|00006040| 68 65 20 61 78 65 73 20 | 62 6f 78 20 63 61 6e 20 |he axes |box can |
|00006050| 62 65 20 63 68 61 6e 67 | 65 64 20 0d 0a 75 73 69 |be chang|ed ..usi|
|00006060| 6e 67 20 73 65 74 28 54 | 49 43 4b 4c 4d 41 52 47 |ng set(T|ICKLMARG|
|00006070| 2c 2e 2e 2e 29 3b 5c 69 | 6e 64 65 78 7b 73 65 74 |,...);\i|ndex{set|
|00006080| 2c 20 54 49 43 4b 4c 4d | 41 52 47 7d 20 74 69 63 |, TICKLM|ARG} tic|
|00006090| 6b 6c 61 62 65 6c 28 29 | 20 69 73 20 69 6d 70 6c |klabel()| is impl|
|000060a0| 69 63 69 74 6c 79 20 73 | 74 72 6f 6b 65 64 2e 0d |icitly s|troked..|
|000060b0| 0a 5c 65 6e 64 7b 71 75 | 6f 74 65 7d 0d 0a 0d 0a |.\end{qu|ote}....|
|000060c0| 5c 76 73 70 61 63 65 7b | 33 6d 6d 7d 0d 0a 0d 0a |\vspace{|3mm}....|
|000060d0| 5c 6e 6f 69 6e 64 65 6e | 74 0d 0a 76 6f 69 64 20 |\noinden|t..void |
|000060e0| 7b 5c 62 66 20 74 69 63 | 6b 6d 61 72 6b 73 7d 28 |{\bf tic|kmarks}(|
|000060f0| 69 6e 74 20 61 78 69 73 | 2c 20 64 6f 75 62 6c 65 |int axis|, double|
|00006100| 20 76 2c 2e 2e 2e 29 3b | 0d 0a 5c 69 6e 64 65 78 | v,...);|..\index|
|00006110| 7b 74 69 63 6b 6d 61 72 | 6b 73 7d 0d 0a 5c 62 65 |{tickmar|ks}..\be|
|00006120| 67 69 6e 7b 71 75 6f 74 | 65 7d 0d 0a 20 20 20 20 |gin{quot|e}.. |
|00006130| 20 20 20 20 41 64 64 20 | 74 69 63 6b 20 6d 61 72 | Add |tick mar|
|00006140| 6b 73 20 74 6f 20 74 68 | 65 20 61 78 65 73 20 62 |ks to th|e axes b|
|00006150| 6f 78 20 70 72 65 76 69 | 6f 75 73 6c 79 20 64 65 |ox previ|ously de|
|00006160| 66 69 6e 65 64 2e 20 54 | 68 65 20 66 69 72 73 74 |fined. T|he first|
|00006170| 20 0d 0a 70 61 72 61 6d | 65 74 65 72 20 69 73 20 | ..param|eter is |
|00006180| 77 68 69 63 68 20 61 78 | 69 73 20 65 69 74 68 65 |which ax|is eithe|
|00006190| 72 20 42 4f 54 54 4f 4d | 20 2c 20 54 4f 50 2c 20 |r BOTTOM| , TOP, |
|000061a0| 4c 45 46 54 2c 20 52 49 | 47 48 54 20 2c 58 41 58 |LEFT, RI|GHT ,XAX|
|000061b0| 45 53 20 6f 72 20 59 41 | 58 45 53 2e 20 0d 0a 54 |ES or YA|XES. ..T|
|000061c0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6e 75 6d |he follo|wing num|
|000061d0| 62 65 72 73 20 61 72 65 | 20 74 68 65 20 70 6f 73 |bers are| the pos|
|000061e0| 69 74 69 6f 6e 73 20 77 | 65 72 65 20 74 69 63 6b |itions w|ere tick|
|000061f0| 6d 61 72 6b 73 20 61 72 | 65 20 74 6f 20 74 6f 20 |marks ar|e to to |
|00006200| 62 65 20 70 6c 61 63 65 | 64 2e 20 0d 0a 54 68 65 |be place|d. ..The|
|00006210| 20 6c 65 6e 67 74 68 20 | 6f 66 20 74 68 65 20 74 | length |of the t|
|00006220| 69 63 6b 73 20 69 73 20 | 73 65 74 20 75 73 69 6e |icks is |set usin|
|00006230| 67 20 61 20 73 65 74 28 | 54 49 43 4b 4c 45 4e 47 |g a set(|TICKLENG|
|00006240| 54 48 2c 76 61 6c 29 5c | 69 6e 64 65 78 7b 73 65 |TH,val)\|index{se|
|00006250| 74 2c 20 0d 0a 54 49 43 | 4b 4c 45 4e 47 54 48 7d |t, ..TIC|KLENGTH}|
|00006260| 20 63 6f 6d 6d 61 6e 64 | 2e 20 54 68 65 20 6c 6f | command|. The lo|
|00006270| 63 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 74 69 |cation o|f the ti|
|00006280| 63 6b 73 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |cks is s|pecified|
|00006290| 20 69 6e 20 64 61 74 61 | 20 0d 0a 63 6f 6f 72 64 | in data| ..coord|
|000062a0| 69 6e 61 74 65 73 20 61 | 73 20 65 73 74 61 62 6c |inates a|s establ|
|000062b0| 69 73 68 65 64 20 62 79 | 20 74 68 65 20 70 72 69 |ished by| the pri|
|000062c0| 6f 72 20 63 61 6c 6c 20 | 74 6f 20 61 78 65 73 5c |or call |to axes\|
|000062d0| 5f 62 6f 78 28 29 20 6f | 72 20 61 73 63 61 6c 65 |_box() o|r ascale|
|000062e0| 28 29 2e 20 41 6e 20 0d | 0a 65 72 72 6f 72 20 69 |(). An .|.error i|
|000062f0| 73 20 67 65 6e 65 72 61 | 74 65 64 20 69 66 20 74 |s genera|ted if t|
|00006300| 68 65 72 65 20 69 73 20 | 6e 6f 20 63 75 72 72 65 |here is |no curre|
|00006310| 6e 74 20 61 78 65 73 5c | 5f 62 6f 78 2e 20 41 6c |nt axes\|_box. Al|
|00006320| 6c 20 74 68 65 20 61 62 | 6f 76 65 20 0d 0a 70 61 |l the ab|ove ..pa|
|00006330| 72 61 6d 65 74 65 72 73 | 20 61 72 65 20 6f 70 74 |rameters| are opt|
|00006340| 69 6f 6e 61 6c 2e 20 54 | 68 65 20 64 65 66 61 75 |ional. T|he defau|
|00006350| 6c 74 20 62 65 68 61 76 | 69 6f 75 72 20 69 73 20 |lt behav|iour is |
|00006360| 61 73 20 66 6f 6c 6c 6f | 77 73 2e 20 49 66 20 61 |as follo|ws. If a|
|00006370| 6c 6c 20 0d 0a 70 61 72 | 61 6d 65 74 65 72 73 20 |ll ..par|ameters |
|00006380| 61 72 65 20 6f 6d 69 74 | 74 65 64 20 74 69 63 6b |are omit|ted tick|
|00006390| 20 6d 61 72 6b 73 20 77 | 69 6c 6c 20 62 65 20 61 | marks w|ill be a|
|000063a0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 67 65 6e |utomatic|ally gen|
|000063b0| 65 72 61 74 65 64 20 66 | 6f 72 20 61 6c 6c 20 0d |erated f|or all .|
|000063c0| 0a 61 78 65 73 2e 20 49 | 66 20 6f 6e 6c 79 20 61 |.axes. I|f only a|
|000063d0| 6e 20 61 78 69 73 20 73 | 70 65 63 69 66 69 65 72 |n axis s|pecifier|
|000063e0| 20 69 73 20 67 69 76 65 | 6e 20 74 68 65 6e 20 74 | is give|n then t|
|000063f0| 69 63 6b 20 6d 61 72 6b | 73 20 77 69 6c 6c 20 62 |ick mark|s will b|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.