home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / r / rexx_plus_compiler / rexxpluscompiler2.dms / in.adf / RexxPlPlot / Docs / docs.zoo / chapter4.tex < prev    next >
LaTeX Document  |  1990-01-06  |  36.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file 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 78 3d 30 | 7d 2e 0a 5c 69 74 65 6d |{\tt x=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 2e 7d 0a 0a 5c |ck inter|val.}..\|
|00001440| 61 72 67 75 20 7b 7b 5c | 74 74 20 6e 78 73 75 62 |argu {{\|tt nxsub|
|00001450| 7d 20 28 69 6e 74 2c 20 | 69 6e 70 75 74 29 7d 7b |} (int, |input)}{|
|00001460| 4e 75 6d 62 65 72 20 6f | 66 20 73 75 62 69 6e 74 |Number o|f subint|
|00001470| 65 72 76 61 6c 73 20 62 | 65 74 77 65 65 6e 20 6d |ervals b|etween m|
|00001480| 61 6a 6f 72 20 78 7e 61 | 78 69 73 0a 74 69 63 6b |ajor x~a|xis.tick|
|00001490| 73 20 66 6f 72 20 6d 69 | 6e 6f 72 20 74 69 63 6b |s for mi|nor tick|
|000014a0| 73 2e 20 49 66 20 69 74 | 20 69 73 20 73 65 74 20 |s. If it| is set |
|000014b0| 74 6f 20 7a 65 72 6f 2c | 20 50 4c 50 4c 4f 54 20 |to zero,| PLPLOT |
|000014c0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 67 65 |automati|cally ge|
|000014d0| 6e 65 72 61 74 65 73 20 | 61 0a 73 75 69 74 61 62 |nerates |a.suitab|
|000014e0| 6c 65 20 6d 69 6e 6f 72 | 20 74 69 63 6b 20 69 6e |le minor| tick in|
|000014f0| 74 65 72 76 61 6c 2e 7d | 0a 0a 5c 61 72 67 75 20 |terval.}|..\argu |
|00001500| 7b 7b 5c 74 74 20 79 6f | 70 74 7d 20 28 63 68 61 |{{\tt yo|pt} (cha|
|00001510| 72 20 2a 2c 20 69 6e 70 | 75 74 29 7d 7b 50 6f 69 |r *, inp|ut)}{Poi|
|00001520| 6e 74 65 72 20 74 6f 0a | 63 68 61 72 61 63 74 65 |nter to.|characte|
|00001530| 72 20 73 74 72 69 6e 67 | 20 73 70 65 63 69 66 79 |r string| specify|
|00001540| 69 6e 67 20 6f 70 74 69 | 6f 6e 73 20 66 6f 72 0a |ing opti|ons for.|
|00001550| 76 65 72 74 69 63 61 6c | 20 61 78 69 73 2e 20 54 |vertical| axis. T|
|00001560| 68 65 20 73 74 72 69 6e | 67 20 63 61 6e 20 69 6e |he strin|g can in|
|00001570| 63 6c 75 64 65 20 61 6e | 79 20 63 6f 6d 62 69 6e |clude an|y combin|
|00001580| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6c 65 74 |ation of| the let|
|00001590| 74 65 72 73 0a 64 65 66 | 69 6e 65 64 20 61 62 6f |ters.def|ined abo|
|000015a0| 76 65 20 66 6f 72 20 7b | 5c 74 74 20 78 6f 70 74 |ve for {|\tt xopt|
|000015b0| 7d 2c 20 61 6e 64 20 69 | 6e 20 61 64 64 69 74 69 |}, and i|n additi|
|000015c0| 6f 6e 20 6d 61 79 20 63 | 6f 6e 74 61 69 6e 3a 0a |on may c|ontain:.|
|000015d0| 5c 62 65 67 69 6e 7b 69 | 74 65 6d 69 7a 65 7d 0a |\begin{i|temize}.|
|000015e0| 5c 69 74 65 6d 7b 7b 5c | 74 74 20 76 20 7d 7d 7b |\item{{\|tt v }}{|
|000015f0| 3a 20 57 72 69 74 65 20 | 6e 75 6d 65 72 69 63 20 |: Write |numeric |
|00001600| 6c 61 62 65 6c 73 20 66 | 6f 72 20 76 65 72 74 69 |labels f|or verti|
|00001610| 63 61 6c 20 61 78 69 73 | 20 70 61 72 61 6c 6c 65 |cal axis| paralle|
|00001620| 6c 20 74 6f 20 74 68 65 | 0a 62 61 73 65 20 6f 66 |l to the|.base of|
|00001630| 20 74 68 65 20 67 72 61 | 70 68 2c 20 72 61 74 68 | the gra|ph, rath|
|00001640| 65 72 20 74 68 61 6e 20 | 70 61 72 61 6c 6c 65 6c |er than |parallel|
|00001650| 20 74 6f 20 74 68 65 20 | 61 78 69 73 2e 7d 0a 5c | to the |axis.}.\|
|00001660| 65 6e 64 7b 69 74 65 6d | 69 7a 65 7d 0a 7d 0a 0a |end{item|ize}.}..|
|00001670| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 79 74 69 63 |\argu {{|\tt ytic|
|00001680| 6b 7d 20 28 72 65 61 6c | 2c 20 69 6e 70 75 74 29 |k} (real|, input)|
|00001690| 7d 7b 57 6f 72 6c 64 20 | 63 6f 6f 72 64 69 6e 61 |}{World |coordina|
|000016a0| 74 65 20 69 6e 74 65 72 | 76 61 6c 20 62 65 74 77 |te inter|val betw|
|000016b0| 65 65 6e 20 6d 61 6a 6f | 72 20 74 69 63 6b 73 0a |een majo|r ticks.|
|000016c0| 6f 6e 20 74 68 65 20 79 | 7e 61 78 69 73 2e 20 49 |on the y|~axis. I|
|000016d0| 66 20 69 74 20 69 73 20 | 73 65 74 20 74 6f 20 7a |f it is |set to z|
|000016e0| 65 72 6f 2c 20 50 4c 50 | 4c 4f 54 20 61 75 74 6f |ero, PLP|LOT auto|
|000016f0| 6d 61 74 69 63 61 6c 6c | 79 20 67 65 6e 65 72 61 |maticall|y genera|
|00001700| 74 65 73 20 61 0a 73 75 | 69 74 61 62 6c 65 20 74 |tes a.su|itable t|
|00001710| 69 63 6b 20 69 6e 74 65 | 72 76 61 6c 2e 7d 0a 0a |ick inte|rval.}..|
|00001720| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 79 73 75 |\argu {{|\tt nysu|
|00001730| 62 7d 20 28 69 6e 74 2c | 20 69 6e 70 75 74 29 7d |b} (int,| input)}|
|00001740| 7b 4e 75 6d 62 65 72 20 | 6f 66 20 73 75 62 69 6e |{Number |of subin|
|00001750| 74 65 72 76 61 6c 73 20 | 62 65 74 77 65 65 6e 20 |tervals |between |
|00001760| 6d 61 6a 6f 72 20 79 7e | 61 78 69 73 0a 74 69 63 |major y~|axis.tic|
|00001770| 6b 73 20 66 6f 72 20 6d | 69 6e 6f 72 20 74 69 63 |ks for m|inor tic|
|00001780| 6b 73 2e 20 49 66 20 69 | 74 20 69 73 20 73 65 74 |ks. If i|t is set|
|00001790| 20 74 6f 20 7a 65 72 6f | 2c 20 50 4c 50 4c 4f 54 | to zero|, PLPLOT|
|000017a0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 67 | automat|ically g|
|000017b0| 65 6e 65 72 61 74 65 73 | 20 61 0a 73 75 69 74 61 |enerates| a.suita|
|000017c0| 62 6c 65 20 6d 69 6e 6f | 72 20 74 69 63 6b 20 69 |ble mino|r tick i|
|000017d0| 6e 74 65 72 76 61 6c 2e | 7d 0a 0a 0a 0a 5c 62 6e |nterval.|}....\bn|
|000017e0| 61 6d 65 7b 20 5c 62 65 | 67 69 6e 7b 74 61 62 75 |ame{ \be|gin{tabu|
|000017f0| 6c 61 72 7d 7b 6c 40 7b | 5c 73 74 72 75 74 7d 6c |lar}{l@{|\strut}l|
|00001800| 7d 0a 20 20 20 20 20 20 | 20 20 70 6c 62 6f 78 33 |}. | plbox3|
|00001810| 28 26 78 6f 70 74 2c 78 | 6c 61 62 65 6c 2c 78 74 |(&xopt,x|label,xt|
|00001820| 69 63 6b 2c 6e 78 73 75 | 62 2c 79 6f 70 74 2c 79 |ick,nxsu|b,yopt,y|
|00001830| 6c 61 62 65 6c 2c 79 74 | 69 63 6b 2c 6e 79 73 75 |label,yt|ick,nysu|
|00001840| 62 2c 5c 5c 0a 20 20 20 | 20 20 20 20 20 26 7a 6f |b,\\. | &zo|
|00001850| 70 74 2c 7a 6c 61 62 65 | 6c 2c 7a 74 69 63 6b 2c |pt,zlabe|l,ztick,|
|00001860| 6e 7a 73 75 62 29 3b 0a | 20 20 20 20 20 20 20 20 |nzsub);.| |
|00001870| 5c 65 6e 64 7b 74 61 62 | 75 6c 61 72 7d 0a 20 20 |\end{tab|ular}. |
|00001880| 20 20 20 20 7d 20 5c 6c | 61 62 65 6c 7b 70 6c 62 | } \l|abel{plb|
|00001890| 6f 78 33 7d 0a 5c 61 64 | 64 63 6f 6e 74 65 6e 74 |ox3}.\ad|dcontent|
|000018a0| 73 6c 69 6e 65 7b 74 6f | 63 7d 7b 73 75 62 73 65 |sline{to|c}{subse|
|000018b0| 63 74 69 6f 6e 7d 7b 70 | 6c 62 6f 78 33 7d 0a 0a |ction}{p|lbox3}..|
|000018c0| 5c 64 65 73 63 72 7b 44 | 72 61 77 73 20 61 78 65 |\descr{D|raws axe|
|000018d0| 73 2c 20 6e 75 6d 65 72 | 69 63 20 61 6e 64 20 74 |s, numer|ic and t|
|000018e0| 65 78 74 20 6c 61 62 65 | 6c 73 20 66 6f 72 20 61 |ext labe|ls for a|
|000018f0| 20 74 68 72 65 65 2d 64 | 69 6d 65 6e 73 69 6f 6e | three-d|imension|
|00001900| 61 6c 20 73 75 72 66 61 | 63 65 0a 20 20 20 20 20 |al surfa|ce. |
|00001910| 20 20 70 6c 6f 74 2e 20 | 53 65 65 20 53 65 63 74 | plot. |See Sect|
|00001920| 69 6f 6e 20 5c 72 65 66 | 7b 74 68 72 65 65 64 7d |ion \ref|{threed}|
|00001930| 20 6f 6e 20 70 61 67 65 | 20 5c 70 61 67 65 72 65 | on page| \pagere|
|00001940| 66 7b 74 68 72 65 65 64 | 7d 20 66 6f 72 20 61 0a |f{threed|} for a.|
|00001950| 20 20 20 20 20 20 20 6d | 6f 72 65 20 63 6f 6d 70 | m|ore comp|
|00001960| 6c 65 74 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e |lete des|cription|
|00001970| 20 6f 66 20 74 68 72 65 | 65 2d 64 69 6d 65 6e 73 | of thre|e-dimens|
|00001980| 69 6f 6e 61 6c 20 70 6c | 6f 74 74 69 6e 67 2e 7d |ional pl|otting.}|
|00001990| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 78 6f |..\argu |{{\tt xo|
|000019a0| 70 74 7d 20 28 63 68 61 | 72 20 2a 2c 20 69 6e 70 |pt} (cha|r *, inp|
|000019b0| 75 74 29 7d 7b 50 6f 69 | 6e 74 65 72 20 74 6f 0a |ut)}{Poi|nter to.|
|000019c0| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|000019d0| 20 73 70 65 63 69 66 79 | 69 6e 67 20 6f 70 74 69 | specify|ing opti|
|000019e0| 6f 6e 73 20 66 6f 72 0a | 74 68 65 20 78 7e 61 78 |ons for.|the x~ax|
|000019f0| 69 73 2e 20 54 68 65 20 | 73 74 72 69 6e 67 20 63 |is. The |string c|
|00001a00| 61 6e 20 69 6e 63 6c 75 | 64 65 20 61 6e 79 20 63 |an inclu|de any c|
|00001a10| 6f 6d 62 69 6e 61 74 69 | 6f 6e 20 6f 66 20 74 68 |ombinati|on of th|
|00001a20| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 0a 6c 65 74 74 |e follow|ing.lett|
|00001a30| 65 72 73 20 28 75 70 70 | 65 72 20 6f 72 20 6c 6f |ers (upp|er or lo|
|00001a40| 77 65 72 20 63 61 73 65 | 29 20 69 6e 20 61 6e 79 |wer case|) in any|
|00001a50| 20 6f 72 64 65 72 3a 0a | 5c 62 65 67 69 6e 7b 69 | order:.|\begin{i|
|00001a60| 74 65 6d 69 7a 65 7d 0a | 5c 69 74 65 6d 7b 7b 5c |temize}.|\item{{\|
|00001a70| 74 74 20 62 20 3a 7d 7d | 20 44 72 61 77 73 20 61 |tt b :}}| Draws a|
|00001a80| 78 69 73 20 61 74 20 62 | 61 73 65 2c 20 61 74 20 |xis at b|ase, at |
|00001a90| 68 65 69 67 68 74 20 7b | 5c 74 74 20 7a 3d 7a 6d |height {|\tt z=zm|
|00001aa0| 69 6e 7d 20 77 68 65 72 | 65 20 7b 5c 74 74 20 7a |in} wher|e {\tt z|
|00001ab0| 6d 69 6e 7d 20 69 73 20 | 64 65 66 69 6e 65 64 0a |min} is |defined.|
|00001ac0| 62 79 20 63 61 6c 6c 20 | 74 6f 20 7b 5c 74 74 20 |by call |to {\tt |
|00001ad0| 70 6c 77 33 64 7d 2e 20 | 54 68 69 73 20 63 68 61 |plw3d}. |This cha|
|00001ae0| 72 61 63 74 65 72 20 6d | 75 73 74 20 62 65 20 73 |racter m|ust be s|
|00001af0| 70 65 63 69 66 69 65 64 | 20 69 6e 20 6f 72 64 65 |pecified| in orde|
|00001b00| 72 20 74 6f 20 75 73 65 | 20 61 6e 79 20 0a 6f 66 |r to use| any .of|
|00001b10| 20 74 68 65 20 6f 74 68 | 65 72 20 6f 70 74 69 6f | the oth|er optio|
|00001b20| 6e 73 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 69 |ns..\ite|m{{\tt i|
|00001b30| 20 3a 7d 7d 20 49 6e 76 | 65 72 74 73 20 74 69 63 | :}} Inv|erts tic|
|00001b40| 6b 20 6d 61 72 6b 73 2c | 20 73 6f 20 74 68 65 79 |k marks,| so they|
|00001b50| 20 61 72 65 20 64 72 61 | 77 6e 20 64 6f 77 6e 77 | are dra|wn downw|
|00001b60| 61 72 64 73 2c 20 72 61 | 74 68 65 72 20 74 68 61 |ards, ra|ther tha|
|00001b70| 6e 0a 75 70 77 61 72 64 | 73 2e 0a 5c 69 74 65 6d |n.upward|s..\item|
|00001b80| 7b 7b 5c 74 74 20 6c 20 | 3a 7d 7d 20 4c 61 62 65 |{{\tt l |:}} Labe|
|00001b90| 6c 73 20 61 78 69 73 20 | 6c 6f 67 61 72 69 74 68 |ls axis |logarith|
|00001ba0| 6d 69 63 61 6c 6c 79 2e | 20 54 68 69 73 20 6f 6e |mically.| This on|
|00001bb0| 6c 79 20 61 66 66 65 63 | 74 73 20 74 68 65 20 6c |ly affec|ts the l|
|00001bc0| 61 62 65 6c 73 2c 0a 6e | 6f 74 20 74 68 65 20 64 |abels,.n|ot the d|
|00001bd0| 61 74 61 2c 20 61 6e 64 | 20 73 6f 20 69 74 20 69 |ata, and| so it i|
|00001be0| 73 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 63 |s necess|ary to c|
|00001bf0| 6f 6d 70 75 74 65 20 74 | 68 65 20 6c 6f 67 61 72 |ompute t|he logar|
|00001c00| 69 74 68 6d 73 20 6f 66 | 20 64 61 74 61 20 0a 70 |ithms of| data .p|
|00001c10| 6f 69 6e 74 73 20 62 65 | 66 6f 72 65 20 70 61 73 |oints be|fore pas|
|00001c20| 73 69 6e 67 20 74 68 65 | 6d 20 74 6f 20 61 6e 79 |sing the|m to any|
|00001c30| 20 6f 66 20 74 68 65 20 | 64 72 61 77 69 6e 67 20 | of the |drawing |
|00001c40| 72 6f 75 74 69 6e 65 73 | 2e 0a 5c 69 74 65 6d 7b |routines|..\item{|
|00001c50| 7b 5c 74 74 20 6e 20 3a | 7d 7d 20 57 72 69 74 65 |{\tt n :|}} Write|
|00001c60| 73 20 6e 75 6d 65 72 69 | 63 20 6c 61 62 65 6c 73 |s numeri|c labels|
|00001c70| 20 61 74 20 6d 61 6a 6f | 72 20 74 69 63 6b 20 69 | at majo|r tick i|
|00001c80| 6e 74 65 72 76 61 6c 73 | 2e 0a 5c 69 74 65 6d 7b |ntervals|..\item{|
|00001c90| 7b 5c 74 74 20 73 20 3a | 7d 7d 20 45 6e 61 62 6c |{\tt s :|}} Enabl|
|00001ca0| 65 73 20 73 75 62 74 69 | 63 6b 73 20 62 65 74 77 |es subti|cks betw|
|00001cb0| 65 65 6e 20 6d 61 6a 6f | 72 20 74 69 63 6b 73 2c |een majo|r ticks,|
|00001cc0| 20 6f 6e 6c 79 20 76 61 | 6c 69 64 20 69 66 20 7b | only va|lid if {|
|00001cd0| 5c 74 74 20 74 7d 20 69 | 73 0a 61 6c 73 6f 20 73 |\tt t} i|s.also s|
|00001ce0| 70 65 63 69 66 69 65 64 | 2e 0a 5c 69 74 65 6d 7b |pecified|..\item{|
|00001cf0| 7b 5c 74 74 20 74 20 3a | 7d 7d 20 44 72 61 77 73 |{\tt t :|}} Draws|
|00001d00| 20 6d 61 6a 6f 72 20 74 | 69 63 6b 73 2e 0a 5c 69 | major t|icks..\i|
|00001d10| 74 65 6d 7b 7b 5c 74 74 | 20 75 20 3a 7d 7d 20 49 |tem{{\tt| u :}} I|
|00001d20| 66 20 74 68 69 73 20 69 | 73 20 73 70 65 63 69 66 |f this i|s specif|
|00001d30| 69 65 64 2c 20 74 68 65 | 20 74 65 78 74 20 6c 61 |ied, the| text la|
|00001d40| 62 65 6c 20 66 6f 72 20 | 74 68 65 20 61 78 69 73 |bel for |the axis|
|00001d50| 20 69 73 20 77 72 69 74 | 74 65 6e 0a 75 6e 64 65 | is writ|ten.unde|
|00001d60| 72 20 74 68 65 20 61 78 | 69 73 2e 0a 5c 65 6e 64 |r the ax|is..\end|
|00001d70| 7b 69 74 65 6d 69 7a 65 | 7d 0a 7d 0a 0a 5c 61 72 |{itemize|}.}..\ar|
|00001d80| 67 75 20 7b 7b 5c 74 74 | 20 78 6c 61 62 65 6c 7d |gu {{\tt| xlabel}|
|00001d90| 20 28 63 68 61 72 20 2a | 2c 20 69 6e 70 75 74 29 | (char *|, input)|
|00001da0| 7d 7b 50 6f 69 6e 74 65 | 72 20 74 6f 0a 63 68 61 |}{Pointe|r to.cha|
|00001db0| 72 61 63 74 65 72 20 73 | 74 72 69 6e 67 20 73 70 |racter s|tring sp|
|00001dc0| 65 63 69 66 79 69 6e 67 | 20 74 65 78 74 20 6c 61 |ecifying| text la|
|00001dd0| 62 65 6c 0a 66 6f 72 20 | 74 68 65 20 78 7e 61 78 |bel.for |the x~ax|
|00001de0| 69 73 2e 20 49 74 20 69 | 73 20 6f 6e 6c 79 20 64 |is. It i|s only d|
|00001df0| 72 61 77 6e 20 69 66 20 | 7b 5c 74 74 20 75 7d 20 |rawn if |{\tt u} |
|00001e00| 69 73 20 69 6e 20 74 68 | 65 20 7b 5c 74 74 20 78 |is in th|e {\tt x|
|00001e10| 6f 70 74 7d 20 73 74 72 | 69 6e 67 2e 7d 0a 0a 5c |opt} str|ing.}..\|
|00001e20| 61 72 67 75 20 7b 7b 5c | 74 74 20 78 74 69 63 6b |argu {{\|tt xtick|
|00001e30| 7d 20 28 66 6c 6f 61 74 | 2c 20 69 6e 70 75 74 29 |} (float|, input)|
|00001e40| 7d 7b 57 6f 72 6c 64 20 | 63 6f 6f 72 64 69 6e 61 |}{World |coordina|
|00001e50| 74 65 20 69 6e 74 65 72 | 76 61 6c 20 62 65 74 77 |te inter|val betw|
|00001e60| 65 65 6e 20 6d 61 6a 6f | 72 20 74 69 63 6b 73 0a |een majo|r ticks.|
|00001e70| 6f 6e 20 74 68 65 20 78 | 7e 61 78 69 73 2e 20 49 |on the x|~axis. I|
|00001e80| 66 20 69 74 20 69 73 20 | 73 65 74 20 74 6f 20 7a |f it is |set to z|
|00001e90| 65 72 6f 2c 20 50 4c 50 | 4c 4f 54 20 61 75 74 6f |ero, PLP|LOT auto|
|00001ea0| 6d 61 74 69 63 61 6c 6c | 79 20 67 65 6e 65 72 61 |maticall|y genera|
|00001eb0| 74 65 73 20 61 0a 73 75 | 69 74 61 62 6c 65 20 74 |tes a.su|itable t|
|00001ec0| 69 63 6b 20 69 6e 74 65 | 72 76 61 6c 2e 7d 0a 0a |ick inte|rval.}..|
|00001ed0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 78 73 75 |\argu {{|\tt nxsu|
|00001ee0| 62 7d 20 28 69 6e 74 2c | 20 69 6e 70 75 74 29 7d |b} (int,| input)}|
|00001ef0| 7b 4e 75 6d 62 65 72 20 | 6f 66 20 73 75 62 69 6e |{Number |of subin|
|00001f00| 74 65 72 76 61 6c 73 20 | 62 65 74 77 65 65 6e 20 |tervals |between |
|00001f10| 6d 61 6a 6f 72 20 78 7e | 61 78 69 73 0a 74 69 63 |major x~|axis.tic|
|00001f20| 6b 73 20 66 6f 72 20 6d | 69 6e 6f 72 20 74 69 63 |ks for m|inor tic|
|00001f30| 6b 73 2e 20 49 66 20 69 | 74 20 69 73 20 73 65 74 |ks. If i|t is set|
|00001f40| 20 74 6f 20 7a 65 72 6f | 2c 20 50 4c 50 4c 4f 54 | to zero|, PLPLOT|
|00001f50| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 67 | automat|ically g|
|00001f60| 65 6e 65 72 61 74 65 73 | 20 61 0a 73 75 69 74 61 |enerates| a.suita|
|00001f70| 62 6c 65 20 6d 69 6e 6f | 72 20 74 69 63 6b 20 69 |ble mino|r tick i|
|00001f80| 6e 74 65 72 76 61 6c 2e | 7d 0a 0a 5c 61 72 67 75 |nterval.|}..\argu|
|00001f90| 20 7b 7b 5c 74 74 20 79 | 6f 70 74 7d 20 28 63 68 | {{\tt y|opt} (ch|
|00001fa0| 61 72 20 2a 2c 20 69 6e | 70 75 74 29 7d 7b 50 6f |ar *, in|put)}{Po|
|00001fb0| 69 6e 74 65 72 20 74 6f | 20 0a 63 68 61 72 61 63 |inter to| .charac|
|00001fc0| 74 65 72 20 73 74 72 69 | 6e 67 20 73 70 65 63 69 |ter stri|ng speci|
|00001fd0| 66 79 69 6e 67 20 6f 70 | 74 69 6f 6e 73 20 66 6f |fying op|tions fo|
|00001fe0| 72 0a 74 68 65 20 79 7e | 61 78 69 73 2e 20 54 68 |r.the y~|axis. Th|
|00001ff0| 65 20 73 74 72 69 6e 67 | 20 69 73 20 69 6e 74 65 |e string| is inte|
|00002000| 72 70 72 65 74 65 64 20 | 69 6e 20 74 68 65 20 73 |rpreted |in the s|
|00002010| 61 6d 65 20 77 61 79 20 | 61 73 20 7b 5c 74 74 20 |ame way |as {\tt |
|00002020| 78 6f 70 74 7d 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |xopt}.}.|.\argu {|
|00002030| 7b 5c 74 74 20 79 6c 61 | 62 65 6c 7d 20 28 63 68 |{\tt yla|bel} (ch|
|00002040| 61 72 20 2a 2c 20 69 6e | 70 75 74 29 7d 7b 50 6f |ar *, in|put)}{Po|
|00002050| 69 6e 74 65 72 20 74 6f | 0a 63 68 61 72 61 63 74 |inter to|.charact|
|00002060| 65 72 20 73 74 72 69 6e | 67 20 73 70 65 63 69 66 |er strin|g specif|
|00002070| 79 69 6e 67 20 74 65 78 | 74 20 6c 61 62 65 6c 0a |ying tex|t label.|
|00002080| 66 6f 72 20 74 68 65 20 | 79 7e 61 78 69 73 2e 20 |for the |y~axis. |
|00002090| 49 74 20 69 73 20 6f 6e | 6c 79 20 64 72 61 77 6e |It is on|ly drawn|
|000020a0| 20 69 66 20 7b 5c 74 74 | 20 75 7d 20 69 73 20 69 | if {\tt| u} is i|
|000020b0| 6e 20 74 68 65 20 7b 5c | 74 74 20 79 6f 70 74 7d |n the {\|tt yopt}|
|000020c0| 20 73 74 72 69 6e 67 2e | 7d 0a 0a 5c 61 72 67 75 | string.|}..\argu|
|000020d0| 20 7b 7b 5c 74 74 20 79 | 74 69 63 6b 7d 20 28 66 | {{\tt y|tick} (f|
|000020e0| 6c 6f 61 74 2c 20 69 6e | 70 75 74 29 7d 7b 57 6f |loat, in|put)}{Wo|
|000020f0| 72 6c 64 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 69 |rld coor|dinate i|
|00002100| 6e 74 65 72 76 61 6c 20 | 62 65 74 77 65 65 6e 20 |nterval |between |
|00002110| 6d 61 6a 6f 72 20 74 69 | 63 6b 73 0a 6f 6e 20 74 |major ti|cks.on t|
|00002120| 68 65 20 79 7e 61 78 69 | 73 2e 20 49 66 20 69 74 |he y~axi|s. If it|
|00002130| 20 69 73 20 73 65 74 20 | 74 6f 20 7a 65 72 6f 2c | is set |to zero,|
|00002140| 20 50 4c 50 4c 4f 54 20 | 61 75 74 6f 6d 61 74 69 | PLPLOT |automati|
|00002150| 63 61 6c 6c 79 20 67 65 | 6e 65 72 61 74 65 73 20 |cally ge|nerates |
|00002160| 61 0a 73 75 69 74 61 62 | 6c 65 20 74 69 63 6b 20 |a.suitab|le tick |
|00002170| 69 6e 74 65 72 76 61 6c | 2e 7d 0a 0a 5c 61 72 67 |interval|.}..\arg|
|00002180| 75 20 7b 7b 5c 74 74 20 | 6e 79 73 75 62 7d 20 28 |u {{\tt |nysub} (|
|00002190| 69 6e 74 2c 20 69 6e 70 | 75 74 29 7d 7b 4e 75 6d |int, inp|ut)}{Num|
|000021a0| 62 65 72 20 6f 66 20 73 | 75 62 69 6e 74 65 72 76 |ber of s|ubinterv|
|000021b0| 61 6c 73 20 62 65 74 77 | 65 65 6e 20 6d 61 6a 6f |als betw|een majo|
|000021c0| 72 20 79 7e 61 78 69 73 | 0a 74 69 63 6b 73 20 66 |r y~axis|.ticks f|
|000021d0| 6f 72 20 6d 69 6e 6f 72 | 20 74 69 63 6b 73 2e 20 |or minor| ticks. |
|000021e0| 49 66 20 69 74 20 69 73 | 20 73 65 74 20 74 6f 20 |If it is| set to |
|000021f0| 7a 65 72 6f 2c 20 50 4c | 50 4c 4f 54 20 61 75 74 |zero, PL|PLOT aut|
|00002200| 6f 6d 61 74 69 63 61 6c | 6c 79 20 67 65 6e 65 72 |omatical|ly gener|
|00002210| 61 74 65 73 20 61 0a 73 | 75 69 74 61 62 6c 65 20 |ates a.s|uitable |
|00002220| 6d 69 6e 6f 72 20 74 69 | 63 6b 20 69 6e 74 65 72 |minor ti|ck inter|
|00002230| 76 61 6c 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |val.}..\|argu {{\|
|00002240| 74 74 20 7a 6f 70 74 7d | 20 28 63 68 61 72 20 2a |tt zopt}| (char *|
|00002250| 2c 20 69 6e 70 75 74 29 | 7d 7b 50 6f 69 6e 74 65 |, input)|}{Pointe|
|00002260| 72 20 74 6f 0a 63 68 61 | 72 61 63 74 65 72 20 73 |r to.cha|racter s|
|00002270| 74 72 69 6e 67 20 73 70 | 65 63 69 66 79 69 6e 67 |tring sp|ecifying|
|00002280| 20 6f 70 74 69 6f 6e 73 | 20 66 6f 72 0a 74 68 65 | options| for.the|
|00002290| 20 7a 7e 61 78 69 73 2e | 20 54 68 65 20 73 74 72 | z~axis.| The str|
|000022a0| 69 6e 67 20 63 61 6e 20 | 69 6e 63 6c 75 64 65 20 |ing can |include |
|000022b0| 61 6e 79 20 63 6f 6d 62 | 69 6e 61 74 69 6f 6e 20 |any comb|ination |
|000022c0| 6f 66 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |of the f|ollowing|
|000022d0| 0a 6c 65 74 74 65 72 73 | 20 28 75 70 70 65 72 20 |.letters| (upper |
|000022e0| 6f 72 20 6c 6f 77 65 72 | 20 63 61 73 65 29 20 69 |or lower| case) i|
|000022f0| 6e 20 61 6e 79 20 6f 72 | 64 65 72 3a 0a 5c 62 65 |n any or|der:.\be|
|00002300| 67 69 6e 7b 69 74 65 6d | 69 7a 65 7d 0a 5c 69 74 |gin{item|ize}.\it|
|00002310| 65 6d 7b 7b 5c 74 74 20 | 62 20 3a 7d 7d 20 44 72 |em{{\tt |b :}} Dr|
|00002320| 61 77 73 20 7a 7e 61 78 | 69 73 20 74 6f 20 74 68 |aws z~ax|is to th|
|00002330| 65 20 6c 65 66 74 20 6f | 66 20 74 68 65 20 73 75 |e left o|f the su|
|00002340| 72 66 61 63 65 20 70 6c | 6f 74 2e 0a 5c 69 74 65 |rface pl|ot..\ite|
|00002350| 6d 7b 7b 5c 74 74 20 63 | 20 3a 7d 7d 20 44 72 61 |m{{\tt c| :}} Dra|
|00002360| 77 73 20 7a 7e 61 78 69 | 73 20 74 6f 20 74 68 65 |ws z~axi|s to the|
|00002370| 20 72 69 67 68 74 20 6f | 66 20 74 68 65 20 73 75 | right o|f the su|
|00002380| 72 66 61 63 65 20 70 6c | 6f 74 2e 0a 5c 69 74 65 |rface pl|ot..\ite|
|00002390| 6d 7b 7b 5c 74 74 20 69 | 20 3a 7d 7d 20 49 6e 76 |m{{\tt i| :}} Inv|
|000023a0| 65 72 74 73 20 74 69 63 | 6b 20 6d 61 72 6b 73 2c |erts tic|k marks,|
|000023b0| 20 73 6f 20 74 68 65 79 | 20 61 72 65 20 64 72 61 | so they| are dra|
|000023c0| 77 6e 20 61 77 61 79 20 | 66 72 6f 6d 20 74 68 65 |wn away |from the|
|000023d0| 20 63 65 6e 74 72 65 2e | 0a 5c 69 74 65 6d 7b 7b | centre.|.\item{{|
|000023e0| 5c 74 74 20 6c 20 3a 7d | 7d 20 4c 61 62 65 6c 73 |\tt l :}|} Labels|
|000023f0| 20 61 78 69 73 20 6c 6f | 67 61 72 69 74 68 6d 69 | axis lo|garithmi|
|00002400| 63 61 6c 6c 79 2e 20 54 | 68 69 73 20 6f 6e 6c 79 |cally. T|his only|
|00002410| 20 61 66 66 65 63 74 73 | 20 74 68 65 20 6c 61 62 | affects| the lab|
|00002420| 65 6c 73 2c 0a 6e 6f 74 | 20 74 68 65 20 64 61 74 |els,.not| the dat|
|00002430| 61 2c 20 61 6e 64 20 73 | 6f 20 69 74 20 69 73 20 |a, and s|o it is |
|00002440| 6e 65 63 65 73 73 61 72 | 79 20 74 6f 20 63 6f 6d |necessar|y to com|
|00002450| 70 75 74 65 20 74 68 65 | 20 6c 6f 67 61 72 69 74 |pute the| logarit|
|00002460| 68 6d 73 20 6f 66 20 64 | 61 74 61 20 0a 70 6f 69 |hms of d|ata .poi|
|00002470| 6e 74 73 20 62 65 66 6f | 72 65 20 70 61 73 73 69 |nts befo|re passi|
|00002480| 6e 67 20 74 68 65 6d 20 | 74 6f 20 61 6e 79 20 6f |ng them |to any o|
|00002490| 66 20 74 68 65 20 64 72 | 61 77 69 6e 67 20 72 6f |f the dr|awing ro|
|000024a0| 75 74 69 6e 65 73 2e 0a | 5c 69 74 65 6d 7b 7b 5c |utines..|\item{{\|
|000024b0| 74 74 20 6d 20 3a 7d 7d | 20 57 72 69 74 65 73 20 |tt m :}}| Writes |
|000024c0| 6e 75 6d 65 72 69 63 20 | 6c 61 62 65 6c 73 20 61 |numeric |labels a|
|000024d0| 74 20 6d 61 6a 6f 72 20 | 74 69 63 6b 20 69 6e 74 |t major |tick int|
|000024e0| 65 72 76 61 6c 73 20 6f | 6e 20 74 68 65 20 72 69 |ervals o|n the ri|
|000024f0| 67 68 74 2d 68 61 6e 64 | 20 0a 76 65 72 69 63 61 |ght-hand| .verica|
|00002500| 6c 20 61 78 69 73 2e 0a | 5c 69 74 65 6d 7b 7b 5c |l axis..|\item{{\|
|00002510| 74 74 20 6e 20 3a 7d 7d | 20 57 72 69 74 65 73 20 |tt n :}}| Writes |
|00002520| 6e 75 6d 65 72 69 63 20 | 6c 61 62 65 6c 73 20 61 |numeric |labels a|
|00002530| 74 20 6d 61 6a 6f 72 20 | 74 69 63 6b 20 69 6e 74 |t major |tick int|
|00002540| 65 72 76 61 6c 73 20 6f | 6e 20 74 68 65 20 6c 65 |ervals o|n the le|
|00002550| 66 74 2d 68 61 6e 64 20 | 0a 76 65 72 69 63 61 6c |ft-hand |.verical|
|00002560| 20 61 78 69 73 2e 0a 5c | 69 74 65 6d 7b 7b 5c 74 | axis..\|item{{\t|
|00002570| 74 20 73 20 3a 7d 7d 20 | 45 6e 61 62 6c 65 73 20 |t s :}} |Enables |
|00002580| 73 75 62 74 69 63 6b 73 | 20 62 65 74 77 65 65 6e |subticks| between|
|00002590| 20 6d 61 6a 6f 72 20 74 | 69 63 6b 73 2c 20 6f 6e | major t|icks, on|
|000025a0| 6c 79 20 76 61 6c 69 64 | 20 69 66 20 7b 5c 74 74 |ly valid| if {\tt|
|000025b0| 20 74 7d 20 69 73 0a 61 | 6c 73 6f 20 73 70 65 63 | t} is.a|lso spec|
|000025c0| 69 66 69 65 64 2e 0a 5c | 69 74 65 6d 7b 7b 5c 74 |ified..\|item{{\t|
|000025d0| 74 20 74 20 3a 7d 7d 20 | 44 72 61 77 73 20 6d 61 |t t :}} |Draws ma|
|000025e0| 6a 6f 72 20 74 69 63 6b | 73 2e 0a 5c 69 74 65 6d |jor tick|s..\item|
|000025f0| 7b 7b 5c 74 74 20 75 20 | 3a 7d 7d 20 49 66 20 74 |{{\tt u |:}} If t|
|00002600| 68 69 73 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |his is s|pecified|
|00002610| 2c 20 74 68 65 20 74 65 | 78 74 20 6c 61 62 65 6c |, the te|xt label|
|00002620| 20 69 73 20 77 72 69 74 | 74 65 6e 20 62 65 73 69 | is writ|ten besi|
|00002630| 64 65 20 74 68 65 20 0a | 6c 65 66 74 2d 68 61 6e |de the .|left-han|
|00002640| 64 20 61 78 69 73 2e 0a | 5c 69 74 65 6d 7b 7b 5c |d axis..|\item{{\|
|00002650| 74 74 20 76 20 3a 7d 7d | 20 49 66 20 74 68 69 73 |tt v :}}| If this|
|00002660| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 2c 20 74 | is spec|ified, t|
|00002670| 68 65 20 74 65 78 74 20 | 6c 61 62 65 6c 20 69 73 |he text |label is|
|00002680| 20 77 72 69 74 74 65 6e | 20 62 65 73 69 64 65 20 | written| beside |
|00002690| 74 68 65 0a 72 69 67 68 | 74 2d 68 61 6e 64 20 61 |the.righ|t-hand a|
|000026a0| 78 69 73 2e 0a 5c 65 6e | 64 7b 69 74 65 6d 69 7a |xis..\en|d{itemiz|
|000026b0| 65 7d 0a 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |e}.}..\a|rgu {{\t|
|000026c0| 74 20 7a 6c 61 62 65 6c | 7d 20 28 63 68 61 72 20 |t zlabel|} (char |
|000026d0| 2a 2c 20 69 6e 70 75 74 | 29 7d 7b 50 6f 69 6e 74 |*, input|)}{Point|
|000026e0| 65 72 20 74 6f 0a 63 68 | 61 72 61 63 74 65 72 20 |er to.ch|aracter |
|000026f0| 73 74 72 69 6e 67 20 73 | 70 65 63 69 66 79 69 6e |string s|pecifyin|
|00002700| 67 20 74 65 78 74 20 6c | 61 62 65 6c 0a 66 6f 72 |g text l|abel.for|
|00002710| 20 74 68 65 20 7a 7e 61 | 78 69 73 2e 20 49 74 20 | the z~a|xis. It |
|00002720| 69 73 20 6f 6e 6c 79 20 | 64 72 61 77 6e 20 69 66 |is only |drawn if|
|00002730| 20 7b 5c 74 74 20 75 7d | 20 6f 72 20 7b 5c 74 74 | {\tt u}| or {\tt|
|00002740| 20 76 7d 20 61 72 65 20 | 69 6e 20 74 68 65 20 7b | v} are |in the {|
|00002750| 5c 74 74 20 7a 6f 70 74 | 7d 20 73 74 72 69 6e 67 |\tt zopt|} string|
|00002760| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00002770| 7a 74 69 63 6b 7d 20 28 | 66 6c 6f 61 74 2c 20 69 |ztick} (|float, i|
|00002780| 6e 70 75 74 29 7d 7b 57 | 6f 72 6c 64 20 63 6f 6f |nput)}{W|orld coo|
|00002790| 72 64 69 6e 61 74 65 20 | 69 6e 74 65 72 76 61 6c |rdinate |interval|
|000027a0| 20 62 65 74 77 65 65 6e | 20 6d 61 6a 6f 72 20 74 | between| major t|
|000027b0| 69 63 6b 73 0a 6f 6e 20 | 74 68 65 20 7a 7e 61 78 |icks.on |the z~ax|
|000027c0| 69 73 2e 20 49 66 20 69 | 74 20 69 73 20 73 65 74 |is. If i|t is set|
|000027d0| 20 74 6f 20 7a 65 72 6f | 2c 20 50 4c 50 4c 4f 54 | to zero|, PLPLOT|
|000027e0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 67 | automat|ically g|
|000027f0| 65 6e 65 72 61 74 65 73 | 20 61 0a 73 75 69 74 61 |enerates| a.suita|
|00002800| 62 6c 65 20 74 69 63 6b | 20 69 6e 74 65 72 76 61 |ble tick| interva|
|00002810| 6c 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |l.}..\ar|gu {{\tt|
|00002820| 20 6e 7a 73 75 62 7d 20 | 28 69 6e 74 2c 20 69 6e | nzsub} |(int, in|
|00002830| 70 75 74 29 7d 7b 4e 75 | 6d 62 65 72 20 6f 66 20 |put)}{Nu|mber of |
|00002840| 73 75 62 69 6e 74 65 72 | 76 61 6c 73 20 62 65 74 |subinter|vals bet|
|00002850| 77 65 65 6e 20 6d 61 6a | 6f 72 20 7a 7e 61 78 69 |ween maj|or z~axi|
|00002860| 73 0a 74 69 63 6b 73 20 | 66 6f 72 20 6d 69 6e 6f |s.ticks |for mino|
|00002870| 72 20 74 69 63 6b 73 2e | 20 49 66 20 69 74 20 69 |r ticks.| If it i|
|00002880| 73 20 73 65 74 20 74 6f | 20 7a 65 72 6f 2c 20 50 |s set to| zero, P|
|00002890| 4c 50 4c 4f 54 20 61 75 | 74 6f 6d 61 74 69 63 61 |LPLOT au|tomatica|
|000028a0| 6c 6c 79 20 67 65 6e 65 | 72 61 74 65 73 20 61 0a |lly gene|rates a.|
|000028b0| 73 75 69 74 61 62 6c 65 | 20 6d 69 6e 6f 72 20 74 |suitable| minor t|
|000028c0| 69 63 6b 20 69 6e 74 65 | 72 76 61 6c 2e 7d 0a 0a |ick inte|rval.}..|
|000028d0| 0a 0a 5c 62 6e 61 6d 65 | 7b 70 6c 63 6c 72 28 29 |..\bname|{plclr()|
|000028e0| 3b 7d 5c 6c 61 62 65 6c | 7b 70 6c 63 6c 72 7d 0a |;}\label|{plclr}.|
|000028f0| 5c 61 64 64 63 6f 6e 74 | 65 6e 74 73 6c 69 6e 65 |\addcont|entsline|
|00002900| 7b 74 6f 63 7d 7b 73 75 | 62 73 65 63 74 69 6f 6e |{toc}{su|bsection|
|00002910| 7d 7b 70 6c 63 6c 72 7d | 0a 0a 5c 64 65 73 63 72 |}{plclr}|..\descr|
|00002920| 7b 43 6c 65 61 72 73 20 | 74 68 65 20 67 72 61 70 |{Clears |the grap|
|00002930| 68 69 63 73 20 73 63 72 | 65 65 6e 20 6f 66 20 61 |hics scr|een of a|
|00002940| 6e 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 64 65 |n intera|ctive de|
|00002950| 76 69 63 65 2c 20 6f 72 | 20 65 6a 65 63 74 73 0a |vice, or| ejects.|
|00002960| 20 20 20 20 20 20 20 61 | 20 70 61 67 65 20 6f 6e | a| page on|
|00002970| 20 61 20 70 6c 6f 74 74 | 65 72 2e 7d 0a 0a 5c 62 | a plott|er.}..\b|
|00002980| 6e 61 6d 65 7b 70 6c 63 | 6f 6c 28 63 6f 6c 6f 75 |name{plc|ol(colou|
|00002990| 72 29 3b 7d 5c 6c 61 62 | 65 6c 7b 70 6c 63 6f 6c |r);}\lab|el{plcol|
|000029a0| 7d 0a 5c 61 64 64 63 6f | 6e 74 65 6e 74 73 6c 69 |}.\addco|ntentsli|
|000029b0| 6e 65 7b 74 6f 63 7d 7b | 73 75 62 73 65 63 74 69 |ne{toc}{|subsecti|
|000029c0| 6f 6e 7d 7b 70 6c 63 6f | 6c 7d 0a 0a 5c 64 65 73 |on}{plco|l}..\des|
|000029d0| 63 72 7b 53 65 74 73 20 | 74 68 65 20 63 6f 6c 6f |cr{Sets |the colo|
|000029e0| 75 72 20 66 6f 72 20 73 | 75 62 73 65 71 75 65 6e |ur for s|ubsequen|
|000029f0| 74 20 6c 69 6e 65 73 2e | 7d 0a 0a 5c 61 72 67 75 |t lines.|}..\argu|
|00002a00| 20 7b 7b 5c 74 74 20 63 | 6f 6c 6f 75 72 7d 20 28 | {{\tt c|olour} (|
|00002a10| 69 6e 74 2c 20 69 6e 70 | 75 74 29 7d 7b 49 6e 74 |int, inp|ut)}{Int|
|00002a20| 65 67 65 72 20 72 65 70 | 72 65 73 65 6e 74 69 6e |eger rep|resentin|
|00002a30| 67 20 74 68 65 20 63 6f | 6c 6f 75 72 2e 7d 0a 0a |g the co|lour.}..|
|00002a40| 5c 62 6e 61 6d 65 7b 70 | 6c 63 6f 6e 74 28 7a 2c |\bname{p|lcont(z,|
|00002a50| 6e 78 2c 6e 79 2c 6b 78 | 2c 6c 78 2c 6b 79 2c 6c |nx,ny,kx|,lx,ky,l|
|00002a60| 79 2c 63 6c 65 76 65 6c | 2c 6e 6c 65 76 65 6c 2c |y,clevel|,nlevel,|
|00002a70| 74 72 29 3b 7d 5c 6c 61 | 62 65 6c 7b 70 6c 63 6f |tr);}\la|bel{plco|
|00002a80| 6e 74 7d 0a 5c 61 64 64 | 63 6f 6e 74 65 6e 74 73 |nt}.\add|contents|
|00002a90| 6c 69 6e 65 7b 74 6f 63 | 7d 7b 73 75 62 73 65 63 |line{toc|}{subsec|
|00002aa0| 74 69 6f 6e 7d 7b 70 6c | 63 6f 6e 74 7d 0a 0a 5c |tion}{pl|cont}..\|
|00002ab0| 64 65 73 63 72 7b 44 72 | 61 77 73 20 61 20 63 6f |descr{Dr|aws a co|
|00002ac0| 6e 74 6f 75 72 20 70 6c | 6f 74 20 6f 66 20 74 68 |ntour pl|ot of th|
|00002ad0| 65 20 64 61 74 61 20 69 | 6e 20 7b 5c 74 74 20 7a |e data i|n {\tt z|
|00002ae0| 5b 6e 78 5d 5b 6e 79 5d | 7d 2c 20 75 73 69 6e 67 |[nx][ny]|}, using|
|00002af0| 20 74 68 65 20 0a 20 20 | 20 20 20 20 20 20 7b 5c | the . | {\|
|00002b00| 74 74 20 6e 6c 65 76 65 | 6c 7d 20 63 6f 6e 74 6f |tt nleve|l} conto|
|00002b10| 75 72 20 6c 65 76 65 6c | 73 20 73 70 65 63 69 66 |ur level|s specif|
|00002b20| 69 65 64 20 62 79 20 7b | 5c 74 74 20 63 6c 65 76 |ied by {|\tt clev|
|00002b30| 65 6c 7d 2e 20 4f 6e 6c | 79 0a 20 20 20 20 20 20 |el}. Onl|y. |
|00002b40| 20 20 74 68 65 20 72 65 | 67 69 6f 6e 20 6f 66 20 | the re|gion of |
|00002b50| 74 68 65 20 61 72 72 61 | 79 20 66 72 6f 6d 20 7b |the arra|y from {|
|00002b60| 5c 74 74 20 6b 78 7d 20 | 74 6f 20 7b 5c 74 74 20 |\tt kx} |to {\tt |
|00002b70| 6c 78 7d 20 61 6e 64 20 | 66 72 6f 6d 20 7b 5c 74 |lx} and |from {\t|
|00002b80| 74 20 6b 79 7d 0a 20 20 | 20 20 20 20 20 20 74 6f |t ky}. | to|
|00002b90| 20 7b 5c 74 74 20 6c 79 | 7d 20 69 73 20 70 6c 6f | {\tt ly|} is plo|
|00002ba0| 74 74 65 64 20 6f 75 74 | 2e 20 41 20 74 72 61 6e |tted out|. A tran|
|00002bb0| 73 66 6f 72 6d 61 74 69 | 6f 6e 20 72 6f 75 74 69 |sformati|on routi|
|00002bc0| 6e 65 20 7b 5c 74 74 20 | 74 72 7d 20 69 73 0a 20 |ne {\tt |tr} is. |
|00002bd0| 20 20 20 20 20 20 20 75 | 73 65 64 20 74 6f 20 6d | u|sed to m|
|00002be0| 61 70 20 69 6e 64 69 63 | 69 65 73 20 77 69 74 68 |ap indic|ies with|
|00002bf0| 69 6e 20 74 68 65 20 61 | 72 72 61 79 20 74 6f 20 |in the a|rray to |
|00002c00| 74 68 65 20 77 6f 72 6c | 64 20 63 6f 6f 72 64 69 |the worl|d coordi|
|00002c10| 6e 61 74 65 73 0a 20 20 | 20 20 20 20 20 20 28 73 |nates. | (s|
|00002c20| 65 65 20 53 65 63 74 69 | 6f 6e 20 5c 72 65 66 7b |ee Secti|on \ref{|
|00002c30| 63 6f 6e 74 6f 75 72 7d | 20 6f 6e 20 70 61 67 65 |contour}| on page|
|00002c40| 20 5c 72 65 66 7b 63 6f | 6e 74 6f 75 72 7d 29 2e | \ref{co|ntour}).|
|00002c50| 0a 20 20 20 20 20 20 20 | 20 7d 0a 0a 5c 61 72 67 |. | }..\arg|
|00002c60| 75 20 7b 7b 5c 74 74 20 | 7a 7d 20 28 66 6c 6f 61 |u {{\tt |z} (floa|
|00002c70| 74 20 2a 2c 20 69 6e 70 | 75 74 29 7d 20 0a 20 20 |t *, inp|ut)} . |
|00002c80| 20 20 20 20 20 7b 50 6f | 69 6e 74 65 72 20 74 6f | {Po|inter to|
|00002c90| 20 61 20 74 77 6f 2d 64 | 69 6d 65 6e 73 69 6f 6e | a two-d|imension|
|00002ca0| 61 6c 20 61 72 72 61 79 | 20 63 6f 6e 74 61 69 6e |al array| contain|
|00002cb0| 69 6e 67 20 64 61 74 61 | 20 0a 20 20 20 20 20 20 |ing data| . |
|00002cc0| 20 20 74 6f 20 62 65 20 | 63 6f 6e 74 6f 75 72 65 | to be |contoure|
|00002cd0| 64 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |d.}..\ar|gu {{\tt|
|00002ce0| 20 6e 78 2c 20 6e 79 7d | 20 28 69 6e 74 2c 20 69 | nx, ny}| (int, i|
|00002cf0| 6e 70 75 74 29 7d 20 7b | 50 68 79 73 69 63 61 6c |nput)} {|Physical|
|00002d00| 20 64 69 6d 65 6e 73 69 | 6f 6e 73 20 6f 66 20 61 | dimensi|ons of a|
|00002d10| 72 72 61 79 20 7b 5c 74 | 74 20 7a 7d 2e 7d 0a 0a |rray {\t|t z}.}..|
|00002d20| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6b 78 2c 20 |\argu {{|\tt kx, |
|00002d30| 6c 78 7d 20 28 69 6e 74 | 2c 20 69 6e 70 75 74 29 |lx} (int|, input)|
|00002d40| 7d 20 7b 52 61 6e 67 65 | 20 6f 66 20 7b 5c 74 74 |} {Range| of {\tt|
|00002d50| 20 78 7d 20 69 6e 64 69 | 63 69 65 73 20 74 6f 20 | x} indi|cies to |
|00002d60| 63 6f 6e 73 69 64 65 72 | 2e 7d 0a 0a 5c 61 72 67 |consider|.}..\arg|
|00002d70| 75 20 7b 7b 5c 74 74 20 | 6b 79 2c 20 6c 79 7d 20 |u {{\tt |ky, ly} |
|00002d80| 28 69 6e 74 2c 20 69 6e | 70 75 74 29 7d 20 7b 52 |(int, in|put)} {R|
|00002d90| 61 6e 67 65 20 6f 66 20 | 7b 5c 74 74 20 79 7d 20 |ange of |{\tt y} |
|00002da0| 69 6e 64 69 63 69 65 73 | 20 74 6f 20 63 6f 6e 73 |indicies| to cons|
|00002db0| 69 64 65 72 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |ider.}..|\argu {{|
|00002dc0| 5c 74 74 20 63 6c 65 76 | 65 6c 7d 20 28 66 6c 6f |\tt clev|el} (flo|
|00002dd0| 61 74 20 2a 2c 20 69 6e | 70 75 74 29 7d 20 7b 50 |at *, in|put)} {P|
|00002de0| 6f 69 6e 74 65 72 20 74 | 6f 20 61 72 72 61 79 20 |ointer t|o array |
|00002df0| 73 70 65 63 69 66 79 69 | 6e 67 0a 20 20 20 20 20 |specifyi|ng. |
|00002e00| 20 20 20 20 20 20 20 6c | 65 76 65 6c 73 20 61 74 | l|evels at|
|00002e10| 20 77 68 69 63 68 20 74 | 6f 20 64 72 61 77 20 63 | which t|o draw c|
|00002e20| 6f 6e 74 6f 75 72 73 2e | 7d 0a 0a 5c 61 72 67 75 |ontours.|}..\argu|
|00002e30| 20 7b 7b 5c 74 74 20 6e | 6c 65 76 65 6c 7d 20 28 | {{\tt n|level} (|
|00002e40| 69 6e 74 2c 20 69 6e 70 | 75 74 29 7d 20 7b 4e 75 |int, inp|ut)} {Nu|
|00002e50| 6d 62 65 72 20 6f 66 20 | 63 6f 6e 74 6f 75 72 20 |mber of |contour |
|00002e60| 6c 65 76 65 6c 73 20 74 | 6f 20 64 72 61 77 2e 7d |levels t|o draw.}|
|00002e70| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 74 72 |..\argu |{{\tt tr|
|00002e80| 7d 20 28 76 6f 69 64 20 | 2a 2c 69 6e 70 75 74 29 |} (void |*,input)|
|00002e90| 7d 20 7b 50 6f 69 6e 74 | 65 72 20 74 6f 20 66 75 |} {Point|er to fu|
|00002ea0| 6e 63 74 69 6f 6e 20 74 | 68 61 74 0a 64 65 66 69 |nction t|hat.defi|
|00002eb0| 6e 65 73 20 74 72 61 6e | 73 66 6f 72 6d 61 74 69 |nes tran|sformati|
|00002ec0| 6f 6e 20 62 65 74 77 65 | 65 6e 20 69 6e 64 69 63 |on betwe|en indic|
|00002ed0| 69 65 73 0a 69 6e 20 61 | 72 72 61 79 20 7b 5c 74 |ies.in a|rray {\t|
|00002ee0| 74 20 7a 7d 20 61 6e 64 | 20 74 68 65 20 77 6f 72 |t z} and| the wor|
|00002ef0| 6c 64 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 2e 20 |ld coord|inates. |
|00002f00| 54 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 73 68 6f |The func|tion sho|
|00002f10| 75 6c 64 20 68 61 76 65 | 20 74 68 65 0a 66 6f 72 |uld have| the.for|
|00002f20| 6d 0a 5c 6e 61 6d 65 7b | 74 72 28 78 2c 79 2c 74 |m.\name{|tr(x,y,t|
|00002f30| 78 2c 74 79 29 3b 7d 0a | 5c 61 72 67 75 20 7b 7b |x,ty);}.|\argu {{|
|00002f40| 5c 74 74 20 78 2c 20 79 | 7d 20 28 66 6c 6f 61 74 |\tt x, y|} (float|
|00002f50| 2c 20 69 6e 70 75 74 29 | 7d 7b 20 53 70 65 63 69 |, input)|}{ Speci|
|00002f60| 66 69 65 73 20 74 68 65 | 20 70 6f 73 69 74 69 6f |fies the| positio|
|00002f70| 6e 20 69 6e 20 74 68 65 | 20 61 72 72 61 79 20 74 |n in the| array t|
|00002f80| 68 72 6f 75 67 68 0a 77 | 68 69 63 68 20 74 68 65 |hrough.w|hich the|
|00002f90| 20 63 6f 6e 74 6f 75 72 | 20 72 75 6e 73 20 69 6e | contour| runs in|
|00002fa0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 61 72 | terms o|f the ar|
|00002fb0| 72 61 79 20 69 6e 64 69 | 63 69 65 73 2e 7d 0a 5c |ray indi|cies.}.\|
|00002fc0| 61 72 67 75 20 7b 7b 5c | 74 74 20 74 78 2c 20 74 |argu {{\|tt tx, t|
|00002fd0| 79 7d 20 28 66 6c 6f 61 | 74 20 2a 2c 20 6f 75 74 |y} (floa|t *, out|
|00002fe0| 70 75 74 29 7d 7b 50 6f | 69 6e 74 65 72 73 20 74 |put)}{Po|inters t|
|00002ff0| 6f 20 74 68 65 0a 77 6f | 72 6c 64 20 63 6f 6f 72 |o the.wo|rld coor|
|00003000| 64 69 6e 61 74 65 73 20 | 63 6f 72 72 65 73 70 6f |dinates |correspo|
|00003010| 6e 64 69 6e 67 20 74 6f | 20 74 68 65 0a 70 6f 69 |nding to| the.poi|
|00003020| 6e 74 20 7b 5c 74 74 20 | 28 78 2c 79 29 7d 2e 7d |nt {\tt |(x,y)}.}|
|00003030| 0a 7d 0a 41 20 74 72 61 | 6e 73 66 6f 72 6d 61 74 |.}.A tra|nsformat|
|00003040| 69 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 20 7b 5c 74 |ion func|tion {\t|
|00003050| 74 20 78 66 6f 72 6d 7d | 20 69 73 20 70 72 6f 76 |t xform}| is prov|
|00003060| 69 64 65 64 20 66 6f 72 | 20 73 69 6d 70 6c 65 20 |ided for| simple |
|00003070| 6c 69 6e 65 61 72 20 6d | 61 70 70 69 6e 67 73 2e |linear m|appings.|
|00003080| 0a 53 65 65 20 53 65 63 | 74 69 6f 6e 20 5c 72 65 |.See Sec|tion \re|
|00003090| 66 7b 63 6f 6e 74 6f 75 | 72 7d 20 66 6f 72 20 69 |f{contou|r} for i|
|000030a0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0a 0a 5c 62 6e |nformati|on...\bn|
|000030b0| 61 6d 65 7b 70 6c 65 6e | 64 28 29 3b 7d 5c 6c 61 |ame{plen|d();}\la|
|000030c0| 62 65 6c 7b 70 6c 65 6e | 64 7d 0a 5c 61 64 64 63 |bel{plen|d}.\addc|
|000030d0| 6f 6e 74 65 6e 74 73 6c | 69 6e 65 7b 74 6f 63 7d |ontentsl|ine{toc}|
|000030e0| 7b 73 75 62 73 65 63 74 | 69 6f 6e 7d 7b 70 6c 65 |{subsect|ion}{ple|
|000030f0| 6e 64 7d 0a 0a 5c 64 65 | 73 63 72 7b 45 6e 64 73 |nd}..\de|scr{Ends|
|00003100| 20 61 20 70 6c 6f 74 74 | 69 6e 67 20 73 65 73 73 | a plott|ing sess|
|00003110| 69 6f 6e 2c 20 74 69 64 | 69 65 73 20 75 70 20 61 |ion, tid|ies up a|
|00003120| 6c 6c 20 74 68 65 20 6f | 75 74 70 75 74 20 66 69 |ll the o|utput fi|
|00003130| 6c 65 73 2c 20 0a 20 20 | 20 20 20 20 20 73 77 69 |les, . | swi|
|00003140| 74 63 68 65 73 20 69 6e | 74 65 72 61 63 74 69 76 |tches in|teractiv|
|00003150| 65 20 64 65 76 69 63 65 | 73 20 62 61 63 6b 20 69 |e device|s back i|
|00003160| 6e 74 6f 20 74 65 78 74 | 20 6d 6f 64 65 20 61 6e |nto text| mode an|
|00003170| 64 20 66 72 65 65 73 20 | 75 70 0a 20 20 20 20 20 |d frees |up. |
|00003180| 20 20 61 6e 79 20 6d 65 | 6d 6f 72 79 20 74 68 61 | any me|mory tha|
|00003190| 74 20 77 61 73 20 61 6c | 6c 6f 63 61 74 65 64 2e |t was al|located.|
|000031a0| 20 4d 75 73 74 20 62 65 | 20 63 61 6c 6c 65 64 0a | Must be| called.|
|000031b0| 20 20 20 20 20 20 20 62 | 65 66 6f 72 65 20 65 6e | b|efore en|
|000031c0| 64 20 6f 66 20 70 72 6f | 67 72 61 6d 2e 7d 0a 0a |d of pro|gram.}..|
|000031d0| 0a 0a 5c 62 6e 61 6d 65 | 7b 70 6c 65 6e 76 28 78 |..\bname|{plenv(x|
|000031e0| 6d 69 6e 2c 78 6d 61 78 | 2c 79 6d 69 6e 2c 79 6d |min,xmax|,ymin,ym|
|000031f0| 61 78 2c 6a 75 73 74 2c | 61 78 69 73 29 3b 7d 5c |ax,just,|axis);}\|
|00003200| 6c 61 62 65 6c 7b 70 6c | 65 6e 76 7d 0a 5c 61 64 |label{pl|env}.\ad|
|00003210| 64 63 6f 6e 74 65 6e 74 | 73 6c 69 6e 65 7b 74 6f |dcontent|sline{to|
|00003220| 63 7d 7b 73 75 62 73 65 | 63 74 69 6f 6e 7d 7b 70 |c}{subse|ction}{p|
|00003230| 6c 65 6e 76 7d 0a 0a 5c | 64 65 73 63 72 7b 53 65 |lenv}..\|descr{Se|
|00003240| 74 73 20 75 70 20 70 6c | 6f 74 74 65 72 20 65 6e |ts up pl|otter en|
|00003250| 76 69 72 6f 6e 6d 65 6e | 74 20 66 6f 72 20 73 69 |vironmen|t for si|
|00003260| 6d 70 6c 65 20 67 72 61 | 70 68 73 20 62 79 20 63 |mple gra|phs by c|
|00003270| 61 6c 6c 69 6e 67 20 7b | 5c 74 74 20 70 6c 61 64 |alling {|\tt plad|
|00003280| 76 7d 0a 61 6e 64 20 73 | 65 74 74 69 6e 67 20 75 |v}.and s|etting u|
|00003290| 70 20 76 69 65 77 70 6f | 72 74 20 61 6e 64 20 77 |p viewpo|rt and w|
|000032a0| 69 6e 64 6f 77 20 74 6f | 20 73 65 6e 73 69 62 6c |indow to| sensibl|
|000032b0| 65 20 64 65 66 61 75 6c | 74 20 76 61 6c 75 65 73 |e defaul|t values|
|000032c0| 2e 20 7b 5c 74 74 20 70 | 6c 65 6e 76 7d 20 6c 65 |. {\tt p|lenv} le|
|000032d0| 61 76 65 73 0a 65 6e 6f | 75 67 68 20 72 6f 6f 6d |aves.eno|ugh room|
|000032e0| 20 61 72 6f 75 6e 64 20 | 6d 6f 73 74 20 67 72 61 | around |most gra|
|000032f0| 70 68 73 20 66 6f 72 20 | 61 78 69 73 20 6c 61 62 |phs for |axis lab|
|00003300| 65 6c 73 20 61 6e 64 20 | 61 20 74 69 74 6c 65 2e |els and |a title.|
|00003310| 20 57 68 65 6e 20 74 68 | 65 73 65 0a 64 65 66 61 | When th|ese.defa|
|00003320| 75 6c 74 73 20 61 72 65 | 20 6e 6f 74 20 73 75 69 |ults are| not sui|
|00003330| 74 61 62 6c 65 2c 20 75 | 73 65 20 74 68 65 20 69 |table, u|se the i|
|00003340| 6e 64 69 76 69 64 75 61 | 6c 20 72 6f 75 74 69 6e |ndividua|l routin|
|00003350| 65 73 20 7b 5c 74 74 20 | 70 6c 76 73 70 61 7d 20 |es {\tt |plvspa} |
|00003360| 6f 72 20 7b 5c 74 74 20 | 70 6c 76 70 6f 72 7d 0a |or {\tt |plvpor}.|
|00003370| 66 6f 72 20 73 65 74 74 | 69 6e 67 20 75 70 20 74 |for sett|ing up t|
|00003380| 68 65 20 76 69 65 77 70 | 6f 72 74 2c 20 7b 5c 74 |he viewp|ort, {\t|
|00003390| 74 20 70 6c 77 69 6e 64 | 7d 20 66 6f 72 20 64 65 |t plwind|} for de|
|000033a0| 66 69 6e 69 6e 67 20 74 | 68 65 20 77 69 6e 64 6f |fining t|he windo|
|000033b0| 77 2c 20 61 6e 64 20 7b | 5c 74 74 20 70 6c 62 6f |w, and {|\tt plbo|
|000033c0| 78 7d 0a 66 6f 72 20 64 | 72 61 77 69 6e 67 20 74 |x}.for d|rawing t|
|000033d0| 68 65 20 62 6f 78 2e 7d | 0a 0a 5c 61 72 67 75 20 |he box.}|..\argu |
|000033e0| 7b 7b 5c 74 74 20 78 6d | 69 6e 7d 20 28 66 6c 6f |{{\tt xm|in} (flo|
|000033f0| 61 74 2c 20 69 6e 70 75 | 74 29 7d 7b 56 61 6c 75 |at, inpu|t)}{Valu|
|00003400| 65 20 6f 66 7e 78 20 61 | 74 20 6c 65 66 74 2d 68 |e of~x a|t left-h|
|00003410| 61 6e 64 20 65 64 67 65 | 20 6f 66 20 77 69 6e 64 |and edge| of wind|
|00003420| 6f 77 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |ow.}..\a|rgu {{\t|
|00003430| 74 20 78 6d 61 78 7d 20 | 28 66 6c 6f 61 74 2c 20 |t xmax} |(float, |
|00003440| 69 6e 70 75 74 29 7d 7b | 56 61 6c 75 65 20 6f 66 |input)}{|Value of|
|00003450| 7e 78 20 61 74 20 72 69 | 67 68 74 2d 68 61 6e 64 |~x at ri|ght-hand|
|00003460| 20 65 64 67 65 20 6f 66 | 20 77 69 6e 64 6f 77 2e | edge of| window.|
|00003470| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 79 |}..\argu| {{\tt y|
|00003480| 6d 69 6e 7d 20 28 66 6c | 6f 61 74 2c 20 69 6e 70 |min} (fl|oat, inp|
|00003490| 75 74 29 7d 7b 56 61 6c | 75 65 20 6f 66 7e 79 20 |ut)}{Val|ue of~y |
|000034a0| 61 74 20 62 6f 74 74 6f | 6d 20 65 64 67 65 20 6f |at botto|m edge o|
|000034b0| 66 20 77 69 6e 64 6f 77 | 2e 7d 0a 0a 5c 61 72 67 |f window|.}..\arg|
|000034c0| 75 20 7b 7b 5c 74 74 20 | 79 6d 61 78 7d 20 28 66 |u {{\tt |ymax} (f|
|000034d0| 6c 6f 61 74 2c 20 69 6e | 70 75 74 29 7d 7b 56 61 |loat, in|put)}{Va|
|000034e0| 6c 75 65 20 6f 66 7e 79 | 20 61 74 20 74 6f 70 20 |lue of~y| at top |
|000034f0| 65 64 67 65 20 6f 66 20 | 77 69 6e 64 6f 77 2e 7d |edge of |window.}|
|00003500| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 6a 75 |..\argu |{{\tt ju|
|00003510| 73 74 7d 20 28 69 6e 74 | 2c 20 69 6e 70 75 74 29 |st} (int|, input)|
|00003520| 7d 7b 49 66 20 7b 5c 74 | 74 20 6a 75 73 74 3d 30 |}{If {\t|t just=0|
|00003530| 7d 2c 20 74 68 65 20 78 | 7e 61 6e 64 7e 79 20 61 |}, the x|~and~y a|
|00003540| 78 65 73 20 61 72 65 20 | 73 63 61 6c 65 64 0a 69 |xes are |scaled.i|
|00003550| 6e 64 65 70 65 6e 64 65 | 6e 74 6c 79 20 74 6f 20 |ndepende|ntly to |
|00003560| 75 73 65 20 61 73 20 6d | 75 63 68 20 6f 66 20 74 |use as m|uch of t|
|00003570| 68 65 20 73 63 72 65 65 | 6e 20 61 73 20 70 6f 73 |he scree|n as pos|
|00003580| 73 69 62 6c 65 2c 20 62 | 75 74 20 69 66 20 7b 5c |sible, b|ut if {\|
|00003590| 74 74 20 6a 75 73 74 3d | 31 7d 2c 20 74 68 65 0a |tt just=|1}, the.|
|000035a0| 73 63 61 6c 65 73 20 6f | 66 20 74 68 65 20 78 7e |scales o|f the x~|
|000035b0| 61 6e 64 7e 79 20 61 78 | 65 73 20 61 72 65 20 6d |and~y ax|es are m|
|000035c0| 61 64 65 20 65 71 75 61 | 6c 2e 7d 0a 0a 5c 61 72 |ade equa|l.}..\ar|
|000035d0| 67 75 20 7b 7b 5c 74 74 | 20 61 78 69 73 7d 20 28 |gu {{\tt| axis} (|
|000035e0| 69 6e 74 2c 20 69 6e 70 | 75 74 29 7d 7b 43 6f 6e |int, inp|ut)}{Con|
|000035f0| 74 72 6f 6c 73 20 64 72 | 61 77 69 6e 67 20 6f 66 |trols dr|awing of|
|00003600| 20 74 68 65 20 62 6f 78 | 20 61 72 6f 75 6e 64 20 | the box| around |
|00003610| 74 68 65 20 70 6c 6f 74 | 3a 0a 5c 62 65 67 69 6e |the plot|:.\begin|
|00003620| 7b 69 74 65 6d 69 7a 65 | 7d 0a 5c 69 74 65 6d 7b |{itemize|}.\item{|
|00003630| 2d 32 7d 3a 20 4e 6f 20 | 62 6f 78 20 6f 72 20 61 |-2}: No |box or a|
|00003640| 6e 6e 6f 74 61 74 69 6f | 6e 2e 0a 5c 69 74 65 6d |nnotatio|n..\item|
|00003650| 7b 2d 31 7d 3a 20 44 72 | 61 77 20 62 6f 78 20 6f |{-1}: Dr|aw box o|
|00003660| 6e 6c 79 2e 0a 5c 69 74 | 65 6d 7b 30 7d 3a 20 44 |nly..\it|em{0}: D|
|00003670| 72 61 77 20 62 6f 78 2c | 20 6c 61 62 65 6c 6c 65 |raw box,| labelle|
|00003680| 64 20 77 69 74 68 20 63 | 6f 6f 72 64 69 6e 61 74 |d with c|oordinat|
|00003690| 65 20 76 61 6c 75 65 73 | 20 61 72 6f 75 6e 64 20 |e values| around |
|000036a0| 65 64 67 65 2e 0a 5c 69 | 74 65 6d 7b 31 7d 3a 20 |edge..\i|tem{1}: |
|000036b0| 49 6e 20 61 64 64 69 74 | 69 6f 6e 20 74 6f 20 62 |In addit|ion to b|
|000036c0| 6f 78 20 61 6e 64 20 6c | 61 62 65 6c 73 2c 20 64 |ox and l|abels, d|
|000036d0| 72 61 77 20 74 68 65 20 | 74 77 6f 20 61 78 65 73 |raw the |two axes|
|000036e0| 20 0a 7b 5c 74 74 20 78 | 3d 30 7d 20 61 6e 64 20 | .{\tt x|=0} and |
|000036f0| 7b 5c 74 74 20 79 3d 30 | 7d 2e 0a 5c 69 74 65 6d |{\tt y=0|}..\item|
|00003700| 7b 32 7d 3a 20 41 73 20 | 66 6f 72 20 7b 5c 74 74 |{2}: As |for {\tt|
|00003710| 20 61 78 69 73 3d 31 7d | 2c 20 62 75 74 20 61 6c | axis=1}|, but al|
|00003720| 73 6f 20 64 72 61 77 20 | 61 20 67 72 69 64 20 61 |so draw |a grid a|
|00003730| 74 20 74 68 65 20 6d 61 | 6a 6f 72 20 74 69 63 6b |t the ma|jor tick|
|00003740| 20 69 6e 74 65 72 76 61 | 6c 2e 0a 5c 69 74 65 6d | interva|l..\item|
|00003750| 7b 31 30 7d 3a 20 4c 6f | 67 61 72 69 74 68 6d 69 |{10}: Lo|garithmi|
|00003760| 63 20 78 20 61 78 69 73 | 2c 20 6c 69 6e 65 61 72 |c x axis|, linear|
|00003770| 20 79 20 61 78 69 73 2e | 0a 5c 69 74 65 6d 7b 31 | y axis.|.\item{1|
|00003780| 31 7d 3a 20 4c 6f 67 61 | 72 69 74 68 6d 69 63 20 |1}: Loga|rithmic |
|00003790| 78 20 61 78 69 73 2c 20 | 6c 69 6e 65 61 72 20 79 |x axis, |linear y|
|000037a0| 20 61 78 69 73 20 61 6e | 64 20 64 72 61 77 20 6c | axis an|d draw l|
|000037b0| 69 6e 65 20 7b 5c 74 74 | 20 79 3d 30 7d 2e 0a 5c |ine {\tt| y=0}..\|
|000037c0| 69 74 65 6d 7b 32 30 7d | 3a 20 4c 69 6e 65 61 72 |item{20}|: Linear|
|000037d0| 20 78 20 61 78 69 73 2c | 20 6c 6f 67 61 72 69 74 | x axis,| logarit|
|000037e0| 68 6d 69 63 20 79 20 61 | 78 69 73 2e 0a 5c 69 74 |hmic y a|xis..\it|
|000037f0| 65 6d 7b 32 31 7d 3a 20 | 4c 69 6e 65 61 72 20 78 |em{21}: |Linear x|
|00003800| 20 61 78 69 73 2c 20 6c | 6f 67 61 72 69 74 68 6d | axis, l|ogarithm|
|00003810| 69 63 20 79 20 61 78 69 | 73 20 61 6e 64 20 64 72 |ic y axi|s and dr|
|00003820| 61 77 20 6c 69 6e 65 20 | 7b 5c 74 74 20 78 3d 30 |aw line |{\tt x=0|
|00003830| 7d 2e 0a 5c 69 74 65 6d | 7b 33 30 7d 3a 20 4c 6f |}..\item|{30}: Lo|
|00003840| 67 61 72 69 74 68 6d 69 | 63 20 78 20 61 6e 64 20 |garithmi|c x and |
|00003850| 79 20 61 78 65 73 2e 0a | 5c 65 6e 64 7b 69 74 65 |y axes..|\end{ite|
|00003860| 6d 69 7a 65 7d 0a 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |mize}.}.|...\bnam|
|00003870| 65 7b 70 6c 65 72 72 78 | 28 6e 2c 78 6d 69 6e 2c |e{plerrx|(n,xmin,|
|00003880| 78 6d 61 78 2c 79 29 3b | 7d 5c 6c 61 62 65 6c 7b |xmax,y);|}\label{|
|00003890| 70 6c 65 72 72 78 7d 0a | 5c 61 64 64 63 6f 6e 74 |plerrx}.|\addcont|
|000038a0| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|000038b0| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 65 72 72 78 |bsection|}{plerrx|
|000038c0| 7d 0a 0a 5c 64 65 73 63 | 72 7b 44 72 61 77 73 20 |}..\desc|r{Draws |
|000038d0| 61 20 73 65 74 20 6f 66 | 20 7b 5c 74 74 20 6e 7d |a set of| {\tt n}|
|000038e0| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 20 65 72 72 6f | horizon|tal erro|
|000038f0| 72 20 62 61 72 73 2c 20 | 74 68 65 20 7b 5c 74 74 |r bars, |the {\tt|
|00003900| 20 69 7d 27 74 68 20 65 | 72 72 6f 72 20 62 61 72 | i}'th e|rror bar|
|00003910| 0a 65 78 74 65 6e 64 69 | 6e 67 20 66 72 6f 6d 20 |.extendi|ng from |
|00003920| 7b 5c 74 74 20 78 6d 69 | 6e 5b 69 5d 7d 20 74 6f |{\tt xmi|n[i]} to|
|00003930| 20 7b 5c 74 74 20 78 6d | 61 78 5b 69 5d 7d 20 61 | {\tt xm|ax[i]} a|
|00003940| 74 20 79 7e 63 6f 6f 72 | 64 69 6e 61 74 65 20 7b |t y~coor|dinate {|
|00003950| 5c 74 74 20 79 5b 69 5d | 7d 2e 20 54 68 65 20 74 |\tt y[i]|}. The t|
|00003960| 65 72 6d 69 6e 61 6c 73 | 0a 6f 66 20 74 68 65 20 |erminals|.of the |
|00003970| 65 72 72 6f 72 20 62 61 | 72 20 61 72 65 20 6f 66 |error ba|r are of|
|00003980| 20 6c 65 6e 67 74 68 20 | 65 71 75 61 6c 20 74 6f | length |equal to|
|00003990| 20 74 68 65 20 6d 69 6e | 6f 72 20 74 69 63 6b 20 | the min|or tick |
|000039a0| 6c 65 6e 67 74 68 20 28 | 73 65 74 74 61 62 6c 65 |length (|settable|
|000039b0| 0a 75 73 69 6e 67 20 7b | 5c 74 74 20 70 6c 73 6d |.using {|\tt plsm|
|000039c0| 69 6e 7d 29 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |in}).}..|\argu {{|
|000039d0| 5c 74 74 20 6e 7d 20 28 | 69 6e 74 2c 20 69 6e 70 |\tt n} (|int, inp|
|000039e0| 75 74 29 7d 7b 4e 75 6d | 62 65 72 20 6f 66 20 65 |ut)}{Num|ber of e|
|000039f0| 72 72 6f 72 20 62 61 72 | 73 20 74 6f 20 64 72 61 |rror bar|s to dra|
|00003a00| 77 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |w.}..\ar|gu {{\tt|
|00003a10| 20 78 6d 69 6e 7d 20 28 | 66 6c 6f 61 74 20 2a 2c | xmin} (|float *,|
|00003a20| 20 69 6e 70 75 74 29 7d | 7b 50 6f 69 6e 74 65 72 | input)}|{Pointer|
|00003a30| 20 74 6f 20 61 72 72 61 | 79 20 77 69 74 68 0a 78 | to arra|y with.x|
|00003a40| 7e 63 6f 6f 72 64 69 6e | 61 74 65 73 20 6f 66 20 |~coordin|ates of |
|00003a50| 6c 65 66 74 2d 68 61 6e | 64 20 65 6e 64 70 6f 69 |left-han|d endpoi|
|00003a60| 6e 74 20 6f 66 20 65 72 | 72 6f 72 20 62 61 72 73 |nt of er|ror bars|
|00003a70| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00003a80| 78 6d 61 78 7d 20 28 66 | 6c 6f 61 74 20 2a 2c 20 |xmax} (f|loat *, |
|00003a90| 69 6e 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |input)}{|Pointer |
|00003aa0| 74 6f 20 61 72 72 61 79 | 20 77 69 74 68 0a 78 7e |to array| with.x~|
|00003ab0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 6f 66 20 72 |coordina|tes of r|
|00003ac0| 69 67 68 74 2d 68 61 6e | 64 20 65 6e 64 70 6f 69 |ight-han|d endpoi|
|00003ad0| 6e 74 20 6f 66 20 65 72 | 72 6f 72 20 62 61 72 73 |nt of er|ror bars|
|00003ae0| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00003af0| 79 7d 20 28 66 6c 6f 61 | 74 20 2a 2c 20 69 6e 70 |y} (floa|t *, inp|
|00003b00| 75 74 29 7d 7b 50 6f 69 | 6e 74 65 72 20 74 6f 20 |ut)}{Poi|nter to |
|00003b10| 61 72 72 61 79 20 77 69 | 74 68 0a 79 7e 63 6f 6f |array wi|th.y~coo|
|00003b20| 72 64 69 6e 61 74 65 73 | 20 6f 66 20 65 72 72 6f |rdinates| of erro|
|00003b30| 72 20 62 61 72 2e 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |r bar.}.|...\bnam|
|00003b40| 65 7b 70 6c 65 72 72 79 | 28 6e 2c 78 2c 79 6d 69 |e{plerry|(n,x,ymi|
|00003b50| 6e 2c 79 6d 61 78 29 3b | 7d 5c 6c 61 62 65 6c 7b |n,ymax);|}\label{|
|00003b60| 70 6c 65 72 72 79 7d 0a | 5c 61 64 64 63 6f 6e 74 |plerry}.|\addcont|
|00003b70| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|00003b80| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 65 72 72 79 |bsection|}{plerry|
|00003b90| 7d 0a 0a 5c 64 65 73 63 | 72 7b 44 72 61 77 73 20 |}..\desc|r{Draws |
|00003ba0| 61 20 73 65 74 20 6f 66 | 20 7b 5c 74 74 20 6e 7d |a set of| {\tt n}|
|00003bb0| 20 76 65 72 74 69 63 61 | 6c 20 65 72 72 6f 72 20 | vertica|l error |
|00003bc0| 62 61 72 73 2c 20 74 68 | 65 20 7b 5c 74 74 20 69 |bars, th|e {\tt i|
|00003bd0| 7d 27 74 68 20 65 72 72 | 6f 72 20 62 61 72 0a 65 |}'th err|or bar.e|
|00003be0| 78 74 65 6e 64 69 6e 67 | 20 66 72 6f 6d 20 7b 5c |xtending| from {\|
|00003bf0| 74 74 20 79 6d 69 6e 5b | 69 5d 7d 20 74 6f 20 7b |tt ymin[|i]} to {|
|00003c00| 5c 74 74 20 79 6d 61 78 | 5b 69 5d 7d 20 61 74 20 |\tt ymax|[i]} at |
|00003c10| 78 7e 63 6f 6f 72 64 69 | 6e 61 74 65 20 7b 5c 74 |x~coordi|nate {\t|
|00003c20| 74 20 78 5b 69 5d 7d 2e | 20 54 68 65 20 74 65 72 |t x[i]}.| The ter|
|00003c30| 6d 69 6e 61 6c 73 0a 6f | 66 20 74 68 65 20 65 72 |minals.o|f the er|
|00003c40| 72 6f 72 20 62 61 72 20 | 61 72 65 20 6f 66 20 6c |ror bar |are of l|
|00003c50| 65 6e 67 74 68 20 65 71 | 75 61 6c 20 74 6f 20 74 |ength eq|ual to t|
|00003c60| 68 65 20 6d 69 6e 6f 72 | 20 74 69 63 6b 20 6c 65 |he minor| tick le|
|00003c70| 6e 67 74 68 20 28 73 65 | 74 74 61 62 6c 65 0a 75 |ngth (se|ttable.u|
|00003c80| 73 69 6e 67 20 7b 5c 74 | 74 20 70 6c 73 6d 69 6e |sing {\t|t plsmin|
|00003c90| 7d 29 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |}).}..\a|rgu {{\t|
|00003ca0| 74 20 6e 7d 20 28 69 6e | 74 2c 20 69 6e 70 75 74 |t n} (in|t, input|
|00003cb0| 29 7d 7b 4e 75 6d 62 65 | 72 20 6f 66 20 65 72 72 |)}{Numbe|r of err|
|00003cc0| 6f 72 20 62 61 72 73 20 | 74 6f 20 64 72 61 77 2e |or bars |to draw.|
|00003cd0| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 |}..\argu| {{\tt x|
|00003ce0| 7d 20 28 66 6c 6f 61 74 | 20 2a 2c 20 69 6e 70 75 |} (float| *, inpu|
|00003cf0| 74 29 7d 7b 50 6f 69 6e | 74 65 72 20 74 6f 20 61 |t)}{Poin|ter to a|
|00003d00| 72 72 61 79 20 77 69 74 | 68 0a 78 7e 63 6f 6f 72 |rray wit|h.x~coor|
|00003d10| 64 69 6e 61 74 65 73 20 | 6f 66 20 65 72 72 6f 72 |dinates |of error|
|00003d20| 20 62 61 72 73 2e 7d 0a | 0a 5c 61 72 67 75 20 7b | bars.}.|.\argu {|
|00003d30| 7b 5c 74 74 20 79 6d 69 | 6e 7d 20 28 66 6c 6f 61 |{\tt ymi|n} (floa|
|00003d40| 74 20 2a 2c 20 69 6e 70 | 75 74 29 7d 7b 50 6f 69 |t *, inp|ut)}{Poi|
|00003d50| 6e 74 65 72 20 74 6f 20 | 61 72 72 61 79 20 77 69 |nter to |array wi|
|00003d60| 74 68 0a 79 7e 63 6f 6f | 72 64 69 6e 61 74 65 73 |th.y~coo|rdinates|
|00003d70| 20 6f 66 20 6c 6f 77 65 | 72 20 65 6e 64 70 6f 69 | of lowe|r endpoi|
|00003d80| 6e 74 20 6f 66 20 65 72 | 72 6f 72 20 62 61 72 73 |nt of er|ror bars|
|00003d90| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00003da0| 79 6d 61 78 7d 20 28 66 | 6c 6f 61 74 20 2a 2c 20 |ymax} (f|loat *, |
|00003db0| 69 6e 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |input)}{|Pointer |
|00003dc0| 74 6f 20 61 72 72 61 79 | 20 77 69 74 68 0a 79 7e |to array| with.y~|
|00003dd0| 63 6f 6f 72 64 69 6e 61 | 74 65 20 6f 66 20 75 70 |coordina|te of up|
|00003de0| 70 65 72 20 65 6e 64 70 | 6f 69 6e 74 20 6f 66 20 |per endp|oint of |
|00003df0| 65 72 72 6f 72 20 62 61 | 72 2e 7d 0a 0a 0a 0a 5c |error ba|r.}....\|
|00003e00| 62 6e 61 6d 65 7b 70 6c | 66 6f 6e 74 28 66 6f 6e |bname{pl|font(fon|
|00003e10| 74 29 3b 7d 5c 6c 61 62 | 65 6c 7b 70 6c 66 6f 6e |t);}\lab|el{plfon|
|00003e20| 74 7d 0a 5c 61 64 64 63 | 6f 6e 74 65 6e 74 73 6c |t}.\addc|ontentsl|
|00003e30| 69 6e 65 7b 74 6f 63 7d | 7b 73 75 62 73 65 63 74 |ine{toc}|{subsect|
|00003e40| 69 6f 6e 7d 7b 70 6c 66 | 6f 6e 74 7d 0a 0a 5c 64 |ion}{plf|ont}..\d|
|00003e50| 65 73 63 72 7b 53 65 74 | 73 20 74 68 65 20 64 65 |escr{Set|s the de|
|00003e60| 66 61 75 6c 74 20 63 68 | 61 72 61 63 74 65 72 20 |fault ch|aracter |
|00003e70| 66 6f 6e 74 20 66 6f 72 | 20 73 75 62 73 65 71 75 |font for| subsequ|
|00003e80| 65 6e 74 20 63 68 61 72 | 61 63 74 65 72 20 64 72 |ent char|acter dr|
|00003e90| 61 77 69 6e 67 2e 0a 20 | 20 20 20 20 20 20 41 6c |awing.. | Al|
|00003ea0| 73 6f 20 61 66 66 65 63 | 74 73 20 73 79 6d 62 6f |so affec|ts symbo|
|00003eb0| 6c 73 20 70 72 6f 64 75 | 63 65 64 20 62 79 20 7b |ls produ|ced by {|
|00003ec0| 5c 74 74 20 70 6c 70 6f | 69 6e 7d 2e 7d 0a 0a 5c |\tt plpo|in}.}..\|
|00003ed0| 61 72 67 75 20 7b 7b 5c | 74 74 20 66 6f 6e 74 7d |argu {{\|tt font}|
|00003ee0| 20 28 69 6e 74 2c 20 69 | 6e 70 75 74 29 7d 7b 53 | (int, i|nput)}{S|
|00003ef0| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 66 6f 6e |pecifies| the fon|
|00003f00| 74 3a 0a 5c 62 65 67 69 | 6e 7b 69 74 65 6d 69 7a |t:.\begi|n{itemiz|
|00003f10| 65 7d 0a 5c 69 74 65 6d | 7b 31 7d 3a 20 4e 6f 72 |e}.\item|{1}: Nor|
|00003f20| 6d 61 6c 20 66 6f 6e 74 | 20 28 73 69 6d 70 6c 65 |mal font| (simple|
|00003f30| 73 74 20 61 6e 64 20 66 | 61 73 74 65 73 74 29 0a |st and f|astest).|
|00003f40| 5c 69 74 65 6d 7b 32 7d | 3a 20 52 6f 6d 61 6e 20 |\item{2}|: Roman |
|00003f50| 66 6f 6e 74 0a 5c 69 74 | 65 6d 7b 33 7d 3a 20 49 |font.\it|em{3}: I|
|00003f60| 74 61 6c 69 63 20 66 6f | 6e 74 0a 5c 69 74 65 6d |talic fo|nt.\item|
|00003f70| 7b 34 7d 3a 20 53 63 72 | 69 70 74 20 66 6f 6e 74 |{4}: Scr|ipt font|
|00003f80| 0a 5c 65 6e 64 7b 69 74 | 65 6d 69 7a 65 7d 0a 7d |.\end{it|emize}.}|
|00003f90| 0a 0a 5c 62 6e 61 6d 65 | 7b 70 6c 67 72 61 28 29 |..\bname|{plgra()|
|00003fa0| 3b 7d 5c 6c 61 62 65 6c | 7b 70 6c 67 72 61 7d 0a |;}\label|{plgra}.|
|00003fb0| 5c 61 64 64 63 6f 6e 74 | 65 6e 74 73 6c 69 6e 65 |\addcont|entsline|
|00003fc0| 7b 74 6f 63 7d 7b 73 75 | 62 73 65 63 74 69 6f 6e |{toc}{su|bsection|
|00003fd0| 7d 7b 70 6c 67 72 61 7d | 0a 0a 5c 64 65 73 63 72 |}{plgra}|..\descr|
|00003fe0| 7b 53 65 74 73 20 61 6e | 20 69 6e 74 65 72 61 63 |{Sets an| interac|
|00003ff0| 74 69 76 65 20 64 65 76 | 69 63 65 20 74 6f 20 67 |tive dev|ice to g|
|00004000| 72 61 70 68 69 63 73 20 | 6d 6f 64 65 2c 20 75 73 |raphics |mode, us|
|00004010| 65 64 20 69 6e 20 63 6f | 6e 6a 75 6e 63 74 69 6f |ed in co|njunctio|
|00004020| 6e 0a 20 20 20 20 20 20 | 20 77 69 74 68 20 7b 5c |n. | with {\|
|00004030| 74 74 20 70 6c 74 65 78 | 74 7d 20 74 6f 20 61 6c |tt pltex|t} to al|
|00004040| 6c 6f 77 20 67 72 61 70 | 68 69 63 73 20 61 6e 64 |low grap|hics and|
|00004050| 20 74 65 78 74 20 74 6f | 20 62 65 20 69 6e 74 65 | text to| be inte|
|00004060| 72 73 70 65 72 73 65 64 | 2e 7d 0a 0a 5c 62 6e 61 |rspersed|.}..\bna|
|00004070| 6d 65 7b 70 6c 67 72 69 | 64 33 28 7a 74 69 63 6b |me{plgri|d3(ztick|
|00004080| 29 3b 7d 5c 6c 61 62 65 | 6c 7b 70 6c 67 72 69 64 |);}\labe|l{plgrid|
|00004090| 33 7d 0a 5c 61 64 64 63 | 6f 6e 74 65 6e 74 73 6c |3}.\addc|ontentsl|
|000040a0| 69 6e 65 7b 74 6f 63 7d | 7b 73 75 62 73 65 63 74 |ine{toc}|{subsect|
|000040b0| 69 6f 6e 7d 7b 70 6c 67 | 72 69 64 33 7d 0a 0a 5c |ion}{plg|rid3}..\|
|000040c0| 64 65 73 63 72 7b 44 72 | 61 77 73 20 67 72 69 64 |descr{Dr|aws grid|
|000040d0| 20 6c 69 6e 65 73 20 70 | 65 72 70 65 6e 64 69 63 | lines p|erpendic|
|000040e0| 75 6c 61 72 20 74 6f 20 | 74 68 65 20 7a 20 61 78 |ular to |the z ax|
|000040f0| 69 73 2e 0a 20 20 20 20 | 20 20 20 20 46 6f 72 20 |is.. | For |
|00004100| 75 73 65 20 6f 6e 6c 79 | 20 77 68 65 6e 20 64 6f |use only| when do|
|00004110| 69 6e 67 20 74 68 72 65 | 65 20 64 69 6d 65 6e 73 |ing thre|e dimens|
|00004120| 69 6f 6e 61 6c 20 70 6c | 6f 74 73 2e 20 20 49 66 |ional pl|ots. If|
|00004130| 20 75 73 65 64 0a 20 20 | 20 20 20 20 20 20 74 68 | used. | th|
|00004140| 69 73 20 72 6f 75 74 69 | 6e 65 20 6d 75 73 74 0a |is routi|ne must.|
|00004150| 20 20 20 20 20 20 20 20 | 62 65 20 63 61 6c 6c 65 | |be calle|
|00004160| 64 20 61 66 74 65 72 20 | 63 61 6c 6c 69 6e 67 20 |d after |calling |
|00004170| 7b 5c 74 74 20 70 6c 6f | 74 33 64 7d 20 66 69 72 |{\tt plo|t3d} fir|
|00004180| 73 74 20 28 69 6e 20 6f | 72 64 65 72 20 66 6f 72 |st (in o|rder for|
|00004190| 20 74 68 65 0a 20 20 20 | 20 20 20 20 20 68 69 64 | the. | hid|
|000041a0| 64 65 6e 20 6c 69 6e 65 | 20 72 65 6d 6f 76 61 6c |den line| removal|
|000041b0| 20 74 6f 20 77 6f 72 6b | 29 2e 7d 0a 0a 5c 61 72 | to work|).}..\ar|
|000041c0| 67 75 20 7b 7b 5c 74 74 | 20 7a 74 69 63 6b 7d 20 |gu {{\tt| ztick} |
|000041d0| 28 66 6c 6f 61 74 2c 20 | 69 6e 70 75 74 29 7d 7b |(float, |input)}{|
|000041e0| 57 6f 72 6c 64 20 63 6f | 6f 72 64 69 6e 61 74 65 |World co|ordinate|
|000041f0| 20 0a 69 6e 74 65 72 76 | 61 6c 20 62 65 74 77 65 | .interv|al betwe|
|00004200| 65 6e 20 67 72 69 64 20 | 6c 69 6e 65 73 20 6f 6e |en grid |lines on|
|00004210| 20 74 68 65 20 7a 7e 61 | 78 69 73 2e 20 55 73 75 | the z~a|xis. Usu|
|00004220| 61 6c 6c 79 20 74 68 69 | 73 20 76 61 72 69 61 62 |ally thi|s variab|
|00004230| 6c 65 20 68 61 73 0a 74 | 68 65 20 73 61 6d 65 20 |le has.t|he same |
|00004240| 76 61 6c 75 65 20 61 73 | 20 7b 5c 74 74 20 7a 74 |value as| {\tt zt|
|00004250| 69 63 6b 7d 20 69 6e 20 | 7b 5c 74 74 20 70 6c 62 |ick} in |{\tt plb|
|00004260| 6f 78 33 7d 2e 20 20 49 | 66 20 7b 5c 74 74 20 7a |ox3}. I|f {\tt z|
|00004270| 74 69 63 6b 7d 20 69 73 | 0a 7a 65 72 6f 20 50 4c |tick} is|.zero PL|
|00004280| 50 4c 4f 54 20 77 69 6c | 6c 20 61 75 74 6f 6d 61 |PLOT wil|l automa|
|00004290| 74 69 63 61 6c 6c 79 20 | 67 65 6e 65 72 61 74 65 |tically |generate|
|000042a0| 20 61 20 73 75 69 74 61 | 62 6c 65 20 74 69 63 6b | a suita|ble tick|
|000042b0| 20 69 6e 74 65 72 76 61 | 6c 2e 7d 0a 0a 5c 62 6e | interva|l.}..\bn|
|000042c0| 61 6d 65 7b 70 6c 67 73 | 70 61 28 78 6d 69 6e 2c |ame{plgs|pa(xmin,|
|000042d0| 78 6d 61 78 2c 79 6d 69 | 6e 2c 79 6d 61 78 29 3b |xmax,ymi|n,ymax);|
|000042e0| 7d 5c 6c 61 62 65 6c 7b | 70 6c 67 73 70 61 7d 0a |}\label{|plgspa}.|
|000042f0| 5c 61 64 64 63 6f 6e 74 | 65 6e 74 73 6c 69 6e 65 |\addcont|entsline|
|00004300| 7b 74 6f 63 7d 7b 73 75 | 62 73 65 63 74 69 6f 6e |{toc}{su|bsection|
|00004310| 7d 7b 70 6c 67 73 70 61 | 7d 0a 0a 5c 64 65 73 63 |}{plgspa|}..\desc|
|00004320| 72 7b 47 65 74 73 20 74 | 68 65 20 73 69 7a 65 20 |r{Gets t|he size |
|00004330| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |of the c|urrent s|
|00004340| 75 62 70 61 67 65 20 69 | 6e 20 6d 69 6c 6c 69 6d |ubpage i|n millim|
|00004350| 65 74 72 65 73 20 6d 65 | 61 73 75 72 65 64 0a 20 |etres me|asured. |
|00004360| 20 20 20 20 20 20 20 66 | 72 6f 6d 20 74 68 65 20 | f|rom the |
|00004370| 62 6f 74 74 6f 6d 20 6c | 65 66 74 20 68 61 6e 64 |bottom l|eft hand|
|00004380| 20 63 6f 72 6e 65 72 20 | 6f 66 20 74 68 65 20 6f | corner |of the o|
|00004390| 75 74 70 75 74 20 64 65 | 76 69 63 65 20 70 61 67 |utput de|vice pag|
|000043a0| 65 0a 20 20 20 20 20 20 | 20 20 6f 72 20 73 63 72 |e. | or scr|
|000043b0| 65 65 6e 2e 20 43 61 6e | 20 62 65 20 75 73 65 64 |een. Can| be used|
|000043c0| 20 69 6e 20 63 6f 6e 6a | 75 6e 63 74 69 6f 6e 20 | in conj|unction |
|000043d0| 77 69 74 68 20 7b 5c 74 | 74 20 70 6c 73 76 70 61 |with {\t|t plsvpa|
|000043e0| 7d 20 66 6f 72 20 73 65 | 74 74 69 6e 67 0a 20 20 |} for se|tting. |
|000043f0| 20 20 20 20 20 20 74 68 | 65 20 73 69 7a 65 20 6f | th|e size o|
|00004400| 66 20 61 20 76 69 65 77 | 70 6f 72 74 20 69 6e 20 |f a view|port in |
|00004410| 61 62 73 6f 6c 75 74 65 | 20 63 6f 6f 72 64 69 6e |absolute| coordin|
|00004420| 61 74 65 73 20 28 6d 69 | 6c 6c 69 6d 65 74 72 65 |ates (mi|llimetre|
|00004430| 73 29 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |s).}..\a|rgu {{\t|
|00004440| 74 20 78 6d 69 6e 7d 20 | 28 66 6c 6f 61 74 20 2a |t xmin} |(float *|
|00004450| 2c 20 6f 75 74 70 75 74 | 29 7d 7b 50 6f 69 6e 74 |, output|)}{Point|
|00004460| 65 72 20 74 6f 20 76 61 | 72 69 61 62 6c 65 20 77 |er to va|riable w|
|00004470| 69 74 68 0a 70 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |ith.posi|tion of |
|00004480| 6c 65 66 74 20 68 61 6e | 64 20 65 64 67 65 20 6f |left han|d edge o|
|00004490| 66 20 73 75 62 70 61 67 | 65 20 69 6e 20 6d 69 6c |f subpag|e in mil|
|000044a0| 6c 69 6d 65 74 72 65 73 | 2e 7d 0a 0a 5c 61 72 67 |limetres|.}..\arg|
|000044b0| 75 20 7b 7b 5c 74 74 20 | 78 6d 61 78 7d 20 28 66 |u {{\tt |xmax} (f|
|000044c0| 6c 6f 61 74 20 2a 2c 20 | 6f 75 74 70 75 74 29 7d |loat *, |output)}|
|000044d0| 7b 50 6f 69 6e 74 65 72 | 20 74 6f 20 76 61 72 69 |{Pointer| to vari|
|000044e0| 61 62 6c 65 20 77 69 74 | 68 0a 70 6f 73 69 74 69 |able wit|h.positi|
|000044f0| 6f 6e 20 6f 66 20 72 69 | 67 68 74 20 68 61 6e 64 |on of ri|ght hand|
|00004500| 20 65 64 67 65 20 6f 66 | 20 73 75 62 70 61 67 65 | edge of| subpage|
|00004510| 20 69 6e 20 6d 69 6c 6c | 69 6d 65 74 72 65 73 2e | in mill|imetres.|
|00004520| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 79 |}..\argu| {{\tt y|
|00004530| 6d 69 6e 7d 20 28 66 6c | 6f 61 74 20 2a 2c 20 6f |min} (fl|oat *, o|
|00004540| 75 74 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |utput)}{|Pointer |
|00004550| 74 6f 20 76 61 72 69 61 | 62 6c 65 20 77 69 74 68 |to varia|ble with|
|00004560| 0a 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 62 6f 74 |.positio|n of bot|
|00004570| 74 6f 6d 20 65 64 67 65 | 20 6f 66 20 73 75 62 70 |tom edge| of subp|
|00004580| 61 67 65 20 69 6e 20 6d | 69 6c 6c 69 6d 65 74 72 |age in m|illimetr|
|00004590| 65 73 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |es.}..\a|rgu {{\t|
|000045a0| 74 20 79 6d 61 78 7d 20 | 28 66 6c 6f 61 74 20 2a |t ymax} |(float *|
|000045b0| 2c 20 6f 75 74 70 75 74 | 29 7d 7b 50 6f 69 6e 74 |, output|)}{Point|
|000045c0| 65 72 20 74 6f 20 76 61 | 72 69 61 62 6c 65 20 77 |er to va|riable w|
|000045d0| 69 74 68 0a 70 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |ith.posi|tion of |
|000045e0| 74 6f 70 20 65 64 67 65 | 20 6f 66 20 73 75 62 70 |top edge| of subp|
|000045f0| 61 67 65 20 69 6e 20 6d | 69 6c 6c 69 6d 65 74 72 |age in m|illimetr|
|00004600| 65 73 2e 7d 0a 0a 5c 62 | 6e 61 6d 65 7b 70 6c 68 |es.}..\b|name{plh|
|00004610| 69 73 74 28 6e 2c 64 61 | 74 61 2c 64 61 74 6d 69 |ist(n,da|ta,datmi|
|00004620| 6e 2c 64 61 74 6d 61 78 | 2c 6e 62 69 6e 2c 6f 6c |n,datmax|,nbin,ol|
|00004630| 64 77 69 6e 29 3b 7d 5c | 6c 61 62 65 6c 7b 70 6c |dwin);}\|label{pl|
|00004640| 68 69 73 74 7d 0a 5c 61 | 64 64 63 6f 6e 74 65 6e |hist}.\a|ddconten|
|00004650| 74 73 6c 69 6e 65 7b 74 | 6f 63 7d 7b 73 75 62 73 |tsline{t|oc}{subs|
|00004660| 65 63 74 69 6f 6e 7d 7b | 70 6c 68 69 73 74 7d 0a |ection}{|plhist}.|
|00004670| 0a 5c 64 65 73 63 72 7b | 50 6c 6f 74 73 20 61 20 |.\descr{|Plots a |
|00004680| 68 69 73 74 6f 67 72 61 | 6d 20 66 72 6f 6d 20 7b |histogra|m from {|
|00004690| 5c 74 74 20 6e 7d 20 64 | 61 74 61 20 70 6f 69 6e |\tt n} d|ata poin|
|000046a0| 74 73 20 73 74 6f 72 65 | 64 20 69 6e 20 74 68 65 |ts store|d in the|
|000046b0| 20 61 72 72 61 79 20 7b | 5c 74 74 20 64 61 74 61 | array {|\tt data|
|000046c0| 7d 2e 0a 20 20 20 20 20 | 20 20 54 68 69 73 20 72 |}.. | This r|
|000046d0| 6f 75 74 69 6e 65 20 62 | 69 6e 73 20 74 68 65 20 |outine b|ins the |
|000046e0| 64 61 74 61 20 69 6e 74 | 6f 20 7b 5c 74 74 20 6e |data int|o {\tt n|
|000046f0| 62 69 6e 7d 20 62 69 6e | 73 20 65 71 75 61 6c 6c |bin} bin|s equall|
|00004700| 79 20 73 70 61 63 65 64 | 20 62 65 74 77 65 65 6e |y spaced| between|
|00004710| 0a 20 20 20 20 20 20 20 | 7b 5c 74 74 20 64 61 74 |. |{\tt dat|
|00004720| 6d 69 6e 7d 20 61 6e 64 | 20 7b 5c 74 74 20 64 61 |min} and| {\tt da|
|00004730| 74 6d 61 78 7d 2c 20 61 | 6e 64 20 63 61 6c 6c 73 |tmax}, a|nd calls|
|00004740| 20 7b 5c 74 74 20 70 6c | 62 69 6e 7d 20 74 6f 20 | {\tt pl|bin} to |
|00004750| 64 72 61 77 20 74 68 65 | 20 72 65 73 75 6c 74 69 |draw the| resulti|
|00004760| 6e 67 0a 20 20 20 20 20 | 20 20 68 69 73 74 6f 67 |ng. | histog|
|00004770| 72 61 6d 2e 20 50 61 72 | 61 6d 65 74 65 72 20 7b |ram. Par|ameter {|
|00004780| 5c 74 74 20 6f 6c 64 77 | 69 6e 7d 20 61 6c 6c 6f |\tt oldw|in} allo|
|00004790| 77 73 20 74 68 65 20 68 | 69 73 74 6f 67 72 61 6d |ws the h|istogram|
|000047a0| 20 65 69 74 68 65 72 20 | 74 6f 0a 20 20 20 20 20 | either |to. |
|000047b0| 20 20 62 65 20 70 6c 6f | 74 74 65 64 20 69 6e 20 | be plo|tted in |
|000047c0| 61 6e 20 65 78 69 73 74 | 69 6e 67 20 77 69 6e 64 |an exist|ing wind|
|000047d0| 6f 77 20 6f 72 20 63 61 | 75 73 65 73 20 7b 5c 74 |ow or ca|uses {\t|
|000047e0| 74 20 70 6c 68 69 73 74 | 7d 20 74 6f 20 63 61 6c |t plhist|} to cal|
|000047f0| 6c 0a 20 20 20 20 20 20 | 20 7b 5c 74 74 20 70 6c |l. | {\tt pl|
|00004800| 65 6e 76 7d 20 77 69 74 | 68 20 73 75 69 74 61 62 |env} wit|h suitab|
|00004810| 6c 65 20 6c 69 6d 69 74 | 73 20 62 65 66 6f 72 65 |le limit|s before|
|00004820| 20 70 6c 6f 74 74 69 6e | 67 20 74 68 65 20 68 69 | plottin|g the hi|
|00004830| 73 74 6f 67 72 61 6d 2e | 7d 0a 20 20 20 20 20 20 |stogram.|}. |
|00004840| 20 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 6e 7d | .\argu |{{\tt n}|
|00004850| 20 28 69 6e 74 2c 20 69 | 6e 70 75 74 29 7d 7b 4e | (int, i|nput)}{N|
|00004860| 75 6d 62 65 72 20 6f 66 | 20 64 61 74 61 20 70 6f |umber of| data po|
|00004870| 69 6e 74 73 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |ints.}..|\argu {{|
|00004880| 5c 74 74 20 64 61 74 61 | 7d 20 28 66 6c 6f 61 74 |\tt data|} (float|
|00004890| 20 2a 2c 20 69 6e 70 75 | 74 29 7d 7b 50 6f 69 6e | *, inpu|t)}{Poin|
|000048a0| 74 65 72 20 74 6f 20 61 | 72 72 61 79 20 77 69 74 |ter to a|rray wit|
|000048b0| 68 0a 76 61 6c 75 65 73 | 20 6f 66 20 74 68 65 20 |h.values| of the |
|000048c0| 7b 5c 74 74 20 6e 7d 20 | 64 61 74 61 20 70 6f 69 |{\tt n} |data poi|
|000048d0| 6e 74 73 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |nts.}..\|argu {{\|
|000048e0| 74 74 20 64 61 74 6d 69 | 6e 7d 20 28 66 6c 6f 61 |tt datmi|n} (floa|
|000048f0| 74 2c 20 69 6e 70 75 74 | 29 7d 7b 4c 65 66 74 2d |t, input|)}{Left-|
|00004900| 68 61 6e 64 20 65 64 67 | 65 20 6f 66 20 6c 6f 77 |hand edg|e of low|
|00004910| 65 73 74 2d 76 61 6c 75 | 65 64 20 62 69 6e 2e 7d |est-valu|ed bin.}|
|00004920| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 64 61 |..\argu |{{\tt da|
|00004930| 74 6d 61 78 7d 20 28 66 | 6c 6f 61 74 2c 20 69 6e |tmax} (f|loat, in|
|00004940| 70 75 74 29 7d 7b 52 69 | 67 68 74 2d 68 61 6e 64 |put)}{Ri|ght-hand|
|00004950| 20 65 64 67 65 20 6f 66 | 20 68 69 67 68 65 73 74 | edge of| highest|
|00004960| 2d 76 61 6c 75 65 64 20 | 62 69 6e 2e 7d 0a 0a 5c |-valued |bin.}..\|
|00004970| 61 72 67 75 20 7b 7b 5c | 74 74 20 6e 62 69 6e 7d |argu {{\|tt nbin}|
|00004980| 20 28 69 6e 74 2c 20 69 | 6e 70 75 74 29 7d 7b 4e | (int, i|nput)}{N|
|00004990| 75 6d 62 65 72 20 6f 66 | 20 28 65 71 75 61 6c 2d |umber of| (equal-|
|000049a0| 73 69 7a 65 64 29 20 62 | 69 6e 73 20 69 6e 74 6f |sized) b|ins into|
|000049b0| 20 77 68 69 63 68 0a 74 | 6f 20 64 69 76 69 64 65 | which.t|o divide|
|000049c0| 20 74 68 65 20 69 6e 74 | 65 72 76 61 6c 20 7b 5c | the int|erval {\|
|000049d0| 74 74 20 78 6d 69 6e 7d | 20 74 6f 20 7b 5c 74 74 |tt xmin}| to {\tt|
|000049e0| 20 78 6d 61 78 7d 2e 7d | 0a 0a 5c 61 72 67 75 20 | xmax}.}|..\argu |
|000049f0| 7b 7b 5c 74 74 20 6f 6c | 64 77 69 6e 7d 20 28 69 |{{\tt ol|dwin} (i|
|00004a00| 6e 74 2c 20 69 6e 70 75 | 74 29 7d 7b 49 66 20 6f |nt, inpu|t)}{If o|
|00004a10| 6e 65 2c 20 74 68 65 20 | 68 69 73 74 6f 67 72 61 |ne, the |histogra|
|00004a20| 6d 20 69 73 20 70 6c 6f | 74 74 65 64 20 69 6e 20 |m is plo|tted in |
|00004a30| 74 68 65 0a 63 75 72 72 | 65 6e 74 6c 79 2d 64 65 |the.curr|ently-de|
|00004a40| 66 69 6e 65 64 20 77 69 | 6e 64 6f 77 2c 20 61 6e |fined wi|ndow, an|
|00004a50| 64 20 69 66 20 7a 65 72 | 6f 2c 20 7b 5c 74 74 20 |d if zer|o, {\tt |
|00004a60| 70 6c 65 6e 76 7d 20 69 | 73 20 63 61 6c 6c 65 64 |plenv} i|s called|
|00004a70| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 0a 62 | automat|ically.b|
|00004a80| 65 66 6f 72 65 20 70 6c | 6f 74 74 69 6e 67 2e 7d |efore pl|otting.}|
|00004a90| 0a 0a 0a 0a 5c 62 6e 61 | 6d 65 7b 70 6c 6a 6f 69 |....\bna|me{pljoi|
|00004aa0| 6e 28 78 31 2c 79 31 2c | 78 32 2c 79 32 29 3b 7d |n(x1,y1,|x2,y2);}|
|00004ab0| 5c 6c 61 62 65 6c 7b 70 | 6c 6a 6f 69 6e 7d 0a 5c |\label{p|ljoin}.\|
|00004ac0| 61 64 64 63 6f 6e 74 65 | 6e 74 73 6c 69 6e 65 7b |addconte|ntsline{|
|00004ad0| 74 6f 63 7d 7b 73 75 62 | 73 65 63 74 69 6f 6e 7d |toc}{sub|section}|
|00004ae0| 7b 70 6c 6a 6f 69 6e 7d | 0a 0a 5c 64 65 73 63 72 |{pljoin}|..\descr|
|00004af0| 7b 4a 6f 69 6e 73 20 74 | 68 65 20 70 6f 69 6e 74 |{Joins t|he point|
|00004b00| 20 7b 5c 74 74 20 28 78 | 31 2c 79 31 29 7d 20 74 | {\tt (x|1,y1)} t|
|00004b10| 6f 20 7b 5c 74 74 20 28 | 78 32 2c 79 32 29 7d 2e |o {\tt (|x2,y2)}.|
|00004b20| 7d 0a 20 20 20 20 20 20 | 20 0a 5c 61 72 67 75 20 |}. | .\argu |
|00004b30| 7b 7b 5c 74 74 20 78 31 | 7d 20 28 66 6c 6f 61 74 |{{\tt x1|} (float|
|00004b40| 2c 20 69 6e 70 75 74 29 | 7d 7b 78 7e 63 6f 6f 72 |, input)|}{x~coor|
|00004b50| 64 69 6e 61 74 65 20 6f | 66 20 66 69 72 73 74 20 |dinate o|f first |
|00004b60| 70 6f 69 6e 74 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |point.}.|.\argu {|
|00004b70| 7b 5c 74 74 20 79 31 7d | 20 28 66 6c 6f 61 74 2c |{\tt y1}| (float,|
|00004b80| 20 69 6e 70 75 74 29 7d | 7b 79 7e 63 6f 6f 72 64 | input)}|{y~coord|
|00004b90| 69 6e 61 74 65 20 6f 66 | 20 66 69 72 73 74 20 70 |inate of| first p|
|00004ba0| 6f 69 6e 74 2e 7d 0a 20 | 20 20 20 20 20 20 0a 5c |oint.}. | .\|
|00004bb0| 61 72 67 75 20 7b 7b 5c | 74 74 20 78 32 7d 20 28 |argu {{\|tt x2} (|
|00004bc0| 66 6c 6f 61 74 2c 20 69 | 6e 70 75 74 29 7d 7b 78 |float, i|nput)}{x|
|00004bd0| 7e 63 6f 6f 72 64 69 6e | 61 74 65 20 6f 66 20 73 |~coordin|ate of s|
|00004be0| 65 63 6f 6e 64 20 70 6f | 69 6e 74 2e 7d 0a 0a 5c |econd po|int.}..\|
|00004bf0| 61 72 67 75 20 7b 7b 5c | 74 74 20 79 32 7d 20 28 |argu {{\|tt y2} (|
|00004c00| 66 6c 6f 61 74 2c 20 69 | 6e 70 75 74 29 7d 7b 79 |float, i|nput)}{y|
|00004c10| 7e 63 6f 6f 72 64 69 6e | 61 74 65 20 6f 66 20 73 |~coordin|ate of s|
|00004c20| 65 63 6f 6e 64 20 70 6f | 69 6e 74 2e 7d 0a 0a 0a |econd po|int.}...|
|00004c30| 0a 5c 62 6e 61 6d 65 7b | 70 6c 6c 61 62 28 78 6c |.\bname{|pllab(xl|
|00004c40| 61 62 65 6c 2c 79 6c 61 | 62 65 6c 2c 74 6c 61 62 |abel,yla|bel,tlab|
|00004c50| 65 6c 29 3b 7d 5c 6c 61 | 62 65 6c 7b 70 6c 6c 61 |el);}\la|bel{plla|
|00004c60| 62 7d 0a 5c 61 64 64 63 | 6f 6e 74 65 6e 74 73 6c |b}.\addc|ontentsl|
|00004c70| 69 6e 65 7b 74 6f 63 7d | 7b 73 75 62 73 65 63 74 |ine{toc}|{subsect|
|00004c80| 69 6f 6e 7d 7b 70 6c 6c | 61 62 7d 0a 0a 5c 64 65 |ion}{pll|ab}..\de|
|00004c90| 73 63 72 7b 52 6f 75 74 | 69 6e 65 20 66 6f 72 20 |scr{Rout|ine for |
|00004ca0| 77 72 69 74 69 6e 67 20 | 73 69 6d 70 6c 65 20 6c |writing |simple l|
|00004cb0| 61 62 65 6c 73 2e 20 55 | 73 65 20 7b 5c 74 74 20 |abels. U|se {\tt |
|00004cc0| 70 6c 6d 74 65 78 7d 20 | 66 6f 72 20 6d 6f 72 65 |plmtex} |for more|
|00004cd0| 20 63 6f 6d 70 6c 65 78 | 0a 20 20 20 20 20 20 20 | complex|. |
|00004ce0| 6c 61 62 65 6c 73 2e 7d | 0a 20 20 20 20 20 20 20 |labels.}|. |
|00004cf0| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 78 6c 61 |.\argu {|{\tt xla|
|00004d00| 62 65 6c 7d 20 28 63 68 | 61 72 20 2a 2c 20 69 6e |bel} (ch|ar *, in|
|00004d10| 70 75 74 29 7d 7b 4c 61 | 62 65 6c 20 66 6f 72 20 |put)}{La|bel for |
|00004d20| 68 6f 72 69 7a 6f 6e 74 | 61 6c 20 61 78 69 73 2e |horizont|al axis.|
|00004d30| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 79 |}..\argu| {{\tt y|
|00004d40| 6c 61 62 65 6c 7d 20 28 | 63 68 61 72 20 2a 2c 20 |label} (|char *, |
|00004d50| 69 6e 70 75 74 29 7d 7b | 4c 61 62 65 6c 20 66 6f |input)}{|Label fo|
|00004d60| 72 20 76 65 72 74 69 63 | 61 6c 20 61 78 69 73 2e |r vertic|al axis.|
|00004d70| 7d 0a 20 20 20 20 20 20 | 20 0a 5c 61 72 67 75 20 |}. | .\argu |
|00004d80| 7b 7b 5c 74 74 20 74 6c | 61 62 65 6c 7d 20 28 63 |{{\tt tl|abel} (c|
|00004d90| 68 61 72 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 54 |har *, i|nput)}{T|
|00004da0| 69 74 6c 65 20 6f 66 20 | 67 72 61 70 68 2e 7d 0a |itle of |graph.}.|
|00004db0| 0a 0a 0a 5c 62 6e 61 6d | 65 7b 70 6c 6c 69 6e 65 |...\bnam|e{plline|
|00004dc0| 28 6e 2c 78 2c 79 29 3b | 7d 5c 6c 61 62 65 6c 7b |(n,x,y);|}\label{|
|00004dd0| 70 6c 6c 69 6e 65 7d 0a | 5c 61 64 64 63 6f 6e 74 |plline}.|\addcont|
|00004de0| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|00004df0| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 6c 69 6e 65 |bsection|}{plline|
|00004e00| 7d 0a 0a 5c 64 65 73 63 | 72 7b 44 72 61 77 73 20 |}..\desc|r{Draws |
|00004e10| 7b 5c 74 74 20 6e 2d 31 | 7d 20 6c 69 6e 65 20 73 |{\tt n-1|} line s|
|00004e20| 65 67 6d 65 6e 74 73 20 | 6a 6f 69 6e 69 6e 67 20 |egments |joining |
|00004e30| 70 6f 69 6e 74 73 20 7b | 5c 74 74 20 28 78 5b 69 |points {|\tt (x[i|
|00004e40| 5d 2c 79 5b 69 5d 29 7d | 2e 7d 0a 20 20 20 20 20 |],y[i])}|.}. |
|00004e50| 20 20 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 6e | .\argu| {{\tt n|
|00004e60| 7d 20 28 69 6e 74 2c 20 | 69 6e 70 75 74 29 7d 7b |} (int, |input)}{|
|00004e70| 4e 75 6d 62 65 72 20 6f | 66 20 70 6f 69 6e 74 73 |Number o|f points|
|00004e80| 20 74 6f 20 6a 6f 69 6e | 2e 7d 0a 0a 5c 61 72 67 | to join|.}..\arg|
|00004e90| 75 20 7b 7b 5c 74 74 20 | 78 7d 20 28 66 6c 6f 61 |u {{\tt |x} (floa|
|00004ea0| 74 20 2a 2c 20 69 6e 70 | 75 74 29 7d 7b 50 6f 69 |t *, inp|ut)}{Poi|
|00004eb0| 6e 74 65 72 20 74 6f 20 | 61 72 72 61 79 20 77 69 |nter to |array wi|
|00004ec0| 74 68 20 0a 78 7e 63 6f | 6f 72 64 69 6e 61 74 65 |th .x~co|ordinate|
|00004ed0| 73 20 6f 66 20 70 6f 69 | 6e 74 73 2e 7d 0a 20 20 |s of poi|nts.}. |
|00004ee0| 20 20 20 20 20 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 | .\a|rgu {{\t|
|00004ef0| 74 20 79 7d 20 28 66 6c | 6f 61 74 20 2a 2c 20 69 |t y} (fl|oat *, i|
|00004f00| 6e 70 75 74 29 7d 7b 50 | 6f 69 6e 74 65 72 20 74 |nput)}{P|ointer t|
|00004f10| 6f 20 61 72 72 61 79 20 | 77 69 74 68 20 0a 79 7e |o array |with .y~|
|00004f20| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 6f 66 20 70 |coordina|tes of p|
|00004f30| 6f 69 6e 74 73 2e 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |oints.}.|...\bnam|
|00004f40| 65 7b 70 6c 6d 74 65 78 | 28 73 69 64 65 2c 64 69 |e{plmtex|(side,di|
|00004f50| 73 70 2c 70 6f 73 2c 6a | 75 73 74 2c 74 65 78 74 |sp,pos,j|ust,text|
|00004f60| 29 3b 7d 5c 6c 61 62 65 | 6c 7b 70 6c 6d 74 65 78 |);}\labe|l{plmtex|
|00004f70| 7d 0a 5c 61 64 64 63 6f | 6e 74 65 6e 74 73 6c 69 |}.\addco|ntentsli|
|00004f80| 6e 65 7b 74 6f 63 7d 7b | 73 75 62 73 65 63 74 69 |ne{toc}{|subsecti|
|00004f90| 6f 6e 7d 7b 70 6c 6d 74 | 65 78 7d 0a 0a 5c 64 65 |on}{plmt|ex}..\de|
|00004fa0| 73 63 72 7b 57 72 69 74 | 65 73 20 74 65 78 74 20 |scr{Writ|es text |
|00004fb0| 61 74 20 61 20 73 70 65 | 63 69 66 69 65 64 20 70 |at a spe|cified p|
|00004fc0| 6f 73 69 74 69 6f 6e 20 | 72 65 6c 61 74 69 76 65 |osition |relative|
|00004fd0| 20 74 6f 20 74 68 65 20 | 76 69 65 77 70 6f 72 74 | to the |viewport|
|00004fe0| 0a 20 20 20 20 20 20 20 | 62 6f 75 6e 64 61 72 69 |. |boundari|
|00004ff0| 65 73 2e 20 54 65 78 74 | 20 6d 61 79 20 62 65 20 |es. Text| may be |
|00005000| 77 72 69 74 74 65 6e 20 | 69 6e 73 69 64 65 20 6f |written |inside o|
|00005010| 72 20 6f 75 74 73 69 64 | 65 20 74 68 65 20 76 69 |r outsid|e the vi|
|00005020| 65 77 70 6f 72 74 2c 0a | 20 20 20 20 20 20 20 62 |ewport,.| b|
|00005030| 75 74 20 69 73 20 63 6c | 69 70 70 65 64 20 61 74 |ut is cl|ipped at|
|00005040| 20 74 68 65 20 73 75 62 | 70 61 67 65 20 62 6f 75 | the sub|page bou|
|00005050| 6e 64 61 72 69 65 73 2e | 0a 20 20 20 20 20 20 20 |ndaries.|. |
|00005060| 54 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |The refe|rence po|
|00005070| 69 6e 74 20 6f 66 20 61 | 20 73 74 72 69 6e 67 20 |int of a| string |
|00005080| 6c 69 65 73 20 61 6c 6f | 6e 67 20 61 20 6c 69 6e |lies alo|ng a lin|
|00005090| 65 20 70 61 73 73 69 6e | 67 0a 20 20 20 20 20 20 |e passin|g. |
|000050a0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 73 74 72 | through| the str|
|000050b0| 69 6e 67 20 61 74 20 68 | 61 6c 66 20 74 68 65 20 |ing at h|alf the |
|000050c0| 68 65 69 67 68 74 20 6f | 66 20 61 20 63 61 70 69 |height o|f a capi|
|000050d0| 74 61 6c 20 6c 65 74 74 | 65 72 2e 0a 20 20 20 20 |tal lett|er.. |
|000050e0| 20 20 20 54 68 65 20 70 | 6f 73 69 74 69 6f 6e 20 | The p|osition |
|000050f0| 6f 66 20 74 68 65 20 72 | 65 66 65 72 65 6e 63 65 |of the r|eference|
|00005100| 20 70 6f 69 6e 74 20 61 | 6c 6f 6e 67 20 74 68 69 | point a|long thi|
|00005110| 73 20 6c 69 6e 65 20 69 | 73 20 64 65 74 65 72 6d |s line i|s determ|
|00005120| 69 6e 65 64 0a 20 20 20 | 20 20 20 20 62 79 20 7b |ined. | by {|
|00005130| 5c 74 74 20 6a 75 73 74 | 7d 2c 20 61 6e 64 20 74 |\tt just|}, and t|
|00005140| 68 65 20 70 6f 73 69 74 | 69 6f 6e 20 6f 66 20 74 |he posit|ion of t|
|00005150| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 70 6f 69 |he refer|ence poi|
|00005160| 6e 74 20 72 65 6c 61 74 | 69 76 65 20 74 6f 0a 20 |nt relat|ive to. |
|00005170| 20 20 20 20 20 20 74 68 | 65 20 76 69 65 77 70 6f | th|e viewpo|
|00005180| 72 74 20 69 73 20 73 65 | 74 20 62 79 20 7b 5c 74 |rt is se|t by {\t|
|00005190| 74 20 64 69 73 70 7d 20 | 61 6e 64 20 7b 5c 74 74 |t disp} |and {\tt|
|000051a0| 20 70 6f 73 7d 2e 7d 0a | 20 20 20 20 20 20 20 0a | pos}.}.| .|
|000051b0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 73 69 64 65 |\argu {{|\tt side|
|000051c0| 7d 20 28 63 68 61 72 20 | 2a 2c 20 69 6e 70 75 74 |} (char |*, input|
|000051d0| 29 7d 7b 53 70 65 63 69 | 66 69 65 73 20 74 68 65 |)}{Speci|fies the|
|000051e0| 20 73 69 64 65 20 6f 66 | 20 74 68 65 20 76 69 65 | side of| the vie|
|000051f0| 77 70 6f 72 74 20 61 6c | 6f 6e 67 0a 77 68 69 63 |wport al|ong.whic|
|00005200| 68 20 74 68 65 20 74 65 | 78 74 20 69 73 20 74 6f |h the te|xt is to|
|00005210| 20 62 65 20 77 72 69 74 | 74 65 6e 2e 20 54 68 65 | be writ|ten. The|
|00005220| 20 73 74 72 69 6e 67 20 | 6d 75 73 74 20 62 65 20 | string |must be |
|00005230| 6f 6e 65 20 6f 66 3a 0a | 5c 62 65 67 69 6e 7b 69 |one of:.|\begin{i|
|00005240| 74 65 6d 69 7a 65 7d 0a | 5c 69 74 65 6d 7b 62 7d |temize}.|\item{b}|
|00005250| 3a 20 42 6f 74 74 6f 6d | 20 6f 66 20 76 69 65 77 |: Bottom| of view|
|00005260| 70 6f 72 74 2e 0a 5c 69 | 74 65 6d 7b 6c 7d 3a 20 |port..\i|tem{l}: |
|00005270| 4c 65 66 74 20 6f 66 20 | 76 69 65 77 70 6f 72 74 |Left of |viewport|
|00005280| 2c 20 74 65 78 74 20 77 | 72 69 74 74 65 6e 20 70 |, text w|ritten p|
|00005290| 61 72 61 6c 6c 65 6c 20 | 74 6f 20 65 64 67 65 2e |arallel |to edge.|
|000052a0| 0a 5c 69 74 65 6d 7b 6c | 76 7d 3a 20 4c 65 66 74 |.\item{l|v}: Left|
|000052b0| 20 6f 66 20 76 69 65 77 | 70 6f 72 74 2c 20 74 65 | of view|port, te|
|000052c0| 78 74 20 77 72 69 74 74 | 65 6e 20 61 74 20 72 69 |xt writt|en at ri|
|000052d0| 67 68 74 20 61 6e 67 6c | 65 73 20 74 6f 20 65 64 |ght angl|es to ed|
|000052e0| 67 65 2e 0a 5c 69 74 65 | 6d 7b 72 7d 3a 20 52 69 |ge..\ite|m{r}: Ri|
|000052f0| 67 68 74 20 6f 66 20 76 | 69 65 77 70 6f 72 74 2c |ght of v|iewport,|
|00005300| 20 74 65 78 74 20 77 72 | 69 74 74 65 6e 20 70 61 | text wr|itten pa|
|00005310| 72 61 6c 6c 65 6c 20 74 | 6f 20 65 64 67 65 2e 0a |rallel t|o edge..|
|00005320| 5c 69 74 65 6d 7b 72 76 | 7d 3a 20 52 69 67 68 74 |\item{rv|}: Right|
|00005330| 20 6f 66 20 76 69 65 77 | 70 6f 72 74 2c 20 74 65 | of view|port, te|
|00005340| 78 74 20 77 72 69 74 74 | 65 6e 20 61 74 20 72 69 |xt writt|en at ri|
|00005350| 67 68 74 20 61 6e 67 6c | 65 73 20 74 6f 20 65 64 |ght angl|es to ed|
|00005360| 67 65 2e 0a 5c 69 74 65 | 6d 7b 74 7d 3a 20 54 6f |ge..\ite|m{t}: To|
|00005370| 70 20 6f 66 20 76 69 65 | 77 70 6f 72 74 2e 0a 5c |p of vie|wport..\|
|00005380| 65 6e 64 7b 69 74 65 6d | 69 7a 65 7d 0a 7d 0a 0a |end{item|ize}.}..|
|00005390| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 64 69 73 70 |\argu {{|\tt disp|
|000053a0| 7d 20 28 66 6c 6f 61 74 | 2c 20 69 6e 70 75 74 29 |} (float|, input)|
|000053b0| 7d 7b 50 6f 73 69 74 69 | 6f 6e 20 6f 66 20 74 68 |}{Positi|on of th|
|000053c0| 65 20 72 65 66 65 72 65 | 6e 63 65 20 70 6f 69 6e |e refere|nce poin|
|000053d0| 74 20 6f 66 20 73 74 72 | 69 6e 67 2c 0a 6d 65 61 |t of str|ing,.mea|
|000053e0| 73 75 72 65 64 20 6f 75 | 74 77 61 72 64 73 20 66 |sured ou|twards f|
|000053f0| 72 6f 6d 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |rom the |specifie|
|00005400| 64 20 76 69 65 77 70 6f | 72 74 20 65 64 67 65 20 |d viewpo|rt edge |
|00005410| 69 6e 20 75 6e 69 74 73 | 20 6f 66 20 74 68 65 0a |in units| of the.|
|00005420| 63 75 72 72 65 6e 74 20 | 63 68 61 72 61 63 74 65 |current |characte|
|00005430| 72 20 68 65 69 67 68 74 | 2e 20 55 73 65 20 6e 65 |r height|. Use ne|
|00005440| 67 61 74 69 76 65 20 7b | 5c 74 74 20 64 69 73 70 |gative {|\tt disp|
|00005450| 7d 20 74 6f 20 77 72 69 | 74 65 20 77 69 74 68 69 |} to wri|te withi|
|00005460| 6e 20 74 68 65 0a 76 69 | 65 77 70 6f 72 74 2e 7d |n the.vi|ewport.}|
|00005470| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 70 6f |..\argu |{{\tt po|
|00005480| 73 7d 20 28 66 6c 6f 61 | 74 2c 20 69 6e 70 75 74 |s} (floa|t, input|
|00005490| 29 7d 7b 50 6f 73 69 74 | 69 6f 6e 20 6f 66 20 74 |)}{Posit|ion of t|
|000054a0| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 70 6f 69 |he refer|ence poi|
|000054b0| 6e 74 20 6f 66 20 73 74 | 72 69 6e 67 20 61 6c 6f |nt of st|ring alo|
|000054c0| 6e 67 0a 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |ng.the s|pecified|
|000054d0| 20 65 64 67 65 2c 20 65 | 78 70 72 65 73 73 65 64 | edge, e|xpressed|
|000054e0| 20 61 73 20 61 20 66 72 | 61 63 74 69 6f 6e 20 6f | as a fr|action o|
|000054f0| 66 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |f the le|ngth of |
|00005500| 74 68 65 20 65 64 67 65 | 2e 7d 0a 0a 5c 61 72 67 |the edge|.}..\arg|
|00005510| 75 20 7b 7b 5c 74 74 20 | 6a 75 73 74 7d 20 28 66 |u {{\tt |just} (f|
|00005520| 6c 6f 61 74 2c 20 69 6e | 70 75 74 29 7d 7b 53 70 |loat, in|put)}{Sp|
|00005530| 65 63 69 66 69 65 73 20 | 74 68 65 20 70 6f 73 69 |ecifies |the posi|
|00005540| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 73 74 72 69 |tion of |the stri|
|00005550| 6e 67 20 72 65 6c 61 74 | 69 76 65 0a 74 6f 20 69 |ng relat|ive.to i|
|00005560| 74 73 20 72 65 66 65 72 | 65 6e 63 65 20 70 6f 69 |ts refer|ence poi|
|00005570| 6e 74 2e 20 49 66 20 7b | 5c 74 74 20 6a 75 73 74 |nt. If {|\tt just|
|00005580| 3d 30 7d 2c 20 74 68 65 | 20 72 65 66 65 72 65 6e |=0}, the| referen|
|00005590| 63 65 20 70 6f 69 6e 74 | 20 69 73 20 61 74 20 74 |ce point| is at t|
|000055a0| 68 65 20 6c 65 66 74 0a | 61 6e 64 20 69 66 20 7b |he left.|and if {|
|000055b0| 5c 74 74 20 6a 75 73 74 | 3d 31 7d 2c 20 69 74 20 |\tt just|=1}, it |
|000055c0| 69 73 20 61 74 20 74 68 | 65 20 72 69 67 68 74 20 |is at th|e right |
|000055d0| 6f 66 20 74 68 65 20 73 | 74 72 69 6e 67 2e 20 4f |of the s|tring. O|
|000055e0| 74 68 65 72 20 76 61 6c | 75 65 73 20 6f 66 20 7b |ther val|ues of {|
|000055f0| 5c 74 74 20 6a 75 73 74 | 7d 0a 67 69 76 65 20 69 |\tt just|}.give i|
|00005600| 6e 74 65 72 6d 65 64 69 | 61 74 65 20 6a 75 73 74 |ntermedi|ate just|
|00005610| 69 66 69 63 61 74 69 6f | 6e 73 2e 7d 0a 0a 5c 61 |ificatio|ns.}..\a|
|00005620| 72 67 75 20 7b 7b 5c 74 | 74 20 74 65 78 74 7d 20 |rgu {{\t|t text} |
|00005630| 28 63 68 61 72 20 2a 2c | 20 69 6e 70 75 74 29 7d |(char *,| input)}|
|00005640| 7b 54 68 65 20 73 74 72 | 69 6e 67 20 74 6f 20 62 |{The str|ing to b|
|00005650| 65 20 77 72 69 74 74 65 | 6e 20 6f 75 74 2e 7d 0a |e writte|n out.}.|
|00005660| 0a 0a 0a 5c 62 6e 61 6d | 65 7b 70 6c 6f 74 33 64 |...\bnam|e{plot3d|
|00005670| 28 78 2c 79 2c 7a 2c 77 | 6f 72 6b 2c 6c 79 2c 6e |(x,y,z,w|ork,ly,n|
|00005680| 78 2c 6e 79 2c 6f 70 74 | 29 3b 7d 5c 6c 61 62 65 |x,ny,opt|);}\labe|
|00005690| 6c 7b 70 6c 6f 74 33 64 | 7d 0a 5c 61 64 64 63 6f |l{plot3d|}.\addco|
|000056a0| 6e 74 65 6e 74 73 6c 69 | 6e 65 7b 74 6f 63 7d 7b |ntentsli|ne{toc}{|
|000056b0| 73 75 62 73 65 63 74 69 | 6f 6e 7d 7b 70 6c 6f 74 |subsecti|on}{plot|
|000056c0| 33 64 7d 0a 0a 5c 64 65 | 73 63 72 7b 50 6c 6f 74 |3d}..\de|scr{Plot|
|000056d0| 73 20 61 20 74 68 72 65 | 65 20 64 69 6d 65 6e 73 |s a thre|e dimens|
|000056e0| 69 6f 6e 61 6c 20 73 75 | 72 66 61 63 65 20 70 6c |ional su|rface pl|
|000056f0| 6f 74 20 77 69 74 68 69 | 6e 20 74 68 65 20 65 6e |ot withi|n the en|
|00005700| 76 69 72 6f 6e 6d 65 6e | 74 0a 20 20 20 20 20 20 |vironmen|t. |
|00005710| 20 20 73 65 74 20 75 70 | 20 62 79 20 7b 5c 74 74 | set up| by {\tt|
|00005720| 20 70 6c 77 33 64 7d 2e | 20 54 68 65 20 73 75 72 | plw3d}.| The sur|
|00005730| 66 61 63 65 20 69 73 20 | 64 65 66 69 6e 65 64 20 |face is |defined |
|00005740| 62 79 20 74 68 65 20 74 | 77 6f 2d 64 69 6d 65 6e |by the t|wo-dimen|
|00005750| 73 69 6f 6e 61 6c 0a 20 | 20 20 20 20 20 20 20 61 |sional. | a|
|00005760| 72 72 61 79 20 7b 5c 74 | 74 20 7a 5b 5d 5b 6c 79 |rray {\t|t z[][ly|
|00005770| 5d 7d 2c 20 74 68 65 20 | 70 6f 69 6e 74 20 7b 5c |]}, the |point {\|
|00005780| 74 74 20 7a 5b 69 5d 5b | 6a 5d 7d 20 62 65 69 6e |tt z[i][|j]} bein|
|00005790| 67 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |g the va|lue of t|
|000057a0| 68 65 0a 20 20 20 20 20 | 20 20 20 66 75 6e 63 74 |he. | funct|
|000057b0| 69 6f 6e 20 61 74 20 7b | 5c 74 74 20 28 78 5b 69 |ion at {|\tt (x[i|
|000057c0| 5d 2c 79 5b 6a 5d 29 7d | 2e 20 4e 6f 74 65 20 74 |],y[j])}|. Note t|
|000057d0| 68 61 74 20 74 68 65 20 | 70 6f 69 6e 74 73 20 69 |hat the |points i|
|000057e0| 6e 20 61 72 72 61 79 73 | 20 7b 5c 74 74 20 78 7d |n arrays| {\tt x}|
|000057f0| 20 61 6e 64 0a 20 20 20 | 20 20 20 20 20 7b 5c 74 | and. | {\t|
|00005800| 74 20 79 7d 20 64 6f 20 | 6e 6f 74 20 6e 65 65 64 |t y} do |not need|
|00005810| 20 74 6f 20 62 65 20 65 | 71 75 61 6c 6c 79 20 73 | to be e|qually s|
|00005820| 70 61 63 65 64 2c 20 62 | 75 74 20 6d 75 73 74 20 |paced, b|ut must |
|00005830| 62 65 20 73 74 6f 72 65 | 64 20 69 6e 0a 20 20 20 |be store|d in. |
|00005840| 20 20 20 20 20 61 73 63 | 65 6e 64 69 6e 67 20 6f | asc|ending o|
|00005850| 72 64 65 72 2e 20 54 68 | 65 20 70 61 72 61 6d 65 |rder. Th|e parame|
|00005860| 74 65 72 20 7b 5c 74 74 | 20 6f 70 74 7d 20 63 6f |ter {\tt| opt} co|
|00005870| 6e 74 72 6f 6c 73 20 74 | 68 65 20 77 61 79 20 69 |ntrols t|he way i|
|00005880| 6e 20 77 68 69 63 68 20 | 74 68 65 0a 20 20 20 20 |n which |the. |
|00005890| 20 20 20 20 73 75 72 66 | 61 63 65 20 69 73 20 64 | surf|ace is d|
|000058a0| 69 73 70 6c 61 79 65 64 | 2e 20 53 65 65 20 53 65 |isplayed|. See Se|
|000058b0| 63 74 69 6f 6e 20 5c 72 | 65 66 7b 74 68 72 65 65 |ction \r|ef{three|
|000058c0| 64 7d 20 6f 6e 20 70 61 | 67 65 20 5c 70 61 67 65 |d} on pa|ge \page|
|000058d0| 72 65 66 7b 74 68 72 65 | 65 64 7d 20 0a 20 20 20 |ref{thre|ed} . |
|000058e0| 20 20 20 20 20 66 6f 72 | 20 66 75 72 74 68 65 72 | for| further|
|000058f0| 20 64 65 74 61 69 6c 73 | 2e 7d 0a 20 20 20 20 20 | details|.}. |
|00005900| 20 20 20 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 | .\arg|u {{\tt |
|00005910| 78 7d 20 28 66 6c 6f 61 | 74 20 2a 2c 20 69 6e 70 |x} (floa|t *, inp|
|00005920| 75 74 29 7d 7b 50 6f 69 | 6e 74 65 72 20 74 6f 20 |ut)}{Poi|nter to |
|00005930| 0a 73 65 74 20 6f 66 20 | 78 7e 63 6f 6f 72 64 69 |.set of |x~coordi|
|00005940| 6e 61 74 65 20 76 61 6c | 75 65 73 20 61 74 20 77 |nate val|ues at w|
|00005950| 68 69 63 68 20 74 68 65 | 0a 66 75 6e 63 74 69 6f |hich the|.functio|
|00005960| 6e 20 69 73 20 65 76 61 | 6c 75 61 74 65 64 2e 7d |n is eva|luated.}|
|00005970| 0a 20 20 20 20 20 20 20 | 0a 5c 61 72 67 75 20 7b |. |.\argu {|
|00005980| 7b 5c 74 74 20 79 7d 20 | 28 66 6c 6f 61 74 20 2a |{\tt y} |(float *|
|00005990| 2c 20 69 6e 70 75 74 29 | 7d 7b 50 6f 69 6e 74 65 |, input)|}{Pointe|
|000059a0| 72 20 74 6f 20 0a 73 65 | 74 20 6f 66 20 79 7e 63 |r to .se|t of y~c|
|000059b0| 6f 6f 72 64 69 6e 61 74 | 65 20 76 61 6c 75 65 73 |oordinat|e values|
|000059c0| 20 61 74 20 77 68 69 63 | 68 20 74 68 65 0a 66 75 | at whic|h the.fu|
|000059d0| 6e 63 74 69 6f 6e 20 69 | 73 20 65 76 61 6c 75 61 |nction i|s evalua|
|000059e0| 74 65 64 2e 7d 0a 20 20 | 20 20 20 20 20 0a 5c 61 |ted.}. | .\a|
|000059f0| 72 67 75 20 7b 7b 5c 74 | 74 20 7a 7d 20 28 66 6c |rgu {{\t|t z} (fl|
|00005a00| 6f 61 74 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 50 |oat *, i|nput)}{P|
|00005a10| 6f 69 6e 74 65 72 20 74 | 6f 20 74 77 6f 20 64 69 |ointer t|o two di|
|00005a20| 6d 65 6e 73 69 6f 6e 61 | 6c 20 61 72 72 61 79 20 |mensiona|l array |
|00005a30| 77 69 74 68 0a 73 65 74 | 20 6f 66 20 66 75 6e 63 |with.set| of func|
|00005a40| 74 69 6f 6e 20 76 61 6c | 75 65 73 2e 7d 0a 0a 5c |tion val|ues.}..\|
|00005a50| 61 72 67 75 20 7b 7b 5c | 74 74 20 77 6f 72 6b 7d |argu {{\|tt work}|
|00005a60| 20 28 69 6e 74 20 2a 2c | 20 69 6e 70 75 74 20 61 | (int *,| input a|
|00005a70| 6e 64 20 6f 75 74 70 75 | 74 29 7d 7b 50 6f 69 6e |nd outpu|t)}{Poin|
|00005a80| 74 65 72 20 74 6f 0a 77 | 6f 72 6b 20 61 72 72 61 |ter to.w|ork arra|
|00005a90| 79 20 6f 66 20 64 69 6d | 65 6e 73 69 6f 6e 20 61 |y of dim|ension a|
|00005aa0| 74 0a 6c 65 61 73 74 20 | 66 6f 75 72 20 74 69 6d |t.least |four tim|
|00005ab0| 65 73 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 6f |es the m|aximum o|
|00005ac0| 66 20 7b 5c 74 74 20 6e | 78 7d 20 61 6e 64 20 7b |f {\tt n|x} and {|
|00005ad0| 5c 74 74 20 6e 79 7d 2e | 7d 0a 0a 5c 61 72 67 75 |\tt ny}.|}..\argu|
|00005ae0| 20 7b 7b 5c 74 74 20 6c | 79 7d 20 28 69 6e 74 2c | {{\tt l|y} (int,|
|00005af0| 20 69 6e 70 75 74 29 7d | 7b 44 65 63 6c 61 72 65 | input)}|{Declare|
|00005b00| 64 20 73 65 63 6f 6e 64 | 20 64 69 6d 65 6e 73 69 |d second| dimensi|
|00005b10| 6f 6e 20 6f 66 20 7b 5c | 74 74 20 7a 7d 7e 61 72 |on of {\|tt z}~ar|
|00005b20| 72 61 79 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |ray.}..\|argu {{\|
|00005b30| 74 74 20 6e 78 7d 20 28 | 69 6e 74 2c 20 69 6e 70 |tt nx} (|int, inp|
|00005b40| 75 74 29 7d 7b 4e 75 6d | 62 65 72 20 6f 66 20 7b |ut)}{Num|ber of {|
|00005b50| 5c 74 74 20 78 7d 7e 76 | 61 6c 75 65 73 20 61 74 |\tt x}~v|alues at|
|00005b60| 20 77 68 69 63 68 20 66 | 75 6e 63 74 69 6f 6e 20 | which f|unction |
|00005b70| 69 73 0a 65 76 61 6c 75 | 61 74 65 64 2e 7d 0a 0a |is.evalu|ated.}..|
|00005b80| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 79 7d 20 |\argu {{|\tt ny} |
|00005b90| 28 69 6e 74 2c 20 69 6e | 70 75 74 29 7d 7b 4e 75 |(int, in|put)}{Nu|
|00005ba0| 6d 62 65 72 20 6f 66 20 | 7b 5c 74 74 20 79 7d 7e |mber of |{\tt y}~|
|00005bb0| 76 61 6c 75 65 73 20 61 | 74 20 77 68 69 63 68 20 |values a|t which |
|00005bc0| 66 75 6e 63 74 69 6f 6e | 20 69 73 0a 65 76 61 6c |function| is.eval|
|00005bd0| 75 61 74 65 64 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |uated.}.|.\argu {|
|00005be0| 7b 5c 74 74 20 6f 70 74 | 7d 20 28 69 6e 74 2c 20 |{\tt opt|} (int, |
|00005bf0| 69 6e 70 75 74 29 7d 7b | 44 65 74 65 72 6d 69 6e |input)}{|Determin|
|00005c00| 65 73 20 74 68 65 20 77 | 61 79 20 69 6e 20 77 68 |es the w|ay in wh|
|00005c10| 69 63 68 20 74 68 65 20 | 73 75 72 66 61 63 65 0a |ich the |surface.|
|00005c20| 69 73 20 72 65 70 72 65 | 73 65 6e 74 65 64 3a 0a |is repre|sented:.|
|00005c30| 5c 62 65 67 69 6e 7b 69 | 74 65 6d 69 7a 65 7d 0a |\begin{i|temize}.|
|00005c40| 5c 69 74 65 6d 7b 31 7d | 3a 20 4c 69 6e 65 73 20 |\item{1}|: Lines |
|00005c50| 61 72 65 20 64 72 61 77 | 6e 20 73 68 6f 77 69 6e |are draw|n showin|
|00005c60| 67 20 7b 5c 74 74 20 7a | 7d 20 61 73 20 61 20 66 |g {\tt z|} as a f|
|00005c70| 75 6e 63 74 69 6f 6e 20 | 6f 66 20 7b 5c 74 74 20 |unction |of {\tt |
|00005c80| 78 7d 20 66 6f 72 20 65 | 61 63 68 20 76 61 6c 75 |x} for e|ach valu|
|00005c90| 65 0a 20 20 20 20 20 20 | 20 20 20 20 6f 66 20 7b |e. | of {|
|00005ca0| 5c 74 74 20 79 5b 6a 5d | 7d 2e 0a 5c 69 74 65 6d |\tt y[j]|}..\item|
|00005cb0| 7b 32 7d 3a 20 4c 69 6e | 65 73 20 61 72 65 20 64 |{2}: Lin|es are d|
|00005cc0| 72 61 77 6e 20 73 68 6f | 77 69 6e 67 20 7b 5c 74 |rawn sho|wing {\t|
|00005cd0| 74 20 7a 7d 20 61 73 20 | 61 20 66 75 6e 63 74 69 |t z} as |a functi|
|00005ce0| 6f 6e 20 6f 66 20 7b 5c | 74 74 20 79 7d 20 66 6f |on of {\|tt y} fo|
|00005cf0| 72 20 65 61 63 68 20 76 | 61 6c 75 65 0a 20 20 20 |r each v|alue. |
|00005d00| 20 20 20 20 20 20 20 6f | 66 20 7b 5c 74 74 20 78 | o|f {\tt x|
|00005d10| 5b 69 5d 7d 2e 0a 5c 69 | 74 65 6d 7b 33 7d 3a 20 |[i]}..\i|tem{3}: |
|00005d20| 4e 65 74 77 6f 72 6b 20 | 6f 66 20 6c 69 6e 65 73 |Network |of lines|
|00005d30| 20 69 73 20 64 72 61 77 | 6e 20 63 6f 6e 6e 65 63 | is draw|n connec|
|00005d40| 74 69 6e 67 20 70 6f 69 | 6e 74 73 20 61 74 20 77 |ting poi|nts at w|
|00005d50| 68 69 63 68 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |hich fun|ction is|
|00005d60| 0a 20 20 20 20 20 20 20 | 20 20 20 64 65 66 69 6e |. | defin|
|00005d70| 65 64 2e 0a 5c 65 6e 64 | 7b 69 74 65 6d 69 7a 65 |ed..\end|{itemize|
|00005d80| 7d 0a 7d 0a 0a 0a 0a 5c | 62 6e 61 6d 65 7b 70 6c |}.}....\|bname{pl|
|00005d90| 70 6f 69 6e 28 6e 2c 78 | 2c 79 2c 63 6f 64 65 29 |poin(n,x|,y,code)|
|00005da0| 3b 7d 5c 6c 61 62 65 6c | 7b 70 6c 70 6f 69 6e 7d |;}\label|{plpoin}|
|00005db0| 0a 5c 61 64 64 63 6f 6e | 74 65 6e 74 73 6c 69 6e |.\addcon|tentslin|
|00005dc0| 65 7b 74 6f 63 7d 7b 73 | 75 62 73 65 63 74 69 6f |e{toc}{s|ubsectio|
|00005dd0| 6e 7d 7b 70 6c 70 6f 69 | 6e 7d 0a 0a 5c 64 65 73 |n}{plpoi|n}..\des|
|00005de0| 63 72 7b 4d 61 72 6b 73 | 20 6f 75 74 20 61 20 73 |cr{Marks| out a s|
|00005df0| 65 74 20 6f 66 20 7b 5c | 74 74 20 6e 7d 20 70 6f |et of {\|tt n} po|
|00005e00| 69 6e 74 73 20 61 74 20 | 70 6f 73 69 74 69 6f 6e |ints at |position|
|00005e10| 73 20 7b 5c 74 74 20 28 | 78 28 69 29 2c 79 28 69 |s {\tt (|x(i),y(i|
|00005e20| 29 29 7d 2c 20 75 73 69 | 6e 67 0a 20 20 20 20 20 |))}, usi|ng. |
|00005e30| 20 20 74 68 65 20 73 79 | 6d 62 6f 6c 20 64 65 66 | the sy|mbol def|
|00005e40| 69 6e 65 64 20 62 79 20 | 7b 5c 74 74 20 63 6f 64 |ined by |{\tt cod|
|00005e50| 65 7d 2e 20 49 66 20 7b | 5c 74 74 20 63 6f 64 65 |e}. If {|\tt code|
|00005e60| 7d 20 69 73 20 62 65 74 | 77 65 65 6e 20 33 32 20 |} is bet|ween 32 |
|00005e70| 61 6e 64 20 31 32 37 2c | 0a 20 20 20 20 20 20 20 |and 127,|. |
|00005e80| 74 68 65 20 73 79 6d 62 | 6f 6c 20 69 73 20 73 69 |the symb|ol is si|
|00005e90| 6d 70 6c 79 20 74 68 65 | 20 70 72 69 6e 74 61 62 |mply the| printab|
|00005ea0| 6c 65 20 41 53 43 49 49 | 20 63 68 61 72 61 63 74 |le ASCII| charact|
|00005eb0| 65 72 20 69 6e 20 74 68 | 65 20 64 65 66 61 75 6c |er in th|e defaul|
|00005ec0| 74 0a 20 20 20 20 20 20 | 20 66 6f 6e 74 2e 7d 0a |t. | font.}.|
|00005ed0| 20 20 20 20 20 20 20 20 | 0a 5c 61 72 67 75 20 7b | |.\argu {|
|00005ee0| 7b 5c 74 74 20 6e 7d 20 | 28 69 6e 74 2c 20 69 6e |{\tt n} |(int, in|
|00005ef0| 70 75 74 29 7d 7b 4e 75 | 6d 62 65 72 20 6f 66 20 |put)}{Nu|mber of |
|00005f00| 70 6f 69 6e 74 73 20 74 | 6f 20 62 65 20 6d 61 72 |points t|o be mar|
|00005f10| 6b 65 64 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |ked.}..\|argu {{\|
|00005f20| 74 74 20 78 7d 20 28 66 | 6c 6f 61 74 20 2a 2c 20 |tt x} (f|loat *, |
|00005f30| 69 6e 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |input)}{|Pointer |
|00005f40| 74 6f 20 61 72 72 61 79 | 20 77 69 74 68 0a 73 65 |to array| with.se|
|00005f50| 74 20 6f 66 20 78 7e 63 | 6f 6f 72 64 69 6e 61 74 |t of x~c|oordinat|
|00005f60| 65 20 76 61 6c 75 65 73 | 20 66 6f 72 20 74 68 65 |e values| for the|
|00005f70| 20 70 6f 69 6e 74 73 2e | 7d 0a 20 20 20 20 20 20 | points.|}. |
|00005f80| 20 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 79 7d | .\argu |{{\tt y}|
|00005f90| 20 28 66 6c 6f 61 74 20 | 2a 2c 20 69 6e 70 75 74 | (float |*, input|
|00005fa0| 29 7d 7b 50 6f 69 6e 74 | 65 72 20 74 6f 20 61 72 |)}{Point|er to ar|
|00005fb0| 72 61 79 20 77 69 74 68 | 0a 73 65 74 20 6f 66 20 |ray with|.set of |
|00005fc0| 79 7e 63 6f 6f 72 64 69 | 6e 61 74 65 20 76 61 6c |y~coordi|nate val|
|00005fd0| 75 65 73 20 66 6f 72 20 | 74 68 65 20 70 6f 69 6e |ues for |the poin|
|00005fe0| 74 73 2e 7d 0a 20 20 20 | 20 20 20 20 0a 5c 61 72 |ts.}. | .\ar|
|00005ff0| 67 75 20 7b 7b 5c 74 74 | 20 63 6f 64 65 7d 20 28 |gu {{\tt| code} (|
|00006000| 69 6e 74 2c 20 69 6e 70 | 75 74 29 7d 7b 43 6f 64 |int, inp|ut)}{Cod|
|00006010| 65 20 6e 75 6d 62 65 72 | 20 66 6f 72 20 74 68 65 |e number| for the|
|00006020| 20 73 79 6d 62 6f 6c 20 | 74 6f 20 62 65 20 70 6c | symbol |to be pl|
|00006030| 6f 74 74 65 64 2e 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |otted.}.|...\bnam|
|00006040| 65 7b 70 6c 70 74 65 78 | 28 78 2c 79 2c 64 78 2c |e{plptex|(x,y,dx,|
|00006050| 64 79 2c 6a 75 73 74 2c | 74 65 78 74 29 3b 7d 5c |dy,just,|text);}\|
|00006060| 6c 61 62 65 6c 7b 70 6c | 70 74 65 78 7d 0a 5c 61 |label{pl|ptex}.\a|
|00006070| 64 64 63 6f 6e 74 65 6e | 74 73 6c 69 6e 65 7b 74 |ddconten|tsline{t|
|00006080| 6f 63 7d 7b 73 75 62 73 | 65 63 74 69 6f 6e 7d 7b |oc}{subs|ection}{|
|00006090| 70 6c 70 74 65 78 7d 0a | 0a 5c 64 65 73 63 72 7b |plptex}.|.\descr{|
|000060a0| 57 72 69 74 65 73 20 74 | 65 78 74 20 61 74 20 61 |Writes t|ext at a|
|000060b0| 20 73 70 65 63 69 66 69 | 65 64 20 70 6f 73 69 74 | specifi|ed posit|
|000060c0| 69 6f 6e 20 61 6e 64 20 | 69 6e 63 6c 69 6e 61 74 |ion and |inclinat|
|000060d0| 69 6f 6e 20 77 69 74 68 | 69 6e 20 74 68 65 20 0a |ion with|in the .|
|000060e0| 20 20 20 20 20 20 20 76 | 69 65 77 70 6f 72 74 2e | v|iewport.|
|000060f0| 20 54 65 78 74 20 69 73 | 20 63 6c 69 70 70 65 64 | Text is| clipped|
|00006100| 20 61 74 20 74 68 65 20 | 76 69 65 77 70 6f 72 74 | at the |viewport|
|00006110| 20 62 6f 75 6e 64 61 72 | 69 65 73 2e 0a 20 20 20 | boundar|ies.. |
|00006120| 20 20 20 20 54 68 65 20 | 72 65 66 65 72 65 6e 63 | The |referenc|
|00006130| 65 20 70 6f 69 6e 74 20 | 6f 66 20 61 20 73 74 72 |e point |of a str|
|00006140| 69 6e 67 20 6c 69 65 73 | 20 61 6c 6f 6e 67 20 61 |ing lies| along a|
|00006150| 20 6c 69 6e 65 20 70 61 | 73 73 69 6e 67 0a 20 20 | line pa|ssing. |
|00006160| 20 20 20 20 20 74 68 72 | 6f 75 67 68 20 74 68 65 | thr|ough the|
|00006170| 20 73 74 72 69 6e 67 20 | 61 74 20 68 61 6c 66 20 | string |at half |
|00006180| 74 68 65 20 68 65 69 67 | 68 74 20 6f 66 20 61 20 |the heig|ht of a |
|00006190| 63 61 70 69 74 61 6c 20 | 6c 65 74 74 65 72 2e 0a |capital |letter..|
|000061a0| 20 20 20 20 20 20 20 54 | 68 65 20 70 6f 73 69 74 | T|he posit|
|000061b0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 72 65 66 65 72 |ion of t|he refer|
|000061c0| 65 6e 63 65 20 70 6f 69 | 6e 74 20 61 6c 6f 6e 67 |ence poi|nt along|
|000061d0| 20 74 68 69 73 20 6c 69 | 6e 65 20 69 73 20 64 65 | this li|ne is de|
|000061e0| 74 65 72 6d 69 6e 65 64 | 0a 20 20 20 20 20 20 20 |termined|. |
|000061f0| 62 79 20 7b 5c 74 74 20 | 6a 75 73 74 7d 2c 20 74 |by {\tt |just}, t|
|00006200| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 70 6f 69 |he refer|ence poi|
|00006210| 6e 74 20 69 73 20 70 6c | 61 63 65 64 20 61 74 20 |nt is pl|aced at |
|00006220| 77 6f 72 6c 64 20 63 6f | 6f 72 64 69 6e 61 74 65 |world co|ordinate|
|00006230| 73 0a 20 20 20 20 20 20 | 20 7b 5c 74 74 20 28 78 |s. | {\tt (x|
|00006240| 2c 79 29 7d 20 77 69 74 | 68 69 6e 20 74 68 65 20 |,y)} wit|hin the |
|00006250| 76 69 65 77 70 6f 72 74 | 2e 20 54 68 65 20 69 6e |viewport|. The in|
|00006260| 63 6c 69 6e 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |clinatio|n of the|
|00006270| 20 73 74 72 69 6e 67 20 | 69 73 0a 20 20 20 20 20 | string |is. |
|00006280| 20 20 73 70 65 63 69 66 | 69 65 64 20 69 6e 20 74 | specif|ied in t|
|00006290| 65 72 6d 73 20 6f 66 20 | 64 69 66 66 65 72 65 6e |erms of |differen|
|000062a0| 63 65 73 20 6f 66 20 77 | 6f 72 6c 64 20 63 6f 6f |ces of w|orld coo|
|000062b0| 72 64 69 6e 61 74 65 73 | 20 6d 61 6b 69 6e 67 0a |rdinates| making.|
|000062c0| 20 20 20 20 20 20 20 69 | 74 20 65 61 73 79 20 74 | i|t easy t|
|000062d0| 6f 20 77 72 69 74 65 20 | 74 65 78 74 20 70 61 72 |o write |text par|
|000062e0| 61 6c 6c 65 6c 20 74 6f | 20 61 20 6c 69 6e 65 20 |allel to| a line |
|000062f0| 69 6e 20 61 20 67 72 61 | 70 68 2e 7d 0a 20 20 20 |in a gra|ph.}. |
|00006300| 20 20 20 20 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 | .\ar|gu {{\tt|
|00006310| 20 78 7d 20 28 66 6c 6f | 61 74 2c 20 69 6e 70 75 | x} (flo|at, inpu|
|00006320| 74 29 7d 7b 78 20 63 6f | 6f 72 64 69 6e 61 74 65 |t)}{x co|ordinate|
|00006330| 20 6f 66 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f | of refe|rence po|
|00006340| 69 6e 74 20 6f 66 20 73 | 74 72 69 6e 67 2e 7d 0a |int of s|tring.}.|
|00006350| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 79 7d 20 |.\argu {|{\tt y} |
|00006360| 28 66 6c 6f 61 74 2c 20 | 69 6e 70 75 74 29 7d 7b |(float, |input)}{|
|00006370| 79 20 63 6f 6f 72 64 69 | 6e 61 74 65 20 6f 66 20 |y coordi|nate of |
|00006380| 72 65 66 65 72 65 6e 63 | 65 20 70 6f 69 6e 74 20 |referenc|e point |
|00006390| 6f 66 20 73 74 72 69 6e | 67 2e 7d 0a 0a 5c 61 72 |of strin|g.}..\ar|
|000063a0| 67 75 20 7b 7b 5c 74 74 | 20 64 78 7d 20 28 66 6c |gu {{\tt| dx} (fl|
|000063b0| 6f 61 74 2c 20 69 6e 70 | 75 74 29 7d 7b 54 6f 67 |oat, inp|ut)}{Tog|
|000063c0| 65 74 68 65 72 20 77 69 | 74 68 20 7b 5c 74 74 20 |ether wi|th {\tt |
|000063d0| 64 79 7d 2c 20 74 68 69 | 73 20 73 70 65 63 69 66 |dy}, thi|s specif|
|000063e0| 69 65 73 20 74 68 65 20 | 69 6e 63 6c 69 6e 61 74 |ies the |inclinat|
|000063f0| 69 6f 6e 20 0a 6f 66 20 | 74 68 65 20 73 74 72 69 |ion .of |the stri|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.