home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: chapter4.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 20 7b 50 4c 50 4c 4f 54 |\chapter| {PLPLOT|
|00000010| 20 53 75 62 72 6f 75 74 | 69 6e 65 20 52 65 66 65 | Subrout|ine Refe|
|00000020| 72 65 6e 63 65 7d 20 5c | 6c 61 62 65 6c 7b 72 65 |rence} \|label{re|
|00000030| 66 65 72 65 6e 63 65 7d | 0a 0a 41 6c 6c 20 74 68 |ference}|..All th|
|00000040| 65 20 50 4c 50 4c 4f 54 | 20 73 75 62 72 6f 75 74 |e PLPLOT| subrout|
|00000050| 69 6e 65 73 20 61 72 65 | 20 6c 69 73 74 65 64 20 |ines are| listed |
|00000060| 62 65 6c 6f 77 20 69 6e | 20 61 6c 70 68 61 62 65 |below in| alphabe|
|00000070| 74 69 63 61 6c 20 0a 6f | 72 64 65 72 2e 0a 0a 5c |tical .o|rder...\|
|00000080| 62 6e 61 6d 65 7b 70 6c | 61 64 76 28 73 75 62 29 |bname{pl|adv(sub)|
|00000090| 3b 7d 5c 6c 61 62 65 6c | 7b 70 6c 61 64 76 7d 0a |;}\label|{pladv}.|
|000000a0| 5c 61 64 64 63 6f 6e 74 | 65 6e 74 73 6c 69 6e 65 |\addcont|entsline|
|000000b0| 7b 74 6f 63 7d 7b 73 75 | 62 73 65 63 74 69 6f 6e |{toc}{su|bsection|
|000000c0| 7d 7b 70 6c 61 64 76 7d | 0a 0a 5c 64 65 73 63 72 |}{pladv}|..\descr|
|000000d0| 7b 41 64 76 61 6e 63 65 | 73 20 74 6f 20 74 68 65 |{Advance|s to the|
|000000e0| 20 6e 65 78 74 20 73 75 | 62 70 61 67 65 20 69 66 | next su|bpage if|
|000000f0| 20 7b 5c 74 74 20 73 75 | 62 3d 30 7d 20 6f 72 20 | {\tt su|b=0} or |
|00000100| 74 6f 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |to the s|pecified|
|00000110| 20 0a 73 75 62 70 61 67 | 65 0a 69 66 20 7b 5c 74 | .subpag|e.if {\t|
|00000120| 74 20 73 75 62 7d 20 69 | 73 20 6e 6f 6e 2d 7a 65 |t sub} i|s non-ze|
|00000130| 72 6f 2e 20 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |ro. This| routine|
|00000140| 20 69 73 20 63 61 6c 6c | 65 64 20 61 75 74 6f 6d | is call|ed autom|
|00000150| 61 74 69 63 61 6c 6c 79 | 20 28 77 69 74 68 20 0a |atically| (with .|
|00000160| 7b 5c 74 74 20 73 75 62 | 3d 30 7d 29 0a 62 79 20 |{\tt sub|=0}).by |
|00000170| 7b 5c 74 74 20 70 6c 65 | 6e 76 7d 2c 20 62 75 74 |{\tt ple|nv}, but|
|00000180| 20 69 66 20 7b 5c 74 74 | 20 70 6c 65 6e 76 7d 20 | if {\tt| plenv} |
|00000190| 69 73 20 6e 6f 74 20 75 | 73 65 64 2c 20 7b 5c 74 |is not u|sed, {\t|
|000001a0| 74 20 70 6c 61 64 76 7d | 0a 20 6d 75 73 74 20 62 |t pladv}|. must b|
|000001b0| 65 20 63 61 6c 6c 65 64 | 20 61 66 74 65 72 20 7b |e called| after {|
|000001c0| 5c 74 74 20 70 6c 73 74 | 61 72 7d 0a 62 75 74 20 |\tt plst|ar}.but |
|000001d0| 62 65 66 6f 72 65 20 64 | 65 66 69 6e 69 6e 67 20 |before d|efining |
|000001e0| 74 68 65 20 76 69 65 77 | 70 6f 72 74 2e 7d 0a 0a |the view|port.}..|
|000001f0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 73 75 62 7d |\argu {{|\tt sub}|
|00000200| 20 28 69 6e 74 2c 20 69 | 6e 70 75 74 29 7d 7b 53 | (int, i|nput)}{S|
|00000210| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 73 75 62 |pecifies| the sub|
|00000220| 70 61 67 65 20 6e 75 6d | 62 65 72 20 28 73 74 61 |page num|ber (sta|
|00000230| 72 74 69 6e 67 20 66 72 | 6f 6d 0a 31 20 69 6e 20 |rting fr|om.1 in |
|00000240| 74 68 65 20 74 6f 70 20 | 6c 65 66 74 20 63 6f 72 |the top |left cor|
|00000250| 6e 65 72 20 61 6e 64 20 | 69 6e 63 72 65 61 73 69 |ner and |increasi|
|00000260| 6e 67 20 61 6c 6f 6e 67 | 20 74 68 65 20 72 6f 77 |ng along| the row|
|00000270| 73 29 20 74 6f 20 77 68 | 69 63 68 20 74 6f 20 61 |s) to wh|ich to a|
|00000280| 64 76 61 6e 63 65 2e 0a | 53 65 74 20 74 6f 20 7a |dvance..|Set to z|
|00000290| 65 72 6f 20 74 6f 20 61 | 64 76 61 6e 63 65 20 74 |ero to a|dvance t|
|000002a0| 6f 20 74 68 65 20 6e 65 | 78 74 20 73 75 62 70 61 |o the ne|xt subpa|
|000002b0| 67 65 2e 7d 0a 0a 0a 0a | 5c 62 6e 61 6d 65 7b 70 |ge.}....|\bname{p|
|000002c0| 6c 62 65 67 28 64 65 76 | 2c 6e 78 2c 6e 79 29 3b |lbeg(dev|,nx,ny);|
|000002d0| 7d 5c 6c 61 62 65 6c 7b | 70 6c 62 65 67 7d 0a 5c |}\label{|plbeg}.\|
|000002e0| 61 64 64 63 6f 6e 74 65 | 6e 74 73 6c 69 6e 65 7b |addconte|ntsline{|
|000002f0| 74 6f 63 7d 7b 73 75 62 | 73 65 63 74 69 6f 6e 7d |toc}{sub|section}|
|00000300| 7b 70 6c 62 65 67 7d 0a | 0a 5c 64 65 73 63 72 7b |{plbeg}.|.\descr{|
|00000310| 41 6c 74 65 72 6e 61 74 | 69 76 65 20 74 6f 20 7b |Alternat|ive to {|
|00000320| 5c 74 74 20 70 6c 73 74 | 61 72 7d 20 66 6f 72 20 |\tt plst|ar} for |
|00000330| 69 6e 69 74 69 61 6c 69 | 7a 69 6e 67 20 74 68 65 |initiali|zing the|
|00000340| 20 70 6c 6f 74 74 69 6e | 67 20 70 61 63 6b 61 67 | plottin|g packag|
|00000350| 65 2e 20 54 68 65 0a 20 | 20 20 20 20 20 20 20 64 |e. The. | d|
|00000360| 65 76 69 63 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |evice nu|mber of |
|00000370| 74 68 65 20 64 65 73 69 | 72 65 64 20 6f 75 74 70 |the desi|red outp|
|00000380| 75 74 20 64 65 76 69 63 | 65 20 6d 75 73 74 20 62 |ut devic|e must b|
|00000390| 65 20 73 75 70 70 6c 69 | 65 64 20 61 73 0a 20 20 |e suppli|ed as. |
|000003a0| 20 20 20 20 20 20 61 6e | 20 61 72 67 75 6d 65 6e | an| argumen|
|000003b0| 74 2e 20 54 68 65 20 6d | 61 70 70 69 6e 67 20 66 |t. The m|apping f|
|000003c0| 72 6f 6d 20 64 65 76 69 | 63 65 20 6e 75 6d 62 65 |rom devi|ce numbe|
|000003d0| 72 73 20 74 6f 20 64 65 | 76 69 63 65 73 20 76 61 |rs to de|vices va|
|000003e0| 72 69 65 73 0a 20 20 20 | 20 20 20 20 20 66 72 6f |ries. | fro|
|000003f0| 6d 20 6f 6e 65 20 69 6d | 70 6c 65 6d 65 6e 74 61 |m one im|plementa|
|00000400| 74 69 6f 6e 20 74 6f 20 | 61 6e 6f 74 68 65 72 2c |tion to |another,|
|00000410| 20 61 6e 64 20 73 6f 20 | 75 73 65 20 6f 66 20 7b | and so |use of {|
|00000420| 5c 74 74 20 70 6c 73 74 | 61 72 7d 20 77 68 69 63 |\tt plst|ar} whic|
|00000430| 68 0a 20 20 20 20 20 20 | 20 20 70 72 6f 6d 70 74 |h. | prompt|
|00000440| 73 20 66 6f 72 20 74 68 | 65 20 64 65 76 69 63 65 |s for th|e device|
|00000450| 20 74 79 70 65 20 69 73 | 20 72 65 63 6f 6d 6d 65 | type is| recomme|
|00000460| 6e 64 65 64 2e 20 54 68 | 65 20 64 65 76 69 63 65 |nded. Th|e device|
|00000470| 20 63 6f 64 65 73 20 61 | 72 65 0a 20 20 20 20 20 | codes a|re. |
|00000480| 20 20 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 | the s|ame as t|
|00000490| 68 6f 73 65 20 70 72 69 | 6e 74 65 64 20 6f 75 74 |hose pri|nted out|
|000004a0| 20 62 79 20 7b 5c 74 74 | 20 70 6c 73 74 61 72 7d | by {\tt| plstar}|
|000004b0| 2e 20 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 61 |. This r|outine a|
|000004c0| 6c 73 6f 20 64 69 76 69 | 64 65 73 0a 20 20 20 20 |lso divi|des. |
|000004d0| 20 20 20 20 74 68 65 20 | 6f 75 74 70 75 74 20 64 | the |output d|
|000004e0| 65 76 69 63 65 20 69 6e | 74 6f 20 7b 5c 74 74 20 |evice in|to {\tt |
|000004f0| 6e 78 7d 20 62 79 20 7b | 5c 74 74 20 6e 79 7d 20 |nx} by {|\tt ny} |
|00000500| 73 75 62 2d 70 61 67 65 | 73 2c 20 65 61 63 68 20 |sub-page|s, each |
|00000510| 6f 66 20 77 68 69 63 68 | 20 6d 61 79 0a 20 20 20 |of which| may. |
|00000520| 20 20 20 20 20 62 65 20 | 75 73 65 64 20 69 6e 64 | be |used ind|
|00000530| 65 70 65 6e 64 65 6e 74 | 6c 79 2e 20 54 68 65 20 |ependent|ly. The |
|00000540| 73 75 62 72 6f 75 74 69 | 6e 65 20 7b 5c 74 74 20 |subrouti|ne {\tt |
|00000550| 70 6c 61 64 76 7d 20 69 | 73 20 75 73 65 64 20 74 |pladv} i|s used t|
|00000560| 6f 20 61 64 76 61 6e 63 | 65 0a 20 20 20 20 20 20 |o advanc|e. |
|00000570| 20 20 66 72 6f 6d 20 6f | 6e 65 20 73 75 62 70 61 | from o|ne subpa|
|00000580| 67 65 20 74 6f 20 74 68 | 65 20 6e 65 78 74 2e 7d |ge to th|e next.}|
|00000590| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 64 65 |..\argu |{{\tt de|
|000005a0| 76 7d 20 28 69 6e 74 2c | 20 69 6e 70 75 74 29 7d |v} (int,| input)}|
|000005b0| 7b 44 65 76 69 63 65 20 | 6e 75 6d 62 65 72 20 6f |{Device |number o|
|000005c0| 66 20 74 68 65 20 72 65 | 71 75 69 72 65 64 20 6f |f the re|quired o|
|000005d0| 75 74 70 75 74 20 64 65 | 76 69 63 65 2e 7d 0a 0a |utput de|vice.}..|
|000005e0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 78 7d 20 |\argu {{|\tt nx} |
|000005f0| 28 69 6e 74 2c 20 69 6e | 70 75 74 29 7d 7b 4e 75 |(int, in|put)}{Nu|
|00000600| 6d 62 65 72 20 6f 66 20 | 73 75 62 70 61 67 65 73 |mber of |subpages|
|00000610| 20 74 6f 20 64 69 76 69 | 64 65 20 6f 75 74 70 75 | to divi|de outpu|
|00000620| 74 20 70 61 67 65 20 69 | 6e 20 0a 20 20 20 20 20 |t page i|n . |
|00000630| 20 74 68 65 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 | the hor|izontal |
|00000640| 64 69 72 65 63 74 69 6f | 6e 2e 7d 0a 0a 5c 61 72 |directio|n.}..\ar|
|00000650| 67 75 20 7b 7b 5c 74 74 | 20 6e 79 7d 20 28 69 6e |gu {{\tt| ny} (in|
|00000660| 74 2c 20 69 6e 70 75 74 | 29 7d 7b 4e 75 6d 62 65 |t, input|)}{Numbe|
|00000670| 72 20 6f 66 20 73 75 62 | 70 61 67 65 73 20 74 6f |r of sub|pages to|
|00000680| 20 64 69 76 69 64 65 20 | 6f 75 74 70 75 74 20 70 | divide |output p|
|00000690| 61 67 65 20 69 6e 20 0a | 20 20 20 20 20 20 74 68 |age in .| th|
|000006a0| 65 20 76 65 72 74 69 63 | 61 6c 20 64 69 72 65 63 |e vertic|al direc|
|000006b0| 74 69 6f 6e 2e 7d 0a 0a | 0a 0a 5c 62 6e 61 6d 65 |tion.}..|..\bname|
|000006c0| 7b 70 6c 62 69 6e 28 6e | 62 69 6e 2c 78 2c 79 2c |{plbin(n|bin,x,y,|
|000006d0| 63 65 6e 29 3b 7d 5c 6c | 61 62 65 6c 7b 70 6c 62 |cen);}\l|abel{plb|
|000006e0| 69 6e 7d 0a 5c 61 64 64 | 63 6f 6e 74 65 6e 74 73 |in}.\add|contents|
|000006f0| 6c 69 6e 65 7b 74 6f 63 | 7d 7b 73 75 62 73 65 63 |line{toc|}{subsec|
|00000700| 74 69 6f 6e 7d 7b 70 6c | 62 69 6e 7d 0a 0a 5c 64 |tion}{pl|bin}..\d|
|00000710| 65 73 63 72 7b 50 6c 6f | 74 73 20 61 20 68 69 73 |escr{Plo|ts a his|
|00000720| 74 6f 67 72 61 6d 20 63 | 6f 6e 73 69 73 74 69 6e |togram c|onsistin|
|00000730| 67 20 6f 66 20 7b 5c 74 | 74 20 6e 7d 20 62 69 6e |g of {\t|t n} bin|
|00000740| 73 2e 20 54 68 65 20 76 | 61 6c 75 65 20 61 73 73 |s. The v|alue ass|
|00000750| 6f 63 69 61 74 65 64 0a | 20 20 20 20 20 20 20 77 |ociated.| w|
|00000760| 69 74 68 20 74 68 65 20 | 7b 5c 74 74 20 69 7d 27 |ith the |{\tt i}'|
|00000770| 74 68 20 62 69 6e 20 69 | 73 20 70 6c 61 63 65 64 |th bin i|s placed|
|00000780| 20 69 6e 20 7b 5c 74 74 | 20 78 5b 69 5d 7d 2c 20 | in {\tt| x[i]}, |
|00000790| 61 6e 64 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |and the |number o|
|000007a0| 66 20 70 6f 69 6e 74 73 | 0a 20 20 20 20 20 20 20 |f points|. |
|000007b0| 69 6e 20 74 68 65 20 62 | 69 6e 20 69 73 20 70 6c |in the b|in is pl|
|000007c0| 61 63 65 64 20 69 6e 20 | 7b 5c 74 74 20 79 5b 69 |aced in |{\tt y[i|
|000007d0| 5d 7d 2e 20 46 6f 72 20 | 70 72 6f 70 65 72 20 6f |]}. For |proper o|
|000007e0| 70 65 72 61 74 69 6f 6e | 2c 20 74 68 65 20 76 61 |peration|, the va|
|000007f0| 6c 75 65 73 0a 20 20 20 | 20 20 20 20 69 6e 20 7b |lues. | in {|
|00000800| 5c 74 74 20 78 5b 69 5d | 7d 20 6d 75 73 74 20 66 |\tt x[i]|} must f|
|00000810| 6f 72 6d 20 61 20 73 74 | 72 69 63 74 6c 79 20 69 |orm a st|rictly i|
|00000820| 6e 63 72 65 61 73 69 6e | 67 20 73 65 71 75 65 6e |ncreasin|g sequen|
|00000830| 63 65 2e 20 49 66 20 7b | 5c 74 74 20 63 65 6e 74 |ce. If {|\tt cent|
|00000840| 72 65 7d 20 69 73 0a 20 | 20 20 20 20 20 20 66 61 |re} is. | fa|
|00000850| 6c 73 65 2c 20 7b 5c 74 | 74 20 78 5b 69 5d 7d 20 |lse, {\t|t x[i]} |
|00000860| 69 73 20 74 68 65 20 6c | 65 66 74 2d 68 61 6e 64 |is the l|eft-hand|
|00000870| 20 65 64 67 65 20 6f 66 | 20 74 68 65 20 7b 5c 74 | edge of| the {\t|
|00000880| 74 20 69 27 74 68 7d 20 | 62 69 6e 2c 20 61 6e 64 |t i'th} |bin, and|
|00000890| 20 69 66 0a 20 20 20 20 | 20 20 20 7b 5c 74 74 20 | if. | {\tt |
|000008a0| 63 65 6e 74 72 65 7d 20 | 69 73 20 74 72 75 65 2c |centre} |is true,|
|000008b0| 20 74 68 65 20 62 69 6e | 20 62 6f 75 6e 64 61 72 | the bin| boundar|
|000008c0| 69 65 73 20 61 72 65 20 | 70 6c 61 63 65 64 20 6d |ies are |placed m|
|000008d0| 69 64 77 61 79 20 62 65 | 74 77 65 65 6e 20 74 68 |idway be|tween th|
|000008e0| 65 0a 20 20 20 20 20 20 | 20 76 61 6c 75 65 73 20 |e. | values |
|000008f0| 69 6e 20 74 68 65 20 7b | 5c 74 74 20 78 7d 7e 61 |in the {|\tt x}~a|
|00000900| 72 72 61 79 2e 20 41 6c | 73 6f 20 73 65 65 20 7b |rray. Al|so see {|
|00000910| 5c 74 74 20 70 6c 68 69 | 73 74 7d 20 66 6f 72 20 |\tt plhi|st} for |
|00000920| 64 72 61 77 69 6e 67 0a | 20 20 20 20 20 20 20 68 |drawing.| h|
|00000930| 69 73 74 6f 67 72 61 6d | 73 20 66 72 6f 6d 20 75 |istogram|s from u|
|00000940| 6e 62 69 6e 6e 65 64 20 | 64 61 74 61 2e 7d 20 0a |nbinned |data.} .|
|00000950| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 6e 62 69 |.\argu {|{\tt nbi|
|00000960| 6e 7d 20 28 69 6e 74 2c | 20 69 6e 70 75 74 29 7d |n} (int,| input)}|
|00000970| 7b 4e 75 6d 62 65 72 20 | 6f 66 20 62 69 6e 73 20 |{Number |of bins |
|00000980| 28 69 2e 65 2e 2c 20 6e | 75 6d 62 65 72 20 6f 66 |(i.e., n|umber of|
|00000990| 20 76 61 6c 75 65 73 20 | 69 6e 20 24 78 24 0a 61 | values |in $x$.a|
|000009a0| 6e 64 20 24 79 24 20 61 | 72 72 61 79 73 2e 29 7d |nd $y$ a|rrays.)}|
|000009b0| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 78 7d |..\argu |{{\tt x}|
|000009c0| 20 28 66 6c 6f 61 74 20 | 2a 2c 20 69 6e 70 75 74 | (float |*, input|
|000009d0| 29 7d 7b 50 6f 69 6e 74 | 65 72 20 74 6f 20 61 72 |)}{Point|er to ar|
|000009e0| 72 61 79 20 63 6f 6e 74 | 61 69 6e 69 6e 67 0a 76 |ray cont|aining.v|
|000009f0| 61 6c 75 65 73 20 61 73 | 73 6f 63 69 61 74 65 64 |alues as|sociated|
|00000a00| 20 77 69 74 68 20 62 69 | 6e 73 2e 20 54 68 65 73 | with bi|ns. Thes|
|00000a10| 65 20 6d 75 73 74 20 66 | 6f 72 6d 0a 61 20 73 74 |e must f|orm.a st|
|00000a20| 72 69 63 74 6c 79 20 69 | 6e 63 72 65 61 73 69 6e |rictly i|ncreasin|
|00000a30| 67 20 73 65 71 75 65 6e | 63 65 2e 7d 0a 0a 5c 61 |g sequen|ce.}..\a|
|00000a40| 72 67 75 20 7b 7b 5c 74 | 74 20 79 7d 20 28 66 6c |rgu {{\t|t y} (fl|
|00000a50| 6f 61 74 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 50 |oat *, i|nput)}{P|
|00000a60| 6f 69 6e 74 65 72 20 74 | 6f 20 61 72 72 61 79 20 |ointer t|o array |
|00000a70| 63 6f 6e 74 61 69 6e 69 | 6e 67 0a 6e 75 6d 62 65 |containi|ng.numbe|
|00000a80| 72 20 6f 66 20 70 6f 69 | 6e 74 73 20 69 6e 20 62 |r of poi|nts in b|
|00000a90| 69 6e 2e 20 54 68 69 73 | 20 69 73 20 61 20 0a 7b |in. This| is a .{|
|00000aa0| 5c 62 66 20 66 6c 6f 61 | 74 7d 0a 61 72 72 61 79 |\bf floa|t}.array|
|00000ab0| 20 73 6f 20 61 73 20 74 | 6f 20 61 6c 6c 6f 77 20 | so as t|o allow |
|00000ac0| 68 69 73 74 6f 67 72 61 | 6d 73 20 6f 66 20 70 72 |histogra|ms of pr|
|00000ad0| 6f 62 61 62 69 6c 69 74 | 69 65 73 2c 20 65 74 63 |obabilit|ies, etc|
|00000ae0| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00000af0| 63 65 6e 7d 20 28 69 6e | 74 2c 20 69 6e 70 75 74 |cen} (in|t, input|
|00000b00| 29 7d 7b 49 6e 64 69 63 | 61 74 65 73 20 77 68 65 |)}{Indic|ates whe|
|00000b10| 74 68 65 72 20 74 68 65 | 20 76 61 6c 75 65 73 20 |ther the| values |
|00000b20| 69 6e 20 7b 5c 74 74 20 | 78 7d 20 0a 72 65 70 72 |in {\tt |x} .repr|
|00000b30| 65 73 65 6e 74 20 74 68 | 65 20 6c 6f 77 65 72 20 |esent th|e lower |
|00000b40| 62 69 6e 20 62 6f 75 6e | 64 61 72 69 65 73 20 28 |bin boun|daries (|
|00000b50| 7b 5c 74 74 20 63 65 6e | 3d 30 7d 29 20 6f 72 20 |{\tt cen|=0}) or |
|00000b60| 77 68 65 74 68 65 72 0a | 74 68 65 20 62 69 6e 20 |whether.|the bin |
|00000b70| 62 6f 75 6e 64 61 72 69 | 65 73 20 61 72 65 20 74 |boundari|es are t|
|00000b80| 6f 20 62 65 20 6d 69 64 | 77 61 79 20 62 65 74 77 |o be mid|way betw|
|00000b90| 65 65 6e 20 74 68 65 20 | 7b 5c 74 74 20 78 7d 20 |een the |{\tt x} |
|00000ba0| 76 61 6c 75 65 73 20 28 | 7b 5c 74 74 20 63 65 6e |values (|{\tt cen|
|00000bb0| 3d 31 7d 29 2e 0a 49 66 | 20 74 68 65 20 76 61 6c |=1})..If| the val|
|00000bc0| 75 65 73 20 69 6e 20 7b | 5c 74 74 20 78 7d 20 61 |ues in {|\tt x} a|
|00000bd0| 72 65 20 65 71 75 61 6c | 6c 79 20 73 70 61 63 65 |re equal|ly space|
|00000be0| 64 20 61 6e 64 20 7b 5c | 74 74 20 63 65 6e 3d 31 |d and {\|tt cen=1|
|00000bf0| 7d 2c 20 0a 74 68 65 20 | 76 61 6c 75 65 73 20 69 |}, .the |values i|
|00000c00| 6e 20 7b 5c 74 74 20 78 | 7d 0a 61 72 65 20 74 68 |n {\tt x|}.are th|
|00000c10| 65 20 63 65 6e 74 72 65 | 20 76 61 6c 75 65 73 20 |e centre| values |
|00000c20| 6f 66 20 74 68 65 20 62 | 69 6e 73 2e 7d 0a 0a 0a |of the b|ins.}...|
|00000c30| 0a 5c 62 6e 61 6d 65 7b | 70 6c 62 6f 78 28 78 6f |.\bname{|plbox(xo|
|00000c40| 70 74 2c 78 74 69 63 6b | 2c 6e 78 73 75 62 2c 79 |pt,xtick|,nxsub,y|
|00000c50| 6f 70 74 2c 79 74 69 63 | 6b 2c 6e 79 73 75 62 29 |opt,ytic|k,nysub)|
|00000c60| 3b 7d 5c 6c 61 62 65 6c | 7b 70 6c 62 6f 78 7d 0a |;}\label|{plbox}.|
|00000c70| 5c 61 64 64 63 6f 6e 74 | 65 6e 74 73 6c 69 6e 65 |\addcont|entsline|
|00000c80| 7b 74 6f 63 7d 7b 73 75 | 62 73 65 63 74 69 6f 6e |{toc}{su|bsection|
|00000c90| 7d 7b 70 6c 62 6f 78 7d | 0a 0a 5c 64 65 73 63 72 |}{plbox}|..\descr|
|00000ca0| 7b 44 72 61 77 73 20 61 | 20 62 6f 78 20 61 72 6f |{Draws a| box aro|
|00000cb0| 75 6e 64 20 74 68 65 20 | 63 75 72 72 65 6e 74 6c |und the |currentl|
|00000cc0| 79 20 64 65 66 69 6e 65 | 64 20 76 69 65 77 70 6f |y define|d viewpo|
|00000cd0| 72 74 2c 20 61 6e 64 20 | 6c 61 62 65 6c 73 20 69 |rt, and |labels i|
|00000ce0| 74 0a 20 20 20 20 20 20 | 20 77 69 74 68 20 77 6f |t. | with wo|
|00000cf0| 72 6c 64 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 76 |rld coor|dinate v|
|00000d00| 61 6c 75 65 73 20 61 70 | 70 72 6f 70 72 69 61 74 |alues ap|propriat|
|00000d10| 65 20 74 6f 20 74 68 65 | 20 77 69 6e 64 6f 77 2e |e to the| window.|
|00000d20| 20 54 68 75 73 0a 20 20 | 20 20 20 20 20 7b 5c 74 | Thus. | {\t|
|00000d30| 74 20 70 6c 62 6f 78 7d | 20 73 68 6f 75 6c 64 20 |t plbox}| should |
|00000d40| 6f 6e 6c 79 20 62 65 20 | 63 61 6c 6c 65 64 20 61 |only be |called a|
|00000d50| 66 74 65 72 20 64 65 66 | 69 6e 69 6e 67 20 62 6f |fter def|ining bo|
|00000d60| 74 68 20 76 69 65 77 70 | 6f 72 74 20 61 6e 64 0a |th viewp|ort and.|
|00000d70| 20 20 20 20 20 20 20 77 | 69 6e 64 6f 77 2e 20 54 | w|indow. T|
|00000d80| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 73 74 72 |he chara|cter str|
|00000d90| 69 6e 67 73 20 7b 5c 74 | 74 20 78 6f 70 74 7d 20 |ings {\t|t xopt} |
|00000da0| 61 6e 64 20 7b 5c 74 74 | 20 79 6f 70 74 7d 20 73 |and {\tt| yopt} s|
|00000db0| 70 65 63 69 66 79 20 68 | 6f 77 20 74 68 65 0a 20 |pecify h|ow the. |
|00000dc0| 20 20 20 20 20 20 62 6f | 78 20 73 68 6f 75 6c 64 | bo|x should|
|00000dd0| 20 62 65 20 64 72 61 77 | 6e 20 61 73 20 64 65 73 | be draw|n as des|
|00000de0| 63 72 69 62 65 64 20 62 | 65 6c 6f 77 2e 20 49 66 |cribed b|elow. If|
|00000df0| 20 74 69 63 6b 73 20 61 | 6e 64 2f 6f 72 20 73 75 | ticks a|nd/or su|
|00000e00| 62 74 69 63 6b 73 0a 20 | 20 20 20 20 20 20 61 72 |bticks. | ar|
|00000e10| 65 20 74 6f 20 62 65 20 | 64 72 61 77 6e 20 66 6f |e to be |drawn fo|
|00000e20| 72 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 61 |r a part|icular a|
|00000e30| 78 69 73 2c 20 74 68 65 | 20 74 69 63 6b 20 69 6e |xis, the| tick in|
|00000e40| 74 65 72 76 61 6c 73 20 | 61 6e 64 20 6e 75 6d 62 |tervals |and numb|
|00000e50| 65 72 0a 20 20 20 20 20 | 20 20 6f 66 20 73 75 62 |er. | of sub|
|00000e60| 69 6e 74 65 72 76 61 6c | 73 20 6d 61 79 20 62 65 |interval|s may be|
|00000e70| 20 73 70 65 63 69 66 69 | 65 64 20 65 78 70 6c 69 | specifi|ed expli|
|00000e80| 63 69 74 6c 79 2c 20 6f | 72 20 74 68 65 79 20 6d |citly, o|r they m|
|00000e90| 61 79 20 62 65 0a 20 20 | 20 20 20 20 20 64 65 66 |ay be. | def|
|00000ea0| 61 75 6c 74 65 64 20 62 | 79 20 73 65 74 74 69 6e |aulted b|y settin|
|00000eb0| 67 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |g the ap|propriat|
|00000ec0| 65 20 61 72 67 75 6d 65 | 6e 74 73 20 74 6f 20 7a |e argume|nts to z|
|00000ed0| 65 72 6f 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |ero.}..\|argu {{\|
|00000ee0| 74 74 20 78 6f 70 74 7d | 20 28 63 68 61 72 20 2a |tt xopt}| (char *|
|00000ef0| 2c 20 69 6e 70 75 74 29 | 7d 7b 50 6f 69 6e 74 65 |, input)|}{Pointe|
|00000f00| 72 20 74 6f 0a 63 68 61 | 72 61 63 74 65 72 20 73 |r to.cha|racter s|
|00000f10| 74 72 69 6e 67 20 73 70 | 65 63 69 66 79 69 6e 67 |tring sp|ecifying|
|00000f20| 20 6f 70 74 69 6f 6e 73 | 20 66 6f 72 0a 68 6f 72 | options| for.hor|
|00000f30| 69 7a 6f 6e 74 61 6c 20 | 61 78 69 73 2e 20 54 68 |izontal |axis. Th|
|00000f40| 65 20 73 74 72 69 6e 67 | 20 63 61 6e 20 69 6e 63 |e string| can inc|
|00000f50| 6c 75 64 65 20 61 6e 79 | 20 63 6f 6d 62 69 6e 61 |lude any| combina|
|00000f60| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c |tion of |the foll|
|00000f70| 6f 77 69 6e 67 0a 6c 65 | 74 74 65 72 73 20 28 75 |owing.le|tters (u|
|00000f80| 70 70 65 72 20 6f 72 20 | 6c 6f 77 65 72 20 63 61 |pper or |lower ca|
|00000f90| 73 65 29 20 69 6e 20 61 | 6e 79 20 6f 72 64 65 72 |se) in a|ny order|
|00000fa0| 3a 0a 5c 62 65 67 69 6e | 7b 69 74 65 6d 69 7a 65 |:.\begin|{itemize|
|00000fb0| 7d 0a 5c 69 74 65 6d 7b | 7b 5c 74 74 20 61 20 3a |}.\item{|{\tt a :|
|00000fc0| 7d 7d 20 44 72 61 77 73 | 20 61 78 69 73 2c 20 58 |}} Draws| axis, X|
|00000fd0| 2d 61 78 69 73 20 69 73 | 20 68 6f 72 69 7a 6f 6e |-axis is| horizon|
|00000fe0| 74 61 6c 20 6c 69 6e 65 | 20 7b 5c 74 74 20 79 3d |tal line| {\tt y=|
|00000ff0| 30 7d 2c 20 61 6e 64 20 | 59 2d 61 78 69 73 20 69 |0}, and |Y-axis i|
|00001000| 73 0a 76 65 72 74 69 63 | 61 6c 20 6c 69 6e 65 20 |s.vertic|al line |
|00001010| 7b 5c 74 74 20 79 3d 30 | 7d 2e 0a 5c 69 74 65 6d |{\tt y=0|}..\item|
|00001020| 7b 7b 5c 74 74 20 62 20 | 3a 7d 7d 20 44 72 61 77 |{{\tt b |:}} Draw|
|00001030| 73 20 62 6f 74 74 6f 6d | 20 28 58 29 20 6f 72 20 |s bottom| (X) or |
|00001040| 6c 65 66 74 20 28 59 29 | 20 65 64 67 65 20 6f 66 |left (Y)| edge of|
|00001050| 20 66 72 61 6d 65 2e 0a | 5c 69 74 65 6d 7b 7b 5c | frame..|\item{{\|
|00001060| 74 74 20 63 20 3a 7d 7d | 20 44 72 61 77 73 20 74 |tt c :}}| Draws t|
|00001070| 6f 70 20 28 58 29 20 6f | 72 20 72 69 67 68 74 20 |op (X) o|r right |
|00001080| 28 59 29 20 65 64 67 65 | 20 6f 66 20 66 72 61 6d |(Y) edge| of fram|
|00001090| 65 2e 0a 5c 69 74 65 6d | 7b 7b 5c 74 74 20 67 20 |e..\item|{{\tt g |
|000010a0| 3a 7d 7d 20 44 72 61 77 | 73 20 61 20 67 72 69 64 |:}} Draw|s a grid|
|000010b0| 20 61 74 20 74 68 65 20 | 6d 61 6a 6f 72 20 74 69 | at the |major ti|
|000010c0| 63 6b 20 69 6e 74 65 72 | 76 61 6c 2e 0a 5c 69 74 |ck inter|val..\it|
|000010d0| 65 6d 7b 7b 5c 74 74 20 | 69 20 3a 7d 7d 20 49 6e |em{{\tt |i :}} In|
|000010e0| 76 65 72 74 73 20 74 69 | 63 6b 20 6d 61 72 6b 73 |verts ti|ck marks|
|000010f0| 2c 20 73 6f 20 74 68 65 | 79 20 61 72 65 20 64 72 |, so the|y are dr|
|00001100| 61 77 6e 20 6f 75 74 77 | 61 72 64 73 2c 20 72 61 |awn outw|ards, ra|
|00001110| 74 68 65 72 20 74 68 61 | 6e 0a 69 6e 77 61 72 64 |ther tha|n.inward|
|00001120| 73 2e 0a 5c 69 74 65 6d | 7b 7b 5c 74 74 20 6c 20 |s..\item|{{\tt l |
|00001130| 3a 7d 7d 20 4c 61 62 65 | 6c 73 20 61 78 69 73 20 |:}} Labe|ls axis |
|00001140| 6c 6f 67 61 72 69 74 68 | 6d 69 63 61 6c 6c 79 2e |logarith|mically.|
|00001150| 20 54 68 69 73 20 6f 6e | 6c 79 20 61 66 66 65 63 | This on|ly affec|
|00001160| 74 73 20 74 68 65 20 6c | 61 62 65 6c 73 2c 0a 6e |ts the l|abels,.n|
|00001170| 6f 74 20 74 68 65 20 64 | 61 74 61 2c 20 61 6e 64 |ot the d|ata, and|
|00001180| 20 73 6f 20 69 74 20 69 | 73 20 6e 65 63 65 73 73 | so it i|s necess|
|00001190| 61 72 79 20 74 6f 20 63 | 6f 6d 70 75 74 65 20 74 |ary to c|ompute t|
|000011a0| 68 65 20 6c 6f 67 61 72 | 69 74 68 6d 73 20 6f 66 |he logar|ithms of|
|000011b0| 20 64 61 74 61 20 0a 70 | 6f 69 6e 74 73 20 62 65 | data .p|oints be|
|000011c0| 66 6f 72 65 20 70 61 73 | 73 69 6e 67 20 74 68 65 |fore pas|sing the|
|000011d0| 6d 20 74 6f 20 61 6e 79 | 20 6f 66 20 74 68 65 20 |m to any| of the |
|000011e0| 64 72 61 77 69 6e 67 20 | 72 6f 75 74 69 6e 65 73 |drawing |routines|
|000011f0| 2e 0a 5c 69 74 65 6d 7b | 7b 5c 74 74 20 6d 20 3a |..\item{|{\tt m :|
|00001200| 7d 7d 20 57 72 69 74 65 | 73 20 6e 75 6d 65 72 69 |}} Write|s numeri|
|00001210| 63 20 6c 61 62 65 6c 73 | 20 61 74 20 6d 61 6a 6f |c labels| at majo|
|00001220| 72 20 74 69 63 6b 20 69 | 6e 74 65 72 76 61 6c 73 |r tick i|ntervals|
|00001230| 20 69 6e 20 74 68 65 0a | 75 6e 63 6f 6e 76 65 6e | in the.|unconven|
|00001240| 74 69 6f 6e 61 6c 20 6c | 6f 63 61 74 69 6f 6e 20 |tional l|ocation |
|00001250| 28 61 62 6f 76 65 20 62 | 6f 78 20 66 6f 72 20 58 |(above b|ox for X|
|00001260| 2c 20 72 69 67 68 74 20 | 6f 66 20 62 6f 78 20 66 |, right |of box f|
|00001270| 6f 72 20 59 29 2e 0a 5c | 69 74 65 6d 7b 7b 5c 74 |or Y)..\|item{{\t|
|00001280| 74 20 6e 20 3a 7d 7d 20 | 57 72 69 74 65 73 20 6e |t n :}} |Writes n|
|00001290| 75 6d 65 72 69 63 20 6c | 61 62 65 6c 73 20 61 74 |umeric l|abels at|
|000012a0| 20 6d 61 6a 6f 72 20 74 | 69 63 6b 20 69 6e 74 65 | major t|ick inte|
|000012b0| 72 76 61 6c 73 20 69 6e | 20 74 68 65 20 0a 63 6f |rvals in| the .co|
|000012c0| 6e 76 65 6e 74 69 6f 6e | 61 6c 20 6c 6f 63 61 74 |nvention|al locat|
|000012d0| 69 6f 6e 20 28 62 65 6c | 6f 77 20 62 6f 78 20 66 |ion (bel|ow box f|
|000012e0| 6f 72 20 58 2c 20 6c 65 | 66 74 20 6f 66 20 62 6f |or X, le|ft of bo|
|000012f0| 78 20 66 6f 72 20 59 29 | 2e 0a 5c 69 74 65 6d 7b |x for Y)|..\item{|
|00001300| 7b 5c 74 74 20 73 20 3a | 7d 7d 20 45 6e 61 62 6c |{\tt s :|}} Enabl|
|00001310| 65 73 20 73 75 62 74 69 | 63 6b 73 20 62 65 74 77 |es subti|cks betw|
|00001320| 65 65 6e 20 6d 61 6a 6f | 72 20 74 69 63 6b 73 2c |een majo|r ticks,|
|00001330| 20 6f 6e 6c 79 20 76 61 | 6c 69 64 20 69 66 20 7b | only va|lid if {|
|00001340| 5c 74 74 20 74 7d 20 69 | 73 0a 61 6c 73 6f 20 73 |\tt t} i|s.also s|
|00001350| 70 65 63 69 66 69 65 64 | 2e 0a 5c 69 74 65 6d 7b |pecified|..\item{|
|00001360| 7b 5c 74 74 20 74 20 3a | 7d 7d 20 44 72 61 77 73 |{\tt t :|}} Draws|
|00001370| 20 6d 61 6a 6f 72 20 74 | 69 63 6b 73 2e 0a 5c 65 | major t|icks..\e|
|00001380| 6e 64 7b 69 74 65 6d 69 | 7a 65 7d 7d 0a 0a 5c 61 |nd{itemi|ze}}..\a|
|00001390| 72 67 75 20 7b 7b 5c 74 | 74 20 78 74 69 63 6b 7d |rgu {{\t|t xtick}|
|000013a0| 20 28 66 6c 6f 61 74 2c | 20 69 6e 70 75 74 29 7d | (float,| input)}|
|000013b0| 7b 57 6f 72 6c 64 20 63 | 6f 6f 72 64 69 6e 61 74 |{World c|oordinat|
|000013c0| 65 20 69 6e 74 65 72 76 | 61 6c 20 62 65 74 77 65 |e interv|al betwe|
|000013d0| 65 6e 20 6d 61 6a 6f 72 | 20 74 69 63 6b 73 0a 6f |en major| ticks.o|
|000013e0| 6e 20 74 68 65 20 78 7e | 61 78 69 73 2e 20 49 66 |n the x~|axis. If|
|000013f0| 20 69 74 20 69 73 20 73 | 65 74 20 74 6f 20 7a 65 | it is s|et to ze|
|00001400| 72 6f 2c 20 50 4c 50 4c | 4f 54 20 61 75 74 6f 6d |ro, PLPL|OT autom|
|00001410| 61 74 69 63 61 6c 6c 79 | 20 67 65 6e 65 72 61 74 |atically| generat|
|00001420| 65 73 20 61 0a 73 75 69 | 74 61 62 6c 65 20 74 69 |es a.sui|table ti|
|00001430| 63 6b 20 69 6e 74 65 72 | 76 61 6c 7d 0a 0a 5c 61 |ck inter|val}..\a|
|00001440| 72 67 75 20 7b 7b 5c 74 | 74 20 6e 78 73 75 62 7d |rgu {{\t|t nxsub}|
|00001450| 20 28 69 6e 74 2c 20 69 | 6e 70 75 74 29 7d 7b 4e | (int, i|nput)}{N|
|00001460| 75 6d 62 65 72 20 6f 66 | 20 73 75 62 69 6e 74 65 |umber of| subinte|
|00001470| 72 76 61 6c 73 20 62 65 | 74 77 65 65 6e 20 6d 61 |rvals be|tween ma|
|00001480| 6a 6f 72 20 78 7e 61 78 | 69 73 0a 74 69 63 6b 73 |jor x~ax|is.ticks|
|00001490| 20 66 6f 72 20 6d 69 6e | 6f 72 20 74 69 63 6b 73 | for min|or ticks|
|000014a0| 2e 20 49 66 20 69 74 20 | 69 73 20 73 65 74 20 74 |. If it |is set t|
|000014b0| 6f 20 7a 65 72 6f 2c 20 | 50 4c 50 4c 4f 54 20 61 |o zero, |PLPLOT a|
|000014c0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 67 65 6e |utomatic|ally gen|
|000014d0| 65 72 61 74 65 73 20 61 | 0a 73 75 69 74 61 62 6c |erates a|.suitabl|
|000014e0| 65 20 6d 69 6e 6f 72 20 | 74 69 63 6b 20 69 6e 74 |e minor |tick int|
|000014f0| 65 72 76 61 6c 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |erval.}.|.\argu {|
|00001500| 7b 5c 74 74 20 79 6f 70 | 74 7d 20 28 63 68 61 72 |{\tt yop|t} (char|
|00001510| 20 2a 2c 20 69 6e 70 75 | 74 29 7d 7b 50 6f 69 6e | *, inpu|t)}{Poin|
|00001520| 74 65 72 20 74 6f 0a 63 | 68 61 72 61 63 74 65 72 |ter to.c|haracter|
|00001530| 20 73 74 72 69 6e 67 20 | 73 70 65 63 69 66 79 69 | string |specifyi|
|00001540| 6e 67 20 6f 70 74 69 6f | 6e 73 20 66 6f 72 0a 76 |ng optio|ns for.v|
|00001550| 65 72 74 69 63 61 6c 20 | 61 78 69 73 2e 20 54 68 |ertical |axis. Th|
|00001560| 65 20 73 74 72 69 6e 67 | 20 63 61 6e 20 69 6e 63 |e string| can inc|
|00001570| 6c 75 64 65 20 61 6e 79 | 20 63 6f 6d 62 69 6e 61 |lude any| combina|
|00001580| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 6c 65 74 74 |tion of |the lett|
|00001590| 65 72 73 0a 64 65 66 69 | 6e 65 64 20 61 62 6f 76 |ers.defi|ned abov|
|000015a0| 65 20 66 6f 72 20 7b 5c | 74 74 20 78 6f 70 74 7d |e for {\|tt xopt}|
|000015b0| 2c 20 61 6e 64 20 69 6e | 20 61 64 64 69 74 69 6f |, and in| additio|
|000015c0| 6e 20 6d 61 79 20 63 6f | 6e 74 61 69 6e 3a 0a 5c |n may co|ntain:.\|
|000015d0| 62 65 67 69 6e 7b 69 74 | 65 6d 69 7a 65 7d 0a 5c |begin{it|emize}.\|
|000015e0| 69 74 65 6d 7b 7b 5c 74 | 74 20 76 20 7d 7d 7b 3a |item{{\t|t v }}{:|
|000015f0| 20 57 72 69 74 65 20 6e | 75 6d 65 72 69 63 20 6c | Write n|umeric l|
|00001600| 61 62 65 6c 73 20 66 6f | 72 20 76 65 72 74 69 63 |abels fo|r vertic|
|00001610| 61 6c 20 61 78 69 73 20 | 70 61 72 61 6c 6c 65 6c |al axis |parallel|
|00001620| 20 74 6f 20 74 68 65 0a | 62 61 73 65 20 6f 66 20 | to the.|base of |
|00001630| 74 68 65 20 67 72 61 70 | 68 2c 20 72 61 74 68 65 |the grap|h, rathe|
|00001640| 72 20 74 68 61 6e 20 70 | 61 72 61 6c 6c 65 6c 20 |r than p|arallel |
|00001650| 74 6f 20 74 68 65 20 61 | 78 69 73 2e 7d 0a 5c 65 |to the a|xis.}.\e|
|00001660| 6e 64 7b 69 74 65 6d 69 | 7a 65 7d 0a 7d 0a 0a 5c |nd{itemi|ze}.}..\|
|00001670| 61 72 67 75 20 7b 7b 5c | 74 74 20 79 74 69 63 6b |argu {{\|tt ytick|
|00001680| 7d 20 28 72 65 61 6c 2c | 20 69 6e 70 75 74 29 7d |} (real,| input)}|
|00001690| 7b 57 6f 72 6c 64 20 63 | 6f 6f 72 64 69 6e 61 74 |{World c|oordinat|
|000016a0| 65 20 69 6e 74 65 72 76 | 61 6c 20 62 65 74 77 65 |e interv|al betwe|
|000016b0| 65 6e 20 6d 61 6a 6f 72 | 20 74 69 63 6b 73 0a 6f |en major| ticks.o|
|000016c0| 6e 20 74 68 65 20 79 7e | 61 78 69 73 2e 20 49 66 |n the y~|axis. If|
|000016d0| 20 69 74 20 69 73 20 73 | 65 74 20 74 6f 20 7a 65 | it is s|et to ze|
|000016e0| 72 6f 2c 20 50 4c 50 4c | 4f 54 20 61 75 74 6f 6d |ro, PLPL|OT autom|
|000016f0| 61 74 69 63 61 6c 6c 79 | 20 67 65 6e 65 72 61 74 |atically| generat|
|00001700| 65 73 20 61 0a 73 75 69 | 74 61 62 6c 65 20 74 69 |es a.sui|table ti|
|00001710| 63 6b 20 69 6e 74 65 72 | 76 61 6c 7d 0a 0a 5c 61 |ck inter|val}..\a|
|00001720| 72 67 75 20 7b 7b 5c 74 | 74 20 6e 79 73 75 62 7d |rgu {{\t|t nysub}|
|00001730| 20 28 69 6e 74 2c 20 69 | 6e 70 75 74 29 7d 7b 4e | (int, i|nput)}{N|
|00001740| 75 6d 62 65 72 20 6f 66 | 20 73 75 62 69 6e 74 65 |umber of| subinte|
|00001750| 72 76 61 6c 73 20 62 65 | 74 77 65 65 6e 20 6d 61 |rvals be|tween ma|
|00001760| 6a 6f 72 20 79 7e 61 78 | 69 73 0a 74 69 63 6b 73 |jor y~ax|is.ticks|
|00001770| 20 66 6f 72 20 6d 69 6e | 6f 72 20 74 69 63 6b 73 | for min|or ticks|
|00001780| 2e 20 49 66 20 69 74 20 | 69 73 20 73 65 74 20 74 |. If it |is set t|
|00001790| 6f 20 7a 65 72 6f 2c 20 | 50 4c 50 4c 4f 54 20 61 |o zero, |PLPLOT a|
|000017a0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 67 65 6e |utomatic|ally gen|
|000017b0| 65 72 61 74 65 73 20 61 | 0a 73 75 69 74 61 62 6c |erates a|.suitabl|
|000017c0| 65 20 6d 69 6e 6f 72 20 | 74 69 63 6b 20 69 6e 74 |e minor |tick int|
|000017d0| 65 72 76 61 6c 2e 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |erval.}.|...\bnam|
|000017e0| 65 7b 20 5c 62 65 67 69 | 6e 7b 74 61 62 75 6c 61 |e{ \begi|n{tabula|
|000017f0| 72 7d 7b 6c 40 7b 5c 73 | 74 72 75 74 7d 6c 7d 0a |r}{l@{\s|trut}l}.|
|00001800| 20 20 20 20 20 20 20 20 | 70 6c 62 6f 78 33 28 26 | |plbox3(&|
|00001810| 78 6f 70 74 2c 78 6c 61 | 62 65 6c 2c 78 74 69 63 |xopt,xla|bel,xtic|
|00001820| 6b 2c 6e 78 73 75 62 2c | 79 6f 70 74 2c 79 6c 61 |k,nxsub,|yopt,yla|
|00001830| 62 65 6c 2c 79 74 69 63 | 6b 2c 6e 79 73 75 62 2c |bel,ytic|k,nysub,|
|00001840| 5c 5c 0a 20 20 20 20 20 | 20 20 20 26 7a 6f 70 74 |\\. | &zopt|
|00001850| 2c 7a 6c 61 62 65 6c 2c | 7a 74 69 63 6b 2c 6e 7a |,zlabel,|ztick,nz|
|00001860| 73 75 62 29 3b 0a 20 20 | 20 20 20 20 20 20 5c 65 |sub);. | \e|
|00001870| 6e 64 7b 74 61 62 75 6c | 61 72 7d 0a 20 20 20 20 |nd{tabul|ar}. |
|00001880| 20 20 7d 20 5c 6c 61 62 | 65 6c 7b 70 6c 62 6f 78 | } \lab|el{plbox|
|00001890| 33 7d 0a 5c 61 64 64 63 | 6f 6e 74 65 6e 74 73 6c |3}.\addc|ontentsl|
|000018a0| 69 6e 65 7b 74 6f 63 7d | 7b 73 75 62 73 65 63 74 |ine{toc}|{subsect|
|000018b0| 69 6f 6e 7d 7b 70 6c 62 | 6f 78 33 7d 0a 0a 5c 64 |ion}{plb|ox3}..\d|
|000018c0| 65 73 63 72 7b 44 72 61 | 77 73 20 61 78 65 73 2c |escr{Dra|ws axes,|
|000018d0| 20 6e 75 6d 65 72 69 63 | 20 61 6e 64 20 74 65 78 | numeric| and tex|
|000018e0| 74 20 6c 61 62 65 6c 73 | 20 66 6f 72 20 61 20 74 |t labels| for a t|
|000018f0| 68 72 65 65 2d 64 69 6d | 65 6e 73 69 6f 6e 61 6c |hree-dim|ensional|
|00001900| 20 73 75 72 66 61 63 65 | 0a 20 20 20 20 20 20 20 | surface|. |
|00001910| 70 6c 6f 74 2e 20 53 65 | 65 20 53 65 63 74 69 6f |plot. Se|e Sectio|
|00001920| 6e 20 5c 72 65 66 7b 74 | 68 72 65 65 64 7d 20 6f |n \ref{t|hreed} o|
|00001930| 6e 20 70 61 67 65 20 5c | 70 61 67 65 72 65 66 7b |n page \|pageref{|
|00001940| 74 68 72 65 65 64 7d 20 | 66 6f 72 20 61 0a 20 20 |threed} |for a. |
|00001950| 20 20 20 20 20 6d 6f 72 | 65 20 63 6f 6d 70 6c 65 | mor|e comple|
|00001960| 74 65 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |te descr|iption o|
|00001970| 66 20 74 68 72 65 65 2d | 64 69 6d 65 6e 73 69 6f |f three-|dimensio|
|00001980| 6e 61 6c 20 70 6c 6f 74 | 74 69 6e 67 2e 7d 0a 0a |nal plot|ting.}..|
|00001990| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 78 6f 70 74 |\argu {{|\tt xopt|
|000019a0| 7d 20 28 63 68 61 72 20 | 2a 2c 20 69 6e 70 75 74 |} (char |*, input|
|000019b0| 29 7d 7b 50 6f 69 6e 74 | 65 72 20 74 6f 0a 63 68 |)}{Point|er to.ch|
|000019c0| 61 72 61 63 74 65 72 20 | 73 74 72 69 6e 67 20 73 |aracter |string s|
|000019d0| 70 65 63 69 66 79 69 6e | 67 20 6f 70 74 69 6f 6e |pecifyin|g option|
|000019e0| 73 20 66 6f 72 0a 74 68 | 65 20 78 7e 61 78 69 73 |s for.th|e x~axis|
|000019f0| 2e 20 54 68 65 20 73 74 | 72 69 6e 67 20 63 61 6e |. The st|ring can|
|00001a00| 20 69 6e 63 6c 75 64 65 | 20 61 6e 79 20 63 6f 6d | include| any com|
|00001a10| 62 69 6e 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |bination| of the |
|00001a20| 66 6f 6c 6c 6f 77 69 6e | 67 0a 6c 65 74 74 65 72 |followin|g.letter|
|00001a30| 73 20 28 75 70 70 65 72 | 20 6f 72 20 6c 6f 77 65 |s (upper| or lowe|
|00001a40| 72 20 63 61 73 65 29 20 | 69 6e 20 61 6e 79 20 6f |r case) |in any o|
|00001a50| 72 64 65 72 3a 0a 5c 62 | 65 67 69 6e 7b 69 74 65 |rder:.\b|egin{ite|
|00001a60| 6d 69 7a 65 7d 0a 5c 69 | 74 65 6d 7b 7b 5c 74 74 |mize}.\i|tem{{\tt|
|00001a70| 20 62 20 3a 7d 7d 20 44 | 72 61 77 73 20 61 78 69 | b :}} D|raws axi|
|00001a80| 73 20 61 74 20 62 61 73 | 65 2c 20 61 74 20 68 65 |s at bas|e, at he|
|00001a90| 69 67 68 74 20 7b 5c 74 | 74 20 7a 3d 7a 6d 69 6e |ight {\t|t z=zmin|
|00001aa0| 7d 20 77 68 65 72 65 20 | 7b 5c 74 74 20 7a 6d 69 |} where |{\tt zmi|
|00001ab0| 6e 7d 20 69 73 20 64 65 | 66 69 6e 65 64 0a 62 79 |n} is de|fined.by|
|00001ac0| 20 63 61 6c 6c 20 74 6f | 20 7b 5c 74 74 20 70 6c | call to| {\tt pl|
|00001ad0| 77 33 64 7d 2e 20 54 68 | 69 73 20 63 68 61 72 61 |w3d}. Th|is chara|
|00001ae0| 63 74 65 72 20 6d 75 73 | 74 20 62 65 20 73 70 65 |cter mus|t be spe|
|00001af0| 63 69 66 69 65 64 20 69 | 6e 20 6f 72 64 65 72 20 |cified i|n order |
|00001b00| 74 6f 20 75 73 65 20 61 | 6e 79 20 0a 6f 66 20 74 |to use a|ny .of t|
|00001b10| 68 65 20 6f 74 68 65 72 | 20 6f 70 74 69 6f 6e 73 |he other| options|
|00001b20| 2e 0a 5c 69 74 65 6d 7b | 7b 5c 74 74 20 69 20 3a |..\item{|{\tt i :|
|00001b30| 7d 7d 20 49 6e 76 65 72 | 74 73 20 74 69 63 6b 20 |}} Inver|ts tick |
|00001b40| 6d 61 72 6b 73 2c 20 73 | 6f 20 74 68 65 79 20 61 |marks, s|o they a|
|00001b50| 72 65 20 64 72 61 77 6e | 20 64 6f 77 6e 77 61 72 |re drawn| downwar|
|00001b60| 64 73 2c 20 72 61 74 68 | 65 72 20 74 68 61 6e 0a |ds, rath|er than.|
|00001b70| 75 70 77 61 72 64 73 2e | 0a 5c 69 74 65 6d 7b 7b |upwards.|.\item{{|
|00001b80| 5c 74 74 20 6c 20 3a 7d | 7d 20 4c 61 62 65 6c 73 |\tt l :}|} Labels|
|00001b90| 20 61 78 69 73 20 6c 6f | 67 61 72 69 74 68 6d 69 | axis lo|garithmi|
|00001ba0| 63 61 6c 6c 79 2e 20 54 | 68 69 73 20 6f 6e 6c 79 |cally. T|his only|
|00001bb0| 20 61 66 66 65 63 74 73 | 20 74 68 65 20 6c 61 62 | affects| the lab|
|00001bc0| 65 6c 73 2c 0a 6e 6f 74 | 20 74 68 65 20 64 61 74 |els,.not| the dat|
|00001bd0| 61 2c 20 61 6e 64 20 73 | 6f 20 69 74 20 69 73 20 |a, and s|o it is |
|00001be0| 6e 65 63 65 73 73 61 72 | 79 20 74 6f 20 63 6f 6d |necessar|y to com|
|00001bf0| 70 75 74 65 20 74 68 65 | 20 6c 6f 67 61 72 69 74 |pute the| logarit|
|00001c00| 68 6d 73 20 6f 66 20 64 | 61 74 61 20 0a 70 6f 69 |hms of d|ata .poi|
|00001c10| 6e 74 73 20 62 65 66 6f | 72 65 20 70 61 73 73 69 |nts befo|re passi|
|00001c20| 6e 67 20 74 68 65 6d 20 | 74 6f 20 61 6e 79 20 6f |ng them |to any o|
|00001c30| 66 20 74 68 65 20 64 72 | 61 77 69 6e 67 20 72 6f |f the dr|awing ro|
|00001c40| 75 74 69 6e 65 73 2e 0a | 5c 69 74 65 6d 7b 7b 5c |utines..|\item{{\|
|00001c50| 74 74 20 6e 20 3a 7d 7d | 20 57 72 69 74 65 73 20 |tt n :}}| Writes |
|00001c60| 6e 75 6d 65 72 69 63 20 | 6c 61 62 65 6c 73 20 61 |numeric |labels a|
|00001c70| 74 20 6d 61 6a 6f 72 20 | 74 69 63 6b 20 69 6e 74 |t major |tick int|
|00001c80| 65 72 76 61 6c 73 2e 0a | 5c 69 74 65 6d 7b 7b 5c |ervals..|\item{{\|
|00001c90| 74 74 20 73 20 3a 7d 7d | 20 45 6e 61 62 6c 65 73 |tt s :}}| Enables|
|00001ca0| 20 73 75 62 74 69 63 6b | 73 20 62 65 74 77 65 65 | subtick|s betwee|
|00001cb0| 6e 20 6d 61 6a 6f 72 20 | 74 69 63 6b 73 2c 20 6f |n major |ticks, o|
|00001cc0| 6e 6c 79 20 76 61 6c 69 | 64 20 69 66 20 7b 5c 74 |nly vali|d if {\t|
|00001cd0| 74 20 74 7d 20 69 73 0a | 61 6c 73 6f 20 73 70 65 |t t} is.|also spe|
|00001ce0| 63 69 66 69 65 64 2e 0a | 5c 69 74 65 6d 7b 7b 5c |cified..|\item{{\|
|00001cf0| 74 74 20 74 20 3a 7d 7d | 20 44 72 61 77 73 20 6d |tt t :}}| Draws m|
|00001d00| 61 6a 6f 72 20 74 69 63 | 6b 73 2e 0a 5c 69 74 65 |ajor tic|ks..\ite|
|00001d10| 6d 7b 7b 5c 74 74 20 75 | 20 3a 7d 7d 20 49 66 20 |m{{\tt u| :}} If |
|00001d20| 74 68 69 73 20 69 73 20 | 73 70 65 63 69 66 69 65 |this is |specifie|
|00001d30| 64 2c 20 74 68 65 20 74 | 65 78 74 20 6c 61 62 65 |d, the t|ext labe|
|00001d40| 6c 20 66 6f 72 20 74 68 | 65 20 61 78 69 73 20 69 |l for th|e axis i|
|00001d50| 73 20 77 72 69 74 74 65 | 6e 0a 75 6e 64 65 72 20 |s writte|n.under |
|00001d60| 74 68 65 20 61 78 69 73 | 2e 0a 5c 65 6e 64 7b 69 |the axis|..\end{i|
|00001d70| 74 65 6d 69 7a 65 7d 0a | 7d 0a 0a 5c 61 72 67 75 |temize}.|}..\argu|
|00001d80| 20 7b 7b 5c 74 74 20 78 | 6c 61 62 65 6c 7d 20 28 | {{\tt x|label} (|
|00001d90| 63 68 61 72 20 2a 2c 20 | 69 6e 70 75 74 29 7d 7b |char *, |input)}{|
|00001da0| 50 6f 69 6e 74 65 72 20 | 74 6f 0a 63 68 61 72 61 |Pointer |to.chara|
|00001db0| 63 74 65 72 20 73 74 72 | 69 6e 67 20 73 70 65 63 |cter str|ing spec|
|00001dc0| 69 66 79 69 6e 67 20 74 | 65 78 74 20 6c 61 62 65 |ifying t|ext labe|
|00001dd0| 6c 0a 66 6f 72 20 74 68 | 65 20 78 7e 61 78 69 73 |l.for th|e x~axis|
|00001de0| 2e 20 49 74 20 69 73 20 | 6f 6e 6c 79 20 64 72 61 |. It is |only dra|
|00001df0| 77 6e 20 69 66 20 7b 5c | 74 74 20 75 7d 20 69 73 |wn if {\|tt u} is|
|00001e00| 20 69 6e 20 74 68 65 20 | 7b 5c 74 74 20 78 6f 70 | in the |{\tt xop|
|00001e10| 74 7d 20 73 74 72 69 6e | 67 2e 7d 0a 0a 5c 61 72 |t} strin|g.}..\ar|
|00001e20| 67 75 20 7b 7b 5c 74 74 | 20 78 74 69 63 6b 7d 20 |gu {{\tt| xtick} |
|00001e30| 28 66 6c 6f 61 74 2c 20 | 69 6e 70 75 74 29 7d 7b |(float, |input)}{|
|00001e40| 57 6f 72 6c 64 20 63 6f | 6f 72 64 69 6e 61 74 65 |World co|ordinate|
|00001e50| 20 69 6e 74 65 72 76 61 | 6c 20 62 65 74 77 65 65 | interva|l betwee|
|00001e60| 6e 20 6d 61 6a 6f 72 20 | 74 69 63 6b 73 0a 6f 6e |n major |ticks.on|
|00001e70| 20 74 68 65 20 78 7e 61 | 78 69 73 2e 20 49 66 20 | the x~a|xis. If |
|00001e80| 69 74 20 69 73 20 73 65 | 74 20 74 6f 20 7a 65 72 |it is se|t to zer|
|00001e90| 6f 2c 20 50 4c 50 4c 4f | 54 20 61 75 74 6f 6d 61 |o, PLPLO|T automa|
|00001ea0| 74 69 63 61 6c 6c 79 20 | 67 65 6e 65 72 61 74 65 |tically |generate|
|00001eb0| 73 20 61 0a 73 75 69 74 | 61 62 6c 65 20 74 69 63 |s a.suit|able tic|
|00001ec0| 6b 20 69 6e 74 65 72 76 | 61 6c 7d 0a 0a 5c 61 72 |k interv|al}..\ar|
|00001ed0| 67 75 20 7b 7b 5c 74 74 | 20 6e 78 73 75 62 7d 20 |gu {{\tt| nxsub} |
|00001ee0| 28 69 6e 74 2c 20 69 6e | 70 75 74 29 7d 7b 4e 75 |(int, in|put)}{Nu|
|00001ef0| 6d 62 65 72 20 6f 66 20 | 73 75 62 69 6e 74 65 72 |mber of |subinter|
|00001f00| 76 61 6c 73 20 62 65 74 | 77 65 65 6e 20 6d 61 6a |vals bet|ween maj|
|00001f10| 6f 72 20 78 7e 61 78 69 | 73 0a 74 69 63 6b 73 20 |or x~axi|s.ticks |
|00001f20| 66 6f 72 20 6d 69 6e 6f | 72 20 74 69 63 6b 73 2e |for mino|r ticks.|
|00001f30| 20 49 66 20 69 74 20 69 | 73 20 73 65 74 20 74 6f | If it i|s set to|
|00001f40| 20 7a 65 72 6f 2c 20 50 | 4c 50 4c 4f 54 20 61 75 | zero, P|LPLOT au|
|00001f50| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 67 65 6e 65 |tomatica|lly gene|
|00001f60| 72 61 74 65 73 20 61 0a | 73 75 69 74 61 62 6c 65 |rates a.|suitable|
|00001f70| 20 6d 69 6e 6f 72 20 74 | 69 63 6b 20 69 6e 74 65 | minor t|ick inte|
|00001f80| 72 76 61 6c 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |rval.}..|\argu {{|
|00001f90| 5c 74 74 20 79 6f 70 74 | 7d 20 28 63 68 61 72 20 |\tt yopt|} (char |
|00001fa0| 2a 2c 20 69 6e 70 75 74 | 29 7d 7b 50 6f 69 6e 74 |*, input|)}{Point|
|00001fb0| 65 72 20 74 6f 20 0a 63 | 68 61 72 61 63 74 65 72 |er to .c|haracter|
|00001fc0| 20 73 74 72 69 6e 67 20 | 73 70 65 63 69 66 79 69 | string |specifyi|
|00001fd0| 6e 67 20 6f 70 74 69 6f | 6e 73 20 66 6f 72 0a 74 |ng optio|ns for.t|
|00001fe0| 68 65 20 79 7e 61 78 69 | 73 2e 20 54 68 65 20 73 |he y~axi|s. The s|
|00001ff0| 74 72 69 6e 67 20 69 73 | 20 69 6e 74 65 72 70 72 |tring is| interpr|
|00002000| 65 74 65 64 20 69 6e 20 | 74 68 65 20 73 61 6d 65 |eted in |the same|
|00002010| 20 77 61 79 20 61 73 20 | 7b 5c 74 74 20 78 6f 70 | way as |{\tt xop|
|00002020| 74 7d 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |t}.}..\a|rgu {{\t|
|00002030| 74 20 79 6c 61 62 65 6c | 7d 20 28 63 68 61 72 20 |t ylabel|} (char |
|00002040| 2a 2c 20 69 6e 70 75 74 | 29 7d 7b 50 6f 69 6e 74 |*, input|)}{Point|
|00002050| 65 72 20 74 6f 0a 63 68 | 61 72 61 63 74 65 72 20 |er to.ch|aracter |
|00002060| 73 74 72 69 6e 67 20 73 | 70 65 63 69 66 79 69 6e |string s|pecifyin|
|00002070| 67 20 74 65 78 74 20 6c | 61 62 65 6c 0a 66 6f 72 |g text l|abel.for|
|00002080| 20 74 68 65 20 79 7e 61 | 78 69 73 2e 20 49 74 20 | the y~a|xis. It |
|00002090| 69 73 20 6f 6e 6c 79 20 | 64 72 61 77 6e 20 69 66 |is only |drawn if|
|000020a0| 20 7b 5c 74 74 20 75 7d | 20 69 73 20 69 6e 20 74 | {\tt u}| is in t|
|000020b0| 68 65 20 7b 5c 74 74 20 | 79 6f 70 74 7d 20 73 74 |he {\tt |yopt} st|
|000020c0| 72 69 6e 67 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |ring.}..|\argu {{|
|000020d0| 5c 74 74 20 79 74 69 63 | 6b 7d 20 28 66 6c 6f 61 |\tt ytic|k} (floa|
|000020e0| 74 2c 20 69 6e 70 75 74 | 29 7d 7b 57 6f 72 6c 64 |t, input|)}{World|
|000020f0| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 69 6e 74 65 | coordin|ate inte|
|00002100| 72 76 61 6c 20 62 65 74 | 77 65 65 6e 20 6d 61 6a |rval bet|ween maj|
|00002110| 6f 72 20 74 69 63 6b 73 | 0a 6f 6e 20 74 68 65 20 |or ticks|.on the |
|00002120| 79 7e 61 78 69 73 2e 20 | 49 66 20 69 74 20 69 73 |y~axis. |If it is|
|00002130| 20 73 65 74 20 74 6f 20 | 7a 65 72 6f 2c 20 50 4c | set to |zero, PL|
|00002140| 50 4c 4f 54 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |PLOT aut|omatical|
|00002150| 6c 79 20 67 65 6e 65 72 | 61 74 65 73 20 61 0a 73 |ly gener|ates a.s|
|00002160| 75 69 74 61 62 6c 65 20 | 74 69 63 6b 20 69 6e 74 |uitable |tick int|
|00002170| 65 72 76 61 6c 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |erval}..|\argu {{|
|00002180| 5c 74 74 20 6e 79 73 75 | 62 7d 20 28 69 6e 74 2c |\tt nysu|b} (int,|
|00002190| 20 69 6e 70 75 74 29 7d | 7b 4e 75 6d 62 65 72 20 | input)}|{Number |
|000021a0| 6f 66 20 73 75 62 69 6e | 74 65 72 76 61 6c 73 20 |of subin|tervals |
|000021b0| 62 65 74 77 65 65 6e 20 | 6d 61 6a 6f 72 20 79 7e |between |major y~|
|000021c0| 61 78 69 73 0a 74 69 63 | 6b 73 20 66 6f 72 20 6d |axis.tic|ks for m|
|000021d0| 69 6e 6f 72 20 74 69 63 | 6b 73 2e 20 49 66 20 69 |inor tic|ks. If i|
|000021e0| 74 20 69 73 20 73 65 74 | 20 74 6f 20 7a 65 72 6f |t is set| to zero|
|000021f0| 2c 20 50 4c 50 4c 4f 54 | 20 61 75 74 6f 6d 61 74 |, PLPLOT| automat|
|00002200| 69 63 61 6c 6c 79 20 67 | 65 6e 65 72 61 74 65 73 |ically g|enerates|
|00002210| 20 61 0a 73 75 69 74 61 | 62 6c 65 20 6d 69 6e 6f | a.suita|ble mino|
|00002220| 72 20 74 69 63 6b 20 69 | 6e 74 65 72 76 61 6c 2e |r tick i|nterval.|
|00002230| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 7a |}..\argu| {{\tt z|
|00002240| 6f 70 74 7d 20 28 63 68 | 61 72 20 2a 2c 20 69 6e |opt} (ch|ar *, in|
|00002250| 70 75 74 29 7d 7b 50 6f | 69 6e 74 65 72 20 74 6f |put)}{Po|inter to|
|00002260| 0a 63 68 61 72 61 63 74 | 65 72 20 73 74 72 69 6e |.charact|er strin|
|00002270| 67 20 73 70 65 63 69 66 | 79 69 6e 67 20 6f 70 74 |g specif|ying opt|
|00002280| 69 6f 6e 73 20 66 6f 72 | 0a 74 68 65 20 7a 7e 61 |ions for|.the z~a|
|00002290| 78 69 73 2e 20 54 68 65 | 20 73 74 72 69 6e 67 20 |xis. The| string |
|000022a0| 63 61 6e 20 69 6e 63 6c | 75 64 65 20 61 6e 79 20 |can incl|ude any |
|000022b0| 63 6f 6d 62 69 6e 61 74 | 69 6f 6e 20 6f 66 20 74 |combinat|ion of t|
|000022c0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 0a 6c 65 74 |he follo|wing.let|
|000022d0| 74 65 72 73 20 28 75 70 | 70 65 72 20 6f 72 20 6c |ters (up|per or l|
|000022e0| 6f 77 65 72 20 63 61 73 | 65 29 20 69 6e 20 61 6e |ower cas|e) in an|
|000022f0| 79 20 6f 72 64 65 72 3a | 0a 5c 62 65 67 69 6e 7b |y order:|.\begin{|
|00002300| 69 74 65 6d 69 7a 65 7d | 0a 5c 69 74 65 6d 7b 7b |itemize}|.\item{{|
|00002310| 5c 74 74 20 62 20 3a 7d | 7d 20 44 72 61 77 73 20 |\tt b :}|} Draws |
|00002320| 7a 7e 61 78 69 73 20 74 | 6f 20 74 68 65 20 6c 65 |z~axis t|o the le|
|00002330| 66 74 20 6f 66 20 74 68 | 65 20 73 75 72 66 61 63 |ft of th|e surfac|
|00002340| 65 20 70 6c 6f 74 2e 0a | 5c 69 74 65 6d 7b 7b 5c |e plot..|\item{{\|
|00002350| 74 74 20 63 20 3a 7d 7d | 20 44 72 61 77 73 20 7a |tt c :}}| Draws z|
|00002360| 7e 61 78 69 73 20 74 6f | 20 74 68 65 20 72 69 67 |~axis to| the rig|
|00002370| 68 74 20 6f 66 20 74 68 | 65 20 73 75 72 66 61 63 |ht of th|e surfac|
|00002380| 65 20 70 6c 6f 74 2e 0a | 5c 69 74 65 6d 7b 7b 5c |e plot..|\item{{\|
|00002390| 74 74 20 69 20 3a 7d 7d | 20 49 6e 76 65 72 74 73 |tt i :}}| Inverts|
|000023a0| 20 74 69 63 6b 20 6d 61 | 72 6b 73 2c 20 73 6f 20 | tick ma|rks, so |
|000023b0| 74 68 65 79 20 61 72 65 | 20 64 72 61 77 6e 20 61 |they are| drawn a|
|000023c0| 77 61 79 20 66 72 6f 6d | 20 74 68 65 20 63 65 6e |way from| the cen|
|000023d0| 74 72 65 2e 0a 5c 69 74 | 65 6d 7b 7b 5c 74 74 20 |tre..\it|em{{\tt |
|000023e0| 6c 20 3a 7d 7d 20 4c 61 | 62 65 6c 73 20 61 78 69 |l :}} La|bels axi|
|000023f0| 73 20 6c 6f 67 61 72 69 | 74 68 6d 69 63 61 6c 6c |s logari|thmicall|
|00002400| 79 2e 20 54 68 69 73 20 | 6f 6e 6c 79 20 61 66 66 |y. This |only aff|
|00002410| 65 63 74 73 20 74 68 65 | 20 6c 61 62 65 6c 73 2c |ects the| labels,|
|00002420| 0a 6e 6f 74 20 74 68 65 | 20 64 61 74 61 2c 20 61 |.not the| data, a|
|00002430| 6e 64 20 73 6f 20 69 74 | 20 69 73 20 6e 65 63 65 |nd so it| is nece|
|00002440| 73 73 61 72 79 20 74 6f | 20 63 6f 6d 70 75 74 65 |ssary to| compute|
|00002450| 20 74 68 65 20 6c 6f 67 | 61 72 69 74 68 6d 73 20 | the log|arithms |
|00002460| 6f 66 20 64 61 74 61 20 | 0a 70 6f 69 6e 74 73 20 |of data |.points |
|00002470| 62 65 66 6f 72 65 20 70 | 61 73 73 69 6e 67 20 74 |before p|assing t|
|00002480| 68 65 6d 20 74 6f 20 61 | 6e 79 20 6f 66 20 74 68 |hem to a|ny of th|
|00002490| 65 20 64 72 61 77 69 6e | 67 20 72 6f 75 74 69 6e |e drawin|g routin|
|000024a0| 65 73 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 6d |es..\ite|m{{\tt m|
|000024b0| 20 3a 7d 7d 20 57 72 69 | 74 65 73 20 6e 75 6d 65 | :}} Wri|tes nume|
|000024c0| 72 69 63 20 6c 61 62 65 | 6c 73 20 61 74 20 6d 61 |ric labe|ls at ma|
|000024d0| 6a 6f 72 20 74 69 63 6b | 20 69 6e 74 65 72 76 61 |jor tick| interva|
|000024e0| 6c 73 20 6f 6e 20 74 68 | 65 20 72 69 67 68 74 2d |ls on th|e right-|
|000024f0| 68 61 6e 64 20 0a 76 65 | 72 69 63 61 6c 20 61 78 |hand .ve|rical ax|
|00002500| 69 73 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 6e |is..\ite|m{{\tt n|
|00002510| 20 3a 7d 7d 20 57 72 69 | 74 65 73 20 6e 75 6d 65 | :}} Wri|tes nume|
|00002520| 72 69 63 20 6c 61 62 65 | 6c 73 20 61 74 20 6d 61 |ric labe|ls at ma|
|00002530| 6a 6f 72 20 74 69 63 6b | 20 69 6e 74 65 72 76 61 |jor tick| interva|
|00002540| 6c 73 20 6f 6e 20 74 68 | 65 20 6c 65 66 74 2d 68 |ls on th|e left-h|
|00002550| 61 6e 64 20 0a 76 65 72 | 69 63 61 6c 20 61 78 69 |and .ver|ical axi|
|00002560| 73 2e 0a 5c 69 74 65 6d | 7b 7b 5c 74 74 20 73 20 |s..\item|{{\tt s |
|00002570| 3a 7d 7d 20 45 6e 61 62 | 6c 65 73 20 73 75 62 74 |:}} Enab|les subt|
|00002580| 69 63 6b 73 20 62 65 74 | 77 65 65 6e 20 6d 61 6a |icks bet|ween maj|
|00002590| 6f 72 20 74 69 63 6b 73 | 2c 20 6f 6e 6c 79 20 76 |or ticks|, only v|
|000025a0| 61 6c 69 64 20 69 66 20 | 7b 5c 74 74 20 74 7d 20 |alid if |{\tt t} |
|000025b0| 69 73 0a 61 6c 73 6f 20 | 73 70 65 63 69 66 69 65 |is.also |specifie|
|000025c0| 64 2e 0a 5c 69 74 65 6d | 7b 7b 5c 74 74 20 74 20 |d..\item|{{\tt t |
|000025d0| 3a 7d 7d 20 44 72 61 77 | 73 20 6d 61 6a 6f 72 20 |:}} Draw|s major |
|000025e0| 74 69 63 6b 73 2e 0a 5c | 69 74 65 6d 7b 7b 5c 74 |ticks..\|item{{\t|
|000025f0| 74 20 75 20 3a 7d 7d 20 | 49 66 20 74 68 69 73 20 |t u :}} |If this |
|00002600| 69 73 20 73 70 65 63 69 | 66 69 65 64 2c 20 74 68 |is speci|fied, th|
|00002610| 65 20 74 65 78 74 20 6c | 61 62 65 6c 20 69 73 20 |e text l|abel is |
|00002620| 77 72 69 74 74 65 6e 20 | 62 65 73 69 64 65 20 74 |written |beside t|
|00002630| 68 65 20 0a 6c 65 66 74 | 2d 68 61 6e 64 20 61 78 |he .left|-hand ax|
|00002640| 69 73 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 76 |is..\ite|m{{\tt v|
|00002650| 20 3a 7d 7d 20 49 66 20 | 74 68 69 73 20 69 73 20 | :}} If |this is |
|00002660| 73 70 65 63 69 66 69 65 | 64 2c 20 74 68 65 20 74 |specifie|d, the t|
|00002670| 65 78 74 20 6c 61 62 65 | 6c 20 69 73 20 77 72 69 |ext labe|l is wri|
|00002680| 74 74 65 6e 20 62 65 73 | 69 64 65 20 74 68 65 0a |tten bes|ide the.|
|00002690| 72 69 67 68 74 2d 68 61 | 6e 64 20 61 78 69 73 2e |right-ha|nd axis.|
|000026a0| 0a 5c 65 6e 64 7b 69 74 | 65 6d 69 7a 65 7d 0a 7d |.\end{it|emize}.}|
|000026b0| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 7a 6c |..\argu |{{\tt zl|
|000026c0| 61 62 65 6c 7d 20 28 63 | 68 61 72 20 2a 2c 20 69 |abel} (c|har *, i|
|000026d0| 6e 70 75 74 29 7d 7b 50 | 6f 69 6e 74 65 72 20 74 |nput)}{P|ointer t|
|000026e0| 6f 0a 63 68 61 72 61 63 | 74 65 72 20 73 74 72 69 |o.charac|ter stri|
|000026f0| 6e 67 20 73 70 65 63 69 | 66 79 69 6e 67 20 74 65 |ng speci|fying te|
|00002700| 78 74 20 6c 61 62 65 6c | 0a 66 6f 72 20 74 68 65 |xt label|.for the|
|00002710| 20 7a 7e 61 78 69 73 2e | 20 49 74 20 69 73 20 6f | z~axis.| It is o|
|00002720| 6e 6c 79 20 64 72 61 77 | 6e 20 69 66 20 7b 5c 74 |nly draw|n if {\t|
|00002730| 74 20 75 7d 20 6f 72 20 | 7b 5c 74 74 20 76 7d 20 |t u} or |{\tt v} |
|00002740| 61 72 65 20 69 6e 20 74 | 68 65 20 7b 5c 74 74 20 |are in t|he {\tt |
|00002750| 7a 6f 70 74 7d 20 73 74 | 72 69 6e 67 2e 7d 0a 0a |zopt} st|ring.}..|
|00002760| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 7a 74 69 63 |\argu {{|\tt ztic|
|00002770| 6b 7d 20 28 66 6c 6f 61 | 74 2c 20 69 6e 70 75 74 |k} (floa|t, input|
|00002780| 29 7d 7b 57 6f 72 6c 64 | 20 63 6f 6f 72 64 69 6e |)}{World| coordin|
|00002790| 61 74 65 20 69 6e 74 65 | 72 76 61 6c 20 62 65 74 |ate inte|rval bet|
|000027a0| 77 65 65 6e 20 6d 61 6a | 6f 72 20 74 69 63 6b 73 |ween maj|or ticks|
|000027b0| 0a 6f 6e 20 74 68 65 20 | 7a 7e 61 78 69 73 2e 20 |.on the |z~axis. |
|000027c0| 49 66 20 69 74 20 69 73 | 20 73 65 74 20 74 6f 20 |If it is| set to |
|000027d0| 7a 65 72 6f 2c 20 50 4c | 50 4c 4f 54 20 61 75 74 |zero, PL|PLOT aut|
|000027e0| 6f 6d 61 74 69 63 61 6c | 6c 79 20 67 65 6e 65 72 |omatical|ly gener|
|000027f0| 61 74 65 73 20 61 0a 73 | 75 69 74 61 62 6c 65 20 |ates a.s|uitable |
|00002800| 74 69 63 6b 20 69 6e 74 | 65 72 76 61 6c 7d 0a 0a |tick int|erval}..|
|00002810| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 7a 73 75 |\argu {{|\tt nzsu|
|00002820| 62 7d 20 28 69 6e 74 2c | 20 69 6e 70 75 74 29 7d |b} (int,| input)}|
|00002830| 7b 4e 75 6d 62 65 72 20 | 6f 66 20 73 75 62 69 6e |{Number |of subin|
|00002840| 74 65 72 76 61 6c 73 20 | 62 65 74 77 65 65 6e 20 |tervals |between |
|00002850| 6d 61 6a 6f 72 20 7a 7e | 61 78 69 73 0a 74 69 63 |major z~|axis.tic|
|00002860| 6b 73 20 66 6f 72 20 6d | 69 6e 6f 72 20 74 69 63 |ks for m|inor tic|
|00002870| 6b 73 2e 20 49 66 20 69 | 74 20 69 73 20 73 65 74 |ks. If i|t is set|
|00002880| 20 74 6f 20 7a 65 72 6f | 2c 20 50 4c 50 4c 4f 54 | to zero|, PLPLOT|
|00002890| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 67 | automat|ically g|
|000028a0| 65 6e 65 72 61 74 65 73 | 20 61 0a 73 75 69 74 61 |enerates| a.suita|
|000028b0| 62 6c 65 20 6d 69 6e 6f | 72 20 74 69 63 6b 20 69 |ble mino|r tick i|
|000028c0| 6e 74 65 72 76 61 6c 2e | 7d 0a 0a 0a 0a 5c 62 6e |nterval.|}....\bn|
|000028d0| 61 6d 65 7b 70 6c 63 6c | 72 7d 5c 6c 61 62 65 6c |ame{plcl|r}\label|
|000028e0| 7b 70 6c 63 6c 72 28 29 | 3b 7d 0a 5c 61 64 64 63 |{plclr()|;}.\addc|
|000028f0| 6f 6e 74 65 6e 74 73 6c | 69 6e 65 7b 74 6f 63 7d |ontentsl|ine{toc}|
|00002900| 7b 73 75 62 73 65 63 74 | 69 6f 6e 7d 7b 70 6c 63 |{subsect|ion}{plc|
|00002910| 6c 72 7d 0a 0a 5c 64 65 | 73 63 72 7b 43 6c 65 61 |lr}..\de|scr{Clea|
|00002920| 72 73 20 74 68 65 20 67 | 72 61 70 68 69 63 73 20 |rs the g|raphics |
|00002930| 73 63 72 65 65 6e 20 6f | 66 20 61 6e 20 69 6e 74 |screen o|f an int|
|00002940| 65 72 61 63 74 69 76 65 | 20 64 65 76 69 63 65 2c |eractive| device,|
|00002950| 20 6f 72 20 65 6a 65 63 | 74 73 0a 20 20 20 20 20 | or ejec|ts. |
|00002960| 20 20 61 20 70 61 67 65 | 20 6f 6e 20 61 20 70 6c | a page| on a pl|
|00002970| 6f 74 74 65 72 2e 7d 0a | 0a 5c 62 6e 61 6d 65 7b |otter.}.|.\bname{|
|00002980| 70 6c 63 6f 6c 28 63 6f | 6c 6f 75 72 29 3b 7d 5c |plcol(co|lour);}\|
|00002990| 6c 61 62 65 6c 7b 70 6c | 63 6f 6c 7d 0a 5c 61 64 |label{pl|col}.\ad|
|000029a0| 64 63 6f 6e 74 65 6e 74 | 73 6c 69 6e 65 7b 74 6f |dcontent|sline{to|
|000029b0| 63 7d 7b 73 75 62 73 65 | 63 74 69 6f 6e 7d 7b 70 |c}{subse|ction}{p|
|000029c0| 6c 63 6f 6c 7d 0a 0a 5c | 64 65 73 63 72 7b 53 65 |lcol}..\|descr{Se|
|000029d0| 74 73 20 74 68 65 20 63 | 6f 6c 6f 75 72 20 66 6f |ts the c|olour fo|
|000029e0| 72 20 73 75 62 73 65 71 | 75 65 6e 74 20 6c 69 6e |r subseq|uent lin|
|000029f0| 65 73 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |es.}..\a|rgu {{\t|
|00002a00| 74 20 63 6f 6c 6f 75 72 | 7d 20 28 69 6e 74 2c 20 |t colour|} (int, |
|00002a10| 69 6e 70 75 74 29 7d 7b | 49 6e 74 65 67 65 72 20 |input)}{|Integer |
|00002a20| 72 65 70 72 65 73 65 6e | 74 69 6e 67 20 74 68 65 |represen|ting the|
|00002a30| 20 63 6f 6c 6f 75 72 2e | 7d 0a 0a 5c 62 6e 61 6d | colour.|}..\bnam|
|00002a40| 65 7b 70 6c 63 6f 6e 74 | 28 7a 2c 6e 78 2c 6e 79 |e{plcont|(z,nx,ny|
|00002a50| 2c 6b 78 2c 6c 78 2c 6b | 79 2c 6c 79 2c 63 6c 65 |,kx,lx,k|y,ly,cle|
|00002a60| 76 65 6c 2c 6e 6c 65 76 | 65 6c 2c 74 72 29 3b 7d |vel,nlev|el,tr);}|
|00002a70| 5c 6c 61 62 65 6c 7b 70 | 6c 63 6f 6e 74 7d 0a 5c |\label{p|lcont}.\|
|00002a80| 61 64 64 63 6f 6e 74 65 | 6e 74 73 6c 69 6e 65 7b |addconte|ntsline{|
|00002a90| 74 6f 63 7d 7b 73 75 62 | 73 65 63 74 69 6f 6e 7d |toc}{sub|section}|
|00002aa0| 7b 70 6c 63 6f 6e 74 7d | 0a 0a 5c 64 65 73 63 72 |{plcont}|..\descr|
|00002ab0| 7b 44 72 61 77 73 20 61 | 20 63 6f 6e 74 6f 75 72 |{Draws a| contour|
|00002ac0| 20 70 6c 6f 74 20 6f 66 | 20 74 68 65 20 64 61 74 | plot of| the dat|
|00002ad0| 61 20 69 6e 20 7b 5c 74 | 74 20 7a 5b 6e 78 5d 5b |a in {\t|t z[nx][|
|00002ae0| 6e 79 5d 7d 2c 20 75 73 | 69 6e 67 20 74 68 65 20 |ny]}, us|ing the |
|00002af0| 0a 20 20 20 20 20 20 20 | 20 7b 5c 74 74 20 6e 6c |. | {\tt nl|
|00002b00| 65 76 65 6c 7d 20 63 6f | 6e 74 6f 75 72 20 6c 65 |evel} co|ntour le|
|00002b10| 76 65 6c 73 20 73 70 65 | 63 69 66 69 65 64 20 62 |vels spe|cified b|
|00002b20| 79 20 7b 5c 74 74 20 63 | 6c 65 76 65 6c 7d 2e 20 |y {\tt c|level}. |
|00002b30| 4f 6e 6c 79 0a 20 20 20 | 20 20 20 20 20 74 68 65 |Only. | the|
|00002b40| 20 72 65 67 69 6f 6e 20 | 6f 66 20 74 68 65 20 61 | region |of the a|
|00002b50| 72 72 61 79 20 66 72 6f | 6d 20 7b 5c 74 74 20 6b |rray fro|m {\tt k|
|00002b60| 78 7d 20 74 6f 20 7b 5c | 74 74 20 6c 78 7d 20 61 |x} to {\|tt lx} a|
|00002b70| 6e 64 20 66 72 6f 6d 20 | 7b 5c 74 74 20 6b 79 7d |nd from |{\tt ky}|
|00002b80| 0a 20 20 20 20 20 20 20 | 20 74 6f 20 7b 5c 74 74 |. | to {\tt|
|00002b90| 20 6c 79 7d 20 69 73 20 | 70 6c 6f 74 74 65 64 20 | ly} is |plotted |
|00002ba0| 6f 75 74 2e 20 41 20 74 | 72 61 6e 73 66 6f 72 6d |out. A t|ransform|
|00002bb0| 61 74 69 6f 6e 20 72 6f | 75 74 69 6e 65 20 7b 5c |ation ro|utine {\|
|00002bc0| 74 74 20 74 72 7d 20 69 | 73 0a 20 20 20 20 20 20 |tt tr} i|s. |
|00002bd0| 20 20 75 73 65 64 20 74 | 6f 20 6d 61 70 20 69 6e | used t|o map in|
|00002be0| 64 69 63 69 65 73 20 77 | 69 74 68 69 6e 20 74 68 |dicies w|ithin th|
|00002bf0| 65 20 61 72 72 61 79 20 | 74 6f 20 74 68 65 20 77 |e array |to the w|
|00002c00| 6f 72 6c 64 20 63 6f 6f | 72 64 69 6e 61 74 65 73 |orld coo|rdinates|
|00002c10| 0a 20 20 20 20 20 20 20 | 20 28 73 65 65 20 53 65 |. | (see Se|
|00002c20| 63 74 69 6f 6e 20 5c 72 | 65 66 7b 63 6f 6e 74 6f |ction \r|ef{conto|
|00002c30| 75 72 7d 20 6f 6e 20 70 | 61 67 65 20 5c 72 65 66 |ur} on p|age \ref|
|00002c40| 7b 63 6f 6e 74 6f 75 72 | 7d 29 2e 0a 20 20 20 20 |{contour|}).. |
|00002c50| 20 20 20 20 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c | }..\|argu {{\|
|00002c60| 74 74 20 7a 7d 20 28 66 | 6c 6f 61 74 20 2a 2c 20 |tt z} (f|loat *, |
|00002c70| 69 6e 70 75 74 29 7d 20 | 0a 20 20 20 20 20 20 20 |input)} |. |
|00002c80| 7b 50 6f 69 6e 74 65 72 | 20 74 6f 20 61 20 74 77 |{Pointer| to a tw|
|00002c90| 6f 2d 64 69 6d 65 6e 73 | 69 6f 6e 61 6c 20 61 72 |o-dimens|ional ar|
|00002ca0| 72 61 79 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 64 |ray cont|aining d|
|00002cb0| 61 74 61 20 0a 20 20 20 | 20 20 20 20 20 74 6f 20 |ata . | to |
|00002cc0| 62 65 20 63 6f 6e 74 6f | 75 72 65 64 2e 7d 0a 0a |be conto|ured.}..|
|00002cd0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 78 2c 20 |\argu {{|\tt nx, |
|00002ce0| 6e 79 7d 20 28 69 6e 74 | 2c 20 69 6e 70 75 74 29 |ny} (int|, input)|
|00002cf0| 7d 20 7b 50 68 79 73 69 | 63 61 6c 20 64 69 6d 65 |} {Physi|cal dime|
|00002d00| 6e 73 69 6f 6e 73 20 6f | 66 20 61 72 72 61 79 20 |nsions o|f array |
|00002d10| 7b 5c 74 74 20 7a 7d 2e | 7d 0a 0a 5c 61 72 67 75 |{\tt z}.|}..\argu|
|00002d20| 20 7b 7b 5c 74 74 20 6b | 78 2c 20 6c 78 7d 20 28 | {{\tt k|x, lx} (|
|00002d30| 69 6e 74 2c 20 69 6e 70 | 75 74 29 7d 20 7b 52 61 |int, inp|ut)} {Ra|
|00002d40| 6e 67 65 20 6f 66 20 7b | 5c 74 74 20 78 7d 20 69 |nge of {|\tt x} i|
|00002d50| 6e 64 69 63 69 65 73 20 | 74 6f 20 63 6f 6e 73 69 |ndicies |to consi|
|00002d60| 64 65 72 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |der.}..\|argu {{\|
|00002d70| 74 74 20 6b 79 2c 20 6c | 79 7d 20 28 69 6e 74 2c |tt ky, l|y} (int,|
|00002d80| 20 69 6e 70 75 74 29 7d | 20 7b 52 61 6e 67 65 20 | input)}| {Range |
|00002d90| 6f 66 20 7b 5c 74 74 20 | 79 7d 20 69 6e 64 69 63 |of {\tt |y} indic|
|00002da0| 69 65 73 20 74 6f 20 63 | 6f 6e 73 69 64 65 72 2e |ies to c|onsider.|
|00002db0| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 63 |}..\argu| {{\tt c|
|00002dc0| 6c 65 76 65 6c 7d 20 28 | 66 6c 6f 61 74 20 2a 2c |level} (|float *,|
|00002dd0| 20 69 6e 70 75 74 29 7d | 20 7b 50 6f 69 6e 74 65 | input)}| {Pointe|
|00002de0| 72 20 74 6f 20 61 72 72 | 61 79 20 73 70 65 63 69 |r to arr|ay speci|
|00002df0| 66 79 69 6e 67 0a 20 20 | 20 20 20 20 20 20 20 20 |fying. | |
|00002e00| 20 20 6c 65 76 65 6c 73 | 20 61 74 20 77 68 69 63 | levels| at whic|
|00002e10| 68 20 74 6f 20 64 72 61 | 77 20 63 6f 6e 74 6f 75 |h to dra|w contou|
|00002e20| 72 73 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |rs}..\ar|gu {{\tt|
|00002e30| 20 6e 6c 65 76 65 6c 7d | 20 28 69 6e 74 2c 20 69 | nlevel}| (int, i|
|00002e40| 6e 70 75 74 29 7d 20 7b | 4e 75 6d 62 65 72 20 6f |nput)} {|Number o|
|00002e50| 66 20 63 6f 6e 74 6f 75 | 72 20 6c 65 76 65 6c 73 |f contou|r levels|
|00002e60| 20 74 6f 20 64 72 61 77 | 7d 0a 0a 5c 61 72 67 75 | to draw|}..\argu|
|00002e70| 20 7b 7b 5c 74 74 20 74 | 72 7d 20 28 76 6f 69 64 | {{\tt t|r} (void|
|00002e80| 20 2a 2c 69 6e 70 75 74 | 29 7d 20 7b 50 6f 69 6e | *,input|)} {Poin|
|00002e90| 74 65 72 20 74 6f 20 66 | 75 6e 63 74 69 6f 6e 20 |ter to f|unction |
|00002ea0| 74 68 61 74 0a 64 65 66 | 69 6e 65 73 20 74 72 61 |that.def|ines tra|
|00002eb0| 6e 73 66 6f 72 6d 61 74 | 69 6f 6e 20 62 65 74 77 |nsformat|ion betw|
|00002ec0| 65 65 6e 20 69 6e 64 69 | 63 69 65 73 0a 69 6e 20 |een indi|cies.in |
|00002ed0| 61 72 72 61 79 20 7b 5c | 74 74 20 7a 7d 20 61 6e |array {\|tt z} an|
|00002ee0| 64 20 74 68 65 20 77 6f | 72 6c 64 20 63 6f 6f 72 |d the wo|rld coor|
|00002ef0| 64 69 6e 61 74 65 73 2e | 20 54 68 65 20 66 75 6e |dinates.| The fun|
|00002f00| 63 74 69 6f 6e 20 73 68 | 6f 75 6c 64 20 68 61 76 |ction sh|ould hav|
|00002f10| 65 20 74 68 65 0a 66 6f | 72 6d 0a 5c 6e 61 6d 65 |e the.fo|rm.\name|
|00002f20| 7b 74 72 28 78 2c 79 2c | 74 78 2c 74 79 29 3b 7d |{tr(x,y,|tx,ty);}|
|00002f30| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 78 2c 20 |.\argu {|{\tt x, |
|00002f40| 79 7d 20 28 66 6c 6f 61 | 74 2c 20 69 6e 70 75 74 |y} (floa|t, input|
|00002f50| 29 7d 7b 20 53 70 65 63 | 69 66 69 65 73 20 74 68 |)}{ Spec|ifies th|
|00002f60| 65 20 70 6f 73 69 74 69 | 6f 6e 20 69 6e 20 74 68 |e positi|on in th|
|00002f70| 65 20 61 72 72 61 79 20 | 74 68 72 6f 75 67 68 0a |e array |through.|
|00002f80| 77 68 69 63 68 20 74 68 | 65 20 63 6f 6e 74 6f 75 |which th|e contou|
|00002f90| 72 20 72 75 6e 73 20 69 | 6e 20 74 65 72 6d 73 20 |r runs i|n terms |
|00002fa0| 6f 66 20 74 68 65 20 61 | 72 72 61 79 20 69 6e 64 |of the a|rray ind|
|00002fb0| 69 63 69 65 73 20 7d 0a | 5c 61 72 67 75 20 7b 7b |icies }.|\argu {{|
|00002fc0| 5c 74 74 20 74 78 2c 20 | 74 79 7d 20 28 66 6c 6f |\tt tx, |ty} (flo|
|00002fd0| 61 74 20 2a 2c 20 6f 75 | 74 70 75 74 29 7d 7b 50 |at *, ou|tput)}{P|
|00002fe0| 6f 69 6e 74 65 72 73 20 | 74 6f 20 74 68 65 0a 77 |ointers |to the.w|
|00002ff0| 6f 72 6c 64 20 63 6f 6f | 72 64 69 6e 61 74 65 73 |orld coo|rdinates|
|00003000| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 | corresp|onding t|
|00003010| 6f 20 74 68 65 0a 70 6f | 69 6e 74 20 7b 5c 74 74 |o the.po|int {\tt|
|00003020| 20 28 78 2c 79 29 7d 20 | 7d 0a 7d 0a 41 20 74 72 | (x,y)} |}.}.A tr|
|00003030| 61 6e 73 66 6f 72 6d 61 | 74 69 6f 6e 20 66 75 6e |ansforma|tion fun|
|00003040| 63 74 69 6f 6e 20 7b 5c | 74 74 20 78 66 6f 72 6d |ction {\|tt xform|
|00003050| 7d 20 69 73 20 70 72 6f | 76 69 64 65 64 20 66 6f |} is pro|vided fo|
|00003060| 72 20 73 69 6d 70 6c 65 | 20 6c 69 6e 65 61 72 20 |r simple| linear |
|00003070| 6d 61 70 70 69 6e 67 73 | 2e 0a 53 65 65 20 53 65 |mappings|..See Se|
|00003080| 63 74 69 6f 6e 20 5c 72 | 65 66 7b 63 6f 6e 74 6f |ction \r|ef{conto|
|00003090| 75 72 7d 20 66 6f 72 20 | 69 6e 66 6f 72 6d 61 74 |ur} for |informat|
|000030a0| 69 6f 6e 2e 0a 0a 5c 62 | 6e 61 6d 65 7b 70 6c 65 |ion...\b|name{ple|
|000030b0| 6e 64 28 29 3b 7d 5c 6c | 61 62 65 6c 7b 70 6c 65 |nd();}\l|abel{ple|
|000030c0| 6e 64 7d 0a 5c 61 64 64 | 63 6f 6e 74 65 6e 74 73 |nd}.\add|contents|
|000030d0| 6c 69 6e 65 7b 74 6f 63 | 7d 7b 73 75 62 73 65 63 |line{toc|}{subsec|
|000030e0| 74 69 6f 6e 7d 7b 70 6c | 65 6e 64 7d 0a 0a 5c 64 |tion}{pl|end}..\d|
|000030f0| 65 73 63 72 7b 45 6e 64 | 73 20 61 20 70 6c 6f 74 |escr{End|s a plot|
|00003100| 74 69 6e 67 20 73 65 73 | 73 69 6f 6e 2c 20 74 69 |ting ses|sion, ti|
|00003110| 64 69 65 73 20 75 70 20 | 61 6c 6c 20 74 68 65 20 |dies up |all the |
|00003120| 6f 75 74 70 75 74 20 66 | 69 6c 65 73 2c 20 0a 20 |output f|iles, . |
|00003130| 20 20 20 20 20 20 73 77 | 69 74 63 68 65 73 20 69 | sw|itches i|
|00003140| 6e 74 65 72 61 63 74 69 | 76 65 20 64 65 76 69 63 |nteracti|ve devic|
|00003150| 65 73 20 62 61 63 6b 20 | 69 6e 74 6f 20 74 65 78 |es back |into tex|
|00003160| 74 20 6d 6f 64 65 20 61 | 6e 64 20 66 72 65 65 73 |t mode a|nd frees|
|00003170| 20 75 70 0a 20 20 20 20 | 20 20 20 61 6e 79 20 6d | up. | any m|
|00003180| 65 6d 6f 72 79 20 74 68 | 61 74 20 77 61 73 20 61 |emory th|at was a|
|00003190| 6c 6c 6f 63 61 74 65 64 | 2e 20 4d 75 73 74 20 62 |llocated|. Must b|
|000031a0| 65 20 63 61 6c 6c 65 64 | 0a 20 20 20 20 20 20 20 |e called|. |
|000031b0| 62 65 66 6f 72 65 20 65 | 6e 64 20 6f 66 20 70 72 |before e|nd of pr|
|000031c0| 6f 67 72 61 6d 2e 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |ogram.}.|...\bnam|
|000031d0| 65 7b 70 6c 65 6e 76 28 | 78 6d 69 6e 2c 78 6d 61 |e{plenv(|xmin,xma|
|000031e0| 78 2c 79 6d 69 6e 2c 79 | 6d 61 78 2c 6a 75 73 74 |x,ymin,y|max,just|
|000031f0| 2c 61 78 69 73 29 3b 7d | 5c 6c 61 62 65 6c 7b 70 |,axis);}|\label{p|
|00003200| 6c 65 6e 76 7d 0a 5c 61 | 64 64 63 6f 6e 74 65 6e |lenv}.\a|ddconten|
|00003210| 74 73 6c 69 6e 65 7b 74 | 6f 63 7d 7b 73 75 62 73 |tsline{t|oc}{subs|
|00003220| 65 63 74 69 6f 6e 7d 7b | 70 6c 65 6e 76 7d 0a 0a |ection}{|plenv}..|
|00003230| 5c 64 65 73 63 72 7b 53 | 65 74 73 20 75 70 20 70 |\descr{S|ets up p|
|00003240| 6c 6f 74 74 65 72 20 65 | 6e 76 69 72 6f 6e 6d 65 |lotter e|nvironme|
|00003250| 6e 74 20 66 6f 72 20 73 | 69 6d 70 6c 65 20 67 72 |nt for s|imple gr|
|00003260| 61 70 68 73 20 62 79 20 | 63 61 6c 6c 69 6e 67 20 |aphs by |calling |
|00003270| 7b 5c 74 74 20 70 6c 61 | 64 76 7d 0a 61 6e 64 20 |{\tt pla|dv}.and |
|00003280| 73 65 74 74 69 6e 67 20 | 75 70 20 76 69 65 77 70 |setting |up viewp|
|00003290| 6f 72 74 20 61 6e 64 20 | 77 69 6e 64 6f 77 20 74 |ort and |window t|
|000032a0| 6f 20 73 65 6e 73 69 62 | 6c 65 20 64 65 66 61 75 |o sensib|le defau|
|000032b0| 6c 74 20 76 61 6c 75 65 | 73 2e 20 7b 5c 74 74 20 |lt value|s. {\tt |
|000032c0| 70 6c 65 6e 76 7d 20 6c | 65 61 76 65 73 0a 65 6e |plenv} l|eaves.en|
|000032d0| 6f 75 67 68 20 72 6f 6f | 6d 20 61 72 6f 75 6e 64 |ough roo|m around|
|000032e0| 20 6d 6f 73 74 20 67 72 | 61 70 68 73 20 66 6f 72 | most gr|aphs for|
|000032f0| 20 61 78 69 73 20 6c 61 | 62 65 6c 73 20 61 6e 64 | axis la|bels and|
|00003300| 20 61 20 74 69 74 6c 65 | 2e 20 57 68 65 6e 20 74 | a title|. When t|
|00003310| 68 65 73 65 0a 64 65 66 | 61 75 6c 74 73 20 61 72 |hese.def|aults ar|
|00003320| 65 20 6e 6f 74 20 73 75 | 69 74 61 62 6c 65 2c 20 |e not su|itable, |
|00003330| 75 73 65 20 74 68 65 20 | 69 6e 64 69 76 69 64 75 |use the |individu|
|00003340| 61 6c 20 72 6f 75 74 69 | 6e 65 73 20 7b 5c 74 74 |al routi|nes {\tt|
|00003350| 20 70 6c 76 73 70 61 7d | 20 6f 72 20 7b 5c 74 74 | plvspa}| or {\tt|
|00003360| 20 50 4c 56 50 4f 52 7d | 0a 66 6f 72 20 73 65 74 | PLVPOR}|.for set|
|00003370| 74 69 6e 67 20 75 70 20 | 74 68 65 20 76 69 65 77 |ting up |the view|
|00003380| 70 6f 72 74 2c 20 7b 5c | 74 74 20 70 6c 77 69 6e |port, {\|tt plwin|
|00003390| 64 7d 20 66 6f 72 20 64 | 65 66 69 6e 69 6e 67 20 |d} for d|efining |
|000033a0| 74 68 65 20 77 69 6e 64 | 6f 77 2c 20 61 6e 64 20 |the wind|ow, and |
|000033b0| 7b 5c 74 74 20 50 4c 42 | 4f 58 7d 0a 66 6f 72 20 |{\tt PLB|OX}.for |
|000033c0| 64 72 61 77 69 6e 67 20 | 74 68 65 20 62 6f 78 2e |drawing |the box.|
|000033d0| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 |}..\argu| {{\tt x|
|000033e0| 6d 69 6e 7d 20 28 66 6c | 6f 61 74 2c 20 69 6e 70 |min} (fl|oat, inp|
|000033f0| 75 74 29 7d 7b 56 61 6c | 75 65 20 6f 66 7e 78 20 |ut)}{Val|ue of~x |
|00003400| 61 74 20 6c 65 66 74 2d | 68 61 6e 64 20 65 64 67 |at left-|hand edg|
|00003410| 65 20 6f 66 20 77 69 6e | 64 6f 77 2e 7d 0a 0a 5c |e of win|dow.}..\|
|00003420| 61 72 67 75 20 7b 7b 5c | 74 74 20 78 6d 61 78 7d |argu {{\|tt xmax}|
|00003430| 20 28 66 6c 6f 61 74 2c | 20 69 6e 70 75 74 29 7d | (float,| input)}|
|00003440| 7b 56 61 6c 75 65 20 6f | 66 7e 78 20 61 74 20 72 |{Value o|f~x at r|
|00003450| 69 67 68 74 2d 68 61 6e | 64 20 65 64 67 65 20 6f |ight-han|d edge o|
|00003460| 66 20 77 69 6e 64 6f 77 | 2e 7d 0a 0a 5c 61 72 67 |f window|.}..\arg|
|00003470| 75 20 7b 7b 5c 74 74 20 | 79 6d 69 6e 7d 20 28 66 |u {{\tt |ymin} (f|
|00003480| 6c 6f 61 74 2c 20 69 6e | 70 75 74 29 7d 7b 56 61 |loat, in|put)}{Va|
|00003490| 6c 75 65 20 6f 66 7e 79 | 20 61 74 20 62 6f 74 74 |lue of~y| at bott|
|000034a0| 6f 6d 20 65 64 67 65 20 | 6f 66 20 77 69 6e 64 6f |om edge |of windo|
|000034b0| 77 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |w.}..\ar|gu {{\tt|
|000034c0| 20 79 6d 61 78 7d 20 28 | 66 6c 6f 61 74 2c 20 69 | ymax} (|float, i|
|000034d0| 6e 70 75 74 29 7d 7b 56 | 61 6c 75 65 20 6f 66 7e |nput)}{V|alue of~|
|000034e0| 79 20 61 74 20 74 6f 70 | 20 65 64 67 65 20 6f 66 |y at top| edge of|
|000034f0| 20 77 69 6e 64 6f 77 2e | 7d 0a 0a 5c 61 72 67 75 | window.|}..\argu|
|00003500| 20 7b 7b 5c 74 74 20 6a | 75 73 74 7d 20 28 69 6e | {{\tt j|ust} (in|
|00003510| 74 2c 20 69 6e 70 75 74 | 29 7d 7b 49 66 20 7b 5c |t, input|)}{If {\|
|00003520| 74 74 20 6a 75 73 74 3d | 30 7d 2c 20 74 68 65 20 |tt just=|0}, the |
|00003530| 78 7e 61 6e 64 7e 79 20 | 61 78 65 73 20 61 72 65 |x~and~y |axes are|
|00003540| 20 73 63 61 6c 65 64 0a | 69 6e 64 65 70 65 6e 64 | scaled.|independ|
|00003550| 65 6e 74 6c 79 20 74 6f | 20 75 73 65 20 61 73 20 |ently to| use as |
|00003560| 6d 75 63 68 20 6f 66 20 | 74 68 65 20 73 63 72 65 |much of |the scre|
|00003570| 65 6e 20 61 73 20 70 6f | 73 73 69 62 6c 65 2c 20 |en as po|ssible, |
|00003580| 62 75 74 20 69 66 20 7b | 5c 74 74 20 6a 75 73 74 |but if {|\tt just|
|00003590| 3d 31 7d 2c 20 74 68 65 | 0a 73 63 61 6c 65 73 20 |=1}, the|.scales |
|000035a0| 6f 66 20 74 68 65 20 78 | 7e 61 6e 64 7e 79 20 61 |of the x|~and~y a|
|000035b0| 78 65 73 20 61 72 65 20 | 6d 61 64 65 20 65 71 75 |xes are |made equ|
|000035c0| 61 6c 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |al.}..\a|rgu {{\t|
|000035d0| 74 20 61 78 69 73 7d 20 | 28 69 6e 74 2c 20 69 6e |t axis} |(int, in|
|000035e0| 70 75 74 29 7d 7b 43 6f | 6e 74 72 6f 6c 73 20 64 |put)}{Co|ntrols d|
|000035f0| 72 61 77 69 6e 67 20 6f | 66 20 74 68 65 20 62 6f |rawing o|f the bo|
|00003600| 78 20 61 72 6f 75 6e 64 | 20 74 68 65 20 70 6c 6f |x around| the plo|
|00003610| 74 3a 0a 5c 62 65 67 69 | 6e 7b 69 74 65 6d 69 7a |t:.\begi|n{itemiz|
|00003620| 65 7d 0a 5c 69 74 65 6d | 7b 2d 32 7d 3a 20 4e 6f |e}.\item|{-2}: No|
|00003630| 20 62 6f 78 20 6f 72 20 | 61 6e 6e 6f 74 61 74 69 | box or |annotati|
|00003640| 6f 6e 2e 0a 5c 69 74 65 | 6d 7b 2d 31 7d 3a 20 44 |on..\ite|m{-1}: D|
|00003650| 72 61 77 20 62 6f 78 20 | 6f 6e 6c 79 2e 0a 5c 69 |raw box |only..\i|
|00003660| 74 65 6d 7b 30 7d 3a 20 | 44 72 61 77 20 62 6f 78 |tem{0}: |Draw box|
|00003670| 2c 20 6c 61 62 65 6c 6c | 65 64 20 77 69 74 68 20 |, labell|ed with |
|00003680| 63 6f 6f 72 64 69 6e 61 | 74 65 20 76 61 6c 75 65 |coordina|te value|
|00003690| 73 20 61 72 6f 75 6e 64 | 20 65 64 67 65 2e 0a 5c |s around| edge..\|
|000036a0| 69 74 65 6d 7b 31 7d 3a | 20 49 6e 20 61 64 64 69 |item{1}:| In addi|
|000036b0| 74 69 6f 6e 20 74 6f 20 | 62 6f 78 20 61 6e 64 20 |tion to |box and |
|000036c0| 6c 61 62 65 6c 73 2c 20 | 64 72 61 77 20 74 68 65 |labels, |draw the|
|000036d0| 20 74 77 6f 20 61 78 65 | 73 20 0a 7b 5c 74 74 20 | two axe|s .{\tt |
|000036e0| 78 3d 30 7d 20 61 6e 64 | 20 7b 5c 74 74 20 79 3d |x=0} and| {\tt y=|
|000036f0| 30 7d 2e 0a 5c 69 74 65 | 6d 7b 32 7d 3a 20 41 73 |0}..\ite|m{2}: As|
|00003700| 20 66 6f 72 20 7b 5c 74 | 74 20 61 78 69 73 3d 31 | for {\t|t axis=1|
|00003710| 7d 2c 20 62 75 74 20 61 | 6c 73 6f 20 64 72 61 77 |}, but a|lso draw|
|00003720| 20 61 20 67 72 69 64 20 | 61 74 20 74 68 65 20 6d | a grid |at the m|
|00003730| 61 6a 6f 72 20 74 69 63 | 6b 20 69 6e 74 65 72 76 |ajor tic|k interv|
|00003740| 61 6c 2e 0a 5c 69 74 65 | 6d 7b 31 30 7d 3a 20 4c |al..\ite|m{10}: L|
|00003750| 6f 67 61 72 69 74 68 6d | 69 63 20 78 20 61 78 69 |ogarithm|ic x axi|
|00003760| 73 2c 20 6c 69 6e 65 61 | 72 20 79 20 61 78 69 73 |s, linea|r y axis|
|00003770| 2e 0a 5c 69 74 65 6d 7b | 31 31 7d 3a 20 4c 6f 67 |..\item{|11}: Log|
|00003780| 61 72 69 74 68 6d 69 63 | 20 78 20 61 78 69 73 2c |arithmic| x axis,|
|00003790| 20 6c 69 6e 65 61 72 20 | 79 20 61 78 69 73 20 61 | linear |y axis a|
|000037a0| 6e 64 20 64 72 61 77 20 | 6c 69 6e 65 20 7b 5c 74 |nd draw |line {\t|
|000037b0| 74 20 79 3d 30 7d 2e 0a | 5c 69 74 65 6d 7b 32 30 |t y=0}..|\item{20|
|000037c0| 7d 3a 20 4c 69 6e 65 61 | 72 20 78 20 61 78 69 73 |}: Linea|r x axis|
|000037d0| 2c 20 6c 6f 67 61 72 69 | 74 68 6d 69 63 20 79 20 |, logari|thmic y |
|000037e0| 61 78 69 73 2e 0a 5c 69 | 74 65 6d 7b 32 31 7d 3a |axis..\i|tem{21}:|
|000037f0| 20 4c 69 6e 65 61 72 20 | 78 20 61 78 69 73 2c 20 | Linear |x axis, |
|00003800| 6c 6f 67 61 72 69 74 68 | 6d 69 63 20 79 20 61 78 |logarith|mic y ax|
|00003810| 69 73 20 61 6e 64 20 64 | 72 61 77 20 6c 69 6e 65 |is and d|raw line|
|00003820| 20 7b 5c 74 74 20 78 3d | 30 7d 2e 0a 5c 69 74 65 | {\tt x=|0}..\ite|
|00003830| 6d 7b 33 30 7d 3a 20 4c | 6f 67 61 72 69 74 68 6d |m{30}: L|ogarithm|
|00003840| 69 63 20 78 20 61 6e 64 | 20 79 20 61 78 65 73 2e |ic x and| y axes.|
|00003850| 0a 5c 65 6e 64 7b 69 74 | 65 6d 69 7a 65 7d 0a 7d |.\end{it|emize}.}|
|00003860| 0a 0a 0a 0a 5c 62 6e 61 | 6d 65 7b 70 6c 65 72 72 |....\bna|me{plerr|
|00003870| 78 28 6e 2c 78 6d 69 6e | 2c 78 6d 61 78 2c 79 29 |x(n,xmin|,xmax,y)|
|00003880| 7d 5c 6c 61 62 65 6c 7b | 70 6c 65 72 72 78 7d 0a |}\label{|plerrx}.|
|00003890| 5c 61 64 64 63 6f 6e 74 | 65 6e 74 73 6c 69 6e 65 |\addcont|entsline|
|000038a0| 7b 74 6f 63 7d 7b 73 75 | 62 73 65 63 74 69 6f 6e |{toc}{su|bsection|
|000038b0| 7d 7b 70 6c 65 72 72 78 | 7d 0a 0a 5c 64 65 73 63 |}{plerrx|}..\desc|
|000038c0| 72 7b 44 72 61 77 73 20 | 61 20 73 65 74 20 6f 66 |r{Draws |a set of|
|000038d0| 20 7b 5c 74 74 20 6e 7d | 20 68 6f 72 69 7a 6f 6e | {\tt n}| horizon|
|000038e0| 74 61 6c 20 65 72 72 6f | 72 20 62 61 72 73 2c 20 |tal erro|r bars, |
|000038f0| 74 68 65 20 7b 5c 74 74 | 20 69 7d 27 74 68 20 65 |the {\tt| i}'th e|
|00003900| 72 72 6f 72 20 62 61 72 | 0a 65 78 74 65 6e 64 69 |rror bar|.extendi|
|00003910| 6e 67 20 66 72 6f 6d 20 | 7b 5c 74 74 20 78 6d 69 |ng from |{\tt xmi|
|00003920| 6e 5b 69 5d 7d 20 74 6f | 20 7b 5c 74 74 20 78 6d |n[i]} to| {\tt xm|
|00003930| 61 78 5b 69 5d 7d 20 61 | 74 20 79 7e 63 6f 6f 72 |ax[i]} a|t y~coor|
|00003940| 64 69 6e 61 74 65 20 7b | 5c 74 74 20 79 5b 69 5d |dinate {|\tt y[i]|
|00003950| 7d 2e 20 54 68 65 20 74 | 65 72 6d 69 6e 61 6c 73 |}. The t|erminals|
|00003960| 0a 6f 66 20 74 68 65 20 | 65 72 72 6f 72 20 62 61 |.of the |error ba|
|00003970| 72 20 61 72 65 20 6f 66 | 20 6c 65 6e 67 74 68 20 |r are of| length |
|00003980| 65 71 75 61 6c 20 74 6f | 20 74 68 65 20 6d 69 6e |equal to| the min|
|00003990| 6f 72 20 74 69 63 6b 20 | 6c 65 6e 67 74 68 20 28 |or tick |length (|
|000039a0| 73 65 74 74 61 62 6c 65 | 0a 75 73 69 6e 67 20 7b |settable|.using {|
|000039b0| 5c 74 74 20 70 6c 73 6d | 69 6e 7d 29 2e 7d 0a 0a |\tt plsm|in}).}..|
|000039c0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 7d 20 28 |\argu {{|\tt n} (|
|000039d0| 69 6e 74 2c 20 69 6e 70 | 75 74 29 7d 7b 4e 75 6d |int, inp|ut)}{Num|
|000039e0| 62 65 72 20 6f 66 20 65 | 72 72 6f 72 20 62 61 72 |ber of e|rror bar|
|000039f0| 73 20 74 6f 20 64 72 61 | 77 2e 7d 0a 0a 5c 61 72 |s to dra|w.}..\ar|
|00003a00| 67 75 20 7b 7b 5c 74 74 | 20 78 6d 69 6e 7d 20 28 |gu {{\tt| xmin} (|
|00003a10| 66 6c 6f 61 74 20 2a 2c | 20 69 6e 70 75 74 29 7d |float *,| input)}|
|00003a20| 7b 50 6f 69 6e 74 65 72 | 20 74 6f 20 61 72 72 61 |{Pointer| to arra|
|00003a30| 79 20 77 69 74 68 0a 78 | 7e 63 6f 6f 72 64 69 6e |y with.x|~coordin|
|00003a40| 61 74 65 73 20 6f 66 20 | 6c 65 66 74 2d 68 61 6e |ates of |left-han|
|00003a50| 64 20 65 6e 64 70 6f 69 | 6e 74 20 6f 66 20 65 72 |d endpoi|nt of er|
|00003a60| 72 6f 72 20 62 61 72 73 | 2e 7d 0a 0a 5c 61 72 67 |ror bars|.}..\arg|
|00003a70| 75 20 7b 7b 5c 74 74 20 | 78 6d 61 78 7d 20 28 66 |u {{\tt |xmax} (f|
|00003a80| 6c 6f 61 74 20 2a 2c 20 | 69 6e 70 75 74 29 7d 7b |loat *, |input)}{|
|00003a90| 50 6f 69 6e 74 65 72 20 | 74 6f 20 61 72 72 61 79 |Pointer |to array|
|00003aa0| 20 77 69 74 68 0a 78 7e | 63 6f 6f 72 64 69 6e 61 | with.x~|coordina|
|00003ab0| 74 65 73 20 6f 66 20 72 | 69 67 68 74 2d 68 61 6e |tes of r|ight-han|
|00003ac0| 64 20 65 6e 64 70 6f 69 | 6e 74 20 6f 66 20 65 72 |d endpoi|nt of er|
|00003ad0| 72 6f 72 20 62 61 72 73 | 2e 7d 0a 0a 5c 61 72 67 |ror bars|.}..\arg|
|00003ae0| 75 20 7b 7b 5c 74 74 20 | 79 7d 20 28 66 6c 6f 61 |u {{\tt |y} (floa|
|00003af0| 74 20 2a 2c 20 69 6e 70 | 75 74 29 7d 7b 50 6f 69 |t *, inp|ut)}{Poi|
|00003b00| 6e 74 65 72 20 74 6f 20 | 61 72 72 61 79 20 77 69 |nter to |array wi|
|00003b10| 74 68 0a 79 7e 63 6f 6f | 72 64 69 6e 61 74 65 73 |th.y~coo|rdinates|
|00003b20| 20 6f 66 20 65 72 72 6f | 72 20 62 61 72 2e 7d 0a | of erro|r bar.}.|
|00003b30| 0a 0a 0a 5c 62 6e 61 6d | 65 7b 70 6c 65 72 72 79 |...\bnam|e{plerry|
|00003b40| 28 6e 2c 78 2c 79 6d 69 | 6e 2c 79 6d 61 78 29 3b |(n,x,ymi|n,ymax);|
|00003b50| 7d 5c 6c 61 62 65 6c 7b | 70 6c 65 72 72 79 7d 0a |}\label{|plerry}.|
|00003b60| 5c 61 64 64 63 6f 6e 74 | 65 6e 74 73 6c 69 6e 65 |\addcont|entsline|
|00003b70| 7b 74 6f 63 7d 7b 73 75 | 62 73 65 63 74 69 6f 6e |{toc}{su|bsection|
|00003b80| 7d 7b 70 6c 65 72 72 79 | 7d 0a 0a 5c 64 65 73 63 |}{plerry|}..\desc|
|00003b90| 72 7b 44 72 61 77 73 20 | 61 20 73 65 74 20 6f 66 |r{Draws |a set of|
|00003ba0| 20 7b 5c 74 74 20 6e 7d | 20 76 65 72 74 69 63 61 | {\tt n}| vertica|
|00003bb0| 6c 20 65 72 72 6f 72 20 | 62 61 72 73 2c 20 74 68 |l error |bars, th|
|00003bc0| 65 20 7b 5c 74 74 20 69 | 7d 27 74 68 20 65 72 72 |e {\tt i|}'th err|
|00003bd0| 6f 72 20 62 61 72 0a 65 | 78 74 65 6e 64 69 6e 67 |or bar.e|xtending|
|00003be0| 20 66 72 6f 6d 20 7b 5c | 74 74 20 79 6d 69 6e 5b | from {\|tt ymin[|
|00003bf0| 69 5d 7d 20 74 6f 20 7b | 5c 74 74 20 79 6d 61 78 |i]} to {|\tt ymax|
|00003c00| 5b 69 5d 7d 20 61 74 20 | 78 7e 63 6f 6f 72 64 69 |[i]} at |x~coordi|
|00003c10| 6e 61 74 65 20 7b 5c 74 | 74 20 78 5b 69 5d 7d 2e |nate {\t|t x[i]}.|
|00003c20| 20 54 68 65 20 74 65 72 | 6d 69 6e 61 6c 73 0a 6f | The ter|minals.o|
|00003c30| 66 20 74 68 65 20 65 72 | 72 6f 72 20 62 61 72 20 |f the er|ror bar |
|00003c40| 61 72 65 20 6f 66 20 6c | 65 6e 67 74 68 20 65 71 |are of l|ength eq|
|00003c50| 75 61 6c 20 74 6f 20 74 | 68 65 20 6d 69 6e 6f 72 |ual to t|he minor|
|00003c60| 20 74 69 63 6b 20 6c 65 | 6e 67 74 68 20 28 73 65 | tick le|ngth (se|
|00003c70| 74 74 61 62 6c 65 0a 75 | 73 69 6e 67 20 7b 5c 74 |ttable.u|sing {\t|
|00003c80| 74 20 70 6c 73 6d 69 6e | 7d 29 2e 7d 0a 0a 5c 61 |t plsmin|}).}..\a|
|00003c90| 72 67 75 20 7b 7b 5c 74 | 74 20 6e 7d 20 28 69 6e |rgu {{\t|t n} (in|
|00003ca0| 74 2c 20 69 6e 70 75 74 | 29 7d 7b 4e 75 6d 62 65 |t, input|)}{Numbe|
|00003cb0| 72 20 6f 66 20 65 72 72 | 6f 72 20 62 61 72 73 20 |r of err|or bars |
|00003cc0| 74 6f 20 64 72 61 77 2e | 7d 0a 0a 5c 61 72 67 75 |to draw.|}..\argu|
|00003cd0| 20 7b 7b 5c 74 74 20 78 | 7d 20 28 66 6c 6f 61 74 | {{\tt x|} (float|
|00003ce0| 20 2a 2c 20 69 6e 70 75 | 74 29 7d 7b 50 6f 69 6e | *, inpu|t)}{Poin|
|00003cf0| 74 65 72 20 74 6f 20 61 | 72 72 61 79 20 77 69 74 |ter to a|rray wit|
|00003d00| 68 0a 78 7e 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |h.x~coor|dinates |
|00003d10| 6f 66 20 65 72 72 6f 72 | 20 62 61 72 73 2e 7d 0a |of error| bars.}.|
|00003d20| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 79 6d 69 |.\argu {|{\tt ymi|
|00003d30| 6e 7d 20 28 66 6c 6f 61 | 74 20 2a 2c 20 69 6e 70 |n} (floa|t *, inp|
|00003d40| 75 74 29 7d 7b 50 6f 69 | 6e 74 65 72 20 74 6f 20 |ut)}{Poi|nter to |
|00003d50| 61 72 72 61 79 20 77 69 | 74 68 0a 79 7e 63 6f 6f |array wi|th.y~coo|
|00003d60| 72 64 69 6e 61 74 65 73 | 20 6f 66 20 6c 6f 77 65 |rdinates| of lowe|
|00003d70| 72 20 65 6e 64 70 6f 69 | 6e 74 20 6f 66 20 65 72 |r endpoi|nt of er|
|00003d80| 72 6f 72 20 62 61 72 73 | 2e 7d 0a 0a 5c 61 72 67 |ror bars|.}..\arg|
|00003d90| 75 20 7b 7b 5c 74 74 20 | 79 6d 61 78 7d 20 28 66 |u {{\tt |ymax} (f|
|00003da0| 6c 6f 61 74 20 2a 2c 20 | 69 6e 70 75 74 29 7d 7b |loat *, |input)}{|
|00003db0| 50 6f 69 6e 74 65 72 20 | 74 6f 20 61 72 72 61 79 |Pointer |to array|
|00003dc0| 20 77 69 74 68 0a 79 7e | 63 6f 6f 72 64 69 6e 61 | with.y~|coordina|
|00003dd0| 74 65 20 6f 66 20 75 70 | 70 65 72 20 65 6e 64 70 |te of up|per endp|
|00003de0| 6f 69 6e 74 20 6f 66 20 | 65 72 72 6f 72 20 62 61 |oint of |error ba|
|00003df0| 72 2e 7d 0a 0a 0a 0a 5c | 62 6e 61 6d 65 7b 70 6c |r.}....\|bname{pl|
|00003e00| 66 6f 6e 74 28 66 6f 6e | 74 29 3b 7d 5c 6c 61 62 |font(fon|t);}\lab|
|00003e10| 65 6c 7b 70 6c 66 6f 6e | 74 7d 0a 5c 61 64 64 63 |el{plfon|t}.\addc|
|00003e20| 6f 6e 74 65 6e 74 73 6c | 69 6e 65 7b 74 6f 63 7d |ontentsl|ine{toc}|
|00003e30| 7b 73 75 62 73 65 63 74 | 69 6f 6e 7d 7b 70 6c 66 |{subsect|ion}{plf|
|00003e40| 6f 6e 74 7d 0a 0a 5c 64 | 65 73 63 72 7b 53 65 74 |ont}..\d|escr{Set|
|00003e50| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 63 68 |s the de|fault ch|
|00003e60| 61 72 61 63 74 65 72 20 | 66 6f 6e 74 20 66 6f 72 |aracter |font for|
|00003e70| 20 73 75 62 73 65 71 75 | 65 6e 74 20 63 68 61 72 | subsequ|ent char|
|00003e80| 61 63 74 65 72 20 64 72 | 61 77 69 6e 67 2e 0a 20 |acter dr|awing.. |
|00003e90| 20 20 20 20 20 20 41 6c | 73 6f 20 61 66 66 65 63 | Al|so affec|
|00003ea0| 74 73 20 73 79 6d 62 6f | 6c 73 20 70 72 6f 64 75 |ts symbo|ls produ|
|00003eb0| 63 65 64 20 62 79 20 7b | 5c 74 74 20 70 6c 70 6f |ced by {|\tt plpo|
|00003ec0| 69 6e 7d 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |in}.}..\|argu {{\|
|00003ed0| 74 74 20 66 6f 6e 74 7d | 20 28 69 6e 74 2c 20 69 |tt font}| (int, i|
|00003ee0| 6e 70 75 74 29 7d 7b 53 | 70 65 63 69 66 69 65 73 |nput)}{S|pecifies|
|00003ef0| 20 74 68 65 20 66 6f 6e | 74 3a 0a 5c 62 65 67 69 | the fon|t:.\begi|
|00003f00| 6e 7b 69 74 65 6d 69 7a | 65 7d 0a 5c 69 74 65 6d |n{itemiz|e}.\item|
|00003f10| 7b 31 7d 3a 20 4e 6f 72 | 6d 61 6c 20 66 6f 6e 74 |{1}: Nor|mal font|
|00003f20| 20 28 73 69 6d 70 6c 65 | 73 74 20 61 6e 64 20 66 | (simple|st and f|
|00003f30| 61 73 74 65 73 74 29 0a | 5c 69 74 65 6d 7b 32 7d |astest).|\item{2}|
|00003f40| 3a 20 52 6f 6d 61 6e 20 | 66 6f 6e 74 0a 5c 69 74 |: Roman |font.\it|
|00003f50| 65 6d 7b 33 7d 3a 20 49 | 74 61 6c 69 63 20 66 6f |em{3}: I|talic fo|
|00003f60| 6e 74 0a 5c 69 74 65 6d | 7b 34 7d 3a 20 53 63 72 |nt.\item|{4}: Scr|
|00003f70| 69 70 74 20 66 6f 6e 74 | 0a 5c 65 6e 64 7b 69 74 |ipt font|.\end{it|
|00003f80| 65 6d 69 7a 65 7d 0a 7d | 0a 0a 5c 62 6e 61 6d 65 |emize}.}|..\bname|
|00003f90| 7b 70 6c 67 72 61 28 29 | 3b 7d 5c 6c 61 62 65 6c |{plgra()|;}\label|
|00003fa0| 7b 70 6c 67 72 61 7d 0a | 5c 61 64 64 63 6f 6e 74 |{plgra}.|\addcont|
|00003fb0| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|00003fc0| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 67 72 61 7d |bsection|}{plgra}|
|00003fd0| 0a 0a 5c 64 65 73 63 72 | 7b 53 65 74 73 20 61 6e |..\descr|{Sets an|
|00003fe0| 20 69 6e 74 65 72 61 63 | 74 69 76 65 20 64 65 76 | interac|tive dev|
|00003ff0| 69 63 65 20 74 6f 20 67 | 72 61 70 68 69 63 73 20 |ice to g|raphics |
|00004000| 6d 6f 64 65 2c 20 75 73 | 65 64 20 69 6e 20 63 6f |mode, us|ed in co|
|00004010| 6e 6a 75 6e 63 74 69 6f | 6e 0a 20 20 20 20 20 20 |njunctio|n. |
|00004020| 20 77 69 74 68 20 7b 5c | 74 74 20 70 6c 74 65 78 | with {\|tt pltex|
|00004030| 74 7d 20 74 6f 20 61 6c | 6c 6f 77 20 67 72 61 70 |t} to al|low grap|
|00004040| 68 69 63 73 20 61 6e 64 | 20 74 65 78 74 20 74 6f |hics and| text to|
|00004050| 20 62 65 20 69 6e 74 65 | 72 73 70 65 72 73 65 64 | be inte|rspersed|
|00004060| 2e 7d 0a 0a 5c 62 6e 61 | 6d 65 7b 70 6c 67 72 69 |.}..\bna|me{plgri|
|00004070| 64 33 28 7a 74 69 63 6b | 29 3b 7d 5c 6c 61 62 65 |d3(ztick|);}\labe|
|00004080| 6c 7b 70 6c 67 72 69 64 | 33 7d 0a 5c 61 64 64 63 |l{plgrid|3}.\addc|
|00004090| 6f 6e 74 65 6e 74 73 6c | 69 6e 65 7b 74 6f 63 7d |ontentsl|ine{toc}|
|000040a0| 7b 73 75 62 73 65 63 74 | 69 6f 6e 7d 7b 70 6c 67 |{subsect|ion}{plg|
|000040b0| 72 69 64 33 7d 0a 0a 5c | 64 65 73 63 72 7b 44 72 |rid3}..\|descr{Dr|
|000040c0| 61 77 73 20 67 72 69 64 | 20 6c 69 6e 65 73 20 70 |aws grid| lines p|
|000040d0| 65 72 70 65 6e 64 69 63 | 75 6c 61 72 20 74 6f 20 |erpendic|ular to |
|000040e0| 74 68 65 20 7a 20 61 78 | 69 73 2e 0a 20 20 20 20 |the z ax|is.. |
|000040f0| 20 20 20 20 46 6f 72 20 | 75 73 65 20 6f 6e 6c 79 | For |use only|
|00004100| 20 77 68 65 6e 20 64 6f | 69 6e 67 20 74 68 72 65 | when do|ing thre|
|00004110| 65 20 64 69 6d 65 6e 73 | 69 6f 6e 61 6c 20 70 6c |e dimens|ional pl|
|00004120| 6f 74 73 2e 20 20 49 66 | 20 75 73 65 64 0a 20 20 |ots. If| used. |
|00004130| 20 20 20 20 20 20 74 68 | 69 73 20 72 6f 75 74 69 | th|is routi|
|00004140| 6e 65 20 6d 75 73 74 0a | 20 20 20 20 20 20 20 20 |ne must.| |
|00004150| 62 65 20 63 61 6c 6c 65 | 64 20 61 66 74 65 72 20 |be calle|d after |
|00004160| 63 61 6c 6c 69 6e 67 20 | 7b 5c 74 74 20 70 6c 6f |calling |{\tt plo|
|00004170| 74 33 64 7d 20 66 69 72 | 73 74 20 28 69 6e 20 6f |t3d} fir|st (in o|
|00004180| 72 64 65 72 20 66 6f 72 | 20 74 68 65 0a 20 20 20 |rder for| the. |
|00004190| 20 20 20 20 20 68 69 64 | 64 65 6e 20 6c 69 6e 65 | hid|den line|
|000041a0| 20 72 65 6d 6f 76 61 6c | 20 74 6f 20 77 6f 72 6b | removal| to work|
|000041b0| 29 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |).}..\ar|gu {{\tt|
|000041c0| 20 7a 74 69 63 6b 7d 20 | 28 66 6c 6f 61 74 2c 20 | ztick} |(float, |
|000041d0| 69 6e 70 75 74 29 7d 7b | 57 6f 72 6c 64 20 63 6f |input)}{|World co|
|000041e0| 6f 72 64 69 6e 61 74 65 | 20 0a 69 6e 74 65 72 76 |ordinate| .interv|
|000041f0| 61 6c 20 62 65 74 77 65 | 65 6e 20 67 72 69 64 20 |al betwe|en grid |
|00004200| 6c 69 6e 65 73 20 6f 6e | 20 74 68 65 20 7a 7e 61 |lines on| the z~a|
|00004210| 78 69 73 2e 20 55 73 75 | 61 6c 6c 79 20 74 68 69 |xis. Usu|ally thi|
|00004220| 73 20 76 61 72 69 61 62 | 6c 65 20 68 61 73 0a 74 |s variab|le has.t|
|00004230| 68 65 20 73 61 6d 65 20 | 76 61 6c 75 65 20 61 73 |he same |value as|
|00004240| 20 7b 5c 74 74 20 7a 74 | 69 63 6b 7d 20 69 6e 20 | {\tt zt|ick} in |
|00004250| 7b 5c 74 74 20 70 6c 62 | 6f 78 33 7d 2e 20 20 49 |{\tt plb|ox3}. I|
|00004260| 66 20 7b 5c 74 74 20 7a | 74 69 63 6b 7d 20 69 73 |f {\tt z|tick} is|
|00004270| 0a 7a 65 72 6f 20 50 4c | 50 4c 4f 54 20 77 69 6c |.zero PL|PLOT wil|
|00004280| 6c 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |l automa|tically |
|00004290| 67 65 6e 65 72 61 74 65 | 20 61 20 73 75 69 74 61 |generate| a suita|
|000042a0| 62 6c 65 20 74 69 63 6b | 20 69 6e 74 65 72 76 61 |ble tick| interva|
|000042b0| 6c 2e 7d 0a 0a 5c 62 6e | 61 6d 65 7b 70 6c 67 73 |l.}..\bn|ame{plgs|
|000042c0| 70 61 28 78 6d 69 6e 2c | 78 6d 61 78 2c 79 6d 69 |pa(xmin,|xmax,ymi|
|000042d0| 6e 2c 79 6d 61 78 29 3b | 7d 5c 6c 61 62 65 6c 7b |n,ymax);|}\label{|
|000042e0| 70 6c 67 73 70 61 7d 0a | 5c 61 64 64 63 6f 6e 74 |plgspa}.|\addcont|
|000042f0| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|00004300| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 67 73 70 61 |bsection|}{plgspa|
|00004310| 7d 0a 0a 5c 64 65 73 63 | 72 7b 47 65 74 73 20 74 |}..\desc|r{Gets t|
|00004320| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 63 |he size |of the c|
|00004330| 75 72 72 65 6e 74 20 73 | 75 62 70 61 67 65 20 69 |urrent s|ubpage i|
|00004340| 6e 20 6d 69 6c 6c 69 6d | 65 74 72 65 73 20 6d 65 |n millim|etres me|
|00004350| 61 73 75 72 65 64 0a 20 | 20 20 20 20 20 20 20 66 |asured. | f|
|00004360| 72 6f 6d 20 74 68 65 20 | 62 6f 74 74 6f 6d 20 6c |rom the |bottom l|
|00004370| 65 66 74 20 68 61 6e 64 | 20 63 6f 72 6e 65 72 20 |eft hand| corner |
|00004380| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 20 64 65 |of the o|utput de|
|00004390| 76 69 63 65 20 70 61 67 | 65 0a 20 20 20 20 20 20 |vice pag|e. |
|000043a0| 20 20 6f 72 20 73 63 72 | 65 65 6e 2e 20 43 61 6e | or scr|een. Can|
|000043b0| 20 62 65 20 75 73 65 64 | 20 69 6e 20 63 6f 6e 6a | be used| in conj|
|000043c0| 75 6e 63 74 69 6f 6e 20 | 77 69 74 68 20 7b 5c 74 |unction |with {\t|
|000043d0| 74 20 70 6c 73 76 70 61 | 7d 20 66 6f 72 20 73 65 |t plsvpa|} for se|
|000043e0| 74 74 69 6e 67 0a 20 20 | 20 20 20 20 20 20 74 68 |tting. | th|
|000043f0| 65 20 73 69 7a 65 20 6f | 66 20 61 20 76 69 65 77 |e size o|f a view|
|00004400| 70 6f 72 74 20 69 6e 20 | 61 62 73 6f 6c 75 74 65 |port in |absolute|
|00004410| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 20 28 6d 69 | coordin|ates (mi|
|00004420| 6c 6c 69 6d 65 74 72 65 | 73 29 2e 7d 0a 0a 5c 61 |llimetre|s).}..\a|
|00004430| 72 67 75 20 7b 7b 5c 74 | 74 20 78 6d 69 6e 7d 20 |rgu {{\t|t xmin} |
|00004440| 28 66 6c 6f 61 74 20 2a | 2c 20 6f 75 74 70 75 74 |(float *|, output|
|00004450| 29 7d 7b 50 6f 69 6e 74 | 65 72 20 74 6f 20 76 61 |)}{Point|er to va|
|00004460| 72 69 61 62 6c 65 20 77 | 69 74 68 0a 70 6f 73 69 |riable w|ith.posi|
|00004470| 74 69 6f 6e 20 6f 66 20 | 6c 65 66 74 20 68 61 6e |tion of |left han|
|00004480| 64 20 65 64 67 65 20 6f | 66 20 73 75 62 70 61 67 |d edge o|f subpag|
|00004490| 65 20 69 6e 20 6d 69 6c | 6c 69 6d 65 74 72 65 73 |e in mil|limetres|
|000044a0| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 |}..\argu| {{\tt x|
|000044b0| 6d 61 78 7d 20 28 66 6c | 6f 61 74 20 2a 2c 20 6f |max} (fl|oat *, o|
|000044c0| 75 74 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |utput)}{|Pointer |
|000044d0| 74 6f 20 76 61 72 69 61 | 62 6c 65 20 77 69 74 68 |to varia|ble with|
|000044e0| 0a 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 72 69 67 |.positio|n of rig|
|000044f0| 68 74 20 68 61 6e 64 20 | 65 64 67 65 20 6f 66 20 |ht hand |edge of |
|00004500| 73 75 62 70 61 67 65 20 | 69 6e 20 6d 69 6c 6c 69 |subpage |in milli|
|00004510| 6d 65 74 72 65 73 7d 0a | 0a 5c 61 72 67 75 20 7b |metres}.|.\argu {|
|00004520| 7b 5c 74 74 20 79 6d 69 | 6e 7d 20 28 66 6c 6f 61 |{\tt ymi|n} (floa|
|00004530| 74 20 2a 2c 20 6f 75 74 | 70 75 74 29 7d 7b 50 6f |t *, out|put)}{Po|
|00004540| 69 6e 74 65 72 20 74 6f | 20 76 61 72 69 61 62 6c |inter to| variabl|
|00004550| 65 20 77 69 74 68 0a 70 | 6f 73 69 74 69 6f 6e 20 |e with.p|osition |
|00004560| 6f 66 20 62 6f 74 74 6f | 6d 20 65 64 67 65 20 6f |of botto|m edge o|
|00004570| 66 20 73 75 62 70 61 67 | 65 20 69 6e 20 6d 69 6c |f subpag|e in mil|
|00004580| 6c 69 6d 65 74 72 65 73 | 7d 0a 0a 5c 61 72 67 75 |limetres|}..\argu|
|00004590| 20 7b 7b 5c 74 74 20 79 | 6d 61 78 7d 20 28 66 6c | {{\tt y|max} (fl|
|000045a0| 6f 61 74 20 2a 2c 20 6f | 75 74 70 75 74 29 7d 7b |oat *, o|utput)}{|
|000045b0| 50 6f 69 6e 74 65 72 20 | 74 6f 20 76 61 72 69 61 |Pointer |to varia|
|000045c0| 62 6c 65 20 77 69 74 68 | 0a 70 6f 73 69 74 69 6f |ble with|.positio|
|000045d0| 6e 20 6f 66 20 74 6f 70 | 20 65 64 67 65 20 6f 66 |n of top| edge of|
|000045e0| 20 73 75 62 70 61 67 65 | 20 69 6e 20 6d 69 6c 6c | subpage| in mill|
|000045f0| 69 6d 65 74 72 65 73 7d | 0a 0a 5c 62 6e 61 6d 65 |imetres}|..\bname|
|00004600| 7b 70 6c 68 69 73 74 28 | 6e 2c 64 61 74 61 2c 64 |{plhist(|n,data,d|
|00004610| 61 74 6d 69 6e 2c 64 61 | 74 6d 61 78 2c 6e 62 69 |atmin,da|tmax,nbi|
|00004620| 6e 2c 6f 6c 64 77 69 6e | 29 3b 7d 5c 6c 61 62 65 |n,oldwin|);}\labe|
|00004630| 6c 7b 70 6c 68 69 73 74 | 7d 0a 5c 61 64 64 63 6f |l{plhist|}.\addco|
|00004640| 6e 74 65 6e 74 73 6c 69 | 6e 65 7b 74 6f 63 7d 7b |ntentsli|ne{toc}{|
|00004650| 73 75 62 73 65 63 74 69 | 6f 6e 7d 7b 70 6c 68 69 |subsecti|on}{plhi|
|00004660| 73 74 7d 0a 0a 5c 64 65 | 73 63 72 7b 50 6c 6f 74 |st}..\de|scr{Plot|
|00004670| 73 20 61 20 68 69 73 74 | 6f 67 72 61 6d 20 66 72 |s a hist|ogram fr|
|00004680| 6f 6d 20 7b 5c 74 74 20 | 6e 7d 20 64 61 74 61 20 |om {\tt |n} data |
|00004690| 70 6f 69 6e 74 73 20 73 | 74 6f 72 65 64 20 69 6e |points s|tored in|
|000046a0| 20 74 68 65 20 61 72 72 | 61 79 20 7b 5c 74 74 20 | the arr|ay {\tt |
|000046b0| 64 61 74 61 7d 2e 0a 20 | 20 20 20 20 20 20 54 68 |data}.. | Th|
|000046c0| 69 73 20 72 6f 75 74 69 | 6e 65 20 62 69 6e 73 20 |is routi|ne bins |
|000046d0| 74 68 65 20 64 61 74 61 | 20 69 6e 74 6f 20 7b 5c |the data| into {\|
|000046e0| 74 74 20 6e 62 69 6e 7d | 20 62 69 6e 73 20 65 71 |tt nbin}| bins eq|
|000046f0| 75 61 6c 6c 79 20 73 70 | 61 63 65 64 20 62 65 74 |ually sp|aced bet|
|00004700| 77 65 65 6e 0a 20 20 20 | 20 20 20 20 7b 5c 74 74 |ween. | {\tt|
|00004710| 20 64 61 74 6d 69 6e 7d | 20 61 6e 64 20 7b 5c 74 | datmin}| and {\t|
|00004720| 74 20 64 61 74 6d 61 78 | 7d 2c 20 61 6e 64 20 63 |t datmax|}, and c|
|00004730| 61 6c 6c 73 20 7b 5c 74 | 74 20 70 6c 62 69 6e 7d |alls {\t|t plbin}|
|00004740| 20 74 6f 20 64 72 61 77 | 20 74 68 65 20 72 65 73 | to draw| the res|
|00004750| 75 6c 74 69 6e 67 0a 20 | 20 20 20 20 20 20 68 69 |ulting. | hi|
|00004760| 73 74 6f 67 72 61 6d 2e | 20 50 61 72 61 6d 65 74 |stogram.| Paramet|
|00004770| 65 72 20 7b 5c 74 74 20 | 6f 6c 64 77 69 6e 7d 20 |er {\tt |oldwin} |
|00004780| 61 6c 6c 6f 77 73 20 74 | 68 65 20 68 69 73 74 6f |allows t|he histo|
|00004790| 67 72 61 6d 20 65 69 74 | 68 65 72 20 74 6f 0a 20 |gram eit|her to. |
|000047a0| 20 20 20 20 20 20 62 65 | 20 70 6c 6f 74 74 65 64 | be| plotted|
|000047b0| 20 69 6e 20 61 6e 20 65 | 78 69 73 74 69 6e 67 20 | in an e|xisting |
|000047c0| 77 69 6e 64 6f 77 20 6f | 72 20 63 61 75 73 65 73 |window o|r causes|
|000047d0| 20 7b 5c 74 74 20 70 6c | 68 69 73 74 7d 20 74 6f | {\tt pl|hist} to|
|000047e0| 20 63 61 6c 6c 0a 20 20 | 20 20 20 20 20 7b 5c 74 | call. | {\t|
|000047f0| 74 20 70 6c 65 6e 76 7d | 20 77 69 74 68 20 73 75 |t plenv}| with su|
|00004800| 69 74 61 62 6c 65 20 6c | 69 6d 69 74 73 20 62 65 |itable l|imits be|
|00004810| 66 6f 72 65 20 70 6c 6f | 74 74 69 6e 67 20 74 68 |fore plo|tting th|
|00004820| 65 20 68 69 73 74 6f 67 | 72 61 6d 2e 7d 0a 20 20 |e histog|ram.}. |
|00004830| 20 20 20 20 20 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 | .\a|rgu {{\t|
|00004840| 74 20 6e 7d 20 28 69 6e | 74 2c 20 69 6e 70 75 74 |t n} (in|t, input|
|00004850| 29 7d 7b 4e 75 6d 62 65 | 72 20 6f 66 20 64 61 74 |)}{Numbe|r of dat|
|00004860| 61 20 70 6f 69 6e 74 73 | 7d 0a 0a 5c 61 72 67 75 |a points|}..\argu|
|00004870| 20 7b 7b 5c 74 74 20 64 | 61 74 61 7d 20 28 66 6c | {{\tt d|ata} (fl|
|00004880| 6f 61 74 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 50 |oat *, i|nput)}{P|
|00004890| 6f 69 6e 74 65 72 20 74 | 6f 20 61 72 72 61 79 20 |ointer t|o array |
|000048a0| 77 69 74 68 0a 76 61 6c | 75 65 73 20 6f 66 20 74 |with.val|ues of t|
|000048b0| 68 65 20 7b 5c 74 74 20 | 6e 7d 20 64 61 74 61 20 |he {\tt |n} data |
|000048c0| 70 6f 69 6e 74 73 2e 7d | 0a 0a 5c 61 72 67 75 20 |points.}|..\argu |
|000048d0| 7b 7b 5c 74 74 20 64 61 | 74 6d 69 6e 7d 20 28 66 |{{\tt da|tmin} (f|
|000048e0| 6c 6f 61 74 2c 20 69 6e | 70 75 74 29 7d 7b 4c 65 |loat, in|put)}{Le|
|000048f0| 66 74 2d 68 61 6e 64 20 | 65 64 67 65 20 6f 66 20 |ft-hand |edge of |
|00004900| 6c 6f 77 65 73 74 2d 76 | 61 6c 75 65 64 20 62 69 |lowest-v|alued bi|
|00004910| 6e 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |n.}..\ar|gu {{\tt|
|00004920| 20 64 61 74 6d 61 78 7d | 20 28 66 6c 6f 61 74 2c | datmax}| (float,|
|00004930| 20 69 6e 70 75 74 29 7d | 7b 52 69 67 68 74 2d 68 | input)}|{Right-h|
|00004940| 61 6e 64 20 65 64 67 65 | 20 6f 66 20 68 69 67 68 |and edge| of high|
|00004950| 65 73 74 2d 76 61 6c 75 | 65 64 20 62 69 6e 2e 7d |est-valu|ed bin.}|
|00004960| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 6e 62 |..\argu |{{\tt nb|
|00004970| 69 6e 7d 20 28 69 6e 74 | 2c 20 69 6e 70 75 74 29 |in} (int|, input)|
|00004980| 7d 7b 4e 75 6d 62 65 72 | 20 6f 66 20 28 65 71 75 |}{Number| of (equ|
|00004990| 61 6c 2d 73 69 7a 65 64 | 29 20 62 69 6e 73 20 69 |al-sized|) bins i|
|000049a0| 6e 74 6f 20 77 68 69 63 | 68 0a 74 6f 20 64 69 76 |nto whic|h.to div|
|000049b0| 69 64 65 20 74 68 65 20 | 69 6e 74 65 72 76 61 6c |ide the |interval|
|000049c0| 20 7b 5c 74 74 20 78 6d | 69 6e 7d 20 74 6f 20 7b | {\tt xm|in} to {|
|000049d0| 5c 74 74 20 78 6d 61 78 | 7d 7d 0a 0a 5c 61 72 67 |\tt xmax|}}..\arg|
|000049e0| 75 20 7b 7b 5c 74 74 20 | 6f 6c 64 77 69 6e 7d 20 |u {{\tt |oldwin} |
|000049f0| 28 69 6e 74 2c 20 69 6e | 70 75 74 29 7d 7b 49 66 |(int, in|put)}{If|
|00004a00| 20 6f 6e 65 2c 20 74 68 | 65 20 68 69 73 74 6f 67 | one, th|e histog|
|00004a10| 72 61 6d 20 69 73 20 70 | 6c 6f 74 74 65 64 20 69 |ram is p|lotted i|
|00004a20| 6e 20 74 68 65 0a 63 75 | 72 72 65 6e 74 6c 79 2d |n the.cu|rrently-|
|00004a30| 64 65 66 69 6e 65 64 20 | 77 69 6e 64 6f 77 2c 20 |defined |window, |
|00004a40| 61 6e 64 20 69 66 20 7a | 65 72 6f 2c 20 7b 5c 74 |and if z|ero, {\t|
|00004a50| 74 20 70 6c 65 6e 76 7d | 20 69 73 20 63 61 6c 6c |t plenv}| is call|
|00004a60| 65 64 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ed autom|atically|
|00004a70| 0a 62 65 66 6f 72 65 20 | 70 6c 6f 74 74 69 6e 67 |.before |plotting|
|00004a80| 2e 7d 0a 0a 0a 0a 5c 62 | 6e 61 6d 65 7b 70 6c 6a |.}....\b|name{plj|
|00004a90| 6f 69 6e 28 78 31 2c 79 | 31 2c 78 32 2c 79 32 29 |oin(x1,y|1,x2,y2)|
|00004aa0| 3b 7d 5c 6c 61 62 65 6c | 7b 70 6c 6a 6f 69 6e 7d |;}\label|{pljoin}|
|00004ab0| 0a 5c 61 64 64 63 6f 6e | 74 65 6e 74 73 6c 69 6e |.\addcon|tentslin|
|00004ac0| 65 7b 74 6f 63 7d 7b 73 | 75 62 73 65 63 74 69 6f |e{toc}{s|ubsectio|
|00004ad0| 6e 7d 7b 70 6c 6a 6f 69 | 6e 7d 0a 0a 5c 64 65 73 |n}{pljoi|n}..\des|
|00004ae0| 63 72 7b 4a 6f 69 6e 73 | 20 74 68 65 20 70 6f 69 |cr{Joins| the poi|
|00004af0| 6e 74 20 7b 5c 74 74 20 | 28 78 31 2c 79 31 29 7d |nt {\tt |(x1,y1)}|
|00004b00| 20 74 6f 20 7b 5c 74 74 | 20 28 78 32 2c 79 32 29 | to {\tt| (x2,y2)|
|00004b10| 7d 2e 7d 0a 20 20 20 20 | 20 20 20 0a 5c 61 72 67 |}.}. | .\arg|
|00004b20| 75 20 7b 7b 5c 74 74 20 | 78 31 7d 20 28 66 6c 6f |u {{\tt |x1} (flo|
|00004b30| 61 74 2c 20 69 6e 70 75 | 74 29 7d 7b 78 7e 63 6f |at, inpu|t)}{x~co|
|00004b40| 6f 72 64 69 6e 61 74 65 | 20 6f 66 20 66 69 72 73 |ordinate| of firs|
|00004b50| 74 20 70 6f 69 6e 74 2e | 7d 0a 0a 5c 61 72 67 75 |t point.|}..\argu|
|00004b60| 20 7b 7b 5c 74 74 20 79 | 31 7d 20 28 66 6c 6f 61 | {{\tt y|1} (floa|
|00004b70| 74 2c 20 69 6e 70 75 74 | 29 7d 7b 79 7e 63 6f 6f |t, input|)}{y~coo|
|00004b80| 72 64 69 6e 61 74 65 20 | 6f 66 20 66 69 72 73 74 |rdinate |of first|
|00004b90| 20 70 6f 69 6e 74 2e 7d | 0a 20 20 20 20 20 20 20 | point.}|. |
|00004ba0| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 78 32 7d |.\argu {|{\tt x2}|
|00004bb0| 20 28 66 6c 6f 61 74 2c | 20 69 6e 70 75 74 29 7d | (float,| input)}|
|00004bc0| 7b 78 7e 63 6f 6f 72 64 | 69 6e 61 74 65 20 6f 66 |{x~coord|inate of|
|00004bd0| 20 73 65 63 6f 6e 64 20 | 70 6f 69 6e 74 2e 7d 0a | second |point.}.|
|00004be0| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 79 32 7d |.\argu {|{\tt y2}|
|00004bf0| 20 28 66 6c 6f 61 74 2c | 20 69 6e 70 75 74 29 7d | (float,| input)}|
|00004c00| 7b 79 7e 63 6f 6f 72 64 | 69 6e 61 74 65 20 6f 66 |{y~coord|inate of|
|00004c10| 20 73 65 63 6f 6e 64 20 | 70 6f 69 6e 74 2e 7d 0a | second |point.}.|
|00004c20| 0a 0a 0a 5c 62 6e 61 6d | 65 7b 70 6c 6c 61 62 28 |...\bnam|e{pllab(|
|00004c30| 78 6c 61 62 65 6c 2c 79 | 6c 61 62 65 6c 2c 74 6c |xlabel,y|label,tl|
|00004c40| 61 62 65 6c 29 3b 7d 5c | 6c 61 62 65 6c 7b 70 6c |abel);}\|label{pl|
|00004c50| 6c 61 62 7d 0a 5c 61 64 | 64 63 6f 6e 74 65 6e 74 |lab}.\ad|dcontent|
|00004c60| 73 6c 69 6e 65 7b 74 6f | 63 7d 7b 73 75 62 73 65 |sline{to|c}{subse|
|00004c70| 63 74 69 6f 6e 7d 7b 70 | 6c 6c 61 62 7d 0a 0a 5c |ction}{p|llab}..\|
|00004c80| 64 65 73 63 72 7b 52 6f | 75 74 69 6e 65 20 66 6f |descr{Ro|utine fo|
|00004c90| 72 20 77 72 69 74 69 6e | 67 20 73 69 6d 70 6c 65 |r writin|g simple|
|00004ca0| 20 6c 61 62 65 6c 73 2e | 20 55 73 65 20 7b 5c 74 | labels.| Use {\t|
|00004cb0| 74 20 70 6c 6d 74 65 78 | 7d 20 66 6f 72 20 6d 6f |t plmtex|} for mo|
|00004cc0| 72 65 20 63 6f 6d 70 6c | 65 78 0a 20 20 20 20 20 |re compl|ex. |
|00004cd0| 20 20 6c 61 62 65 6c 73 | 2e 7d 0a 20 20 20 20 20 | labels|.}. |
|00004ce0| 20 20 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 | .\argu| {{\tt x|
|00004cf0| 6c 61 62 65 6c 7d 20 28 | 63 68 61 72 20 2a 2c 20 |label} (|char *, |
|00004d00| 69 6e 70 75 74 29 7d 7b | 4c 61 62 65 6c 20 66 6f |input)}{|Label fo|
|00004d10| 72 20 68 6f 72 69 7a 6f | 6e 74 61 6c 20 61 78 69 |r horizo|ntal axi|
|00004d20| 73 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |s.}..\ar|gu {{\tt|
|00004d30| 20 79 6c 61 62 65 6c 7d | 20 28 63 68 61 72 20 2a | ylabel}| (char *|
|00004d40| 2c 20 69 6e 70 75 74 29 | 7d 7b 4c 61 62 65 6c 20 |, input)|}{Label |
|00004d50| 66 6f 72 20 76 65 72 74 | 69 63 61 6c 20 61 78 69 |for vert|ical axi|
|00004d60| 73 2e 7d 0a 20 20 20 20 | 20 20 20 0a 5c 61 72 67 |s.}. | .\arg|
|00004d70| 75 20 7b 7b 5c 74 74 20 | 74 6c 61 62 65 6c 7d 20 |u {{\tt |tlabel} |
|00004d80| 28 63 68 61 72 20 2a 2c | 20 69 6e 70 75 74 29 7d |(char *,| input)}|
|00004d90| 7b 54 69 74 6c 65 20 6f | 66 20 67 72 61 70 68 2e |{Title o|f graph.|
|00004da0| 7d 0a 0a 0a 0a 5c 62 6e | 61 6d 65 7b 70 6c 6c 69 |}....\bn|ame{plli|
|00004db0| 6e 65 28 6e 2c 78 2c 79 | 29 3b 7d 5c 6c 61 62 65 |ne(n,x,y|);}\labe|
|00004dc0| 6c 7b 70 6c 6c 69 6e 65 | 7d 0a 5c 61 64 64 63 6f |l{plline|}.\addco|
|00004dd0| 6e 74 65 6e 74 73 6c 69 | 6e 65 7b 74 6f 63 7d 7b |ntentsli|ne{toc}{|
|00004de0| 73 75 62 73 65 63 74 69 | 6f 6e 7d 7b 70 6c 6c 69 |subsecti|on}{plli|
|00004df0| 6e 65 7d 0a 0a 5c 64 65 | 73 63 72 7b 44 72 61 77 |ne}..\de|scr{Draw|
|00004e00| 73 20 7b 5c 74 74 20 6e | 2d 31 7d 20 6c 69 6e 65 |s {\tt n|-1} line|
|00004e10| 20 73 65 67 6d 65 6e 74 | 73 20 6a 6f 69 6e 69 6e | segment|s joinin|
|00004e20| 67 20 70 6f 69 6e 74 73 | 20 7b 5c 74 74 20 28 78 |g points| {\tt (x|
|00004e30| 5b 69 5d 2c 79 5b 69 5d | 29 7d 2e 7d 0a 20 20 20 |[i],y[i]|)}.}. |
|00004e40| 20 20 20 20 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 | .\ar|gu {{\tt|
|00004e50| 20 6e 7d 20 28 69 6e 74 | 2c 20 69 6e 70 75 74 29 | n} (int|, input)|
|00004e60| 7d 7b 4e 75 6d 62 65 72 | 20 6f 66 20 70 6f 69 6e |}{Number| of poin|
|00004e70| 74 73 20 74 6f 20 6a 6f | 69 6e 2e 7d 0a 0a 5c 61 |ts to jo|in.}..\a|
|00004e80| 72 67 75 20 7b 7b 5c 74 | 74 20 78 7d 20 28 66 6c |rgu {{\t|t x} (fl|
|00004e90| 6f 61 74 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 50 |oat *, i|nput)}{P|
|00004ea0| 6f 69 6e 74 65 72 20 74 | 6f 20 61 72 72 61 79 20 |ointer t|o array |
|00004eb0| 77 69 74 68 20 0a 78 7e | 63 6f 6f 72 64 69 6e 61 |with .x~|coordina|
|00004ec0| 74 65 73 20 6f 66 20 70 | 6f 69 6e 74 73 2e 7d 0a |tes of p|oints.}.|
|00004ed0| 20 20 20 20 20 20 20 0a | 5c 61 72 67 75 20 7b 7b | .|\argu {{|
|00004ee0| 5c 74 74 20 79 7d 20 28 | 66 6c 6f 61 74 20 2a 2c |\tt y} (|float *,|
|00004ef0| 20 69 6e 70 75 74 29 7d | 7b 50 6f 69 6e 74 65 72 | input)}|{Pointer|
|00004f00| 20 74 6f 20 61 72 72 61 | 79 20 77 69 74 68 20 0a | to arra|y with .|
|00004f10| 79 7e 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 6f 66 |y~coordi|nates of|
|00004f20| 20 70 6f 69 6e 74 73 2e | 7d 0a 0a 0a 0a 5c 62 6e | points.|}....\bn|
|00004f30| 61 6d 65 7b 70 6c 6d 74 | 65 78 28 73 69 64 65 2c |ame{plmt|ex(side,|
|00004f40| 64 69 73 70 2c 70 6f 73 | 2c 6a 75 73 74 2c 74 65 |disp,pos|,just,te|
|00004f50| 78 74 29 3b 7d 5c 6c 61 | 62 65 6c 7b 70 6c 6d 74 |xt);}\la|bel{plmt|
|00004f60| 65 78 7d 0a 5c 61 64 64 | 63 6f 6e 74 65 6e 74 73 |ex}.\add|contents|
|00004f70| 6c 69 6e 65 7b 74 6f 63 | 7d 7b 73 75 62 73 65 63 |line{toc|}{subsec|
|00004f80| 74 69 6f 6e 7d 7b 70 6c | 6d 74 65 78 7d 0a 0a 5c |tion}{pl|mtex}..\|
|00004f90| 64 65 73 63 72 7b 57 72 | 69 74 65 73 20 74 65 78 |descr{Wr|ites tex|
|00004fa0| 74 20 61 74 20 61 20 73 | 70 65 63 69 66 69 65 64 |t at a s|pecified|
|00004fb0| 20 70 6f 73 69 74 69 6f | 6e 20 72 65 6c 61 74 69 | positio|n relati|
|00004fc0| 76 65 20 74 6f 20 74 68 | 65 20 76 69 65 77 70 6f |ve to th|e viewpo|
|00004fd0| 72 74 0a 20 20 20 20 20 | 20 20 62 6f 75 6e 64 61 |rt. | bounda|
|00004fe0| 72 69 65 73 2e 20 54 65 | 78 74 20 6d 61 79 20 62 |ries. Te|xt may b|
|00004ff0| 65 20 77 72 69 74 74 65 | 6e 20 69 6e 73 69 64 65 |e writte|n inside|
|00005000| 20 6f 72 20 6f 75 74 73 | 69 64 65 20 74 68 65 20 | or outs|ide the |
|00005010| 76 69 65 77 70 6f 72 74 | 2c 0a 20 20 20 20 20 20 |viewport|,. |
|00005020| 20 62 75 74 20 69 73 20 | 63 6c 69 70 70 65 64 20 | but is |clipped |
|00005030| 61 74 20 74 68 65 20 73 | 75 62 70 61 67 65 20 62 |at the s|ubpage b|
|00005040| 6f 75 6e 64 61 72 69 65 | 73 2e 0a 20 20 20 20 20 |oundarie|s.. |
|00005050| 20 20 54 68 65 20 72 65 | 66 65 72 65 6e 63 65 20 | The re|ference |
|00005060| 70 6f 69 6e 74 20 6f 66 | 20 61 20 73 74 72 69 6e |point of| a strin|
|00005070| 67 20 6c 69 65 73 20 61 | 6c 6f 6e 67 20 61 20 6c |g lies a|long a l|
|00005080| 69 6e 65 20 70 61 73 73 | 69 6e 67 0a 20 20 20 20 |ine pass|ing. |
|00005090| 20 20 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 73 | throu|gh the s|
|000050a0| 74 72 69 6e 67 20 61 74 | 20 68 61 6c 66 20 74 68 |tring at| half th|
|000050b0| 65 20 68 65 69 67 68 74 | 20 6f 66 20 61 20 63 61 |e height| of a ca|
|000050c0| 70 69 74 61 6c 20 6c 65 | 74 74 65 72 2e 0a 20 20 |pital le|tter.. |
|000050d0| 20 20 20 20 20 54 68 65 | 20 70 6f 73 69 74 69 6f | The| positio|
|000050e0| 6e 20 6f 66 20 74 68 65 | 20 72 65 66 65 72 65 6e |n of the| referen|
|000050f0| 63 65 20 70 6f 69 6e 74 | 20 61 6c 6f 6e 67 20 74 |ce point| along t|
|00005100| 68 69 73 20 6c 69 6e 65 | 20 69 73 20 64 65 74 65 |his line| is dete|
|00005110| 72 6d 69 6e 65 64 0a 20 | 20 20 20 20 20 20 62 79 |rmined. | by|
|00005120| 20 7b 5c 74 74 20 6a 75 | 73 74 7d 2c 20 61 6e 64 | {\tt ju|st}, and|
|00005130| 20 74 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | the pos|ition of|
|00005140| 20 74 68 65 20 72 65 66 | 65 72 65 6e 63 65 20 70 | the ref|erence p|
|00005150| 6f 69 6e 74 20 72 65 6c | 61 74 69 76 65 20 74 6f |oint rel|ative to|
|00005160| 0a 20 20 20 20 20 20 20 | 74 68 65 20 76 69 65 77 |. |the view|
|00005170| 70 6f 72 74 20 69 73 20 | 73 65 74 20 62 79 20 7b |port is |set by {|
|00005180| 5c 74 74 20 64 69 73 70 | 7d 20 61 6e 64 20 7b 5c |\tt disp|} and {\|
|00005190| 74 74 20 70 6f 73 7d 2e | 7d 0a 20 20 20 20 20 20 |tt pos}.|}. |
|000051a0| 20 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 73 69 | .\argu |{{\tt si|
|000051b0| 64 65 7d 20 28 63 68 61 | 72 20 2a 2c 20 69 6e 70 |de} (cha|r *, inp|
|000051c0| 75 74 29 7d 7b 53 70 65 | 63 69 66 69 65 73 20 74 |ut)}{Spe|cifies t|
|000051d0| 68 65 20 73 69 64 65 20 | 6f 66 20 74 68 65 20 76 |he side |of the v|
|000051e0| 69 65 77 70 6f 72 74 20 | 61 6c 6f 6e 67 0a 77 68 |iewport |along.wh|
|000051f0| 69 63 68 20 74 68 65 20 | 74 65 78 74 20 69 73 20 |ich the |text is |
|00005200| 74 6f 20 62 65 20 77 72 | 69 74 74 65 6e 2e 20 54 |to be wr|itten. T|
|00005210| 68 65 20 73 74 72 69 6e | 67 20 6d 75 73 74 20 62 |he strin|g must b|
|00005220| 65 20 6f 6e 65 20 6f 66 | 3a 0a 5c 62 65 67 69 6e |e one of|:.\begin|
|00005230| 7b 69 74 65 6d 69 7a 65 | 7d 0a 5c 69 74 65 6d 7b |{itemize|}.\item{|
|00005240| 62 7d 3a 20 42 6f 74 74 | 6f 6d 20 6f 66 20 76 69 |b}: Bott|om of vi|
|00005250| 77 70 6f 72 74 2e 0a 5c | 69 74 65 6d 7b 6c 7d 3a |wport..\|item{l}:|
|00005260| 20 4c 65 66 74 20 6f 66 | 20 76 69 65 77 70 6f 72 | Left of| viewpor|
|00005270| 74 2c 20 74 65 78 74 20 | 77 72 69 74 74 65 6e 20 |t, text |written |
|00005280| 70 61 72 61 6c 6c 65 6c | 20 74 6f 20 65 64 67 65 |parallel| to edge|
|00005290| 2e 0a 5c 69 74 65 6d 7b | 6c 76 7d 3a 20 4c 65 66 |..\item{|lv}: Lef|
|000052a0| 74 20 6f 66 20 76 69 65 | 77 70 6f 72 74 2c 20 74 |t of vie|wport, t|
|000052b0| 65 78 74 20 77 72 69 74 | 74 65 6e 20 61 74 20 72 |ext writ|ten at r|
|000052c0| 69 67 68 74 20 61 6e 67 | 6c 65 73 20 74 6f 20 65 |ight ang|les to e|
|000052d0| 64 67 65 2e 0a 5c 69 74 | 65 6d 7b 72 7d 3a 20 52 |dge..\it|em{r}: R|
|000052e0| 69 67 68 74 20 6f 66 20 | 76 69 65 77 70 6f 72 74 |ight of |viewport|
|000052f0| 2c 20 74 65 78 74 20 77 | 72 69 74 74 65 6e 20 70 |, text w|ritten p|
|00005300| 61 72 61 6c 6c 65 6c 20 | 74 6f 20 65 64 67 65 2e |arallel |to edge.|
|00005310| 0a 5c 69 74 65 6d 7b 72 | 76 7d 3a 20 52 69 67 68 |.\item{r|v}: Righ|
|00005320| 74 20 6f 66 20 76 69 65 | 77 70 6f 72 74 2c 20 74 |t of vie|wport, t|
|00005330| 65 78 74 20 77 72 69 74 | 74 65 6e 20 61 74 20 72 |ext writ|ten at r|
|00005340| 69 67 68 74 20 61 6e 67 | 6c 65 73 20 74 6f 20 65 |ight ang|les to e|
|00005350| 64 67 65 2e 0a 5c 69 74 | 65 6d 7b 74 7d 3a 20 54 |dge..\it|em{t}: T|
|00005360| 6f 70 20 6f 66 20 76 69 | 65 77 70 6f 72 74 2e 0a |op of vi|ewport..|
|00005370| 5c 65 6e 64 7b 69 74 65 | 6d 69 7a 65 7d 0a 7d 0a |\end{ite|mize}.}.|
|00005380| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 64 69 73 |.\argu {|{\tt dis|
|00005390| 70 7d 20 28 66 6c 6f 61 | 74 2c 20 69 6e 70 75 74 |p} (floa|t, input|
|000053a0| 29 7d 7b 50 6f 73 69 74 | 69 6f 6e 20 6f 66 20 74 |)}{Posit|ion of t|
|000053b0| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 70 6f 69 |he refer|ence poi|
|000053c0| 6e 74 20 6f 66 20 73 74 | 72 69 6e 67 2c 0a 6d 65 |nt of st|ring,.me|
|000053d0| 61 73 75 72 65 64 20 6f | 75 74 77 61 72 64 73 20 |asured o|utwards |
|000053e0| 66 72 6f 6d 20 74 68 65 | 20 73 70 65 63 69 66 69 |from the| specifi|
|000053f0| 65 64 20 76 69 65 77 70 | 6f 72 74 20 65 64 67 65 |ed viewp|ort edge|
|00005400| 20 69 6e 20 75 6e 69 74 | 73 20 6f 66 20 74 68 65 | in unit|s of the|
|00005410| 0a 63 75 72 72 65 6e 74 | 20 63 68 61 72 61 63 74 |.current| charact|
|00005420| 65 72 20 68 65 69 67 68 | 74 2e 20 55 73 65 20 6e |er heigh|t. Use n|
|00005430| 65 67 61 74 69 76 65 20 | 7b 5c 74 74 20 64 69 73 |egative |{\tt dis|
|00005440| 70 7d 20 74 6f 20 77 72 | 69 74 65 20 77 69 74 68 |p} to wr|ite with|
|00005450| 69 6e 20 74 68 65 0a 76 | 69 65 77 70 6f 72 74 2e |in the.v|iewport.|
|00005460| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 70 |}..\argu| {{\tt p|
|00005470| 6f 73 7d 20 28 66 6c 6f | 61 74 2c 20 69 6e 70 75 |os} (flo|at, inpu|
|00005480| 74 29 7d 7b 50 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |t)}{Posi|tion of |
|00005490| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |the refe|rence po|
|000054a0| 69 6e 74 20 6f 66 20 73 | 74 72 69 6e 67 20 61 6c |int of s|tring al|
|000054b0| 6f 6e 67 0a 74 68 65 20 | 73 70 65 63 69 66 69 65 |ong.the |specifie|
|000054c0| 64 20 65 64 67 65 2c 20 | 65 78 70 72 65 73 73 65 |d edge, |expresse|
|000054d0| 64 20 61 73 20 61 20 66 | 72 61 63 74 69 6f 6e 20 |d as a f|raction |
|000054e0| 6f 66 20 74 68 65 20 6c | 65 6e 67 74 68 20 6f 66 |of the l|ength of|
|000054f0| 20 74 68 65 20 65 64 67 | 65 2e 7d 0a 0a 5c 61 72 | the edg|e.}..\ar|
|00005500| 67 75 20 7b 7b 5c 74 74 | 20 6a 75 73 74 7d 20 28 |gu {{\tt| just} (|
|00005510| 66 6c 6f 61 74 2c 20 69 | 6e 70 75 74 29 7d 7b 53 |float, i|nput)}{S|
|00005520| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 70 6f 73 |pecifies| the pos|
|00005530| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 73 74 72 |ition of| the str|
|00005540| 69 6e 67 20 72 65 6c 61 | 74 69 76 65 0a 74 6f 20 |ing rela|tive.to |
|00005550| 69 74 73 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |its refe|rence po|
|00005560| 69 6e 74 2e 20 49 66 20 | 7b 5c 74 74 20 6a 75 73 |int. If |{\tt jus|
|00005570| 74 3d 30 7d 2c 20 74 68 | 65 20 72 65 66 65 72 65 |t=0}, th|e refere|
|00005580| 6e 63 65 20 70 6f 69 6e | 74 20 69 73 20 61 74 20 |nce poin|t is at |
|00005590| 74 68 65 20 6c 65 66 74 | 0a 61 6e 64 20 69 66 20 |the left|.and if |
|000055a0| 7b 5c 74 74 20 6a 75 73 | 74 3d 31 7d 2c 20 69 74 |{\tt jus|t=1}, it|
|000055b0| 20 69 73 20 61 74 20 74 | 68 65 20 72 69 67 68 74 | is at t|he right|
|000055c0| 20 6f 66 20 74 68 65 20 | 73 74 72 69 6e 67 2e 20 | of the |string. |
|000055d0| 4f 74 68 65 72 20 76 61 | 6c 75 65 73 20 6f 66 20 |Other va|lues of |
|000055e0| 7b 5c 74 74 20 6a 75 73 | 74 7d 0a 67 69 76 65 20 |{\tt jus|t}.give |
|000055f0| 69 6e 74 65 72 6d 65 64 | 69 61 74 65 20 6a 75 73 |intermed|iate jus|
|00005600| 74 69 66 69 63 61 74 69 | 6f 6e 73 2e 7d 0a 0a 5c |tificati|ons.}..\|
|00005610| 61 72 67 75 20 7b 7b 5c | 74 74 20 74 65 78 74 7d |argu {{\|tt text}|
|00005620| 20 28 63 68 61 72 20 2a | 2c 20 69 6e 70 75 74 29 | (char *|, input)|
|00005630| 7d 7b 54 68 65 20 73 74 | 72 69 6e 67 20 74 6f 20 |}{The st|ring to |
|00005640| 62 65 20 77 72 69 74 74 | 65 6e 20 6f 75 74 2e 7d |be writt|en out.}|
|00005650| 0a 0a 0a 0a 5c 62 6e 61 | 6d 65 7b 70 6c 6f 74 33 |....\bna|me{plot3|
|00005660| 64 28 78 2c 79 2c 7a 2c | 77 6f 72 6b 2c 6c 79 2c |d(x,y,z,|work,ly,|
|00005670| 6e 78 2c 6e 79 2c 6f 70 | 74 29 3b 7d 5c 6c 61 62 |nx,ny,op|t);}\lab|
|00005680| 65 6c 7b 70 6c 6f 74 33 | 64 7d 0a 5c 61 64 64 63 |el{plot3|d}.\addc|
|00005690| 6f 6e 74 65 6e 74 73 6c | 69 6e 65 7b 74 6f 63 7d |ontentsl|ine{toc}|
|000056a0| 7b 73 75 62 73 65 63 74 | 69 6f 6e 7d 7b 70 6c 6f |{subsect|ion}{plo|
|000056b0| 74 33 64 7d 0a 0a 5c 64 | 65 73 63 72 7b 50 6c 6f |t3d}..\d|escr{Plo|
|000056c0| 74 73 20 61 20 74 68 72 | 65 65 20 64 69 6d 65 6e |ts a thr|ee dimen|
|000056d0| 73 69 6f 6e 61 6c 20 73 | 75 72 66 61 63 65 20 70 |sional s|urface p|
|000056e0| 6c 6f 74 20 77 69 74 68 | 69 6e 20 74 68 65 20 65 |lot with|in the e|
|000056f0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 0a 20 20 20 20 20 |nvironme|nt. |
|00005700| 20 20 20 73 65 74 20 75 | 70 20 62 79 20 7b 5c 74 | set u|p by {\t|
|00005710| 74 20 70 6c 77 33 64 7d | 2e 20 54 68 65 20 73 75 |t plw3d}|. The su|
|00005720| 72 66 61 63 65 20 69 73 | 20 64 65 66 69 6e 65 64 |rface is| defined|
|00005730| 20 62 79 20 74 68 65 20 | 74 77 6f 2d 64 69 6d 65 | by the |two-dime|
|00005740| 6e 73 69 6f 6e 61 6c 0a | 20 20 20 20 20 20 20 20 |nsional.| |
|00005750| 61 72 72 61 79 20 7b 5c | 74 74 20 7a 5b 5d 5b 6c |array {\|tt z[][l|
|00005760| 79 5d 7d 2c 20 74 68 65 | 20 70 6f 69 6e 74 20 7b |y]}, the| point {|
|00005770| 5c 74 74 20 7a 5b 69 5d | 5b 6a 5d 7d 20 62 65 69 |\tt z[i]|[j]} bei|
|00005780| 6e 67 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |ng the v|alue of |
|00005790| 74 68 65 0a 20 20 20 20 | 20 20 20 20 66 75 6e 63 |the. | func|
|000057a0| 74 69 6f 6e 20 61 74 20 | 7b 5c 74 74 20 28 78 5b |tion at |{\tt (x[|
|000057b0| 69 5d 2c 79 5b 6a 5d 29 | 7d 2e 20 4e 6f 74 65 20 |i],y[j])|}. Note |
|000057c0| 74 68 61 74 20 74 68 65 | 20 70 6f 69 6e 74 73 20 |that the| points |
|000057d0| 69 6e 20 61 72 72 61 79 | 73 20 7b 5c 74 74 20 78 |in array|s {\tt x|
|000057e0| 7d 20 61 6e 64 0a 20 20 | 20 20 20 20 20 20 7b 5c |} and. | {\|
|000057f0| 74 74 20 79 7d 20 64 6f | 20 6e 6f 74 20 6e 65 65 |tt y} do| not nee|
|00005800| 64 20 74 6f 20 62 65 20 | 65 71 75 61 6c 6c 79 20 |d to be |equally |
|00005810| 73 70 61 63 65 64 2c 20 | 62 75 74 20 6d 75 73 74 |spaced, |but must|
|00005820| 20 62 65 20 73 74 6f 72 | 65 64 20 69 6e 0a 20 20 | be stor|ed in. |
|00005830| 20 20 20 20 20 20 61 73 | 63 65 6e 64 69 6e 67 20 | as|cending |
|00005840| 6f 72 64 65 72 2e 20 54 | 68 65 20 70 61 72 61 6d |order. T|he param|
|00005850| 65 74 65 72 20 7b 5c 74 | 74 20 6f 70 74 7d 20 63 |eter {\t|t opt} c|
|00005860| 6f 6e 74 72 6f 6c 73 20 | 74 68 65 20 77 61 79 20 |ontrols |the way |
|00005870| 69 6e 20 77 68 69 63 68 | 20 74 68 65 0a 20 20 20 |in which| the. |
|00005880| 20 20 20 20 20 73 75 72 | 66 61 63 65 20 69 73 20 | sur|face is |
|00005890| 64 69 73 70 6c 61 79 65 | 64 2e 20 53 65 65 20 53 |displaye|d. See S|
|000058a0| 65 63 74 69 6f 6e 20 5c | 72 65 66 7b 74 68 72 65 |ection \|ref{thre|
|000058b0| 65 64 7d 20 6f 6e 20 70 | 61 67 65 20 5c 70 61 67 |ed} on p|age \pag|
|000058c0| 65 72 65 66 7b 74 68 72 | 65 65 64 7d 20 0a 20 20 |eref{thr|eed} . |
|000058d0| 20 20 20 20 20 20 66 6f | 72 20 66 75 72 74 68 65 | fo|r furthe|
|000058e0| 72 20 64 65 74 61 69 6c | 73 2e 7d 0a 20 20 20 20 |r detail|s.}. |
|000058f0| 20 20 20 20 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 | .\ar|gu {{\tt|
|00005900| 20 78 7d 20 28 66 6c 6f | 61 74 20 2a 2c 20 69 6e | x} (flo|at *, in|
|00005910| 70 75 74 29 7d 7b 50 6f | 69 6e 74 65 72 20 74 6f |put)}{Po|inter to|
|00005920| 20 0a 73 65 74 20 6f 66 | 20 78 7e 63 6f 6f 72 64 | .set of| x~coord|
|00005930| 69 6e 61 74 65 20 76 61 | 6c 75 65 73 20 61 74 20 |inate va|lues at |
|00005940| 77 68 69 63 68 20 74 68 | 65 0a 66 75 6e 63 74 69 |which th|e.functi|
|00005950| 6f 6e 20 69 73 20 65 76 | 61 6c 75 61 74 65 64 2e |on is ev|aluated.|
|00005960| 7d 0a 20 20 20 20 20 20 | 20 0a 5c 61 72 67 75 20 |}. | .\argu |
|00005970| 7b 7b 5c 74 74 20 79 7d | 20 28 66 6c 6f 61 74 20 |{{\tt y}| (float |
|00005980| 2a 2c 20 69 6e 70 75 74 | 29 7d 7b 50 6f 69 6e 74 |*, input|)}{Point|
|00005990| 65 72 20 74 6f 20 0a 73 | 65 74 20 6f 66 20 79 7e |er to .s|et of y~|
|000059a0| 63 6f 6f 72 64 69 6e 61 | 74 65 20 76 61 6c 75 65 |coordina|te value|
|000059b0| 73 20 61 74 20 77 68 69 | 63 68 20 74 68 65 0a 66 |s at whi|ch the.f|
|000059c0| 75 6e 63 74 69 6f 6e 20 | 69 73 20 65 76 61 6c 75 |unction |is evalu|
|000059d0| 61 74 65 64 2e 7d 0a 20 | 20 20 20 20 20 20 0a 5c |ated.}. | .\|
|000059e0| 61 72 67 75 20 7b 7b 5c | 74 74 20 7a 7d 20 28 66 |argu {{\|tt z} (f|
|000059f0| 6c 6f 61 74 20 2a 2c 20 | 69 6e 70 75 74 29 7d 7b |loat *, |input)}{|
|00005a00| 50 6f 69 6e 74 65 72 20 | 74 6f 20 74 77 6f 20 64 |Pointer |to two d|
|00005a10| 69 6d 65 6e 73 69 6f 6e | 61 6c 20 61 72 72 61 79 |imension|al array|
|00005a20| 20 77 69 74 68 0a 73 65 | 74 20 6f 66 20 66 75 6e | with.se|t of fun|
|00005a30| 63 74 69 6f 6e 20 76 61 | 6c 75 65 73 2e 7d 0a 0a |ction va|lues.}..|
|00005a40| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 77 6f 72 6b |\argu {{|\tt work|
|00005a50| 7d 20 28 69 6e 74 20 2a | 2c 20 69 6e 70 75 74 20 |} (int *|, input |
|00005a60| 61 6e 64 20 6f 75 74 70 | 75 74 29 7d 7b 50 6f 69 |and outp|ut)}{Poi|
|00005a70| 6e 74 65 72 20 74 6f 0a | 77 6f 72 6b 20 61 72 72 |nter to.|work arr|
|00005a80| 61 79 20 6f 66 20 64 69 | 6d 65 6e 73 69 6f 6e 20 |ay of di|mension |
|00005a90| 61 74 0a 6c 65 61 73 74 | 20 66 6f 75 72 20 74 69 |at.least| four ti|
|00005aa0| 6d 65 73 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 |mes the |maximum |
|00005ab0| 6f 66 20 7b 5c 74 74 20 | 6e 78 7d 20 61 6e 64 20 |of {\tt |nx} and |
|00005ac0| 7b 5c 74 74 20 6e 79 7d | 2e 7d 0a 0a 5c 61 72 67 |{\tt ny}|.}..\arg|
|00005ad0| 75 20 7b 7b 5c 74 74 20 | 6c 79 7d 20 28 69 6e 74 |u {{\tt |ly} (int|
|00005ae0| 2c 20 69 6e 70 75 74 29 | 7d 7b 44 65 63 6c 61 72 |, input)|}{Declar|
|00005af0| 65 64 20 73 65 63 6f 6e | 64 20 64 69 6d 65 6e 73 |ed secon|d dimens|
|00005b00| 69 6f 6e 20 6f 66 20 7b | 5c 74 74 20 7a 7d 7e 61 |ion of {|\tt z}~a|
|00005b10| 72 72 61 79 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |rray.}..|\argu {{|
|00005b20| 5c 74 74 20 6e 78 7d 20 | 28 69 6e 74 2c 20 69 6e |\tt nx} |(int, in|
|00005b30| 70 75 74 29 7d 7b 4e 75 | 6d 62 65 72 20 6f 66 20 |put)}{Nu|mber of |
|00005b40| 7b 5c 74 74 20 78 7d 7e | 76 61 6c 75 65 73 20 61 |{\tt x}~|values a|
|00005b50| 74 20 77 68 69 63 68 20 | 66 75 6e 63 74 69 6f 6e |t which |function|
|00005b60| 20 69 73 0a 65 76 61 6c | 75 61 74 65 64 2e 7d 0a | is.eval|uated.}.|
|00005b70| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 6e 79 7d |.\argu {|{\tt ny}|
|00005b80| 20 28 69 6e 74 2c 20 69 | 6e 70 75 74 29 7d 7b 4e | (int, i|nput)}{N|
|00005b90| 75 6d 62 65 72 20 6f 66 | 20 7b 5c 74 74 20 79 7d |umber of| {\tt y}|
|00005ba0| 7e 76 61 6c 75 65 73 20 | 61 74 20 77 68 69 63 68 |~values |at which|
|00005bb0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 0a 65 76 61 | functio|n is.eva|
|00005bc0| 6c 75 61 74 65 64 2e 7d | 0a 0a 5c 61 72 67 75 20 |luated.}|..\argu |
|00005bd0| 7b 7b 5c 74 74 20 6f 70 | 74 7d 20 28 69 6e 74 2c |{{\tt op|t} (int,|
|00005be0| 20 69 6e 70 75 74 29 7d | 7b 44 65 74 65 72 6d 69 | input)}|{Determi|
|00005bf0| 6e 65 73 20 74 68 65 20 | 77 61 79 20 69 6e 20 77 |nes the |way in w|
|00005c00| 68 69 63 68 20 74 68 65 | 20 73 75 72 66 61 63 65 |hich the| surface|
|00005c10| 0a 69 73 20 72 65 70 72 | 65 73 65 6e 74 65 64 3a |.is repr|esented:|
|00005c20| 0a 5c 62 65 67 69 6e 7b | 69 74 65 6d 69 7a 65 7d |.\begin{|itemize}|
|00005c30| 0a 5c 69 74 65 6d 7b 31 | 7d 3a 20 4c 69 6e 65 73 |.\item{1|}: Lines|
|00005c40| 20 61 72 65 20 64 72 61 | 77 6e 20 73 68 6f 77 69 | are dra|wn showi|
|00005c50| 6e 67 20 7b 5c 74 74 20 | 7a 7d 20 61 73 20 61 20 |ng {\tt |z} as a |
|00005c60| 66 75 6e 63 74 69 6f 6e | 20 6f 66 20 7b 5c 74 74 |function| of {\tt|
|00005c70| 20 78 7d 20 66 6f 72 20 | 65 61 63 68 20 76 61 6c | x} for |each val|
|00005c80| 75 65 0a 20 20 20 20 20 | 20 20 20 20 20 6f 66 20 |ue. | of |
|00005c90| 7b 5c 74 74 20 79 5b 6a | 5d 7d 2e 0a 5c 69 74 65 |{\tt y[j|]}..\ite|
|00005ca0| 6d 7b 32 7d 3a 20 4c 69 | 6e 65 73 20 61 72 65 20 |m{2}: Li|nes are |
|00005cb0| 64 72 61 77 6e 20 73 68 | 6f 77 69 6e 67 20 7b 5c |drawn sh|owing {\|
|00005cc0| 74 74 20 7a 7d 20 61 73 | 20 61 20 66 75 6e 63 74 |tt z} as| a funct|
|00005cd0| 69 6f 6e 20 6f 66 20 7b | 5c 74 74 20 79 7d 20 66 |ion of {|\tt y} f|
|00005ce0| 6f 72 20 65 61 63 68 20 | 76 61 6c 75 65 0a 20 20 |or each |value. |
|00005cf0| 20 20 20 20 20 20 20 20 | 6f 66 20 7b 5c 74 74 20 | |of {\tt |
|00005d00| 78 5b 69 5d 7d 2e 0a 5c | 69 74 65 6d 7b 33 7d 3a |x[i]}..\|item{3}:|
|00005d10| 20 4e 65 74 77 6f 72 6b | 20 6f 66 20 6c 69 6e 65 | Network| of line|
|00005d20| 73 20 69 73 20 64 72 61 | 77 6e 20 63 6f 6e 6e 65 |s is dra|wn conne|
|00005d30| 63 74 69 6e 67 20 70 6f | 69 6e 74 73 20 61 74 20 |cting po|ints at |
|00005d40| 77 68 69 63 68 20 66 75 | 6e 63 74 69 6f 6e 20 69 |which fu|nction i|
|00005d50| 73 0a 20 20 20 20 20 20 | 20 20 20 20 64 65 66 69 |s. | defi|
|00005d60| 6e 65 64 2e 0a 5c 65 6e | 64 7b 69 74 65 6d 69 7a |ned..\en|d{itemiz|
|00005d70| 65 7d 0a 7d 0a 0a 0a 0a | 5c 62 6e 61 6d 65 7b 70 |e}.}....|\bname{p|
|00005d80| 6c 70 6f 69 6e 28 6e 2c | 78 2c 79 2c 63 6f 64 65 |lpoin(n,|x,y,code|
|00005d90| 29 3b 7d 5c 6c 61 62 65 | 6c 7b 70 6c 70 6f 69 6e |);}\labe|l{plpoin|
|00005da0| 7d 0a 5c 61 64 64 63 6f | 6e 74 65 6e 74 73 6c 69 |}.\addco|ntentsli|
|00005db0| 6e 65 7b 74 6f 63 7d 7b | 73 75 62 73 65 63 74 69 |ne{toc}{|subsecti|
|00005dc0| 6f 6e 7d 7b 70 6c 70 6f | 69 6e 7d 0a 0a 5c 64 65 |on}{plpo|in}..\de|
|00005dd0| 73 63 72 7b 4d 61 72 6b | 73 20 6f 75 74 20 61 20 |scr{Mark|s out a |
|00005de0| 73 65 74 20 6f 66 20 7b | 5c 74 74 20 6e 7d 20 70 |set of {|\tt n} p|
|00005df0| 6f 69 6e 74 73 20 61 74 | 20 70 6f 73 69 74 69 6f |oints at| positio|
|00005e00| 6e 73 20 7b 5c 74 74 20 | 28 78 28 69 29 2c 79 28 |ns {\tt |(x(i),y(|
|00005e10| 69 29 29 7d 2c 20 75 73 | 69 6e 67 0a 20 20 20 20 |i))}, us|ing. |
|00005e20| 20 20 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 64 65 | the s|ymbol de|
|00005e30| 66 69 6e 65 64 20 62 79 | 20 7b 5c 74 74 20 63 6f |fined by| {\tt co|
|00005e40| 64 65 7d 2e 20 49 66 20 | 7b 5c 74 74 20 63 6f 64 |de}. If |{\tt cod|
|00005e50| 65 7d 20 69 73 20 62 65 | 74 77 65 65 6e 20 33 32 |e} is be|tween 32|
|00005e60| 20 61 6e 64 20 31 32 37 | 2c 0a 20 20 20 20 20 20 | and 127|,. |
|00005e70| 20 74 68 65 20 73 79 6d | 62 6f 6c 20 69 73 20 73 | the sym|bol is s|
|00005e80| 69 6d 70 6c 79 20 74 68 | 65 20 70 72 69 6e 74 61 |imply th|e printa|
|00005e90| 62 6c 65 20 41 53 43 49 | 49 20 63 68 61 72 61 63 |ble ASCI|I charac|
|00005ea0| 74 65 72 20 69 6e 20 74 | 68 65 20 64 65 66 61 75 |ter in t|he defau|
|00005eb0| 6c 74 0a 20 20 20 20 20 | 20 20 66 6f 6e 74 2e 7d |lt. | font.}|
|00005ec0| 0a 20 20 20 20 20 20 20 | 20 0a 5c 61 72 67 75 20 |. | .\argu |
|00005ed0| 7b 7b 5c 74 74 20 6e 7d | 20 28 69 6e 74 2c 20 69 |{{\tt n}| (int, i|
|00005ee0| 6e 70 75 74 29 7d 7b 4e | 75 6d 62 65 72 20 6f 66 |nput)}{N|umber of|
|00005ef0| 20 70 6f 69 6e 74 73 20 | 74 6f 20 62 65 20 6d 61 | points |to be ma|
|00005f00| 72 6b 65 64 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |rked.}..|\argu {{|
|00005f10| 5c 74 74 20 78 7d 20 28 | 66 6c 6f 61 74 20 2a 2c |\tt x} (|float *,|
|00005f20| 20 69 6e 70 75 74 29 7d | 7b 50 6f 69 6e 74 65 72 | input)}|{Pointer|
|00005f30| 20 74 6f 20 61 72 72 61 | 79 20 77 69 74 68 0a 73 | to arra|y with.s|
|00005f40| 65 74 20 6f 66 20 78 7e | 63 6f 6f 72 64 69 6e 61 |et of x~|coordina|
|00005f50| 74 65 20 76 61 6c 75 65 | 73 20 66 6f 72 20 74 68 |te value|s for th|
|00005f60| 65 20 70 6f 69 6e 74 73 | 2e 7d 0a 20 20 20 20 20 |e points|.}. |
|00005f70| 20 20 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 79 | .\argu| {{\tt y|
|00005f80| 7d 20 28 66 6c 6f 61 74 | 20 2a 2c 20 69 6e 70 75 |} (float| *, inpu|
|00005f90| 74 29 7d 7b 50 6f 69 6e | 74 65 72 20 74 6f 20 61 |t)}{Poin|ter to a|
|00005fa0| 72 72 61 79 20 77 69 74 | 68 0a 73 65 74 20 6f 66 |rray wit|h.set of|
|00005fb0| 20 79 7e 63 6f 6f 72 64 | 69 6e 61 74 65 20 76 61 | y~coord|inate va|
|00005fc0| 6c 75 65 73 20 66 6f 72 | 20 74 68 65 20 70 6f 69 |lues for| the poi|
|00005fd0| 6e 74 73 2e 7d 0a 20 20 | 20 20 20 20 20 0a 5c 61 |nts.}. | .\a|
|00005fe0| 72 67 75 20 7b 7b 5c 74 | 74 20 63 6f 64 65 7d 20 |rgu {{\t|t code} |
|00005ff0| 28 69 6e 74 2c 20 69 6e | 70 75 74 29 7d 7b 43 6f |(int, in|put)}{Co|
|00006000| 64 65 20 6e 75 6d 62 65 | 72 20 66 6f 72 20 74 68 |de numbe|r for th|
|00006010| 65 20 73 79 6d 62 6f 6c | 20 74 6f 20 62 65 20 70 |e symbol| to be p|
|00006020| 6c 6f 74 74 65 64 2e 7d | 0a 0a 0a 0a 5c 62 6e 61 |lotted.}|....\bna|
|00006030| 6d 65 7b 70 6c 70 74 65 | 78 28 78 2c 79 2c 64 78 |me{plpte|x(x,y,dx|
|00006040| 2c 64 79 2c 6a 75 73 74 | 2c 74 65 78 74 29 3b 7d |,dy,just|,text);}|
|00006050| 5c 6c 61 62 65 6c 7b 70 | 6c 70 74 65 78 7d 0a 5c |\label{p|lptex}.\|
|00006060| 61 64 64 63 6f 6e 74 65 | 6e 74 73 6c 69 6e 65 7b |addconte|ntsline{|
|00006070| 74 6f 63 7d 7b 73 75 62 | 73 65 63 74 69 6f 6e 7d |toc}{sub|section}|
|00006080| 7b 70 6c 70 74 65 78 7d | 0a 0a 5c 64 65 73 63 72 |{plptex}|..\descr|
|00006090| 7b 57 72 69 74 65 73 20 | 74 65 78 74 20 61 74 20 |{Writes |text at |
|000060a0| 61 20 73 70 65 63 69 66 | 69 65 64 20 70 6f 73 69 |a specif|ied posi|
|000060b0| 74 69 6f 6e 20 61 6e 64 | 20 69 6e 63 6c 69 6e 61 |tion and| inclina|
|000060c0| 74 69 6f 6e 20 77 69 74 | 68 69 6e 20 74 68 65 20 |tion wit|hin the |
|000060d0| 0a 20 20 20 20 20 20 20 | 76 69 65 77 70 6f 72 74 |. |viewport|
|000060e0| 2e 20 54 65 78 74 20 69 | 73 20 63 6c 69 70 70 65 |. Text i|s clippe|
|000060f0| 64 20 61 74 20 74 68 65 | 20 76 69 65 77 70 6f 72 |d at the| viewpor|
|00006100| 74 20 62 6f 75 6e 64 61 | 72 69 65 73 2e 0a 20 20 |t bounda|ries.. |
|00006110| 20 20 20 20 20 54 68 65 | 20 72 65 66 65 72 65 6e | The| referen|
|00006120| 63 65 20 70 6f 69 6e 74 | 20 6f 66 20 61 20 73 74 |ce point| of a st|
|00006130| 72 69 6e 67 20 6c 69 65 | 73 20 61 6c 6f 6e 67 20 |ring lie|s along |
|00006140| 61 20 6c 69 6e 65 20 70 | 61 73 73 69 6e 67 0a 20 |a line p|assing. |
|00006150| 20 20 20 20 20 20 74 68 | 72 6f 75 67 68 20 74 68 | th|rough th|
|00006160| 65 20 73 74 72 69 6e 67 | 20 61 74 20 68 61 6c 66 |e string| at half|
|00006170| 20 74 68 65 20 68 65 69 | 67 68 74 20 6f 66 20 61 | the hei|ght of a|
|00006180| 20 63 61 70 69 74 61 6c | 20 6c 65 74 74 65 72 2e | capital| letter.|
|00006190| 0a 20 20 20 20 20 20 20 | 54 68 65 20 70 6f 73 69 |. |The posi|
|000061a0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 72 65 66 65 |tion of |the refe|
|000061b0| 72 65 6e 63 65 20 70 6f | 69 6e 74 20 61 6c 6f 6e |rence po|int alon|
|000061c0| 67 20 74 68 69 73 20 6c | 69 6e 65 20 69 73 20 64 |g this l|ine is d|
|000061d0| 65 74 65 72 6d 69 6e 65 | 64 0a 20 20 20 20 20 20 |etermine|d. |
|000061e0| 20 62 79 20 7b 5c 74 74 | 20 6a 75 73 74 7d 2c 20 | by {\tt| just}, |
|000061f0| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |the refe|rence po|
|00006200| 69 6e 74 20 69 73 20 70 | 6c 61 63 65 64 20 61 74 |int is p|laced at|
|00006210| 20 77 6f 72 6c 64 20 63 | 6f 6f 72 64 69 6e 61 74 | world c|oordinat|
|00006220| 65 73 0a 20 20 20 20 20 | 20 20 7b 5c 74 74 20 28 |es. | {\tt (|
|00006230| 78 2c 79 29 7d 20 77 69 | 74 68 69 6e 20 74 68 65 |x,y)} wi|thin the|
|00006240| 20 76 69 65 77 70 6f 72 | 74 2e 20 54 68 65 20 69 | viewpor|t. The i|
|00006250| 6e 63 6c 69 6e 61 74 69 | 6f 6e 20 6f 66 20 74 68 |nclinati|on of th|
|00006260| 65 20 73 74 72 69 6e 67 | 20 69 73 0a 20 20 20 20 |e string| is. |
|00006270| 20 20 20 73 70 65 63 69 | 66 69 65 64 20 69 6e 20 | speci|fied in |
|00006280| 74 65 72 6d 73 20 6f 66 | 20 64 69 66 66 65 72 65 |terms of| differe|
|00006290| 6e 63 65 73 20 6f 66 20 | 77 6f 72 6c 64 20 63 6f |nces of |world co|
|000062a0| 6f 72 64 69 6e 61 74 65 | 73 20 6d 61 6b 69 6e 67 |ordinate|s making|
|000062b0| 0a 20 20 20 20 20 20 20 | 69 74 20 65 61 73 79 20 |. |it easy |
|000062c0| 74 6f 20 77 72 69 74 65 | 20 74 65 78 74 20 70 61 |to write| text pa|
|000062d0| 72 61 6c 6c 65 6c 20 74 | 6f 20 61 20 6c 69 6e 65 |rallel t|o a line|
|000062e0| 20 69 6e 20 61 20 67 72 | 61 70 68 2e 7d 0a 20 20 | in a gr|aph.}. |
|000062f0| 20 20 20 20 20 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 | .\a|rgu {{\t|
|00006300| 74 20 78 7d 20 28 66 6c | 6f 61 74 2c 20 69 6e 70 |t x} (fl|oat, inp|
|00006310| 75 74 29 7d 7b 78 20 63 | 6f 6f 72 64 69 6e 61 74 |ut)}{x c|oordinat|
|00006320| 65 20 6f 66 20 72 65 66 | 65 72 65 6e 63 65 20 70 |e of ref|erence p|
|00006330| 6f 69 6e 74 20 6f 66 20 | 73 74 72 69 6e 67 2e 7d |oint of |string.}|
|00006340| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 79 7d |..\argu |{{\tt y}|
|00006350| 20 28 66 6c 6f 61 74 2c | 20 69 6e 70 75 74 29 7d | (float,| input)}|
|00006360| 7b 79 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 6f 66 |{y coord|inate of|
|00006370| 20 72 65 66 65 72 65 6e | 63 65 20 70 6f 69 6e 74 | referen|ce point|
|00006380| 20 6f 66 20 73 74 72 69 | 6e 67 2e 7d 0a 0a 5c 61 | of stri|ng.}..\a|
|00006390| 72 67 75 20 7b 7b 5c 74 | 74 20 64 78 7d 20 28 66 |rgu {{\t|t dx} (f|
|000063a0| 6c 6f 61 74 2c 20 69 6e | 70 75 74 29 7d 7b 54 6f |loat, in|put)}{To|
|000063b0| 67 65 74 68 65 72 20 77 | 69 74 68 20 7b 5c 74 74 |gether w|ith {\tt|
|000063c0| 20 64 79 7d 2c 20 74 68 | 69 73 20 73 70 65 63 69 | dy}, th|is speci|
|000063d0| 66 69 65 73 20 74 68 65 | 20 69 6e 63 6c 69 6e 61 |fies the| inclina|
|000063e0| 74 69 6f 6e 20 0a 6f 66 | 20 74 68 65 20 73 74 72 |tion .of| the str|
|000063f0| 69 6e 67 2e 20 54 68 65 | 20 62 61 73 65 6c 69 6e |ing. The| baselin|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.