home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 344b.lha / plplot_v2.6 / docs / chapter4.tex < prev    next >
LaTeX Document  |  1990-01-27  |  42.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: chapter4.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 20 7b 50 4c 50 4c 4f 54 |\chapter| {PLPLOT|
|00000010| 20 53 75 62 72 6f 75 74 | 69 6e 65 20 52 65 66 65 | Subrout|ine Refe|
|00000020| 72 65 6e 63 65 7d 20 5c | 6c 61 62 65 6c 7b 72 65 |rence} \|label{re|
|00000030| 66 65 72 65 6e 63 65 7d | 0a 0a 41 6c 6c 20 74 68 |ference}|..All th|
|00000040| 65 20 50 4c 50 4c 4f 54 | 20 73 75 62 72 6f 75 74 |e PLPLOT| subrout|
|00000050| 69 6e 65 73 20 61 72 65 | 20 6c 69 73 74 65 64 20 |ines are| listed |
|00000060| 62 65 6c 6f 77 20 69 6e | 20 61 6c 70 68 61 62 65 |below in| alphabe|
|00000070| 74 69 63 61 6c 0a 6f 72 | 64 65 72 2e 0a 0a 5c 62 |tical.or|der...\b|
|00000080| 6e 61 6d 65 7b 70 6c 61 | 64 76 28 73 75 62 29 7d |name{pla|dv(sub)}|
|00000090| 5c 6c 61 62 65 6c 7b 70 | 6c 61 64 76 7d 0a 5c 61 |\label{p|ladv}.\a|
|000000a0| 64 64 63 6f 6e 74 65 6e | 74 73 6c 69 6e 65 7b 74 |ddconten|tsline{t|
|000000b0| 6f 63 7d 7b 73 75 62 73 | 65 63 74 69 6f 6e 7d 7b |oc}{subs|ection}{|
|000000c0| 70 6c 61 64 76 7d 0a 0a | 5c 64 65 73 63 72 7b 41 |pladv}..|\descr{A|
|000000d0| 64 76 61 6e 63 65 73 20 | 74 6f 20 74 68 65 20 6e |dvances |to the n|
|000000e0| 65 78 74 20 73 75 62 70 | 61 67 65 20 69 66 20 7b |ext subp|age if {|
|000000f0| 5c 74 74 20 73 75 62 3d | 30 7d 20 6f 72 20 74 6f |\tt sub=|0} or to|
|00000100| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 0a 73 | the spe|cified.s|
|00000110| 75 62 70 61 67 65 0a 69 | 66 20 7b 5c 74 74 20 73 |ubpage.i|f {\tt s|
|00000120| 75 62 7d 20 69 73 20 6e | 6f 6e 2d 7a 65 72 6f 2e |ub} is n|on-zero.|
|00000130| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 69 73 | This ro|utine is|
|00000140| 20 63 61 6c 6c 65 64 20 | 61 75 74 6f 6d 61 74 69 | called |automati|
|00000150| 63 61 6c 6c 79 20 28 77 | 69 74 68 0a 7b 5c 74 74 |cally (w|ith.{\tt|
|00000160| 20 73 75 62 3d 30 7d 29 | 0a 62 79 20 7b 5c 74 74 | sub=0})|.by {\tt|
|00000170| 20 70 6c 65 6e 76 7d 2c | 20 62 75 74 20 69 66 20 | plenv},| but if |
|00000180| 7b 5c 74 74 20 70 6c 65 | 6e 76 7d 20 69 73 20 6e |{\tt ple|nv} is n|
|00000190| 6f 74 20 75 73 65 64 2c | 20 7b 5c 74 74 20 70 6c |ot used,| {\tt pl|
|000001a0| 61 64 76 7d 0a 20 6d 75 | 73 74 20 62 65 20 63 61 |adv}. mu|st be ca|
|000001b0| 6c 6c 65 64 20 61 66 74 | 65 72 20 7b 5c 74 74 20 |lled aft|er {\tt |
|000001c0| 70 6c 73 74 61 72 7d 0a | 62 75 74 20 62 65 66 6f |plstar}.|but befo|
|000001d0| 72 65 20 64 65 66 69 6e | 69 6e 67 20 74 68 65 20 |re defin|ing the |
|000001e0| 76 69 65 77 70 6f 72 74 | 2e 7d 0a 0a 5c 61 72 67 |viewport|.}..\arg|
|000001f0| 75 20 7b 7b 5c 74 74 20 | 73 75 62 7d 20 28 50 4c |u {{\tt |sub} (PL|
|00000200| 49 4e 54 2c 20 69 6e 70 | 75 74 29 7d 7b 53 70 65 |INT, inp|ut)}{Spe|
|00000210| 63 69 66 69 65 73 20 74 | 68 65 20 73 75 62 70 61 |cifies t|he subpa|
|00000220| 67 65 20 6e 75 6d 62 65 | 72 20 28 73 74 61 72 74 |ge numbe|r (start|
|00000230| 69 6e 67 20 66 72 6f 6d | 0a 31 20 69 6e 20 74 68 |ing from|.1 in th|
|00000240| 65 20 74 6f 70 20 6c 65 | 66 74 20 63 6f 72 6e 65 |e top le|ft corne|
|00000250| 72 20 61 6e 64 20 69 6e | 63 72 65 61 73 69 6e 67 |r and in|creasing|
|00000260| 20 61 6c 6f 6e 67 20 74 | 68 65 20 72 6f 77 73 29 | along t|he rows)|
|00000270| 20 74 6f 20 77 68 69 63 | 68 20 74 6f 20 61 64 76 | to whic|h to adv|
|00000280| 61 6e 63 65 2e 0a 53 65 | 74 20 74 6f 20 7a 65 72 |ance..Se|t to zer|
|00000290| 6f 20 74 6f 20 61 64 76 | 61 6e 63 65 20 74 6f 20 |o to adv|ance to |
|000002a0| 74 68 65 20 6e 65 78 74 | 20 73 75 62 70 61 67 65 |the next| subpage|
|000002b0| 2e 7d 0a 0a 0a 0a 5c 62 | 6e 61 6d 65 7b 70 6c 62 |.}....\b|name{plb|
|000002c0| 65 67 28 64 65 76 2c 6e | 78 2c 6e 79 29 7d 5c 6c |eg(dev,n|x,ny)}\l|
|000002d0| 61 62 65 6c 7b 70 6c 62 | 65 67 7d 0a 5c 61 64 64 |abel{plb|eg}.\add|
|000002e0| 63 6f 6e 74 65 6e 74 73 | 6c 69 6e 65 7b 74 6f 63 |contents|line{toc|
|000002f0| 7d 7b 73 75 62 73 65 63 | 74 69 6f 6e 7d 7b 70 6c |}{subsec|tion}{pl|
|00000300| 62 65 67 7d 0a 0a 5c 64 | 65 73 63 72 7b 41 6c 74 |beg}..\d|escr{Alt|
|00000310| 65 72 6e 61 74 69 76 65 | 20 74 6f 20 7b 5c 74 74 |ernative| to {\tt|
|00000320| 20 70 6c 73 74 61 72 7d | 20 66 6f 72 20 69 6e 69 | plstar}| for ini|
|00000330| 74 69 61 6c 69 7a 69 6e | 67 20 74 68 65 20 70 6c |tializin|g the pl|
|00000340| 6f 74 74 69 6e 67 20 70 | 61 63 6b 61 67 65 2e 20 |otting p|ackage. |
|00000350| 54 68 65 0a 20 20 20 20 | 20 20 20 20 64 65 76 69 |The. | devi|
|00000360| 63 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |ce numbe|r of the|
|00000370| 20 64 65 73 69 72 65 64 | 20 6f 75 74 70 75 74 20 | desired| output |
|00000380| 64 65 76 69 63 65 20 6d | 75 73 74 20 62 65 20 73 |device m|ust be s|
|00000390| 75 70 70 6c 69 65 64 20 | 61 73 0a 20 20 20 20 20 |upplied |as. |
|000003a0| 20 20 20 61 6e 20 61 72 | 67 75 6d 65 6e 74 2e 20 | an ar|gument. |
|000003b0| 54 68 65 20 6d 61 70 70 | 69 6e 67 20 66 72 6f 6d |The mapp|ing from|
|000003c0| 20 64 65 76 69 63 65 20 | 6e 75 6d 62 65 72 73 20 | device |numbers |
|000003d0| 74 6f 20 64 65 76 69 63 | 65 73 20 76 61 72 69 65 |to devic|es varie|
|000003e0| 73 0a 20 20 20 20 20 20 | 20 20 66 72 6f 6d 20 6f |s. | from o|
|000003f0| 6e 65 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |ne imple|mentatio|
|00000400| 6e 20 74 6f 20 61 6e 6f | 74 68 65 72 2c 20 61 6e |n to ano|ther, an|
|00000410| 64 20 73 6f 20 75 73 65 | 20 6f 66 20 7b 5c 74 74 |d so use| of {\tt|
|00000420| 20 70 6c 73 74 61 72 7d | 20 77 68 69 63 68 0a 20 | plstar}| which. |
|00000430| 20 20 20 20 20 20 20 70 | 72 6f 6d 70 74 73 20 66 | p|rompts f|
|00000440| 6f 72 20 74 68 65 20 64 | 65 76 69 63 65 20 74 79 |or the d|evice ty|
|00000450| 70 65 20 69 73 20 72 65 | 63 6f 6d 6d 65 6e 64 65 |pe is re|commende|
|00000460| 64 2e 20 54 68 65 20 64 | 65 76 69 63 65 20 63 6f |d. The d|evice co|
|00000470| 64 65 73 20 61 72 65 0a | 20 20 20 20 20 20 20 20 |des are.| |
|00000480| 74 68 65 20 73 61 6d 65 | 20 61 73 20 74 68 6f 73 |the same| as thos|
|00000490| 65 20 70 72 69 6e 74 65 | 64 20 6f 75 74 20 62 79 |e printe|d out by|
|000004a0| 20 7b 5c 74 74 20 70 6c | 73 74 61 72 7d 2e 20 54 | {\tt pl|star}. T|
|000004b0| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 61 6c 73 6f |his rout|ine also|
|000004c0| 20 64 69 76 69 64 65 73 | 0a 20 20 20 20 20 20 20 | divides|. |
|000004d0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 64 65 76 69 | the out|put devi|
|000004e0| 63 65 20 69 6e 74 6f 20 | 7b 5c 74 74 20 6e 78 7d |ce into |{\tt nx}|
|000004f0| 20 62 79 20 7b 5c 74 74 | 20 6e 79 7d 20 73 75 62 | by {\tt| ny} sub|
|00000500| 2d 70 61 67 65 73 2c 20 | 65 61 63 68 20 6f 66 20 |-pages, |each of |
|00000510| 77 68 69 63 68 20 6d 61 | 79 0a 20 20 20 20 20 20 |which ma|y. |
|00000520| 20 20 62 65 20 75 73 65 | 64 20 69 6e 64 65 70 65 | be use|d indepe|
|00000530| 6e 64 65 6e 74 6c 79 2e | 20 54 68 65 20 73 75 62 |ndently.| The sub|
|00000540| 72 6f 75 74 69 6e 65 20 | 7b 5c 74 74 20 70 6c 61 |routine |{\tt pla|
|00000550| 64 76 7d 20 69 73 20 75 | 73 65 64 20 74 6f 20 61 |dv} is u|sed to a|
|00000560| 64 76 61 6e 63 65 0a 20 | 20 20 20 20 20 20 20 66 |dvance. | f|
|00000570| 72 6f 6d 20 6f 6e 65 20 | 73 75 62 70 61 67 65 20 |rom one |subpage |
|00000580| 74 6f 20 74 68 65 20 6e | 65 78 74 2e 7d 0a 0a 5c |to the n|ext.}..\|
|00000590| 61 72 67 75 20 7b 7b 5c | 74 74 20 64 65 76 7d 20 |argu {{\|tt dev} |
|000005a0| 28 50 4c 49 4e 54 2c 20 | 69 6e 70 75 74 29 7d 7b |(PLINT, |input)}{|
|000005b0| 44 65 76 69 63 65 20 6e | 75 6d 62 65 72 20 6f 66 |Device n|umber of|
|000005c0| 20 74 68 65 20 72 65 71 | 75 69 72 65 64 20 6f 75 | the req|uired ou|
|000005d0| 74 70 75 74 20 64 65 76 | 69 63 65 2e 7d 0a 0a 5c |tput dev|ice.}..\|
|000005e0| 61 72 67 75 20 7b 7b 5c | 74 74 20 6e 78 7d 20 28 |argu {{\|tt nx} (|
|000005f0| 50 4c 49 4e 54 2c 20 69 | 6e 70 75 74 29 7d 7b 4e |PLINT, i|nput)}{N|
|00000600| 75 6d 62 65 72 20 6f 66 | 20 73 75 62 70 61 67 65 |umber of| subpage|
|00000610| 73 20 74 6f 20 64 69 76 | 69 64 65 20 6f 75 74 70 |s to div|ide outp|
|00000620| 75 74 20 70 61 67 65 20 | 69 6e 0a 20 20 20 20 20 |ut page |in. |
|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 50 4c |gu {{\tt| ny} (PL|
|00000660| 49 4e 54 2c 20 69 6e 70 | 75 74 29 7d 7b 4e 75 6d |INT, inp|ut)}{Num|
|00000670| 62 65 72 20 6f 66 20 73 | 75 62 70 61 67 65 73 20 |ber of s|ubpages |
|00000680| 74 6f 20 64 69 76 69 64 | 65 20 6f 75 74 70 75 74 |to divid|e output|
|00000690| 20 70 61 67 65 20 69 6e | 0a 20 20 20 20 20 20 74 | page in|. t|
|000006a0| 68 65 20 76 65 72 74 69 | 63 61 6c 20 64 69 72 65 |he verti|cal dire|
|000006b0| 63 74 69 6f 6e 2e 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |ction.}.|...\bnam|
|000006c0| 65 7b 70 6c 62 69 6e 28 | 6e 62 69 6e 2c 78 2c 79 |e{plbin(|nbin,x,y|
|000006d0| 2c 63 65 6e 29 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 0a 20 20 20 20 20 20 | 20 70 6f 69 6e 74 73 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 0a 20 20 20 20 20 20 |peration|,. |
|000007f0| 20 74 68 65 20 76 61 6c | 75 65 73 20 69 6e 20 7b | the val|ues 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 0a 20 20 20 20 | 20 20 20 49 66 20 7b 5c |ce.. | If {\|
|00000840| 74 74 20 63 65 6e 74 72 | 65 7d 20 69 73 20 66 61 |tt centr|e} 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 0a 20 20 20 | edge of| the. |
|00000880| 20 20 20 20 7b 5c 74 74 | 20 69 27 74 68 7d 20 62 | {\tt| i'th} b|
|00000890| 69 6e 2c 20 61 6e 64 20 | 69 66 20 7b 5c 74 74 20 |in, and |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 0a 20 20 20 20 | 20 20 20 61 72 65 20 70 |ies. | are p|
|000008d0| 6c 61 63 65 64 20 6d 69 | 64 77 61 79 20 62 65 74 |laced mi|dway bet|
|000008e0| 77 65 65 6e 20 74 68 65 | 20 76 61 6c 75 65 73 20 |ween the| 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 0a 20 20 20 20 20 |rray. Al|so. |
|00000910| 20 20 73 65 65 20 7b 5c | 74 74 20 70 6c 68 69 73 | see {\|tt plhis|
|00000920| 74 7d 20 66 6f 72 20 64 | 72 61 77 69 6e 67 20 68 |t} for d|rawing 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 0a 0a |nbinned |data.}..|
|00000950| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 62 69 6e |\argu {{|\tt nbin|
|00000960| 7d 20 28 50 4c 49 4e 54 | 2c 20 69 6e 70 75 74 29 |} (PLINT|, input)|
|00000970| 7d 7b 4e 75 6d 62 65 72 | 20 6f 66 20 62 69 6e 73 |}{Number| of bins|
|00000980| 20 28 69 2e 65 2e 2c 20 | 6e 75 6d 62 65 72 20 6f | (i.e., |number o|
|00000990| 66 20 76 61 6c 75 65 73 | 20 69 6e 20 24 78 24 0a |f values| in $x$.|
|000009a0| 61 6e 64 20 24 79 24 20 | 61 72 72 61 79 73 2e 29 |and $y$ |arrays.)|
|000009b0| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 |}..\argu| {{\tt x|
|000009c0| 7d 20 28 50 4c 46 4c 54 | 20 2a 2c 20 69 6e 70 75 |} (PLFLT| *, inpu|
|000009d0| 74 29 7d 7b 50 6f 69 6e | 74 65 72 20 74 6f 20 61 |t)}{Poin|ter to a|
|000009e0| 72 72 61 79 20 63 6f 6e | 74 61 69 6e 69 6e 67 0a |rray con|taining.|
|000009f0| 76 61 6c 75 65 73 20 61 | 73 73 6f 63 69 61 74 65 |values a|ssociate|
|00000a00| 64 20 77 69 74 68 20 62 | 69 6e 73 2e 20 54 68 65 |d with b|ins. The|
|00000a10| 73 65 20 6d 75 73 74 20 | 66 6f 72 6d 0a 61 20 73 |se must |form.a s|
|00000a20| 74 72 69 63 74 6c 79 20 | 69 6e 63 72 65 61 73 69 |trictly |increasi|
|00000a30| 6e 67 20 73 65 71 75 65 | 6e 63 65 2e 7d 0a 0a 5c |ng seque|nce.}..\|
|00000a40| 61 72 67 75 20 7b 7b 5c | 74 74 20 79 7d 20 28 50 |argu {{\|tt y} (P|
|00000a50| 4c 46 4c 54 20 2a 2c 20 | 69 6e 70 75 74 29 7d 7b |LFLT *, |input)}{|
|00000a60| 50 6f 69 6e 74 65 72 20 | 74 6f 20 61 72 72 61 79 |Pointer |to array|
|00000a70| 20 63 6f 6e 74 61 69 6e | 69 6e 67 0a 6e 75 6d 62 | contain|ing.numb|
|00000a80| 65 72 20 6f 66 20 70 6f | 69 6e 74 73 20 69 6e 20 |er of po|ints in |
|00000a90| 62 69 6e 2e 20 54 68 69 | 73 20 69 73 20 61 0a 50 |bin. Thi|s is a.P|
|00000aa0| 4c 46 4c 54 20 28 69 6e | 73 74 65 61 64 20 6f 66 |LFLT (in|stead of|
|00000ab0| 20 50 4c 49 4e 54 29 0a | 61 72 72 61 79 20 73 6f | PLINT).|array so|
|00000ac0| 20 61 73 20 74 6f 20 61 | 6c 6c 6f 77 20 68 69 73 | as to a|llow his|
|00000ad0| 74 6f 67 72 61 6d 73 20 | 6f 66 20 70 72 6f 62 61 |tograms |of proba|
|00000ae0| 62 69 6c 69 74 69 65 73 | 2c 20 65 74 63 2e 7d 0a |bilities|, etc.}.|
|00000af0| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 63 65 6e |.\argu {|{\tt cen|
|00000b00| 7d 20 28 50 4c 49 4e 54 | 2c 20 69 6e 70 75 74 29 |} (PLINT|, input)|
|00000b10| 7d 7b 49 6e 64 69 63 61 | 74 65 73 20 77 68 65 74 |}{Indica|tes whet|
|00000b20| 68 65 72 20 74 68 65 20 | 76 61 6c 75 65 73 20 69 |her the |values i|
|00000b30| 6e 20 7b 5c 74 74 20 78 | 7d 0a 72 65 70 72 65 73 |n {\tt x|}.repres|
|00000b40| 65 6e 74 20 74 68 65 20 | 6c 6f 77 65 72 20 62 69 |ent the |lower bi|
|00000b50| 6e 20 62 6f 75 6e 64 61 | 72 69 65 73 20 28 7b 5c |n bounda|ries ({\|
|00000b60| 74 74 20 63 65 6e 3d 30 | 7d 29 20 6f 72 20 77 68 |tt cen=0|}) or wh|
|00000b70| 65 74 68 65 72 0a 74 68 | 65 20 62 69 6e 20 62 6f |ether.th|e bin bo|
|00000b80| 75 6e 64 61 72 69 65 73 | 20 61 72 65 20 74 6f 20 |undaries| are to |
|00000b90| 62 65 20 6d 69 64 77 61 | 79 20 62 65 74 77 65 65 |be midwa|y betwee|
|00000ba0| 6e 20 74 68 65 20 7b 5c | 74 74 20 78 7d 20 76 61 |n the {\|tt x} va|
|00000bb0| 6c 75 65 73 20 28 7b 5c | 74 74 20 63 65 6e 3d 31 |lues ({\|tt cen=1|
|00000bc0| 7d 29 2e 0a 49 66 20 74 | 68 65 20 76 61 6c 75 65 |})..If t|he value|
|00000bd0| 73 20 69 6e 20 7b 5c 74 | 74 20 78 7d 20 61 72 65 |s in {\t|t x} are|
|00000be0| 20 65 71 75 61 6c 6c 79 | 20 73 70 61 63 65 64 20 | equally| spaced |
|00000bf0| 61 6e 64 20 7b 5c 74 74 | 20 63 65 6e 3d 31 7d 2c |and {\tt| cen=1},|
|00000c00| 0a 74 68 65 20 76 61 6c | 75 65 73 20 69 6e 20 7b |.the val|ues in {|
|00000c10| 5c 74 74 20 78 7d 0a 61 | 72 65 20 74 68 65 20 63 |\tt x}.a|re the c|
|00000c20| 65 6e 74 72 65 20 76 61 | 6c 75 65 73 20 6f 66 20 |entre va|lues of |
|00000c30| 74 68 65 20 62 69 6e 73 | 2e 7d 0a 0a 0a 0a 5c 62 |the bins|.}....\b|
|00000c40| 6e 61 6d 65 7b 70 6c 62 | 6f 78 28 78 6f 70 74 2c |name{plb|ox(xopt,|
|00000c50| 78 74 69 63 6b 2c 6e 78 | 73 75 62 2c 79 6f 70 74 |xtick,nx|sub,yopt|
|00000c60| 2c 79 74 69 63 6b 2c 6e | 79 73 75 62 29 7d 5c 6c |,ytick,n|ysub)}\l|
|00000c70| 61 62 65 6c 7b 70 6c 62 | 6f 78 7d 0a 5c 61 64 64 |abel{plb|ox}.\add|
|00000c80| 63 6f 6e 74 65 6e 74 73 | 6c 69 6e 65 7b 74 6f 63 |contents|line{toc|
|00000c90| 7d 7b 73 75 62 73 65 63 | 74 69 6f 6e 7d 7b 70 6c |}{subsec|tion}{pl|
|00000ca0| 62 6f 78 7d 0a 0a 5c 64 | 65 73 63 72 7b 44 72 61 |box}..\d|escr{Dra|
|00000cb0| 77 73 20 61 20 62 6f 78 | 20 61 72 6f 75 6e 64 20 |ws a box| around |
|00000cc0| 74 68 65 20 63 75 72 72 | 65 6e 74 6c 79 20 64 65 |the curr|ently de|
|00000cd0| 66 69 6e 65 64 20 76 69 | 65 77 70 6f 72 74 2c 20 |fined vi|ewport, |
|00000ce0| 61 6e 64 20 6c 61 62 65 | 6c 73 20 69 74 0a 20 20 |and labe|ls it. |
|00000cf0| 20 20 20 20 20 77 69 74 | 68 20 77 6f 72 6c 64 20 | wit|h world |
|00000d00| 63 6f 6f 72 64 69 6e 61 | 74 65 20 76 61 6c 75 65 |coordina|te value|
|00000d10| 73 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 74 6f |s approp|riate to|
|00000d20| 20 74 68 65 20 77 69 6e | 64 6f 77 2e 20 54 68 75 | the win|dow. Thu|
|00000d30| 73 0a 20 20 20 20 20 20 | 20 7b 5c 74 74 20 70 6c |s. | {\tt pl|
|00000d40| 62 6f 78 7d 20 73 68 6f | 75 6c 64 20 6f 6e 6c 79 |box} sho|uld only|
|00000d50| 20 62 65 20 63 61 6c 6c | 65 64 20 61 66 74 65 72 | be call|ed after|
|00000d60| 20 64 65 66 69 6e 69 6e | 67 20 62 6f 74 68 20 76 | definin|g both v|
|00000d70| 69 65 77 70 6f 72 74 20 | 61 6e 64 0a 20 20 20 20 |iewport |and. |
|00000d80| 20 20 20 77 69 6e 64 6f | 77 2e 20 54 68 65 20 63 | windo|w. The c|
|00000d90| 68 61 72 61 63 74 65 72 | 20 73 74 72 69 6e 67 73 |haracter| strings|
|00000da0| 20 7b 5c 74 74 20 78 6f | 70 74 7d 20 61 6e 64 20 | {\tt xo|pt} and |
|00000db0| 7b 5c 74 74 20 79 6f 70 | 74 7d 20 73 70 65 63 69 |{\tt yop|t} speci|
|00000dc0| 66 79 20 68 6f 77 20 74 | 68 65 0a 20 20 20 20 20 |fy how t|he. |
|00000dd0| 20 20 62 6f 78 20 73 68 | 6f 75 6c 64 20 62 65 20 | box sh|ould be |
|00000de0| 64 72 61 77 6e 20 61 73 | 20 64 65 73 63 72 69 62 |drawn as| describ|
|00000df0| 65 64 20 62 65 6c 6f 77 | 2e 20 49 66 20 74 69 63 |ed below|. If tic|
|00000e00| 6b 73 20 61 6e 64 2f 6f | 72 20 73 75 62 74 69 63 |ks and/o|r subtic|
|00000e10| 6b 73 0a 20 20 20 20 20 | 20 20 61 72 65 20 74 6f |ks. | are to|
|00000e20| 20 62 65 20 64 72 61 77 | 6e 20 66 6f 72 20 61 20 | be draw|n for a |
|00000e30| 70 61 72 74 69 63 75 6c | 61 72 20 61 78 69 73 2c |particul|ar axis,|
|00000e40| 20 74 68 65 20 74 69 63 | 6b 20 69 6e 74 65 72 76 | the tic|k interv|
|00000e50| 61 6c 73 20 61 6e 64 20 | 6e 75 6d 62 65 72 0a 20 |als and |number. |
|00000e60| 20 20 20 20 20 20 6f 66 | 20 73 75 62 69 6e 74 65 | of| subinte|
|00000e70| 72 76 61 6c 73 20 6d 61 | 79 20 62 65 20 73 70 65 |rvals ma|y be spe|
|00000e80| 63 69 66 69 65 64 20 65 | 78 70 6c 69 63 69 74 6c |cified e|xplicitl|
|00000e90| 79 2c 20 6f 72 20 74 68 | 65 79 20 6d 61 79 20 62 |y, or th|ey may b|
|00000ea0| 65 0a 20 20 20 20 20 20 | 20 64 65 66 61 75 6c 74 |e. | default|
|00000eb0| 65 64 20 62 79 20 73 65 | 74 74 69 6e 67 20 74 68 |ed by se|tting th|
|00000ec0| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 61 72 |e approp|riate ar|
|00000ed0| 67 75 6d 65 6e 74 73 20 | 74 6f 20 7a 65 72 6f 2e |guments |to zero.|
|00000ee0| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 |}..\argu| {{\tt x|
|00000ef0| 6f 70 74 7d 20 28 63 68 | 61 72 20 2a 2c 20 69 6e |opt} (ch|ar *, in|
|00000f00| 70 75 74 29 7d 7b 50 6f | 69 6e 74 65 72 20 74 6f |put)}{Po|inter to|
|00000f10| 0a 63 68 61 72 61 63 74 | 65 72 20 73 74 72 69 6e |.charact|er strin|
|00000f20| 67 20 73 70 65 63 69 66 | 79 69 6e 67 20 6f 70 74 |g specif|ying opt|
|00000f30| 69 6f 6e 73 20 66 6f 72 | 0a 68 6f 72 69 7a 6f 6e |ions for|.horizon|
|00000f40| 74 61 6c 20 61 78 69 73 | 2e 20 54 68 65 20 73 74 |tal axis|. The st|
|00000f50| 72 69 6e 67 20 63 61 6e | 20 69 6e 63 6c 75 64 65 |ring can| include|
|00000f60| 20 61 6e 79 20 63 6f 6d | 62 69 6e 61 74 69 6f 6e | any com|bination|
|00000f70| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|00000f80| 67 0a 6c 65 74 74 65 72 | 73 20 28 75 70 70 65 72 |g.letter|s (upper|
|00000f90| 20 6f 72 20 6c 6f 77 65 | 72 20 63 61 73 65 29 20 | or lowe|r case) |
|00000fa0| 69 6e 20 61 6e 79 20 6f | 72 64 65 72 3a 0a 5c 62 |in any o|rder:.\b|
|00000fb0| 65 67 69 6e 7b 69 74 65 | 6d 69 7a 65 7d 0a 5c 69 |egin{ite|mize}.\i|
|00000fc0| 74 65 6d 7b 7b 5c 74 74 | 20 61 20 3a 7d 7d 20 44 |tem{{\tt| a :}} D|
|00000fd0| 72 61 77 73 20 61 78 69 | 73 2c 20 58 2d 61 78 69 |raws axi|s, X-axi|
|00000fe0| 73 20 69 73 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |s is hor|izontal |
|00000ff0| 6c 69 6e 65 20 7b 5c 74 | 74 20 79 3d 30 7d 2c 20 |line {\t|t y=0}, |
|00001000| 61 6e 64 20 59 2d 61 78 | 69 73 20 69 73 0a 76 65 |and Y-ax|is is.ve|
|00001010| 72 74 69 63 61 6c 20 6c | 69 6e 65 20 7b 5c 74 74 |rtical l|ine {\tt|
|00001020| 20 78 3d 30 7d 2e 0a 5c | 69 74 65 6d 7b 7b 5c 74 | x=0}..\|item{{\t|
|00001030| 74 20 62 20 3a 7d 7d 20 | 44 72 61 77 73 20 62 6f |t b :}} |Draws bo|
|00001040| 74 74 6f 6d 20 28 58 29 | 20 6f 72 20 6c 65 66 74 |ttom (X)| or left|
|00001050| 20 28 59 29 20 65 64 67 | 65 20 6f 66 20 66 72 61 | (Y) edg|e of fra|
|00001060| 6d 65 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 63 |me..\ite|m{{\tt c|
|00001070| 20 3a 7d 7d 20 44 72 61 | 77 73 20 74 6f 70 20 28 | :}} Dra|ws top (|
|00001080| 58 29 20 6f 72 20 72 69 | 67 68 74 20 28 59 29 20 |X) or ri|ght (Y) |
|00001090| 65 64 67 65 20 6f 66 20 | 66 72 61 6d 65 2e 0a 5c |edge of |frame..\|
|000010a0| 69 74 65 6d 7b 7b 5c 74 | 74 20 67 20 3a 7d 7d 20 |item{{\t|t g :}} |
|000010b0| 44 72 61 77 73 20 61 20 | 67 72 69 64 20 61 74 20 |Draws a |grid at |
|000010c0| 74 68 65 20 6d 61 6a 6f | 72 20 74 69 63 6b 20 69 |the majo|r tick i|
|000010d0| 6e 74 65 72 76 61 6c 2e | 0a 5c 69 74 65 6d 7b 7b |nterval.|.\item{{|
|000010e0| 5c 74 74 20 69 20 3a 7d | 7d 20 49 6e 76 65 72 74 |\tt i :}|} Invert|
|000010f0| 73 20 74 69 63 6b 20 6d | 61 72 6b 73 2c 20 73 6f |s tick m|arks, so|
|00001100| 20 74 68 65 79 20 61 72 | 65 20 64 72 61 77 6e 20 | they ar|e drawn |
|00001110| 6f 75 74 77 61 72 64 73 | 2c 20 72 61 74 68 65 72 |outwards|, rather|
|00001120| 20 74 68 61 6e 0a 69 6e | 77 61 72 64 73 2e 0a 5c | than.in|wards..\|
|00001130| 69 74 65 6d 7b 7b 5c 74 | 74 20 6c 20 3a 7d 7d 20 |item{{\t|t l :}} |
|00001140| 4c 61 62 65 6c 73 20 61 | 78 69 73 20 6c 6f 67 61 |Labels a|xis loga|
|00001150| 72 69 74 68 6d 69 63 61 | 6c 6c 79 2e 20 54 68 69 |rithmica|lly. Thi|
|00001160| 73 20 6f 6e 6c 79 20 61 | 66 66 65 63 74 73 20 74 |s only a|ffects t|
|00001170| 68 65 20 6c 61 62 65 6c | 73 2c 0a 6e 6f 74 20 74 |he label|s,.not t|
|00001180| 68 65 20 64 61 74 61 2c | 20 61 6e 64 20 73 6f 20 |he data,| and so |
|00001190| 69 74 20 69 73 20 6e 65 | 63 65 73 73 61 72 79 20 |it is ne|cessary |
|000011a0| 74 6f 20 63 6f 6d 70 75 | 74 65 20 74 68 65 20 6c |to compu|te the l|
|000011b0| 6f 67 61 72 69 74 68 6d | 73 20 6f 66 20 64 61 74 |ogarithm|s of dat|
|000011c0| 61 0a 70 6f 69 6e 74 73 | 20 62 65 66 6f 72 65 20 |a.points| before |
|000011d0| 70 61 73 73 69 6e 67 20 | 74 68 65 6d 20 74 6f 20 |passing |them to |
|000011e0| 61 6e 79 20 6f 66 20 74 | 68 65 20 64 72 61 77 69 |any of t|he drawi|
|000011f0| 6e 67 20 72 6f 75 74 69 | 6e 65 73 2e 0a 5c 69 74 |ng routi|nes..\it|
|00001200| 65 6d 7b 7b 5c 74 74 20 | 6d 20 3a 7d 7d 20 57 72 |em{{\tt |m :}} Wr|
|00001210| 69 74 65 73 20 6e 75 6d | 65 72 69 63 20 6c 61 62 |ites num|eric lab|
|00001220| 65 6c 73 20 61 74 20 6d | 61 6a 6f 72 20 74 69 63 |els at m|ajor tic|
|00001230| 6b 20 69 6e 74 65 72 76 | 61 6c 73 20 69 6e 20 74 |k interv|als in t|
|00001240| 68 65 0a 75 6e 63 6f 6e | 76 65 6e 74 69 6f 6e 61 |he.uncon|ventiona|
|00001250| 6c 20 6c 6f 63 61 74 69 | 6f 6e 20 28 61 62 6f 76 |l locati|on (abov|
|00001260| 65 20 62 6f 78 20 66 6f | 72 20 58 2c 20 72 69 67 |e box fo|r X, rig|
|00001270| 68 74 20 6f 66 20 62 6f | 78 20 66 6f 72 20 59 29 |ht of bo|x for Y)|
|00001280| 2e 0a 5c 69 74 65 6d 7b | 7b 5c 74 74 20 6e 20 3a |..\item{|{\tt n :|
|00001290| 7d 7d 20 57 72 69 74 65 | 73 20 6e 75 6d 65 72 69 |}} Write|s numeri|
|000012a0| 63 20 6c 61 62 65 6c 73 | 20 61 74 20 6d 61 6a 6f |c labels| at majo|
|000012b0| 72 20 74 69 63 6b 20 69 | 6e 74 65 72 76 61 6c 73 |r tick i|ntervals|
|000012c0| 20 69 6e 20 74 68 65 0a | 63 6f 6e 76 65 6e 74 69 | in the.|conventi|
|000012d0| 6f 6e 61 6c 20 6c 6f 63 | 61 74 69 6f 6e 20 28 62 |onal loc|ation (b|
|000012e0| 65 6c 6f 77 20 62 6f 78 | 20 66 6f 72 20 58 2c 20 |elow box| for X, |
|000012f0| 6c 65 66 74 20 6f 66 20 | 62 6f 78 20 66 6f 72 20 |left of |box for |
|00001300| 59 29 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 73 |Y)..\ite|m{{\tt s|
|00001310| 20 3a 7d 7d 20 45 6e 61 | 62 6c 65 73 20 73 75 62 | :}} Ena|bles sub|
|00001320| 74 69 63 6b 73 20 62 65 | 74 77 65 65 6e 20 6d 61 |ticks be|tween ma|
|00001330| 6a 6f 72 20 74 69 63 6b | 73 2c 20 6f 6e 6c 79 20 |jor tick|s, only |
|00001340| 76 61 6c 69 64 20 69 66 | 20 7b 5c 74 74 20 74 7d |valid if| {\tt t}|
|00001350| 20 69 73 0a 61 6c 73 6f | 20 73 70 65 63 69 66 69 | is.also| specifi|
|00001360| 65 64 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 74 |ed..\ite|m{{\tt t|
|00001370| 20 3a 7d 7d 20 44 72 61 | 77 73 20 6d 61 6a 6f 72 | :}} Dra|ws major|
|00001380| 20 74 69 63 6b 73 2e 0a | 5c 65 6e 64 7b 69 74 65 | ticks..|\end{ite|
|00001390| 6d 69 7a 65 7d 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |mize}}..|\argu {{|
|000013a0| 5c 74 74 20 78 74 69 63 | 6b 7d 20 28 50 4c 46 4c |\tt xtic|k} (PLFL|
|000013b0| 54 2c 20 69 6e 70 75 74 | 29 7d 7b 57 6f 72 6c 64 |T, input|)}{World|
|000013c0| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 69 6e 74 65 | coordin|ate inte|
|000013d0| 72 76 61 6c 20 62 65 74 | 77 65 65 6e 20 6d 61 6a |rval bet|ween maj|
|000013e0| 6f 72 20 74 69 63 6b 73 | 0a 6f 6e 20 74 68 65 20 |or ticks|.on the |
|000013f0| 78 7e 61 78 69 73 2e 20 | 49 66 20 69 74 20 69 73 |x~axis. |If it is|
|00001400| 20 73 65 74 20 74 6f 20 | 7a 65 72 6f 2c 20 50 4c | set to |zero, PL|
|00001410| 50 4c 4f 54 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |PLOT aut|omatical|
|00001420| 6c 79 20 67 65 6e 65 72 | 61 74 65 73 20 61 0a 73 |ly gener|ates a.s|
|00001430| 75 69 74 61 62 6c 65 20 | 74 69 63 6b 20 69 6e 74 |uitable |tick int|
|00001440| 65 72 76 61 6c 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |erval.}.|.\argu {|
|00001450| 7b 5c 74 74 20 6e 78 73 | 75 62 7d 20 28 50 4c 49 |{\tt nxs|ub} (PLI|
|00001460| 4e 54 2c 20 69 6e 70 75 | 74 29 7d 7b 4e 75 6d 62 |NT, inpu|t)}{Numb|
|00001470| 65 72 20 6f 66 20 73 75 | 62 69 6e 74 65 72 76 61 |er of su|binterva|
|00001480| 6c 73 20 62 65 74 77 65 | 65 6e 20 6d 61 6a 6f 72 |ls betwe|en major|
|00001490| 20 78 7e 61 78 69 73 0a | 74 69 63 6b 73 20 66 6f | x~axis.|ticks fo|
|000014a0| 72 20 6d 69 6e 6f 72 20 | 74 69 63 6b 73 2e 20 49 |r minor |ticks. I|
|000014b0| 66 20 69 74 20 69 73 20 | 73 65 74 20 74 6f 20 7a |f it is |set to z|
|000014c0| 65 72 6f 2c 20 50 4c 50 | 4c 4f 54 20 61 75 74 6f |ero, PLP|LOT auto|
|000014d0| 6d 61 74 69 63 61 6c 6c | 79 20 67 65 6e 65 72 61 |maticall|y genera|
|000014e0| 74 65 73 20 61 0a 73 75 | 69 74 61 62 6c 65 20 6d |tes a.su|itable m|
|000014f0| 69 6e 6f 72 20 74 69 63 | 6b 20 69 6e 74 65 72 76 |inor tic|k interv|
|00001500| 61 6c 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |al.}..\a|rgu {{\t|
|00001510| 74 20 79 6f 70 74 7d 20 | 28 63 68 61 72 20 2a 2c |t yopt} |(char *,|
|00001520| 20 69 6e 70 75 74 29 7d | 7b 50 6f 69 6e 74 65 72 | input)}|{Pointer|
|00001530| 20 74 6f 0a 63 68 61 72 | 61 63 74 65 72 20 73 74 | to.char|acter st|
|00001540| 72 69 6e 67 20 73 70 65 | 63 69 66 79 69 6e 67 20 |ring spe|cifying |
|00001550| 6f 70 74 69 6f 6e 73 20 | 66 6f 72 0a 76 65 72 74 |options |for.vert|
|00001560| 69 63 61 6c 20 61 78 69 | 73 2e 20 54 68 65 20 73 |ical axi|s. The s|
|00001570| 74 72 69 6e 67 20 63 61 | 6e 20 69 6e 63 6c 75 64 |tring ca|n includ|
|00001580| 65 20 61 6e 79 20 63 6f | 6d 62 69 6e 61 74 69 6f |e any co|mbinatio|
|00001590| 6e 20 6f 66 20 74 68 65 | 20 6c 65 74 74 65 72 73 |n of the| letters|
|000015a0| 0a 64 65 66 69 6e 65 64 | 20 61 62 6f 76 65 20 66 |.defined| above f|
|000015b0| 6f 72 20 7b 5c 74 74 20 | 78 6f 70 74 7d 2c 20 61 |or {\tt |xopt}, a|
|000015c0| 6e 64 20 69 6e 20 61 64 | 64 69 74 69 6f 6e 20 6d |nd in ad|dition m|
|000015d0| 61 79 20 63 6f 6e 74 61 | 69 6e 3a 0a 5c 62 65 67 |ay conta|in:.\beg|
|000015e0| 69 6e 7b 69 74 65 6d 69 | 7a 65 7d 0a 5c 69 74 65 |in{itemi|ze}.\ite|
|000015f0| 6d 7b 7b 5c 74 74 20 76 | 20 7d 7d 7b 3a 20 57 72 |m{{\tt v| }}{: Wr|
|00001600| 69 74 65 20 6e 75 6d 65 | 72 69 63 20 6c 61 62 65 |ite nume|ric labe|
|00001610| 6c 73 20 66 6f 72 20 76 | 65 72 74 69 63 61 6c 20 |ls for v|ertical |
|00001620| 61 78 69 73 20 70 61 72 | 61 6c 6c 65 6c 20 74 6f |axis par|allel to|
|00001630| 20 74 68 65 0a 62 61 73 | 65 20 6f 66 20 74 68 65 | the.bas|e of the|
|00001640| 20 67 72 61 70 68 2c 20 | 72 61 74 68 65 72 20 74 | graph, |rather t|
|00001650| 68 61 6e 20 70 61 72 61 | 6c 6c 65 6c 20 74 6f 20 |han para|llel to |
|00001660| 74 68 65 20 61 78 69 73 | 2e 7d 0a 5c 65 6e 64 7b |the axis|.}.\end{|
|00001670| 69 74 65 6d 69 7a 65 7d | 0a 7d 0a 0a 5c 61 72 67 |itemize}|.}..\arg|
|00001680| 75 20 7b 7b 5c 74 74 20 | 79 74 69 63 6b 7d 20 28 |u {{\tt |ytick} (|
|00001690| 72 65 61 6c 2c 20 69 6e | 70 75 74 29 7d 7b 57 6f |real, in|put)}{Wo|
|000016a0| 72 6c 64 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 69 |rld coor|dinate i|
|000016b0| 6e 74 65 72 76 61 6c 20 | 62 65 74 77 65 65 6e 20 |nterval |between |
|000016c0| 6d 61 6a 6f 72 20 74 69 | 63 6b 73 0a 6f 6e 20 74 |major ti|cks.on t|
|000016d0| 68 65 20 79 7e 61 78 69 | 73 2e 20 49 66 20 69 74 |he y~axi|s. If it|
|000016e0| 20 69 73 20 73 65 74 20 | 74 6f 20 7a 65 72 6f 2c | is set |to zero,|
|000016f0| 20 50 4c 50 4c 4f 54 20 | 61 75 74 6f 6d 61 74 69 | PLPLOT |automati|
|00001700| 63 61 6c 6c 79 20 67 65 | 6e 65 72 61 74 65 73 20 |cally ge|nerates |
|00001710| 61 0a 73 75 69 74 61 62 | 6c 65 20 74 69 63 6b 20 |a.suitab|le tick |
|00001720| 69 6e 74 65 72 76 61 6c | 2e 7d 0a 0a 5c 61 72 67 |interval|.}..\arg|
|00001730| 75 20 7b 7b 5c 74 74 20 | 6e 79 73 75 62 7d 20 28 |u {{\tt |nysub} (|
|00001740| 50 4c 49 4e 54 2c 20 69 | 6e 70 75 74 29 7d 7b 4e |PLINT, i|nput)}{N|
|00001750| 75 6d 62 65 72 20 6f 66 | 20 73 75 62 69 6e 74 65 |umber of| subinte|
|00001760| 72 76 61 6c 73 20 62 65 | 74 77 65 65 6e 20 6d 61 |rvals be|tween ma|
|00001770| 6a 6f 72 20 79 7e 61 78 | 69 73 0a 74 69 63 6b 73 |jor y~ax|is.ticks|
|00001780| 20 66 6f 72 20 6d 69 6e | 6f 72 20 74 69 63 6b 73 | for min|or ticks|
|00001790| 2e 20 49 66 20 69 74 20 | 69 73 20 73 65 74 20 74 |. If it |is set t|
|000017a0| 6f 20 7a 65 72 6f 2c 20 | 50 4c 50 4c 4f 54 20 61 |o zero, |PLPLOT a|
|000017b0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 67 65 6e |utomatic|ally gen|
|000017c0| 65 72 61 74 65 73 20 61 | 0a 73 75 69 74 61 62 6c |erates a|.suitabl|
|000017d0| 65 20 6d 69 6e 6f 72 20 | 74 69 63 6b 20 69 6e 74 |e minor |tick int|
|000017e0| 65 72 76 61 6c 2e 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |erval.}.|...\bnam|
|000017f0| 65 7b 20 5c 62 65 67 69 | 6e 7b 74 61 62 75 6c 61 |e{ \begi|n{tabula|
|00001800| 72 7d 7b 6c 40 7b 5c 73 | 74 72 75 74 7d 6c 7d 0a |r}{l@{\s|trut}l}.|
|00001810| 20 20 20 20 20 20 20 20 | 70 6c 62 6f 78 33 28 26 | |plbox3(&|
|00001820| 78 6f 70 74 2c 78 6c 61 | 62 65 6c 2c 78 74 69 63 |xopt,xla|bel,xtic|
|00001830| 6b 2c 6e 78 73 75 62 2c | 79 6f 70 74 2c 79 6c 61 |k,nxsub,|yopt,yla|
|00001840| 62 65 6c 2c 79 74 69 63 | 6b 2c 6e 79 73 75 62 2c |bel,ytic|k,nysub,|
|00001850| 5c 5c 0a 20 20 20 20 20 | 20 20 20 26 7a 6f 70 74 |\\. | &zopt|
|00001860| 2c 7a 6c 61 62 65 6c 2c | 7a 74 69 63 6b 2c 6e 7a |,zlabel,|ztick,nz|
|00001870| 73 75 62 29 0a 20 20 20 | 20 20 20 20 20 5c 65 6e |sub). | \en|
|00001880| 64 7b 74 61 62 75 6c 61 | 72 7d 0a 20 20 20 20 20 |d{tabula|r}. |
|00001890| 20 7d 20 5c 6c 61 62 65 | 6c 7b 70 6c 62 6f 78 33 | } \labe|l{plbox3|
|000018a0| 7d 0a 5c 61 64 64 63 6f | 6e 74 65 6e 74 73 6c 69 |}.\addco|ntentsli|
|000018b0| 6e 65 7b 74 6f 63 7d 7b | 73 75 62 73 65 63 74 69 |ne{toc}{|subsecti|
|000018c0| 6f 6e 7d 7b 70 6c 62 6f | 78 33 7d 0a 0a 5c 64 65 |on}{plbo|x3}..\de|
|000018d0| 73 63 72 7b 44 72 61 77 | 73 20 61 78 65 73 2c 20 |scr{Draw|s axes, |
|000018e0| 6e 75 6d 65 72 69 63 20 | 61 6e 64 20 74 65 78 74 |numeric |and text|
|000018f0| 20 6c 61 62 65 6c 73 20 | 66 6f 72 20 61 20 74 68 | labels |for a th|
|00001900| 72 65 65 2d 64 69 6d 65 | 6e 73 69 6f 6e 61 6c 20 |ree-dime|nsional |
|00001910| 73 75 72 66 61 63 65 0a | 20 20 20 20 20 20 20 70 |surface.| p|
|00001920| 6c 6f 74 2e 20 53 65 65 | 20 53 65 63 74 69 6f 6e |lot. See| Section|
|00001930| 20 5c 72 65 66 7b 74 68 | 72 65 65 64 7d 20 6f 6e | \ref{th|reed} on|
|00001940| 20 70 61 67 65 20 5c 70 | 61 67 65 72 65 66 7b 74 | page \p|ageref{t|
|00001950| 68 72 65 65 64 7d 20 66 | 6f 72 20 61 0a 20 20 20 |hreed} f|or a. |
|00001960| 20 20 20 20 6d 6f 72 65 | 20 63 6f 6d 70 6c 65 74 | more| complet|
|00001970| 65 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |e descri|ption of|
|00001980| 20 74 68 72 65 65 2d 64 | 69 6d 65 6e 73 69 6f 6e | three-d|imension|
|00001990| 61 6c 20 70 6c 6f 74 74 | 69 6e 67 2e 7d 0a 0a 5c |al plott|ing.}..\|
|000019a0| 61 72 67 75 20 7b 7b 5c | 74 74 20 78 6f 70 74 7d |argu {{\|tt xopt}|
|000019b0| 20 28 63 68 61 72 20 2a | 2c 20 69 6e 70 75 74 29 | (char *|, input)|
|000019c0| 7d 7b 50 6f 69 6e 74 65 | 72 20 74 6f 0a 63 68 61 |}{Pointe|r to.cha|
|000019d0| 72 61 63 74 65 72 20 73 | 74 72 69 6e 67 20 73 70 |racter s|tring sp|
|000019e0| 65 63 69 66 79 69 6e 67 | 20 6f 70 74 69 6f 6e 73 |ecifying| options|
|000019f0| 20 66 6f 72 0a 74 68 65 | 20 78 7e 61 78 69 73 2e | for.the| x~axis.|
|00001a00| 20 54 68 65 20 73 74 72 | 69 6e 67 20 63 61 6e 20 | The str|ing can |
|00001a10| 69 6e 63 6c 75 64 65 20 | 61 6e 79 20 63 6f 6d 62 |include |any comb|
|00001a20| 69 6e 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 66 |ination |of the f|
|00001a30| 6f 6c 6c 6f 77 69 6e 67 | 0a 6c 65 74 74 65 72 73 |ollowing|.letters|
|00001a40| 20 28 75 70 70 65 72 20 | 6f 72 20 6c 6f 77 65 72 | (upper |or lower|
|00001a50| 20 63 61 73 65 29 20 69 | 6e 20 61 6e 79 20 6f 72 | case) i|n any or|
|00001a60| 64 65 72 3a 0a 5c 62 65 | 67 69 6e 7b 69 74 65 6d |der:.\be|gin{item|
|00001a70| 69 7a 65 7d 0a 5c 69 74 | 65 6d 7b 7b 5c 74 74 20 |ize}.\it|em{{\tt |
|00001a80| 62 20 3a 7d 7d 20 44 72 | 61 77 73 20 61 78 69 73 |b :}} Dr|aws axis|
|00001a90| 20 61 74 20 62 61 73 65 | 2c 20 61 74 20 68 65 69 | at base|, at hei|
|00001aa0| 67 68 74 20 7b 5c 74 74 | 20 7a 3d 7a 6d 69 6e 7d |ght {\tt| z=zmin}|
|00001ab0| 20 77 68 65 72 65 20 7b | 5c 74 74 20 7a 6d 69 6e | where {|\tt zmin|
|00001ac0| 7d 20 69 73 20 64 65 66 | 69 6e 65 64 0a 62 79 20 |} is def|ined.by |
|00001ad0| 63 61 6c 6c 20 74 6f 20 | 7b 5c 74 74 20 70 6c 77 |call to |{\tt plw|
|00001ae0| 33 64 7d 2e 20 54 68 69 | 73 20 63 68 61 72 61 63 |3d}. Thi|s charac|
|00001af0| 74 65 72 20 6d 75 73 74 | 20 62 65 20 73 70 65 63 |ter must| be spec|
|00001b00| 69 66 69 65 64 20 69 6e | 20 6f 72 64 65 72 20 74 |ified in| order t|
|00001b10| 6f 20 75 73 65 20 61 6e | 79 0a 6f 66 20 74 68 65 |o use an|y.of the|
|00001b20| 20 6f 74 68 65 72 20 6f | 70 74 69 6f 6e 73 2e 0a | other o|ptions..|
|00001b30| 5c 69 74 65 6d 7b 7b 5c | 74 74 20 69 20 3a 7d 7d |\item{{\|tt i :}}|
|00001b40| 20 49 6e 76 65 72 74 73 | 20 74 69 63 6b 20 6d 61 | Inverts| tick ma|
|00001b50| 72 6b 73 2c 20 73 6f 20 | 74 68 65 79 20 61 72 65 |rks, so |they are|
|00001b60| 20 64 72 61 77 6e 20 64 | 6f 77 6e 77 61 72 64 73 | drawn d|ownwards|
|00001b70| 2c 20 72 61 74 68 65 72 | 20 74 68 61 6e 0a 75 70 |, rather| than.up|
|00001b80| 77 61 72 64 73 2e 0a 5c | 69 74 65 6d 7b 7b 5c 74 |wards..\|item{{\t|
|00001b90| 74 20 6c 20 3a 7d 7d 20 | 4c 61 62 65 6c 73 20 61 |t l :}} |Labels a|
|00001ba0| 78 69 73 20 6c 6f 67 61 | 72 69 74 68 6d 69 63 61 |xis loga|rithmica|
|00001bb0| 6c 6c 79 2e 20 54 68 69 | 73 20 6f 6e 6c 79 20 61 |lly. Thi|s only a|
|00001bc0| 66 66 65 63 74 73 20 74 | 68 65 20 6c 61 62 65 6c |ffects t|he label|
|00001bd0| 73 2c 0a 6e 6f 74 20 74 | 68 65 20 64 61 74 61 2c |s,.not t|he data,|
|00001be0| 20 61 6e 64 20 73 6f 20 | 69 74 20 69 73 20 6e 65 | and so |it is ne|
|00001bf0| 63 65 73 73 61 72 79 20 | 74 6f 20 63 6f 6d 70 75 |cessary |to compu|
|00001c00| 74 65 20 74 68 65 20 6c | 6f 67 61 72 69 74 68 6d |te the l|ogarithm|
|00001c10| 73 20 6f 66 20 64 61 74 | 61 0a 70 6f 69 6e 74 73 |s of dat|a.points|
|00001c20| 20 62 65 66 6f 72 65 20 | 70 61 73 73 69 6e 67 20 | before |passing |
|00001c30| 74 68 65 6d 20 74 6f 20 | 61 6e 79 20 6f 66 20 74 |them to |any of t|
|00001c40| 68 65 20 64 72 61 77 69 | 6e 67 20 72 6f 75 74 69 |he drawi|ng routi|
|00001c50| 6e 65 73 2e 0a 5c 69 74 | 65 6d 7b 7b 5c 74 74 20 |nes..\it|em{{\tt |
|00001c60| 6e 20 3a 7d 7d 20 57 72 | 69 74 65 73 20 6e 75 6d |n :}} Wr|ites num|
|00001c70| 65 72 69 63 20 6c 61 62 | 65 6c 73 20 61 74 20 6d |eric lab|els at m|
|00001c80| 61 6a 6f 72 20 74 69 63 | 6b 20 69 6e 74 65 72 76 |ajor tic|k interv|
|00001c90| 61 6c 73 2e 0a 5c 69 74 | 65 6d 7b 7b 5c 74 74 20 |als..\it|em{{\tt |
|00001ca0| 73 20 3a 7d 7d 20 45 6e | 61 62 6c 65 73 20 73 75 |s :}} En|ables su|
|00001cb0| 62 74 69 63 6b 73 20 62 | 65 74 77 65 65 6e 20 6d |bticks b|etween m|
|00001cc0| 61 6a 6f 72 20 74 69 63 | 6b 73 2c 20 6f 6e 6c 79 |ajor tic|ks, only|
|00001cd0| 20 76 61 6c 69 64 20 69 | 66 20 7b 5c 74 74 20 74 | valid i|f {\tt t|
|00001ce0| 7d 20 69 73 0a 61 6c 73 | 6f 20 73 70 65 63 69 66 |} is.als|o specif|
|00001cf0| 69 65 64 2e 0a 5c 69 74 | 65 6d 7b 7b 5c 74 74 20 |ied..\it|em{{\tt |
|00001d00| 74 20 3a 7d 7d 20 44 72 | 61 77 73 20 6d 61 6a 6f |t :}} Dr|aws majo|
|00001d10| 72 20 74 69 63 6b 73 2e | 0a 5c 69 74 65 6d 7b 7b |r ticks.|.\item{{|
|00001d20| 5c 74 74 20 75 20 3a 7d | 7d 20 49 66 20 74 68 69 |\tt u :}|} If thi|
|00001d30| 73 20 69 73 20 73 70 65 | 63 69 66 69 65 64 2c 20 |s is spe|cified, |
|00001d40| 74 68 65 20 74 65 78 74 | 20 6c 61 62 65 6c 20 66 |the text| label f|
|00001d50| 6f 72 20 74 68 65 20 61 | 78 69 73 20 69 73 20 77 |or the a|xis is w|
|00001d60| 72 69 74 74 65 6e 0a 75 | 6e 64 65 72 20 74 68 65 |ritten.u|nder the|
|00001d70| 20 61 78 69 73 2e 0a 5c | 65 6e 64 7b 69 74 65 6d | axis..\|end{item|
|00001d80| 69 7a 65 7d 0a 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |ize}.}..|\argu {{|
|00001d90| 5c 74 74 20 78 6c 61 62 | 65 6c 7d 20 28 63 68 61 |\tt xlab|el} (cha|
|00001da0| 72 20 2a 2c 20 69 6e 70 | 75 74 29 7d 7b 50 6f 69 |r *, inp|ut)}{Poi|
|00001db0| 6e 74 65 72 20 74 6f 0a | 63 68 61 72 61 63 74 65 |nter to.|characte|
|00001dc0| 72 20 73 74 72 69 6e 67 | 20 73 70 65 63 69 66 79 |r string| specify|
|00001dd0| 69 6e 67 20 74 65 78 74 | 20 6c 61 62 65 6c 0a 66 |ing text| label.f|
|00001de0| 6f 72 20 74 68 65 20 78 | 7e 61 78 69 73 2e 20 49 |or the x|~axis. I|
|00001df0| 74 20 69 73 20 6f 6e 6c | 79 20 64 72 61 77 6e 20 |t is onl|y drawn |
|00001e00| 69 66 20 7b 5c 74 74 20 | 75 7d 20 69 73 20 69 6e |if {\tt |u} is in|
|00001e10| 20 74 68 65 20 7b 5c 74 | 74 20 78 6f 70 74 7d 20 | the {\t|t xopt} |
|00001e20| 73 74 72 69 6e 67 2e 7d | 0a 0a 5c 61 72 67 75 20 |string.}|..\argu |
|00001e30| 7b 7b 5c 74 74 20 78 74 | 69 63 6b 7d 20 28 50 4c |{{\tt xt|ick} (PL|
|00001e40| 46 4c 54 2c 20 69 6e 70 | 75 74 29 7d 7b 57 6f 72 |FLT, inp|ut)}{Wor|
|00001e50| 6c 64 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 69 6e |ld coord|inate in|
|00001e60| 74 65 72 76 61 6c 20 62 | 65 74 77 65 65 6e 20 6d |terval b|etween m|
|00001e70| 61 6a 6f 72 20 74 69 63 | 6b 73 0a 6f 6e 20 74 68 |ajor tic|ks.on th|
|00001e80| 65 20 78 7e 61 78 69 73 | 2e 20 49 66 20 69 74 20 |e x~axis|. If it |
|00001e90| 69 73 20 73 65 74 20 74 | 6f 20 7a 65 72 6f 2c 20 |is set t|o zero, |
|00001ea0| 50 4c 50 4c 4f 54 20 61 | 75 74 6f 6d 61 74 69 63 |PLPLOT a|utomatic|
|00001eb0| 61 6c 6c 79 20 67 65 6e | 65 72 61 74 65 73 20 61 |ally gen|erates a|
|00001ec0| 0a 73 75 69 74 61 62 6c | 65 20 74 69 63 6b 20 69 |.suitabl|e tick i|
|00001ed0| 6e 74 65 72 76 61 6c 2e | 7d 0a 0a 5c 61 72 67 75 |nterval.|}..\argu|
|00001ee0| 20 7b 7b 5c 74 74 20 6e | 78 73 75 62 7d 20 28 50 | {{\tt n|xsub} (P|
|00001ef0| 4c 49 4e 54 2c 20 69 6e | 70 75 74 29 7d 7b 4e 75 |LINT, in|put)}{Nu|
|00001f00| 6d 62 65 72 20 6f 66 20 | 73 75 62 69 6e 74 65 72 |mber of |subinter|
|00001f10| 76 61 6c 73 20 62 65 74 | 77 65 65 6e 20 6d 61 6a |vals bet|ween maj|
|00001f20| 6f 72 20 78 7e 61 78 69 | 73 0a 74 69 63 6b 73 20 |or x~axi|s.ticks |
|00001f30| 66 6f 72 20 6d 69 6e 6f | 72 20 74 69 63 6b 73 2e |for mino|r ticks.|
|00001f40| 20 49 66 20 69 74 20 69 | 73 20 73 65 74 20 74 6f | If it i|s set to|
|00001f50| 20 7a 65 72 6f 2c 20 50 | 4c 50 4c 4f 54 20 61 75 | zero, P|LPLOT au|
|00001f60| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 67 65 6e 65 |tomatica|lly gene|
|00001f70| 72 61 74 65 73 20 61 0a | 73 75 69 74 61 62 6c 65 |rates a.|suitable|
|00001f80| 20 6d 69 6e 6f 72 20 74 | 69 63 6b 20 69 6e 74 65 | minor t|ick inte|
|00001f90| 72 76 61 6c 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |rval.}..|\argu {{|
|00001fa0| 5c 74 74 20 79 6f 70 74 | 7d 20 28 63 68 61 72 20 |\tt yopt|} (char |
|00001fb0| 2a 2c 20 69 6e 70 75 74 | 29 7d 7b 50 6f 69 6e 74 |*, input|)}{Point|
|00001fc0| 65 72 20 74 6f 0a 63 68 | 61 72 61 63 74 65 72 20 |er to.ch|aracter |
|00001fd0| 73 74 72 69 6e 67 20 73 | 70 65 63 69 66 79 69 6e |string s|pecifyin|
|00001fe0| 67 20 6f 70 74 69 6f 6e | 73 20 66 6f 72 0a 74 68 |g option|s for.th|
|00001ff0| 65 20 79 7e 61 78 69 73 | 2e 20 54 68 65 20 73 74 |e y~axis|. The st|
|00002000| 72 69 6e 67 20 69 73 20 | 69 6e 74 65 72 70 72 65 |ring is |interpre|
|00002010| 74 65 64 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 |ted in t|he same |
|00002020| 77 61 79 20 61 73 20 7b | 5c 74 74 20 78 6f 70 74 |way as {|\tt xopt|
|00002030| 7d 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |}.}..\ar|gu {{\tt|
|00002040| 20 79 6c 61 62 65 6c 7d | 20 28 63 68 61 72 20 2a | ylabel}| (char *|
|00002050| 2c 20 69 6e 70 75 74 29 | 7d 7b 50 6f 69 6e 74 65 |, input)|}{Pointe|
|00002060| 72 20 74 6f 0a 63 68 61 | 72 61 63 74 65 72 20 73 |r to.cha|racter s|
|00002070| 74 72 69 6e 67 20 73 70 | 65 63 69 66 79 69 6e 67 |tring sp|ecifying|
|00002080| 20 74 65 78 74 20 6c 61 | 62 65 6c 0a 66 6f 72 20 | text la|bel.for |
|00002090| 74 68 65 20 79 7e 61 78 | 69 73 2e 20 49 74 20 69 |the y~ax|is. It i|
|000020a0| 73 20 6f 6e 6c 79 20 64 | 72 61 77 6e 20 69 66 20 |s only d|rawn if |
|000020b0| 7b 5c 74 74 20 75 7d 20 | 69 73 20 69 6e 20 74 68 |{\tt u} |is in th|
|000020c0| 65 20 7b 5c 74 74 20 79 | 6f 70 74 7d 20 73 74 72 |e {\tt y|opt} str|
|000020d0| 69 6e 67 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |ing.}..\|argu {{\|
|000020e0| 74 74 20 79 74 69 63 6b | 7d 20 28 50 4c 46 4c 54 |tt ytick|} (PLFLT|
|000020f0| 2c 20 69 6e 70 75 74 29 | 7d 7b 57 6f 72 6c 64 20 |, input)|}{World |
|00002100| 63 6f 6f 72 64 69 6e 61 | 74 65 20 69 6e 74 65 72 |coordina|te inter|
|00002110| 76 61 6c 20 62 65 74 77 | 65 65 6e 20 6d 61 6a 6f |val betw|een majo|
|00002120| 72 20 74 69 63 6b 73 0a | 6f 6e 20 74 68 65 20 79 |r ticks.|on the y|
|00002130| 7e 61 78 69 73 2e 20 49 | 66 20 69 74 20 69 73 20 |~axis. I|f it is |
|00002140| 73 65 74 20 74 6f 20 7a | 65 72 6f 2c 20 50 4c 50 |set to z|ero, PLP|
|00002150| 4c 4f 54 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |LOT auto|maticall|
|00002160| 79 20 67 65 6e 65 72 61 | 74 65 73 20 61 0a 73 75 |y genera|tes a.su|
|00002170| 69 74 61 62 6c 65 20 74 | 69 63 6b 20 69 6e 74 65 |itable t|ick inte|
|00002180| 72 76 61 6c 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |rval.}..|\argu {{|
|00002190| 5c 74 74 20 6e 79 73 75 | 62 7d 20 28 50 4c 49 4e |\tt nysu|b} (PLIN|
|000021a0| 54 2c 20 69 6e 70 75 74 | 29 7d 7b 4e 75 6d 62 65 |T, input|)}{Numbe|
|000021b0| 72 20 6f 66 20 73 75 62 | 69 6e 74 65 72 76 61 6c |r of sub|interval|
|000021c0| 73 20 62 65 74 77 65 65 | 6e 20 6d 61 6a 6f 72 20 |s betwee|n major |
|000021d0| 79 7e 61 78 69 73 0a 74 | 69 63 6b 73 20 66 6f 72 |y~axis.t|icks for|
|000021e0| 20 6d 69 6e 6f 72 20 74 | 69 63 6b 73 2e 20 49 66 | minor t|icks. If|
|000021f0| 20 69 74 20 69 73 20 73 | 65 74 20 74 6f 20 7a 65 | it is s|et to ze|
|00002200| 72 6f 2c 20 50 4c 50 4c | 4f 54 20 61 75 74 6f 6d |ro, PLPL|OT autom|
|00002210| 61 74 69 63 61 6c 6c 79 | 20 67 65 6e 65 72 61 74 |atically| generat|
|00002220| 65 73 20 61 0a 73 75 69 | 74 61 62 6c 65 20 6d 69 |es a.sui|table mi|
|00002230| 6e 6f 72 20 74 69 63 6b | 20 69 6e 74 65 72 76 61 |nor tick| interva|
|00002240| 6c 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |l.}..\ar|gu {{\tt|
|00002250| 20 7a 6f 70 74 7d 20 28 | 63 68 61 72 20 2a 2c 20 | zopt} (|char *, |
|00002260| 69 6e 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |input)}{|Pointer |
|00002270| 74 6f 0a 63 68 61 72 61 | 63 74 65 72 20 73 74 72 |to.chara|cter str|
|00002280| 69 6e 67 20 73 70 65 63 | 69 66 79 69 6e 67 20 6f |ing spec|ifying o|
|00002290| 70 74 69 6f 6e 73 20 66 | 6f 72 0a 74 68 65 20 7a |ptions f|or.the z|
|000022a0| 7e 61 78 69 73 2e 20 54 | 68 65 20 73 74 72 69 6e |~axis. T|he strin|
|000022b0| 67 20 63 61 6e 20 69 6e | 63 6c 75 64 65 20 61 6e |g can in|clude an|
|000022c0| 79 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 20 6f 66 |y combin|ation of|
|000022d0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 0a 6c | the fol|lowing.l|
|000022e0| 65 74 74 65 72 73 20 28 | 75 70 70 65 72 20 6f 72 |etters (|upper or|
|000022f0| 20 6c 6f 77 65 72 20 63 | 61 73 65 29 20 69 6e 20 | lower c|ase) in |
|00002300| 61 6e 79 20 6f 72 64 65 | 72 3a 0a 5c 62 65 67 69 |any orde|r:.\begi|
|00002310| 6e 7b 69 74 65 6d 69 7a | 65 7d 0a 5c 69 74 65 6d |n{itemiz|e}.\item|
|00002320| 7b 7b 5c 74 74 20 62 20 | 3a 7d 7d 20 44 72 61 77 |{{\tt b |:}} Draw|
|00002330| 73 20 7a 7e 61 78 69 73 | 20 74 6f 20 74 68 65 20 |s z~axis| to the |
|00002340| 6c 65 66 74 20 6f 66 20 | 74 68 65 20 73 75 72 66 |left of |the surf|
|00002350| 61 63 65 20 70 6c 6f 74 | 2e 0a 5c 69 74 65 6d 7b |ace plot|..\item{|
|00002360| 7b 5c 74 74 20 63 20 3a | 7d 7d 20 44 72 61 77 73 |{\tt c :|}} Draws|
|00002370| 20 7a 7e 61 78 69 73 20 | 74 6f 20 74 68 65 20 72 | z~axis |to the r|
|00002380| 69 67 68 74 20 6f 66 20 | 74 68 65 20 73 75 72 66 |ight of |the surf|
|00002390| 61 63 65 20 70 6c 6f 74 | 2e 0a 5c 69 74 65 6d 7b |ace plot|..\item{|
|000023a0| 7b 5c 74 74 20 64 20 3a | 7d 7d 20 44 72 61 77 73 |{\tt d :|}} Draws|
|000023b0| 20 67 72 69 64 20 6c 69 | 6e 65 73 20 70 61 72 61 | grid li|nes para|
|000023c0| 6c 6c 65 6c 20 74 6f 20 | 74 68 65 20 78 2d 79 20 |llel to |the x-y |
|000023d0| 70 6c 61 6e 65 20 62 65 | 68 69 6e 64 20 74 68 65 |plane be|hind the|
|000023e0| 20 66 69 67 75 72 65 2e | 0a 54 68 65 73 65 20 6c | figure.|.These l|
|000023f0| 69 6e 65 73 20 61 72 65 | 20 6e 6f 74 20 64 72 61 |ines are| not dra|
|00002400| 77 6e 20 75 6e 74 69 6c | 20 61 66 74 65 72 20 7b |wn until| after {|
|00002410| 5c 74 74 20 70 6c 6f 74 | 33 64 7d 20 6f 72 20 7b |\tt plot|3d} or {|
|00002420| 5c 74 74 20 70 6c 6d 65 | 73 68 7d 20 61 72 65 20 |\tt plme|sh} are |
|00002430| 63 61 6c 6c 65 64 0a 62 | 65 63 61 75 73 65 20 6f |called.b|ecause o|
|00002440| 66 20 74 68 65 20 6e 65 | 65 64 20 66 6f 72 20 68 |f the ne|ed for h|
|00002450| 69 64 64 65 6e 20 6c 69 | 6e 65 20 72 65 6d 6f 76 |idden li|ne remov|
|00002460| 61 6c 2e 0a 5c 69 74 65 | 6d 7b 7b 5c 74 74 20 69 |al..\ite|m{{\tt i|
|00002470| 20 3a 7d 7d 20 49 6e 76 | 65 72 74 73 20 74 69 63 | :}} Inv|erts tic|
|00002480| 6b 20 6d 61 72 6b 73 2c | 20 73 6f 20 74 68 65 79 |k marks,| so they|
|00002490| 20 61 72 65 20 64 72 61 | 77 6e 20 61 77 61 79 20 | are dra|wn away |
|000024a0| 66 72 6f 6d 20 74 68 65 | 20 63 65 6e 74 72 65 2e |from the| centre.|
|000024b0| 0a 5c 69 74 65 6d 7b 7b | 5c 74 74 20 6c 20 3a 7d |.\item{{|\tt l :}|
|000024c0| 7d 20 4c 61 62 65 6c 73 | 20 61 78 69 73 20 6c 6f |} Labels| axis lo|
|000024d0| 67 61 72 69 74 68 6d 69 | 63 61 6c 6c 79 2e 20 54 |garithmi|cally. T|
|000024e0| 68 69 73 20 6f 6e 6c 79 | 20 61 66 66 65 63 74 73 |his only| affects|
|000024f0| 20 74 68 65 20 6c 61 62 | 65 6c 73 2c 0a 6e 6f 74 | the lab|els,.not|
|00002500| 20 74 68 65 20 64 61 74 | 61 2c 20 61 6e 64 20 73 | the dat|a, and s|
|00002510| 6f 20 69 74 20 69 73 20 | 6e 65 63 65 73 73 61 72 |o it is |necessar|
|00002520| 79 20 74 6f 20 63 6f 6d | 70 75 74 65 20 74 68 65 |y to com|pute the|
|00002530| 20 6c 6f 67 61 72 69 74 | 68 6d 73 20 6f 66 20 64 | logarit|hms of d|
|00002540| 61 74 61 0a 70 6f 69 6e | 74 73 20 62 65 66 6f 72 |ata.poin|ts befor|
|00002550| 65 20 70 61 73 73 69 6e | 67 20 74 68 65 6d 20 74 |e passin|g them t|
|00002560| 6f 20 61 6e 79 20 6f 66 | 20 74 68 65 20 64 72 61 |o any of| the dra|
|00002570| 77 69 6e 67 20 72 6f 75 | 74 69 6e 65 73 2e 0a 5c |wing rou|tines..\|
|00002580| 69 74 65 6d 7b 7b 5c 74 | 74 20 6d 20 3a 7d 7d 20 |item{{\t|t m :}} |
|00002590| 57 72 69 74 65 73 20 6e | 75 6d 65 72 69 63 20 6c |Writes n|umeric l|
|000025a0| 61 62 65 6c 73 20 61 74 | 20 6d 61 6a 6f 72 20 74 |abels at| major t|
|000025b0| 69 63 6b 20 69 6e 74 65 | 72 76 61 6c 73 20 6f 6e |ick inte|rvals on|
|000025c0| 20 74 68 65 20 72 69 67 | 68 74 2d 68 61 6e 64 0a | the rig|ht-hand.|
|000025d0| 76 65 72 69 63 61 6c 20 | 61 78 69 73 2e 0a 5c 69 |verical |axis..\i|
|000025e0| 74 65 6d 7b 7b 5c 74 74 | 20 6e 20 3a 7d 7d 20 57 |tem{{\tt| n :}} W|
|000025f0| 72 69 74 65 73 20 6e 75 | 6d 65 72 69 63 20 6c 61 |rites nu|meric la|
|00002600| 62 65 6c 73 20 61 74 20 | 6d 61 6a 6f 72 20 74 69 |bels at |major ti|
|00002610| 63 6b 20 69 6e 74 65 72 | 76 61 6c 73 20 6f 6e 20 |ck inter|vals on |
|00002620| 74 68 65 20 6c 65 66 74 | 2d 68 61 6e 64 0a 76 65 |the left|-hand.ve|
|00002630| 72 69 63 61 6c 20 61 78 | 69 73 2e 0a 5c 69 74 65 |rical ax|is..\ite|
|00002640| 6d 7b 7b 5c 74 74 20 73 | 20 3a 7d 7d 20 45 6e 61 |m{{\tt s| :}} Ena|
|00002650| 62 6c 65 73 20 73 75 62 | 74 69 63 6b 73 20 62 65 |bles sub|ticks be|
|00002660| 74 77 65 65 6e 20 6d 61 | 6a 6f 72 20 74 69 63 6b |tween ma|jor tick|
|00002670| 73 2c 20 6f 6e 6c 79 20 | 76 61 6c 69 64 20 69 66 |s, only |valid if|
|00002680| 20 7b 5c 74 74 20 74 7d | 20 69 73 0a 61 6c 73 6f | {\tt t}| is.also|
|00002690| 20 73 70 65 63 69 66 69 | 65 64 2e 0a 5c 69 74 65 | specifi|ed..\ite|
|000026a0| 6d 7b 7b 5c 74 74 20 74 | 20 3a 7d 7d 20 44 72 61 |m{{\tt t| :}} Dra|
|000026b0| 77 73 20 6d 61 6a 6f 72 | 20 74 69 63 6b 73 2e 0a |ws major| ticks..|
|000026c0| 5c 69 74 65 6d 7b 7b 5c | 74 74 20 75 20 3a 7d 7d |\item{{\|tt u :}}|
|000026d0| 20 49 66 20 74 68 69 73 | 20 69 73 20 73 70 65 63 | If this| is spec|
|000026e0| 69 66 69 65 64 2c 20 74 | 68 65 20 74 65 78 74 20 |ified, t|he text |
|000026f0| 6c 61 62 65 6c 20 69 73 | 20 77 72 69 74 74 65 6e |label is| written|
|00002700| 20 62 65 73 69 64 65 20 | 74 68 65 0a 6c 65 66 74 | beside |the.left|
|00002710| 2d 68 61 6e 64 20 61 78 | 69 73 2e 0a 5c 69 74 65 |-hand ax|is..\ite|
|00002720| 6d 7b 7b 5c 74 74 20 76 | 20 3a 7d 7d 20 49 66 20 |m{{\tt v| :}} If |
|00002730| 74 68 69 73 20 69 73 20 | 73 70 65 63 69 66 69 65 |this is |specifie|
|00002740| 64 2c 20 74 68 65 20 74 | 65 78 74 20 6c 61 62 65 |d, the t|ext labe|
|00002750| 6c 20 69 73 20 77 72 69 | 74 74 65 6e 20 62 65 73 |l is wri|tten bes|
|00002760| 69 64 65 20 74 68 65 0a | 72 69 67 68 74 2d 68 61 |ide the.|right-ha|
|00002770| 6e 64 20 61 78 69 73 2e | 0a 5c 65 6e 64 7b 69 74 |nd axis.|.\end{it|
|00002780| 65 6d 69 7a 65 7d 0a 7d | 0a 0a 5c 61 72 67 75 20 |emize}.}|..\argu |
|00002790| 7b 7b 5c 74 74 20 7a 6c | 61 62 65 6c 7d 20 28 63 |{{\tt zl|abel} (c|
|000027a0| 68 61 72 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 50 |har *, i|nput)}{P|
|000027b0| 6f 69 6e 74 65 72 20 74 | 6f 0a 63 68 61 72 61 63 |ointer t|o.charac|
|000027c0| 74 65 72 20 73 74 72 69 | 6e 67 20 73 70 65 63 69 |ter stri|ng speci|
|000027d0| 66 79 69 6e 67 20 74 65 | 78 74 20 6c 61 62 65 6c |fying te|xt label|
|000027e0| 0a 66 6f 72 20 74 68 65 | 20 7a 7e 61 78 69 73 2e |.for the| z~axis.|
|000027f0| 20 49 74 20 69 73 20 6f | 6e 6c 79 20 64 72 61 77 | It is o|nly draw|
|00002800| 6e 20 69 66 20 7b 5c 74 | 74 20 75 7d 20 6f 72 20 |n if {\t|t u} or |
|00002810| 7b 5c 74 74 20 76 7d 20 | 61 72 65 20 69 6e 20 74 |{\tt v} |are in t|
|00002820| 68 65 20 7b 5c 74 74 20 | 7a 6f 70 74 7d 20 73 74 |he {\tt |zopt} st|
|00002830| 72 69 6e 67 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |ring.}..|\argu {{|
|00002840| 5c 74 74 20 7a 74 69 63 | 6b 7d 20 28 50 4c 46 4c |\tt ztic|k} (PLFL|
|00002850| 54 2c 20 69 6e 70 75 74 | 29 7d 7b 57 6f 72 6c 64 |T, input|)}{World|
|00002860| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 69 6e 74 65 | coordin|ate inte|
|00002870| 72 76 61 6c 20 62 65 74 | 77 65 65 6e 20 6d 61 6a |rval bet|ween maj|
|00002880| 6f 72 20 74 69 63 6b 73 | 0a 6f 6e 20 74 68 65 20 |or ticks|.on the |
|00002890| 7a 7e 61 78 69 73 2e 20 | 49 66 20 69 74 20 69 73 |z~axis. |If it is|
|000028a0| 20 73 65 74 20 74 6f 20 | 7a 65 72 6f 2c 20 50 4c | set to |zero, PL|
|000028b0| 50 4c 4f 54 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |PLOT aut|omatical|
|000028c0| 6c 79 20 67 65 6e 65 72 | 61 74 65 73 20 61 0a 73 |ly gener|ates a.s|
|000028d0| 75 69 74 61 62 6c 65 20 | 74 69 63 6b 20 69 6e 74 |uitable |tick int|
|000028e0| 65 72 76 61 6c 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |erval.}.|.\argu {|
|000028f0| 7b 5c 74 74 20 6e 7a 73 | 75 62 7d 20 28 50 4c 49 |{\tt nzs|ub} (PLI|
|00002900| 4e 54 2c 20 69 6e 70 75 | 74 29 7d 7b 4e 75 6d 62 |NT, inpu|t)}{Numb|
|00002910| 65 72 20 6f 66 20 73 75 | 62 69 6e 74 65 72 76 61 |er of su|binterva|
|00002920| 6c 73 20 62 65 74 77 65 | 65 6e 20 6d 61 6a 6f 72 |ls betwe|en major|
|00002930| 20 7a 7e 61 78 69 73 0a | 74 69 63 6b 73 20 66 6f | z~axis.|ticks fo|
|00002940| 72 20 6d 69 6e 6f 72 20 | 74 69 63 6b 73 2e 20 49 |r minor |ticks. I|
|00002950| 66 20 69 74 20 69 73 20 | 73 65 74 20 74 6f 20 7a |f it is |set to z|
|00002960| 65 72 6f 2c 20 50 4c 50 | 4c 4f 54 20 61 75 74 6f |ero, PLP|LOT auto|
|00002970| 6d 61 74 69 63 61 6c 6c | 79 20 67 65 6e 65 72 61 |maticall|y genera|
|00002980| 74 65 73 20 61 0a 73 75 | 69 74 61 62 6c 65 20 6d |tes a.su|itable m|
|00002990| 69 6e 6f 72 20 74 69 63 | 6b 20 69 6e 74 65 72 76 |inor tic|k interv|
|000029a0| 61 6c 2e 7d 0a 0a 0a 0a | 5c 62 6e 61 6d 65 7b 70 |al.}....|\bname{p|
|000029b0| 6c 63 6c 72 28 29 7d 5c | 6c 61 62 65 6c 7b 70 6c |lclr()}\|label{pl|
|000029c0| 63 6c 72 7d 0a 5c 61 64 | 64 63 6f 6e 74 65 6e 74 |clr}.\ad|dcontent|
|000029d0| 73 6c 69 6e 65 7b 74 6f | 63 7d 7b 73 75 62 73 65 |sline{to|c}{subse|
|000029e0| 63 74 69 6f 6e 7d 7b 70 | 6c 63 6c 72 7d 0a 0a 5c |ction}{p|lclr}..\|
|000029f0| 64 65 73 63 72 7b 43 6c | 65 61 72 73 20 74 68 65 |descr{Cl|ears the|
|00002a00| 20 67 72 61 70 68 69 63 | 73 20 73 63 72 65 65 6e | graphic|s screen|
|00002a10| 20 6f 66 20 61 6e 20 69 | 6e 74 65 72 61 63 74 69 | of an i|nteracti|
|00002a20| 76 65 20 64 65 76 69 63 | 65 2c 20 6f 72 20 65 6a |ve devic|e, or ej|
|00002a30| 65 63 74 73 0a 20 20 20 | 20 20 20 20 61 20 70 61 |ects. | a pa|
|00002a40| 67 65 20 6f 6e 20 61 20 | 70 6c 6f 74 74 65 72 2e |ge on a |plotter.|
|00002a50| 7d 0a 0a 5c 62 6e 61 6d | 65 7b 70 6c 63 6f 6c 28 |}..\bnam|e{plcol(|
|00002a60| 63 6f 6c 6f 72 29 7d 5c | 6c 61 62 65 6c 7b 70 6c |color)}\|label{pl|
|00002a70| 63 6f 6c 7d 0a 5c 61 64 | 64 63 6f 6e 74 65 6e 74 |col}.\ad|dcontent|
|00002a80| 73 6c 69 6e 65 7b 74 6f | 63 7d 7b 73 75 62 73 65 |sline{to|c}{subse|
|00002a90| 63 74 69 6f 6e 7d 7b 70 | 6c 63 6f 6c 7d 0a 0a 5c |ction}{p|lcol}..\|
|00002aa0| 64 65 73 63 72 7b 53 65 | 74 73 20 74 68 65 20 63 |descr{Se|ts the c|
|00002ab0| 6f 6c 6f 72 20 66 6f 72 | 20 73 75 62 73 65 71 75 |olor for| subsequ|
|00002ac0| 65 6e 74 20 6c 69 6e 65 | 73 2e 7d 0a 0a 5c 61 72 |ent line|s.}..\ar|
|00002ad0| 67 75 20 7b 7b 5c 74 74 | 20 63 6f 6c 6f 72 7d 20 |gu {{\tt| color} |
|00002ae0| 28 50 4c 49 4e 54 2c 20 | 69 6e 70 75 74 29 7d 7b |(PLINT, |input)}{|
|00002af0| 49 6e 74 65 67 65 72 20 | 72 65 70 72 65 73 65 6e |Integer |represen|
|00002b00| 74 69 6e 67 20 74 68 65 | 20 63 6f 6c 6f 72 2e 7d |ting the| color.}|
|00002b10| 0a 0a 5c 62 6e 61 6d 65 | 7b 70 6c 63 6f 6e 74 28 |..\bname|{plcont(|
|00002b20| 7a 2c 6e 78 2c 6e 79 2c | 6b 78 2c 6c 78 2c 6b 79 |z,nx,ny,|kx,lx,ky|
|00002b30| 2c 6c 79 2c 63 6c 65 76 | 65 6c 2c 6e 6c 65 76 65 |,ly,clev|el,nleve|
|00002b40| 6c 2c 70 6c 74 72 29 7d | 5c 6c 61 62 65 6c 7b 70 |l,pltr)}|\label{p|
|00002b50| 6c 63 6f 6e 74 7d 0a 5c | 61 64 64 63 6f 6e 74 65 |lcont}.\|addconte|
|00002b60| 6e 74 73 6c 69 6e 65 7b | 74 6f 63 7d 7b 73 75 62 |ntsline{|toc}{sub|
|00002b70| 73 65 63 74 69 6f 6e 7d | 7b 70 6c 63 6f 6e 74 7d |section}|{plcont}|
|00002b80| 0a 0a 5c 64 65 73 63 72 | 7b 44 72 61 77 73 20 61 |..\descr|{Draws a|
|00002b90| 20 63 6f 6e 74 6f 75 72 | 20 70 6c 6f 74 20 6f 66 | contour| plot of|
|00002ba0| 20 74 68 65 20 64 61 74 | 61 20 69 6e 20 7b 5c 74 | the dat|a in {\t|
|00002bb0| 74 20 7a 5b 6e 78 5d 5b | 6e 79 5d 7d 2c 20 75 73 |t z[nx][|ny]}, us|
|00002bc0| 69 6e 67 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |ing the.| |
|00002bd0| 7b 5c 74 74 20 6e 6c 65 | 76 65 6c 7d 20 63 6f 6e |{\tt nle|vel} con|
|00002be0| 74 6f 75 72 20 6c 65 76 | 65 6c 73 20 73 70 65 63 |tour lev|els spec|
|00002bf0| 69 66 69 65 64 20 62 79 | 20 7b 5c 74 74 20 63 6c |ified by| {\tt cl|
|00002c00| 65 76 65 6c 7d 2e 20 4f | 6e 6c 79 0a 20 20 20 20 |evel}. O|nly. |
|00002c10| 20 20 20 20 74 68 65 20 | 72 65 67 69 6f 6e 20 6f | the |region o|
|00002c20| 66 20 74 68 65 20 61 72 | 72 61 79 20 66 72 6f 6d |f the ar|ray from|
|00002c30| 20 7b 5c 74 74 20 6b 78 | 7d 20 74 6f 20 7b 5c 74 | {\tt kx|} to {\t|
|00002c40| 74 20 6c 78 7d 20 61 6e | 64 20 66 72 6f 6d 20 7b |t lx} an|d from {|
|00002c50| 5c 74 74 20 6b 79 7d 0a | 20 20 20 20 20 20 20 20 |\tt ky}.| |
|00002c60| 74 6f 20 7b 5c 74 74 20 | 6c 79 7d 20 69 73 20 70 |to {\tt |ly} is p|
|00002c70| 6c 6f 74 74 65 64 20 6f | 75 74 2e 20 41 20 74 72 |lotted o|ut. A tr|
|00002c80| 61 6e 73 66 6f 72 6d 61 | 74 69 6f 6e 20 72 6f 75 |ansforma|tion rou|
|00002c90| 74 69 6e 65 20 7b 5c 74 | 74 20 74 72 7d 20 69 73 |tine {\t|t tr} is|
|00002ca0| 0a 20 20 20 20 20 20 20 | 20 75 73 65 64 20 74 6f |. | used to|
|00002cb0| 20 6d 61 70 20 69 6e 64 | 69 63 69 65 73 20 77 69 | map ind|icies wi|
|00002cc0| 74 68 69 6e 20 74 68 65 | 20 61 72 72 61 79 20 74 |thin the| array t|
|00002cd0| 6f 20 74 68 65 20 77 6f | 72 6c 64 20 63 6f 6f 72 |o the wo|rld coor|
|00002ce0| 64 69 6e 61 74 65 73 0a | 20 20 20 20 20 20 20 20 |dinates.| |
|00002cf0| 28 73 65 65 20 53 65 63 | 74 69 6f 6e 20 5c 72 65 |(see Sec|tion \re|
|00002d00| 66 7b 63 6f 6e 74 6f 75 | 72 7d 20 6f 6e 20 70 61 |f{contou|r} on pa|
|00002d10| 67 65 20 5c 70 61 67 65 | 72 65 66 7b 63 6f 6e 74 |ge \page|ref{cont|
|00002d20| 6f 75 72 7d 29 2e 0a 20 | 20 20 20 20 20 20 20 7d |our}).. | }|
|00002d30| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 7a 7d |..\argu |{{\tt z}|
|00002d40| 20 28 50 4c 46 4c 54 20 | 2a 2c 20 69 6e 70 75 74 | (PLFLT |*, input|
|00002d50| 29 7d 0a 20 20 20 20 20 | 20 20 7b 50 6f 69 6e 74 |)}. | {Point|
|00002d60| 65 72 20 74 6f 20 61 20 | 74 77 6f 2d 64 69 6d 65 |er to a |two-dime|
|00002d70| 6e 73 69 6f 6e 61 6c 20 | 61 72 72 61 79 20 63 6f |nsional |array co|
|00002d80| 6e 74 61 69 6e 69 6e 67 | 20 64 61 74 61 0a 20 20 |ntaining| data. |
|00002d90| 20 20 20 20 20 20 74 6f | 20 62 65 20 63 6f 6e 74 | to| be cont|
|00002da0| 6f 75 72 65 64 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |oured.}.|.\argu {|
|00002db0| 7b 5c 74 74 20 6e 78 2c | 20 6e 79 7d 20 28 50 4c |{\tt nx,| ny} (PL|
|00002dc0| 49 4e 54 2c 20 69 6e 70 | 75 74 29 7d 20 7b 50 68 |INT, inp|ut)} {Ph|
|00002dd0| 79 73 69 63 61 6c 20 64 | 69 6d 65 6e 73 69 6f 6e |ysical d|imension|
|00002de0| 73 20 6f 66 20 61 72 72 | 61 79 20 7b 5c 74 74 20 |s of arr|ay {\tt |
|00002df0| 7a 7d 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |z}.}..\a|rgu {{\t|
|00002e00| 74 20 6b 78 2c 20 6c 78 | 7d 20 28 50 4c 49 4e 54 |t kx, lx|} (PLINT|
|00002e10| 2c 20 69 6e 70 75 74 29 | 7d 20 7b 52 61 6e 67 65 |, input)|} {Range|
|00002e20| 20 6f 66 20 7b 5c 74 74 | 20 78 7d 20 69 6e 64 69 | of {\tt| x} indi|
|00002e30| 63 69 65 73 20 74 6f 20 | 63 6f 6e 73 69 64 65 72 |cies to |consider|
|00002e40| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00002e50| 6b 79 2c 20 6c 79 7d 20 | 28 50 4c 49 4e 54 2c 20 |ky, ly} |(PLINT, |
|00002e60| 69 6e 70 75 74 29 7d 20 | 7b 52 61 6e 67 65 20 6f |input)} |{Range o|
|00002e70| 66 20 7b 5c 74 74 20 79 | 7d 20 69 6e 64 69 63 69 |f {\tt y|} indici|
|00002e80| 65 73 20 74 6f 20 63 6f | 6e 73 69 64 65 72 2e 7d |es to co|nsider.}|
|00002e90| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 63 6c |..\argu |{{\tt cl|
|00002ea0| 65 76 65 6c 7d 20 28 50 | 4c 46 4c 54 20 2a 2c 20 |evel} (P|LFLT *, |
|00002eb0| 69 6e 70 75 74 29 7d 20 | 7b 50 6f 69 6e 74 65 72 |input)} |{Pointer|
|00002ec0| 20 74 6f 20 61 72 72 61 | 79 20 73 70 65 63 69 66 | to arra|y specif|
|00002ed0| 79 69 6e 67 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ying. | |
|00002ee0| 20 6c 65 76 65 6c 73 20 | 61 74 20 77 68 69 63 68 | levels |at which|
|00002ef0| 20 74 6f 20 64 72 61 77 | 20 63 6f 6e 74 6f 75 72 | to draw| contour|
|00002f00| 73 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |s.}..\ar|gu {{\tt|
|00002f10| 20 6e 6c 65 76 65 6c 7d | 20 28 50 4c 49 4e 54 2c | nlevel}| (PLINT,|
|00002f20| 20 69 6e 70 75 74 29 7d | 20 7b 4e 75 6d 62 65 72 | input)}| {Number|
|00002f30| 20 6f 66 20 63 6f 6e 74 | 6f 75 72 20 6c 65 76 65 | of cont|our leve|
|00002f40| 6c 73 20 74 6f 20 64 72 | 61 77 2e 7d 0a 0a 5c 61 |ls to dr|aw.}..\a|
|00002f50| 72 67 75 20 7b 7b 5c 74 | 74 20 70 6c 74 72 7d 20 |rgu {{\t|t pltr} |
|00002f60| 28 76 6f 69 64 20 2a 2c | 69 6e 70 75 74 29 7d 20 |(void *,|input)} |
|00002f70| 7b 50 6f 69 6e 74 65 72 | 20 74 6f 20 66 75 6e 63 |{Pointer| to func|
|00002f80| 74 69 6f 6e 20 74 68 61 | 74 0a 64 65 66 69 6e 65 |tion tha|t.define|
|00002f90| 73 20 74 72 61 6e 73 66 | 6f 72 6d 61 74 69 6f 6e |s transf|ormation|
|00002fa0| 20 62 65 74 77 65 65 6e | 20 69 6e 64 69 63 69 65 | between| indicie|
|00002fb0| 73 0a 69 6e 20 61 72 72 | 61 79 20 7b 5c 74 74 20 |s.in arr|ay {\tt |
|00002fc0| 7a 7d 20 61 6e 64 20 74 | 68 65 20 77 6f 72 6c 64 |z} and t|he world|
|00002fd0| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 2e 20 54 68 | coordin|ates. Th|
|00002fe0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 73 68 6f 75 6c |e functi|on shoul|
|00002ff0| 64 20 68 61 76 65 20 74 | 68 65 0a 66 6f 72 6d 0a |d have t|he.form.|
|00003000| 5c 6e 61 6d 65 7b 70 6c | 74 72 28 78 2c 79 2c 74 |\name{pl|tr(x,y,t|
|00003010| 78 2c 74 79 29 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |x,ty)}..|\argu {{|
|00003020| 5c 74 74 20 78 2c 20 79 | 7d 20 28 50 4c 46 4c 54 |\tt x, y|} (PLFLT|
|00003030| 2c 20 69 6e 70 75 74 29 | 7d 7b 20 53 70 65 63 69 |, input)|}{ Speci|
|00003040| 66 69 65 73 20 74 68 65 | 20 70 6f 73 69 74 69 6f |fies the| positio|
|00003050| 6e 20 69 6e 20 74 68 65 | 20 61 72 72 61 79 20 74 |n in the| array t|
|00003060| 68 72 6f 75 67 68 0a 77 | 68 69 63 68 20 74 68 65 |hrough.w|hich the|
|00003070| 20 63 6f 6e 74 6f 75 72 | 20 72 75 6e 73 20 69 6e | contour| runs in|
|00003080| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 61 72 | terms o|f the ar|
|00003090| 72 61 79 20 69 6e 64 69 | 63 69 65 73 2e 7d 0a 5c |ray indi|cies.}.\|
|000030a0| 61 72 67 75 20 7b 7b 5c | 74 74 20 74 78 2c 20 74 |argu {{\|tt tx, t|
|000030b0| 79 7d 20 28 50 4c 46 4c | 54 20 2a 2c 20 6f 75 74 |y} (PLFL|T *, out|
|000030c0| 70 75 74 29 7d 7b 50 6f | 69 6e 74 65 72 73 20 74 |put)}{Po|inters t|
|000030d0| 6f 20 74 68 65 0a 77 6f | 72 6c 64 20 63 6f 6f 72 |o the.wo|rld coor|
|000030e0| 64 69 6e 61 74 65 73 20 | 63 6f 72 72 65 73 70 6f |dinates |correspo|
|000030f0| 6e 64 69 6e 67 20 74 6f | 20 74 68 65 0a 70 6f 69 |nding to| the.poi|
|00003100| 6e 74 20 7b 5c 74 74 20 | 28 78 2c 79 29 7d 2e 7d |nt {\tt |(x,y)}.}|
|00003110| 0a 7d 0a 41 20 74 72 61 | 6e 73 66 6f 72 6d 61 74 |.}.A tra|nsformat|
|00003120| 69 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 20 7b 5c 74 |ion func|tion {\t|
|00003130| 74 20 78 66 6f 72 6d 7d | 20 69 73 20 70 72 6f 76 |t xform}| is prov|
|00003140| 69 64 65 64 20 66 6f 72 | 20 73 69 6d 70 6c 65 20 |ided for| simple |
|00003150| 6c 69 6e 65 61 72 20 6d | 61 70 70 69 6e 67 73 2e |linear m|appings.|
|00003160| 0a 53 65 65 20 53 65 63 | 74 69 6f 6e 20 5c 72 65 |.See Sec|tion \re|
|00003170| 66 7b 63 6f 6e 74 6f 75 | 72 7d 20 66 6f 72 20 69 |f{contou|r} for i|
|00003180| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0a 0a 5c 62 6e |nformati|on...\bn|
|00003190| 61 6d 65 7b 70 6c 65 6e | 64 28 29 7d 5c 6c 61 62 |ame{plen|d()}\lab|
|000031a0| 65 6c 7b 70 6c 65 6e 64 | 7d 0a 5c 61 64 64 63 6f |el{plend|}.\addco|
|000031b0| 6e 74 65 6e 74 73 6c 69 | 6e 65 7b 74 6f 63 7d 7b |ntentsli|ne{toc}{|
|000031c0| 73 75 62 73 65 63 74 69 | 6f 6e 7d 7b 70 6c 65 6e |subsecti|on}{plen|
|000031d0| 64 7d 0a 0a 5c 64 65 73 | 63 72 7b 45 6e 64 73 20 |d}..\des|cr{Ends |
|000031e0| 61 20 70 6c 6f 74 74 69 | 6e 67 20 73 65 73 73 69 |a plotti|ng sessi|
|000031f0| 6f 6e 2c 20 74 69 64 69 | 65 73 20 75 70 20 61 6c |on, tidi|es up al|
|00003200| 6c 20 74 68 65 20 6f 75 | 74 70 75 74 20 66 69 6c |l the ou|tput fil|
|00003210| 65 73 2c 0a 20 20 20 20 | 20 20 20 73 77 69 74 63 |es,. | switc|
|00003220| 68 65 73 20 69 6e 74 65 | 72 61 63 74 69 76 65 20 |hes inte|ractive |
|00003230| 64 65 76 69 63 65 73 20 | 62 61 63 6b 20 69 6e 74 |devices |back int|
|00003240| 6f 20 74 65 78 74 20 6d | 6f 64 65 20 61 6e 64 20 |o text m|ode and |
|00003250| 66 72 65 65 73 20 75 70 | 0a 20 20 20 20 20 20 20 |frees up|. |
|00003260| 61 6e 79 20 6d 65 6d 6f | 72 79 20 74 68 61 74 20 |any memo|ry that |
|00003270| 77 61 73 20 61 6c 6c 6f | 63 61 74 65 64 2e 20 4d |was allo|cated. M|
|00003280| 75 73 74 20 62 65 20 63 | 61 6c 6c 65 64 0a 20 20 |ust be c|alled. |
|00003290| 20 20 20 20 20 62 65 66 | 6f 72 65 20 65 6e 64 20 | bef|ore end |
|000032a0| 6f 66 20 70 72 6f 67 72 | 61 6d 2e 7d 0a 0a 0a 0a |of progr|am.}....|
|000032b0| 5c 62 6e 61 6d 65 7b 70 | 6c 65 6e 76 28 78 6d 69 |\bname{p|lenv(xmi|
|000032c0| 6e 2c 78 6d 61 78 2c 79 | 6d 69 6e 2c 79 6d 61 78 |n,xmax,y|min,ymax|
|000032d0| 2c 6a 75 73 74 2c 61 78 | 69 73 29 7d 5c 6c 61 62 |,just,ax|is)}\lab|
|000032e0| 65 6c 7b 70 6c 65 6e 76 | 7d 0a 5c 61 64 64 63 6f |el{plenv|}.\addco|
|000032f0| 6e 74 65 6e 74 73 6c 69 | 6e 65 7b 74 6f 63 7d 7b |ntentsli|ne{toc}{|
|00003300| 73 75 62 73 65 63 74 69 | 6f 6e 7d 7b 70 6c 65 6e |subsecti|on}{plen|
|00003310| 76 7d 0a 0a 5c 64 65 73 | 63 72 7b 53 65 74 73 20 |v}..\des|cr{Sets |
|00003320| 75 70 20 70 6c 6f 74 74 | 65 72 20 65 6e 76 69 72 |up plott|er envir|
|00003330| 6f 6e 6d 65 6e 74 20 66 | 6f 72 20 73 69 6d 70 6c |onment f|or simpl|
|00003340| 65 20 67 72 61 70 68 73 | 20 62 79 20 63 61 6c 6c |e graphs| by call|
|00003350| 69 6e 67 20 7b 5c 74 74 | 20 70 6c 61 64 76 7d 0a |ing {\tt| pladv}.|
|00003360| 61 6e 64 20 73 65 74 74 | 69 6e 67 20 75 70 20 76 |and sett|ing up v|
|00003370| 69 65 77 70 6f 72 74 20 | 61 6e 64 20 77 69 6e 64 |iewport |and wind|
|00003380| 6f 77 20 74 6f 20 73 65 | 6e 73 69 62 6c 65 20 64 |ow to se|nsible d|
|00003390| 65 66 61 75 6c 74 20 76 | 61 6c 75 65 73 2e 20 7b |efault v|alues. {|
|000033a0| 5c 74 74 20 70 6c 65 6e | 76 7d 20 6c 65 61 76 65 |\tt plen|v} leave|
|000033b0| 73 0a 65 6e 6f 75 67 68 | 20 72 6f 6f 6d 20 61 72 |s.enough| room ar|
|000033c0| 6f 75 6e 64 20 6d 6f 73 | 74 20 67 72 61 70 68 73 |ound mos|t graphs|
|000033d0| 20 66 6f 72 20 61 78 69 | 73 20 6c 61 62 65 6c 73 | for axi|s labels|
|000033e0| 20 61 6e 64 20 61 20 74 | 69 74 6c 65 2e 20 57 68 | and a t|itle. Wh|
|000033f0| 65 6e 20 74 68 65 73 65 | 0a 64 65 66 61 75 6c 74 |en these|.default|
|00003400| 73 20 61 72 65 20 6e 6f | 74 20 73 75 69 74 61 62 |s are no|t suitab|
|00003410| 6c 65 2c 20 75 73 65 20 | 74 68 65 20 69 6e 64 69 |le, use |the indi|
|00003420| 76 69 64 75 61 6c 20 72 | 6f 75 74 69 6e 65 73 20 |vidual r|outines |
|00003430| 7b 5c 74 74 20 70 6c 76 | 73 70 61 7d 20 6f 72 20 |{\tt plv|spa} or |
|00003440| 7b 5c 74 74 20 70 6c 76 | 70 6f 72 7d 0a 66 6f 72 |{\tt plv|por}.for|
|00003450| 20 73 65 74 74 69 6e 67 | 20 75 70 20 74 68 65 20 | setting| up the |
|00003460| 76 69 65 77 70 6f 72 74 | 2c 20 7b 5c 74 74 20 70 |viewport|, {\tt p|
|00003470| 6c 77 69 6e 64 7d 20 66 | 6f 72 20 64 65 66 69 6e |lwind} f|or defin|
|00003480| 69 6e 67 20 74 68 65 20 | 77 69 6e 64 6f 77 2c 20 |ing the |window, |
|00003490| 61 6e 64 20 7b 5c 74 74 | 20 70 6c 62 6f 78 7d 0a |and {\tt| plbox}.|
|000034a0| 66 6f 72 20 64 72 61 77 | 69 6e 67 20 74 68 65 20 |for draw|ing the |
|000034b0| 62 6f 78 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |box.}..\|argu {{\|
|000034c0| 74 74 20 78 6d 69 6e 7d | 20 28 50 4c 46 4c 54 2c |tt xmin}| (PLFLT,|
|000034d0| 20 69 6e 70 75 74 29 7d | 7b 56 61 6c 75 65 20 6f | input)}|{Value o|
|000034e0| 66 7e 78 20 61 74 20 6c | 65 66 74 2d 68 61 6e 64 |f~x at l|eft-hand|
|000034f0| 20 65 64 67 65 20 6f 66 | 20 77 69 6e 64 6f 77 2e | edge of| window.|
|00003500| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 |}..\argu| {{\tt x|
|00003510| 6d 61 78 7d 20 28 50 4c | 46 4c 54 2c 20 69 6e 70 |max} (PL|FLT, inp|
|00003520| 75 74 29 7d 7b 56 61 6c | 75 65 20 6f 66 7e 78 20 |ut)}{Val|ue of~x |
|00003530| 61 74 20 72 69 67 68 74 | 2d 68 61 6e 64 20 65 64 |at right|-hand ed|
|00003540| 67 65 20 6f 66 20 77 69 | 6e 64 6f 77 2e 7d 0a 0a |ge of wi|ndow.}..|
|00003550| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 79 6d 69 6e |\argu {{|\tt ymin|
|00003560| 7d 20 28 50 4c 46 4c 54 | 2c 20 69 6e 70 75 74 29 |} (PLFLT|, input)|
|00003570| 7d 7b 56 61 6c 75 65 20 | 6f 66 7e 79 20 61 74 20 |}{Value |of~y at |
|00003580| 62 6f 74 74 6f 6d 20 65 | 64 67 65 20 6f 66 20 77 |bottom e|dge of w|
|00003590| 69 6e 64 6f 77 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |indow.}.|.\argu {|
|000035a0| 7b 5c 74 74 20 79 6d 61 | 78 7d 20 28 50 4c 46 4c |{\tt yma|x} (PLFL|
|000035b0| 54 2c 20 69 6e 70 75 74 | 29 7d 7b 56 61 6c 75 65 |T, input|)}{Value|
|000035c0| 20 6f 66 7e 79 20 61 74 | 20 74 6f 70 20 65 64 67 | of~y at| top edg|
|000035d0| 65 20 6f 66 20 77 69 6e | 64 6f 77 2e 7d 0a 0a 5c |e of win|dow.}..\|
|000035e0| 61 72 67 75 20 7b 7b 5c | 74 74 20 6a 75 73 74 7d |argu {{\|tt just}|
|000035f0| 20 28 50 4c 49 4e 54 2c | 20 69 6e 70 75 74 29 7d | (PLINT,| input)}|
|00003600| 7b 49 66 20 7b 5c 74 74 | 20 6a 75 73 74 3d 30 7d |{If {\tt| just=0}|
|00003610| 2c 20 74 68 65 20 78 7e | 61 6e 64 7e 79 20 61 78 |, the x~|and~y ax|
|00003620| 65 73 20 61 72 65 20 73 | 63 61 6c 65 64 0a 69 6e |es are s|caled.in|
|00003630| 64 65 70 65 6e 64 65 6e | 74 6c 79 20 74 6f 20 75 |dependen|tly to u|
|00003640| 73 65 20 61 73 20 6d 75 | 63 68 20 6f 66 20 74 68 |se as mu|ch of th|
|00003650| 65 20 73 63 72 65 65 6e | 20 61 73 20 70 6f 73 73 |e screen| as poss|
|00003660| 69 62 6c 65 2c 20 62 75 | 74 20 69 66 20 7b 5c 74 |ible, bu|t if {\t|
|00003670| 74 20 6a 75 73 74 3d 31 | 7d 2c 20 74 68 65 0a 73 |t just=1|}, the.s|
|00003680| 63 61 6c 65 73 20 6f 66 | 20 74 68 65 20 78 7e 61 |cales of| the x~a|
|00003690| 6e 64 7e 79 20 61 78 65 | 73 20 61 72 65 20 6d 61 |nd~y axe|s are ma|
|000036a0| 64 65 20 65 71 75 61 6c | 2e 7d 0a 0a 5c 61 72 67 |de equal|.}..\arg|
|000036b0| 75 20 7b 7b 5c 74 74 20 | 61 78 69 73 7d 20 28 50 |u {{\tt |axis} (P|
|000036c0| 4c 49 4e 54 2c 20 69 6e | 70 75 74 29 7d 7b 43 6f |LINT, in|put)}{Co|
|000036d0| 6e 74 72 6f 6c 73 20 64 | 72 61 77 69 6e 67 20 6f |ntrols d|rawing o|
|000036e0| 66 20 74 68 65 20 62 6f | 78 20 61 72 6f 75 6e 64 |f the bo|x around|
|000036f0| 20 74 68 65 20 70 6c 6f | 74 3a 0a 5c 62 65 67 69 | the plo|t:.\begi|
|00003700| 6e 7b 69 74 65 6d 69 7a | 65 7d 0a 5c 69 74 65 6d |n{itemiz|e}.\item|
|00003710| 7b 2d 32 7d 3a 20 4e 6f | 20 62 6f 78 20 6f 72 20 |{-2}: No| box or |
|00003720| 61 6e 6e 6f 74 61 74 69 | 6f 6e 2e 0a 5c 69 74 65 |annotati|on..\ite|
|00003730| 6d 7b 2d 31 7d 3a 20 44 | 72 61 77 20 62 6f 78 20 |m{-1}: D|raw box |
|00003740| 6f 6e 6c 79 2e 0a 5c 69 | 74 65 6d 7b 30 7d 3a 20 |only..\i|tem{0}: |
|00003750| 44 72 61 77 20 62 6f 78 | 2c 20 6c 61 62 65 6c 6c |Draw box|, labell|
|00003760| 65 64 20 77 69 74 68 20 | 63 6f 6f 72 64 69 6e 61 |ed with |coordina|
|00003770| 74 65 20 76 61 6c 75 65 | 73 20 61 72 6f 75 6e 64 |te value|s around|
|00003780| 20 65 64 67 65 2e 0a 5c | 69 74 65 6d 7b 31 7d 3a | edge..\|item{1}:|
|00003790| 20 49 6e 20 61 64 64 69 | 74 69 6f 6e 20 74 6f 20 | In addi|tion to |
|000037a0| 62 6f 78 20 61 6e 64 20 | 6c 61 62 65 6c 73 2c 20 |box and |labels, |
|000037b0| 64 72 61 77 20 74 68 65 | 20 74 77 6f 20 61 78 65 |draw the| two axe|
|000037c0| 73 0a 7b 5c 74 74 20 78 | 3d 30 7d 20 61 6e 64 20 |s.{\tt x|=0} and |
|000037d0| 7b 5c 74 74 20 79 3d 30 | 7d 2e 0a 5c 69 74 65 6d |{\tt y=0|}..\item|
|000037e0| 7b 32 7d 3a 20 41 73 20 | 66 6f 72 20 7b 5c 74 74 |{2}: As |for {\tt|
|000037f0| 20 61 78 69 73 3d 31 7d | 2c 20 62 75 74 20 61 6c | axis=1}|, but al|
|00003800| 73 6f 20 64 72 61 77 20 | 61 20 67 72 69 64 20 61 |so draw |a grid a|
|00003810| 74 20 74 68 65 20 6d 61 | 6a 6f 72 20 74 69 63 6b |t the ma|jor tick|
|00003820| 20 69 6e 74 65 72 76 61 | 6c 2e 0a 5c 69 74 65 6d | interva|l..\item|
|00003830| 7b 31 30 7d 3a 20 4c 6f | 67 61 72 69 74 68 6d 69 |{10}: Lo|garithmi|
|00003840| 63 20 78 20 61 78 69 73 | 2c 20 6c 69 6e 65 61 72 |c x axis|, linear|
|00003850| 20 79 20 61 78 69 73 2e | 0a 5c 69 74 65 6d 7b 31 | y axis.|.\item{1|
|00003860| 31 7d 3a 20 4c 6f 67 61 | 72 69 74 68 6d 69 63 20 |1}: Loga|rithmic |
|00003870| 78 20 61 78 69 73 2c 20 | 6c 69 6e 65 61 72 20 79 |x axis, |linear y|
|00003880| 20 61 78 69 73 20 61 6e | 64 20 64 72 61 77 20 6c | axis an|d draw l|
|00003890| 69 6e 65 20 7b 5c 74 74 | 20 79 3d 30 7d 2e 0a 5c |ine {\tt| y=0}..\|
|000038a0| 69 74 65 6d 7b 32 30 7d | 3a 20 4c 69 6e 65 61 72 |item{20}|: Linear|
|000038b0| 20 78 20 61 78 69 73 2c | 20 6c 6f 67 61 72 69 74 | x axis,| logarit|
|000038c0| 68 6d 69 63 20 79 20 61 | 78 69 73 2e 0a 5c 69 74 |hmic y a|xis..\it|
|000038d0| 65 6d 7b 32 31 7d 3a 20 | 4c 69 6e 65 61 72 20 78 |em{21}: |Linear x|
|000038e0| 20 61 78 69 73 2c 20 6c | 6f 67 61 72 69 74 68 6d | axis, l|ogarithm|
|000038f0| 69 63 20 79 20 61 78 69 | 73 20 61 6e 64 20 64 72 |ic y axi|s and dr|
|00003900| 61 77 20 6c 69 6e 65 20 | 7b 5c 74 74 20 78 3d 30 |aw line |{\tt x=0|
|00003910| 7d 2e 0a 5c 69 74 65 6d | 7b 33 30 7d 3a 20 4c 6f |}..\item|{30}: Lo|
|00003920| 67 61 72 69 74 68 6d 69 | 63 20 78 20 61 6e 64 20 |garithmi|c x and |
|00003930| 79 20 61 78 65 73 2e 0a | 5c 65 6e 64 7b 69 74 65 |y axes..|\end{ite|
|00003940| 6d 69 7a 65 7d 0a 7d 0a | 0a 0a 0a 5c 62 6e 61 6d |mize}.}.|...\bnam|
|00003950| 65 7b 70 6c 65 72 72 78 | 28 6e 2c 78 6d 69 6e 2c |e{plerrx|(n,xmin,|
|00003960| 78 6d 61 78 2c 79 29 7d | 5c 6c 61 62 65 6c 7b 70 |xmax,y)}|\label{p|
|00003970| 6c 65 72 72 78 7d 0a 5c | 61 64 64 63 6f 6e 74 65 |lerrx}.\|addconte|
|00003980| 6e 74 73 6c 69 6e 65 7b | 74 6f 63 7d 7b 73 75 62 |ntsline{|toc}{sub|
|00003990| 73 65 63 74 69 6f 6e 7d | 7b 70 6c 65 72 72 78 7d |section}|{plerrx}|
|000039a0| 0a 0a 5c 64 65 73 63 72 | 7b 44 72 61 77 73 20 61 |..\descr|{Draws a|
|000039b0| 20 73 65 74 20 6f 66 20 | 7b 5c 74 74 20 6e 7d 20 | set of |{\tt n} |
|000039c0| 68 6f 72 69 7a 6f 6e 74 | 61 6c 20 65 72 72 6f 72 |horizont|al error|
|000039d0| 20 62 61 72 73 2c 20 74 | 68 65 20 7b 5c 74 74 20 | bars, t|he {\tt |
|000039e0| 69 7d 27 74 68 20 65 72 | 72 6f 72 20 62 61 72 0a |i}'th er|ror bar.|
|000039f0| 65 78 74 65 6e 64 69 6e | 67 20 66 72 6f 6d 20 7b |extendin|g from {|
|00003a00| 5c 74 74 20 78 6d 69 6e | 5b 69 5d 7d 20 74 6f 20 |\tt xmin|[i]} to |
|00003a10| 7b 5c 74 74 20 78 6d 61 | 78 5b 69 5d 7d 20 61 74 |{\tt xma|x[i]} at|
|00003a20| 20 79 7e 63 6f 6f 72 64 | 69 6e 61 74 65 20 7b 5c | y~coord|inate {\|
|00003a30| 74 74 20 79 5b 69 5d 7d | 2e 20 54 68 65 20 74 65 |tt y[i]}|. The te|
|00003a40| 72 6d 69 6e 61 6c 73 0a | 6f 66 20 74 68 65 20 65 |rminals.|of the e|
|00003a50| 72 72 6f 72 20 62 61 72 | 20 61 72 65 20 6f 66 20 |rror bar| are of |
|00003a60| 6c 65 6e 67 74 68 20 65 | 71 75 61 6c 20 74 6f 20 |length e|qual to |
|00003a70| 74 68 65 20 6d 69 6e 6f | 72 20 74 69 63 6b 20 6c |the mino|r tick l|
|00003a80| 65 6e 67 74 68 20 28 73 | 65 74 74 61 62 6c 65 0a |ength (s|ettable.|
|00003a90| 75 73 69 6e 67 20 7b 5c | 74 74 20 70 6c 73 6d 69 |using {\|tt plsmi|
|00003aa0| 6e 7d 29 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |n}).}..\|argu {{\|
|00003ab0| 74 74 20 6e 7d 20 28 50 | 4c 49 4e 54 2c 20 69 6e |tt n} (P|LINT, in|
|00003ac0| 70 75 74 29 7d 7b 4e 75 | 6d 62 65 72 20 6f 66 20 |put)}{Nu|mber of |
|00003ad0| 65 72 72 6f 72 20 62 61 | 72 73 20 74 6f 20 64 72 |error ba|rs to dr|
|00003ae0| 61 77 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |aw.}..\a|rgu {{\t|
|00003af0| 74 20 78 6d 69 6e 7d 20 | 28 50 4c 46 4c 54 20 2a |t xmin} |(PLFLT *|
|00003b00| 2c 20 69 6e 70 75 74 29 | 7d 7b 50 6f 69 6e 74 65 |, input)|}{Pointe|
|00003b10| 72 20 74 6f 20 61 72 72 | 61 79 20 77 69 74 68 0a |r to arr|ay with.|
|00003b20| 78 7e 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 6f 66 |x~coordi|nates of|
|00003b30| 20 6c 65 66 74 2d 68 61 | 6e 64 20 65 6e 64 70 6f | left-ha|nd endpo|
|00003b40| 69 6e 74 20 6f 66 20 65 | 72 72 6f 72 20 62 61 72 |int of e|rror bar|
|00003b50| 73 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |s.}..\ar|gu {{\tt|
|00003b60| 20 78 6d 61 78 7d 20 28 | 50 4c 46 4c 54 20 2a 2c | xmax} (|PLFLT *,|
|00003b70| 20 69 6e 70 75 74 29 7d | 7b 50 6f 69 6e 74 65 72 | input)}|{Pointer|
|00003b80| 20 74 6f 20 61 72 72 61 | 79 20 77 69 74 68 0a 78 | to arra|y with.x|
|00003b90| 7e 63 6f 6f 72 64 69 6e | 61 74 65 73 20 6f 66 20 |~coordin|ates of |
|00003ba0| 72 69 67 68 74 2d 68 61 | 6e 64 20 65 6e 64 70 6f |right-ha|nd endpo|
|00003bb0| 69 6e 74 20 6f 66 20 65 | 72 72 6f 72 20 62 61 72 |int of e|rror bar|
|00003bc0| 73 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |s.}..\ar|gu {{\tt|
|00003bd0| 20 79 7d 20 28 50 4c 46 | 4c 54 20 2a 2c 20 69 6e | y} (PLF|LT *, in|
|00003be0| 70 75 74 29 7d 7b 50 6f | 69 6e 74 65 72 20 74 6f |put)}{Po|inter to|
|00003bf0| 20 61 72 72 61 79 20 77 | 69 74 68 0a 79 7e 63 6f | array w|ith.y~co|
|00003c00| 6f 72 64 69 6e 61 74 65 | 73 20 6f 66 20 65 72 72 |ordinate|s of err|
|00003c10| 6f 72 20 62 61 72 2e 7d | 0a 0a 0a 0a 5c 62 6e 61 |or bar.}|....\bna|
|00003c20| 6d 65 7b 70 6c 65 72 72 | 79 28 6e 2c 78 2c 79 6d |me{plerr|y(n,x,ym|
|00003c30| 69 6e 2c 79 6d 61 78 29 | 7d 5c 6c 61 62 65 6c 7b |in,ymax)|}\label{|
|00003c40| 70 6c 65 72 72 79 7d 0a | 5c 61 64 64 63 6f 6e 74 |plerry}.|\addcont|
|00003c50| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|00003c60| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 65 72 72 79 |bsection|}{plerry|
|00003c70| 7d 0a 0a 5c 64 65 73 63 | 72 7b 44 72 61 77 73 20 |}..\desc|r{Draws |
|00003c80| 61 20 73 65 74 20 6f 66 | 20 7b 5c 74 74 20 6e 7d |a set of| {\tt n}|
|00003c90| 20 76 65 72 74 69 63 61 | 6c 20 65 72 72 6f 72 20 | vertica|l error |
|00003ca0| 62 61 72 73 2c 20 74 68 | 65 20 7b 5c 74 74 20 69 |bars, th|e {\tt i|
|00003cb0| 7d 27 74 68 20 65 72 72 | 6f 72 20 62 61 72 0a 65 |}'th err|or bar.e|
|00003cc0| 78 74 65 6e 64 69 6e 67 | 20 66 72 6f 6d 20 7b 5c |xtending| from {\|
|00003cd0| 74 74 20 79 6d 69 6e 5b | 69 5d 7d 20 74 6f 20 7b |tt ymin[|i]} to {|
|00003ce0| 5c 74 74 20 79 6d 61 78 | 5b 69 5d 7d 20 61 74 20 |\tt ymax|[i]} at |
|00003cf0| 78 7e 63 6f 6f 72 64 69 | 6e 61 74 65 20 7b 5c 74 |x~coordi|nate {\t|
|00003d00| 74 20 78 5b 69 5d 7d 2e | 20 54 68 65 20 74 65 72 |t x[i]}.| The ter|
|00003d10| 6d 69 6e 61 6c 73 0a 6f | 66 20 74 68 65 20 65 72 |minals.o|f the er|
|00003d20| 72 6f 72 20 62 61 72 20 | 61 72 65 20 6f 66 20 6c |ror bar |are of l|
|00003d30| 65 6e 67 74 68 20 65 71 | 75 61 6c 20 74 6f 20 74 |ength eq|ual to t|
|00003d40| 68 65 20 6d 69 6e 6f 72 | 20 74 69 63 6b 20 6c 65 |he minor| tick le|
|00003d50| 6e 67 74 68 20 28 73 65 | 74 74 61 62 6c 65 0a 75 |ngth (se|ttable.u|
|00003d60| 73 69 6e 67 20 7b 5c 74 | 74 20 70 6c 73 6d 69 6e |sing {\t|t plsmin|
|00003d70| 7d 29 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |}).}..\a|rgu {{\t|
|00003d80| 74 20 6e 7d 20 28 50 4c | 49 4e 54 2c 20 69 6e 70 |t n} (PL|INT, inp|
|00003d90| 75 74 29 7d 7b 4e 75 6d | 62 65 72 20 6f 66 20 65 |ut)}{Num|ber of e|
|00003da0| 72 72 6f 72 20 62 61 72 | 73 20 74 6f 20 64 72 61 |rror bar|s to dra|
|00003db0| 77 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |w.}..\ar|gu {{\tt|
|00003dc0| 20 78 7d 20 28 50 4c 46 | 4c 54 20 2a 2c 20 69 6e | x} (PLF|LT *, in|
|00003dd0| 70 75 74 29 7d 7b 50 6f | 69 6e 74 65 72 20 74 6f |put)}{Po|inter to|
|00003de0| 20 61 72 72 61 79 20 77 | 69 74 68 0a 78 7e 63 6f | array w|ith.x~co|
|00003df0| 6f 72 64 69 6e 61 74 65 | 73 20 6f 66 20 65 72 72 |ordinate|s of err|
|00003e00| 6f 72 20 62 61 72 73 2e | 7d 0a 0a 5c 61 72 67 75 |or bars.|}..\argu|
|00003e10| 20 7b 7b 5c 74 74 20 79 | 6d 69 6e 7d 20 28 50 4c | {{\tt y|min} (PL|
|00003e20| 46 4c 54 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 50 |FLT *, i|nput)}{P|
|00003e30| 6f 69 6e 74 65 72 20 74 | 6f 20 61 72 72 61 79 20 |ointer t|o array |
|00003e40| 77 69 74 68 0a 79 7e 63 | 6f 6f 72 64 69 6e 61 74 |with.y~c|oordinat|
|00003e50| 65 73 20 6f 66 20 6c 6f | 77 65 72 20 65 6e 64 70 |es of lo|wer endp|
|00003e60| 6f 69 6e 74 20 6f 66 20 | 65 72 72 6f 72 20 62 61 |oint of |error ba|
|00003e70| 72 73 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |rs.}..\a|rgu {{\t|
|00003e80| 74 20 79 6d 61 78 7d 20 | 28 50 4c 46 4c 54 20 2a |t ymax} |(PLFLT *|
|00003e90| 2c 20 69 6e 70 75 74 29 | 7d 7b 50 6f 69 6e 74 65 |, input)|}{Pointe|
|00003ea0| 72 20 74 6f 20 61 72 72 | 61 79 20 77 69 74 68 0a |r to arr|ay with.|
|00003eb0| 79 7e 63 6f 6f 72 64 69 | 6e 61 74 65 20 6f 66 20 |y~coordi|nate of |
|00003ec0| 75 70 70 65 72 20 65 6e | 64 70 6f 69 6e 74 20 6f |upper en|dpoint o|
|00003ed0| 66 20 65 72 72 6f 72 20 | 62 61 72 2e 7d 0a 0a 0a |f error |bar.}...|
|00003ee0| 5c 62 6e 61 6d 65 7b 70 | 6c 65 78 69 74 28 6d 65 |\bname{p|lexit(me|
|00003ef0| 73 73 61 67 65 29 7d 5c | 6c 61 62 65 6c 7b 70 6c |ssage)}\|label{pl|
|00003f00| 65 78 69 74 7d 0a 5c 61 | 64 64 63 6f 6e 74 65 6e |exit}.\a|ddconten|
|00003f10| 74 73 6c 69 6e 65 7b 74 | 6f 63 7d 7b 73 75 62 73 |tsline{t|oc}{subs|
|00003f20| 65 63 74 69 6f 6e 7d 7b | 70 6c 65 78 69 74 7d 0a |ection}{|plexit}.|
|00003f30| 0a 5c 64 65 73 63 72 7b | 54 68 69 73 20 72 6f 75 |.\descr{|This rou|
|00003f40| 74 69 6e 65 20 69 73 20 | 63 61 6c 6c 65 64 20 69 |tine is |called i|
|00003f50| 6e 20 63 61 73 65 20 61 | 6e 20 65 72 72 6f 72 20 |n case a|n error |
|00003f60| 69 73 20 65 6e 63 6f 75 | 6e 74 65 72 65 64 20 64 |is encou|ntered d|
|00003f70| 75 72 69 6e 67 0a 65 78 | 65 63 75 74 69 6f 6e 20 |uring.ex|ecution |
|00003f80| 6f 66 20 61 20 50 4c 50 | 4c 4f 54 20 72 6f 75 74 |of a PLP|LOT rout|
|00003f90| 69 6e 65 2e 20 49 74 20 | 70 72 69 6e 74 73 20 74 |ine. It |prints t|
|00003fa0| 68 65 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |he error| message|
|00003fb0| 2c 20 74 72 69 65 73 20 | 74 6f 0a 72 65 6c 65 61 |, tries |to.relea|
|00003fc0| 73 65 20 61 6c 6c 6f 63 | 61 74 65 64 20 72 65 73 |se alloc|ated res|
|00003fd0| 6f 75 72 63 65 73 2c 20 | 63 61 6c 6c 73 20 7b 5c |ources, |calls {\|
|00003fe0| 74 74 20 70 6c 5c 5f 65 | 78 69 74 7d 20 61 6e 64 |tt pl\_e|xit} and|
|00003ff0| 20 74 68 65 6e 20 65 78 | 69 74 73 2e 20 49 66 0a | then ex|its. If.|
|00004000| 63 6c 65 61 6e 75 70 20 | 6e 65 65 64 73 20 74 6f |cleanup |needs to|
|00004010| 20 62 65 20 64 6f 6e 65 | 20 69 6e 20 74 68 65 20 | be done| in the |
|00004020| 64 72 69 76 65 72 20 70 | 72 6f 67 72 61 6d 20 74 |driver p|rogram t|
|00004030| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 6d 61 79 |hen the |user may|
|00004040| 20 77 61 6e 74 0a 74 6f | 20 73 75 70 70 6c 79 20 | want.to| supply |
|00004050| 68 69 73 2f 68 65 72 20 | 6f 77 6e 20 76 65 72 73 |his/her |own vers|
|00004060| 69 6f 6e 20 6f 66 20 7b | 5c 74 74 20 70 6c 5c 5f |ion of {|\tt pl\_|
|00004070| 65 78 69 74 7d 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |exit}.}.|.\argu {|
|00004080| 7b 5c 74 74 20 6d 65 73 | 73 61 67 65 7d 20 28 63 |{\tt mes|sage} (c|
|00004090| 68 61 72 20 2a 2c 20 69 | 6e 70 75 74 29 7d 7b 45 |har *, i|nput)}{E|
|000040a0| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 2e 7d 0a 0a |rror mes|sage.}..|
|000040b0| 0a 5c 62 6e 61 6d 65 7b | 70 6c 5c 5f 65 78 69 74 |.\bname{|pl\_exit|
|000040c0| 28 29 7d 5c 6c 61 62 65 | 6c 7b 70 6c 78 65 78 69 |()}\labe|l{plxexi|
|000040d0| 74 7d 0a 5c 61 64 64 63 | 6f 6e 74 65 6e 74 73 6c |t}.\addc|ontentsl|
|000040e0| 69 6e 65 7b 74 6f 63 7d | 7b 73 75 62 73 65 63 74 |ine{toc}|{subsect|
|000040f0| 69 6f 6e 7d 7b 70 6c 5c | 5f 65 78 69 74 7d 0a 0a |ion}{pl\|_exit}..|
|00004100| 5c 64 65 73 63 72 7b 54 | 68 69 73 20 72 6f 75 74 |\descr{T|his rout|
|00004110| 69 6e 65 20 64 6f 65 73 | 20 61 6e 20 69 6d 6d 65 |ine does| an imme|
|00004120| 64 69 61 74 65 20 72 65 | 74 75 72 6e 2e 20 49 74 |diate re|turn. It|
|00004130| 20 69 73 20 63 61 6c 6c | 65 64 20 62 79 20 7b 5c | is call|ed by {\|
|00004140| 74 74 20 70 6c 65 78 69 | 74 7d 0a 61 6e 64 20 69 |tt plexi|t}.and i|
|00004150| 73 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 62 65 |s intend|ed to be|
|00004160| 20 72 65 70 6c 61 63 65 | 64 20 62 79 0a 61 20 75 | replace|d by.a u|
|00004170| 73 65 72 20 72 6f 75 74 | 69 6e 65 20 6f 66 20 74 |ser rout|ine of t|
|00004180| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 20 73 6f 20 |he same |name so |
|00004190| 74 68 61 74 20 61 6e 79 | 20 75 73 65 72 20 61 6c |that any| user al|
|000041a0| 6c 6f 63 61 74 65 64 20 | 72 65 73 6f 75 72 63 65 |located |resource|
|000041b0| 73 0a 63 61 6e 20 62 65 | 20 72 65 6c 65 61 73 65 |s.can be| release|
|000041c0| 64 20 69 6e 20 74 68 65 | 20 63 61 73 65 20 6f 66 |d in the| case of|
|000041d0| 20 61 6e 20 65 72 72 6f | 72 2e 20 53 65 65 20 7b | an erro|r. See {|
|000041e0| 5c 74 74 20 70 6c 65 78 | 69 74 7d 20 61 62 6f 76 |\tt plex|it} abov|
|000041f0| 65 2e 7d 0a 0a 0a 5c 62 | 6e 61 6d 65 7b 70 6c 66 |e.}...\b|name{plf|
|00004200| 69 6c 6c 28 6e 2c 78 2c | 79 29 7d 5c 6c 61 62 65 |ill(n,x,|y)}\labe|
|00004210| 6c 7b 70 6c 66 69 6c 6c | 7d 0a 5c 61 64 64 63 6f |l{plfill|}.\addco|
|00004220| 6e 74 65 6e 74 73 6c 69 | 6e 65 7b 74 6f 63 7d 7b |ntentsli|ne{toc}{|
|00004230| 73 75 62 73 65 63 74 69 | 6f 6e 7d 7b 70 6c 66 69 |subsecti|on}{plfi|
|00004240| 6c 6c 7d 0a 0a 5c 64 65 | 73 63 72 7b 46 69 6c 6c |ll}..\de|scr{Fill|
|00004250| 73 20 74 68 65 20 70 6f | 6c 79 67 6f 6e 20 64 65 |s the po|lygon de|
|00004260| 66 69 6e 65 64 20 62 79 | 20 74 68 65 20 7b 5c 74 |fined by| the {\t|
|00004270| 74 20 6e 7d 20 70 6f 69 | 6e 74 73 20 7b 5c 74 74 |t n} poi|nts {\tt|
|00004280| 20 28 78 5b 69 5d 2c 79 | 5b 69 5d 29 7d 0a 75 73 | (x[i],y|[i])}.us|
|00004290| 69 6e 67 20 74 68 65 20 | 70 61 74 74 65 72 6e 20 |ing the |pattern |
|000042a0| 64 65 66 69 6e 65 64 20 | 62 79 20 7b 5c 74 74 20 |defined |by {\tt |
|000042b0| 70 6c 70 73 74 79 7d 20 | 6f 72 20 7b 5c 74 74 20 |plpsty} |or {\tt |
|000042c0| 70 6c 70 61 74 7d 2e 0a | 54 68 65 20 72 6f 75 74 |plpat}..|The rout|
|000042d0| 69 6e 65 20 77 69 6c 6c | 20 61 75 74 6f 6d 61 74 |ine will| automat|
|000042e0| 69 63 61 6c 6c 79 20 63 | 6c 6f 73 65 20 74 68 65 |ically c|lose the|
|000042f0| 20 70 6f 6c 79 67 6f 6e | 20 62 65 74 77 65 65 6e | polygon| between|
|00004300| 20 74 68 65 20 6c 61 73 | 74 20 61 6e 64 20 66 69 | the las|t and fi|
|00004310| 72 73 74 0a 76 65 72 74 | 69 63 65 73 2e 20 49 66 |rst.vert|ices. If|
|00004320| 20 6d 75 6c 74 69 70 6c | 65 20 63 6c 6f 73 65 64 | multipl|e closed|
|00004330| 20 70 6f 6c 79 67 6f 6e | 73 20 61 72 65 20 70 61 | polygon|s are pa|
|00004340| 73 73 65 64 20 69 6e 20 | 7b 5c 74 74 20 78 7d 20 |ssed in |{\tt x} |
|00004350| 61 6e 64 20 7b 5c 74 74 | 20 79 7d 20 74 68 65 6e |and {\tt| y} then|
|00004360| 0a 7b 5c 74 74 20 70 6c | 66 69 6c 6c 7d 20 77 69 |.{\tt pl|fill} wi|
|00004370| 6c 6c 20 66 69 6c 6c 20 | 69 6e 20 62 65 74 77 65 |ll fill |in betwe|
|00004380| 65 6e 20 74 68 65 6d 2e | 7d 0a 0a 5c 61 72 67 75 |en them.|}..\argu|
|00004390| 20 7b 7b 5c 74 74 20 6e | 7d 20 28 50 4c 49 4e 54 | {{\tt n|} (PLINT|
|000043a0| 2c 20 69 6e 70 75 74 29 | 7d 7b 4e 75 6d 62 65 72 |, input)|}{Number|
|000043b0| 20 6f 66 20 76 65 72 74 | 69 63 65 73 20 69 6e 20 | of vert|ices in |
|000043c0| 70 6f 6c 79 67 6f 6e 2e | 7d 0a 0a 5c 61 72 67 75 |polygon.|}..\argu|
|000043d0| 20 7b 7b 5c 74 74 20 78 | 7d 20 28 50 4c 46 4c 54 | {{\tt x|} (PLFLT|
|000043e0| 20 2a 2c 20 69 6e 70 75 | 74 29 7d 7b 50 6f 69 6e | *, inpu|t)}{Poin|
|000043f0| 74 65 72 20 74 6f 20 61 | 72 72 61 79 20 77 69 74 |ter to a|rray wit|
|00004400| 68 0a 78 7e 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |h.x~coor|dinates |
|00004410| 6f 66 20 76 65 72 74 69 | 63 65 73 2e 7d 0a 0a 5c |of verti|ces.}..\|
|00004420| 61 72 67 75 20 7b 7b 5c | 74 74 20 79 7d 20 28 50 |argu {{\|tt y} (P|
|00004430| 4c 46 4c 54 20 2a 2c 20 | 69 6e 70 75 74 29 7d 7b |LFLT *, |input)}{|
|00004440| 50 6f 69 6e 74 65 72 20 | 74 6f 20 61 72 72 61 79 |Pointer |to array|
|00004450| 20 77 69 74 68 0a 79 7e | 63 6f 6f 72 64 69 6e 61 | with.y~|coordina|
|00004460| 74 65 73 20 6f 66 20 76 | 65 72 74 69 63 65 73 2e |tes of v|ertices.|
|00004470| 7d 0a 0a 5c 62 6e 61 6d | 65 7b 70 6c 66 6f 6e 74 |}..\bnam|e{plfont|
|00004480| 28 66 6f 6e 74 29 7d 5c | 6c 61 62 65 6c 7b 70 6c |(font)}\|label{pl|
|00004490| 66 6f 6e 74 7d 0a 5c 61 | 64 64 63 6f 6e 74 65 6e |font}.\a|ddconten|
|000044a0| 74 73 6c 69 6e 65 7b 74 | 6f 63 7d 7b 73 75 62 73 |tsline{t|oc}{subs|
|000044b0| 65 63 74 69 6f 6e 7d 7b | 70 6c 66 6f 6e 74 7d 0a |ection}{|plfont}.|
|000044c0| 0a 5c 64 65 73 63 72 7b | 53 65 74 73 20 74 68 65 |.\descr{|Sets the|
|000044d0| 20 64 65 66 61 75 6c 74 | 20 63 68 61 72 61 63 74 | default| charact|
|000044e0| 65 72 20 66 6f 6e 74 20 | 66 6f 72 20 73 75 62 73 |er font |for subs|
|000044f0| 65 71 75 65 6e 74 20 63 | 68 61 72 61 63 74 65 72 |equent c|haracter|
|00004500| 20 64 72 61 77 69 6e 67 | 2e 0a 20 20 20 20 20 20 | drawing|.. |
|00004510| 20 41 6c 73 6f 20 61 66 | 66 65 63 74 73 20 73 79 | Also af|fects sy|
|00004520| 6d 62 6f 6c 73 20 70 72 | 6f 64 75 63 65 64 20 62 |mbols pr|oduced b|
|00004530| 79 20 7b 5c 74 74 20 70 | 6c 70 6f 69 6e 7d 2e 7d |y {\tt p|lpoin}.}|
|00004540| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 66 6f |..\argu |{{\tt fo|
|00004550| 6e 74 7d 20 28 50 4c 49 | 4e 54 2c 20 69 6e 70 75 |nt} (PLI|NT, inpu|
|00004560| 74 29 7d 7b 53 70 65 63 | 69 66 69 65 73 20 74 68 |t)}{Spec|ifies th|
|00004570| 65 20 66 6f 6e 74 3a 0a | 5c 62 65 67 69 6e 7b 69 |e font:.|\begin{i|
|00004580| 74 65 6d 69 7a 65 7d 0a | 5c 69 74 65 6d 7b 31 7d |temize}.|\item{1}|
|00004590| 3a 20 4e 6f 72 6d 61 6c | 20 66 6f 6e 74 20 28 73 |: Normal| font (s|
|000045a0| 69 6d 70 6c 65 73 74 20 | 61 6e 64 20 66 61 73 74 |implest |and fast|
|000045b0| 65 73 74 29 0a 5c 69 74 | 65 6d 7b 32 7d 3a 20 52 |est).\it|em{2}: R|
|000045c0| 6f 6d 61 6e 20 66 6f 6e | 74 0a 5c 69 74 65 6d 7b |oman fon|t.\item{|
|000045d0| 33 7d 3a 20 49 74 61 6c | 69 63 20 66 6f 6e 74 0a |3}: Ital|ic font.|
|000045e0| 5c 69 74 65 6d 7b 34 7d | 3a 20 53 63 72 69 70 74 |\item{4}|: Script|
|000045f0| 20 66 6f 6e 74 0a 5c 65 | 6e 64 7b 69 74 65 6d 69 | font.\e|nd{itemi|
|00004600| 7a 65 7d 0a 7d 0a 0a 5c | 62 6e 61 6d 65 7b 70 6c |ze}.}..\|bname{pl|
|00004610| 66 6f 6e 74 6c 64 28 73 | 65 74 29 7d 5c 6c 61 62 |fontld(s|et)}\lab|
|00004620| 65 6c 7b 70 6c 66 6f 6e | 74 6c 64 7d 0a 5c 61 64 |el{plfon|tld}.\ad|
|00004630| 64 63 6f 6e 74 65 6e 74 | 73 6c 69 6e 65 7b 74 6f |dcontent|sline{to|
|00004640| 63 7d 7b 73 75 62 73 65 | 63 74 69 6f 6e 7d 7b 70 |c}{subse|ction}{p|
|00004650| 6c 66 6f 6e 74 6c 64 7d | 0a 0a 5c 64 65 73 63 72 |lfontld}|..\descr|
|00004660| 7b 53 65 74 73 20 74 68 | 65 20 63 68 61 72 61 63 |{Sets th|e charac|
|00004670| 74 65 72 20 73 65 74 20 | 74 6f 20 75 73 65 20 66 |ter set |to use f|
|00004680| 6f 72 20 73 75 62 73 65 | 71 75 65 6e 74 20 63 68 |or subse|quent ch|
|00004690| 61 72 61 63 74 65 72 20 | 64 72 61 77 69 6e 67 2e |aracter |drawing.|
|000046a0| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 73 |}..\argu| {{\tt s|
|000046b0| 65 74 7d 20 28 50 4c 49 | 4e 54 2c 20 69 6e 70 75 |et} (PLI|NT, inpu|
|000046c0| 74 29 7d 7b 53 70 65 63 | 69 66 69 65 73 20 74 68 |t)}{Spec|ifies th|
|000046d0| 65 20 63 68 61 72 61 63 | 74 65 72 20 73 65 74 20 |e charac|ter set |
|000046e0| 74 6f 20 6c 6f 61 64 3a | 0a 5c 62 65 67 69 6e 7b |to load:|.\begin{|
|000046f0| 69 74 65 6d 69 7a 65 7d | 0a 5c 69 74 65 6d 7b 30 |itemize}|.\item{0|
|00004700| 7d 3a 20 53 74 61 6e 64 | 61 72 64 20 63 68 61 72 |}: Stand|ard char|
|00004710| 61 63 74 65 72 20 73 65 | 74 0a 5c 69 74 65 6d 7b |acter se|t.\item{|
|00004720| 31 7d 3a 20 45 78 74 65 | 6e 64 65 64 20 63 68 61 |1}: Exte|nded cha|
|00004730| 72 61 63 74 65 72 20 73 | 65 74 0a 5c 65 6e 64 7b |racter s|et.\end{|
|00004740| 69 74 65 6d 69 7a 65 7d | 0a 7d 0a 0a 5c 62 6e 61 |itemize}|.}..\bna|
|00004750| 6d 65 7b 70 6c 67 72 61 | 28 29 7d 5c 6c 61 62 65 |me{plgra|()}\labe|
|00004760| 6c 7b 70 6c 67 72 61 7d | 0a 5c 61 64 64 63 6f 6e |l{plgra}|.\addcon|
|00004770| 74 65 6e 74 73 6c 69 6e | 65 7b 74 6f 63 7d 7b 73 |tentslin|e{toc}{s|
|00004780| 75 62 73 65 63 74 69 6f | 6e 7d 7b 70 6c 67 72 61 |ubsectio|n}{plgra|
|00004790| 7d 0a 0a 5c 64 65 73 63 | 72 7b 53 65 74 73 20 61 |}..\desc|r{Sets a|
|000047a0| 6e 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 64 65 |n intera|ctive de|
|000047b0| 76 69 63 65 20 74 6f 20 | 67 72 61 70 68 69 63 73 |vice to |graphics|
|000047c0| 20 6d 6f 64 65 2c 20 75 | 73 65 64 20 69 6e 20 63 | mode, u|sed in c|
|000047d0| 6f 6e 6a 75 6e 63 74 69 | 6f 6e 0a 20 20 20 20 20 |onjuncti|on. |
|000047e0| 20 20 77 69 74 68 20 7b | 5c 74 74 20 70 6c 74 65 | with {|\tt plte|
|000047f0| 78 74 7d 20 74 6f 20 61 | 6c 6c 6f 77 20 67 72 61 |xt} to a|llow gra|
|00004800| 70 68 69 63 73 20 61 6e | 64 20 74 65 78 74 20 74 |phics an|d text t|
|00004810| 6f 20 62 65 20 69 6e 74 | 65 72 73 70 65 72 73 65 |o be int|ersperse|
|00004820| 64 2e 7d 0a 0a 5c 62 6e | 61 6d 65 7b 70 6c 67 73 |d.}..\bn|ame{plgs|
|00004830| 70 61 28 78 6d 69 6e 2c | 78 6d 61 78 2c 79 6d 69 |pa(xmin,|xmax,ymi|
|00004840| 6e 2c 79 6d 61 78 29 7d | 5c 6c 61 62 65 6c 7b 70 |n,ymax)}|\label{p|
|00004850| 6c 67 73 70 61 7d 0a 5c | 61 64 64 63 6f 6e 74 65 |lgspa}.\|addconte|
|00004860| 6e 74 73 6c 69 6e 65 7b | 74 6f 63 7d 7b 73 75 62 |ntsline{|toc}{sub|
|00004870| 73 65 63 74 69 6f 6e 7d | 7b 70 6c 67 73 70 61 7d |section}|{plgspa}|
|00004880| 0a 0a 5c 64 65 73 63 72 | 7b 47 65 74 73 20 74 68 |..\descr|{Gets th|
|00004890| 65 20 73 69 7a 65 20 6f | 66 20 74 68 65 20 63 75 |e size o|f the cu|
|000048a0| 72 72 65 6e 74 20 73 75 | 62 70 61 67 65 20 69 6e |rrent su|bpage in|
|000048b0| 20 6d 69 6c 6c 69 6d 65 | 74 72 65 73 20 6d 65 61 | millime|tres mea|
|000048c0| 73 75 72 65 64 0a 20 20 | 20 20 20 20 20 20 66 72 |sured. | fr|
|000048d0| 6f 6d 20 74 68 65 20 62 | 6f 74 74 6f 6d 20 6c 65 |om the b|ottom le|
|000048e0| 66 74 20 68 61 6e 64 20 | 63 6f 72 6e 65 72 20 6f |ft hand |corner o|
|000048f0| 66 20 74 68 65 20 6f 75 | 74 70 75 74 20 64 65 76 |f the ou|tput dev|
|00004900| 69 63 65 20 70 61 67 65 | 0a 20 20 20 20 20 20 20 |ice page|. |
|00004910| 20 6f 72 20 73 63 72 65 | 65 6e 2e 20 43 61 6e 20 | or scre|en. Can |
|00004920| 62 65 20 75 73 65 64 20 | 69 6e 20 63 6f 6e 6a 75 |be used |in conju|
|00004930| 6e 63 74 69 6f 6e 20 77 | 69 74 68 20 7b 5c 74 74 |nction w|ith {\tt|
|00004940| 20 70 6c 73 76 70 61 7d | 20 66 6f 72 20 73 65 74 | plsvpa}| for set|
|00004950| 74 69 6e 67 0a 20 20 20 | 20 20 20 20 20 74 68 65 |ting. | the|
|00004960| 20 73 69 7a 65 20 6f 66 | 20 61 20 76 69 65 77 70 | size of| a viewp|
|00004970| 6f 72 74 20 69 6e 20 61 | 62 73 6f 6c 75 74 65 20 |ort in a|bsolute |
|00004980| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 28 6d 69 6c |coordina|tes (mil|
|00004990| 6c 69 6d 65 74 72 65 73 | 29 2e 7d 0a 0a 5c 61 72 |limetres|).}..\ar|
|000049a0| 67 75 20 7b 7b 5c 74 74 | 20 78 6d 69 6e 7d 20 28 |gu {{\tt| xmin} (|
|000049b0| 50 4c 46 4c 54 20 2a 2c | 20 6f 75 74 70 75 74 29 |PLFLT *,| output)|
|000049c0| 7d 7b 50 6f 69 6e 74 65 | 72 20 74 6f 20 76 61 72 |}{Pointe|r to var|
|000049d0| 69 61 62 6c 65 20 77 69 | 74 68 0a 70 6f 73 69 74 |iable wi|th.posit|
|000049e0| 69 6f 6e 20 6f 66 20 6c | 65 66 74 20 68 61 6e 64 |ion of l|eft hand|
|000049f0| 20 65 64 67 65 20 6f 66 | 20 73 75 62 70 61 67 65 | edge of| subpage|
|00004a00| 20 69 6e 20 6d 69 6c 6c | 69 6d 65 74 72 65 73 2e | in mill|imetres.|
|00004a10| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 78 |}..\argu| {{\tt x|
|00004a20| 6d 61 78 7d 20 28 50 4c | 46 4c 54 20 2a 2c 20 6f |max} (PL|FLT *, o|
|00004a30| 75 74 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |utput)}{|Pointer |
|00004a40| 74 6f 20 76 61 72 69 61 | 62 6c 65 20 77 69 74 68 |to varia|ble with|
|00004a50| 0a 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 72 69 67 |.positio|n of rig|
|00004a60| 68 74 20 68 61 6e 64 20 | 65 64 67 65 20 6f 66 20 |ht hand |edge of |
|00004a70| 73 75 62 70 61 67 65 20 | 69 6e 20 6d 69 6c 6c 69 |subpage |in milli|
|00004a80| 6d 65 74 72 65 73 2e 7d | 0a 0a 5c 61 72 67 75 20 |metres.}|..\argu |
|00004a90| 7b 7b 5c 74 74 20 79 6d | 69 6e 7d 20 28 50 4c 46 |{{\tt ym|in} (PLF|
|00004aa0| 4c 54 20 2a 2c 20 6f 75 | 74 70 75 74 29 7d 7b 50 |LT *, ou|tput)}{P|
|00004ab0| 6f 69 6e 74 65 72 20 74 | 6f 20 76 61 72 69 61 62 |ointer t|o variab|
|00004ac0| 6c 65 20 77 69 74 68 0a | 70 6f 73 69 74 69 6f 6e |le with.|position|
|00004ad0| 20 6f 66 20 62 6f 74 74 | 6f 6d 20 65 64 67 65 20 | of bott|om edge |
|00004ae0| 6f 66 20 73 75 62 70 61 | 67 65 20 69 6e 20 6d 69 |of subpa|ge in mi|
|00004af0| 6c 6c 69 6d 65 74 72 65 | 73 2e 7d 0a 0a 5c 61 72 |llimetre|s.}..\ar|
|00004b00| 67 75 20 7b 7b 5c 74 74 | 20 79 6d 61 78 7d 20 28 |gu {{\tt| ymax} (|
|00004b10| 50 4c 46 4c 54 20 2a 2c | 20 6f 75 74 70 75 74 29 |PLFLT *,| output)|
|00004b20| 7d 7b 50 6f 69 6e 74 65 | 72 20 74 6f 20 76 61 72 |}{Pointe|r to var|
|00004b30| 69 61 62 6c 65 20 77 69 | 74 68 0a 70 6f 73 69 74 |iable wi|th.posit|
|00004b40| 69 6f 6e 20 6f 66 20 74 | 6f 70 20 65 64 67 65 20 |ion of t|op edge |
|00004b50| 6f 66 20 73 75 62 70 61 | 67 65 20 69 6e 20 6d 69 |of subpa|ge in mi|
|00004b60| 6c 6c 69 6d 65 74 72 65 | 73 2e 7d 0a 0a 5c 62 6e |llimetre|s.}..\bn|
|00004b70| 61 6d 65 7b 70 6c 68 69 | 73 74 28 6e 2c 64 61 74 |ame{plhi|st(n,dat|
|00004b80| 61 2c 64 61 74 6d 69 6e | 2c 64 61 74 6d 61 78 2c |a,datmin|,datmax,|
|00004b90| 6e 62 69 6e 2c 6f 6c 64 | 77 69 6e 29 7d 5c 6c 61 |nbin,old|win)}\la|
|00004ba0| 62 65 6c 7b 70 6c 68 69 | 73 74 7d 0a 5c 61 64 64 |bel{plhi|st}.\add|
|00004bb0| 63 6f 6e 74 65 6e 74 73 | 6c 69 6e 65 7b 74 6f 63 |contents|line{toc|
|00004bc0| 7d 7b 73 75 62 73 65 63 | 74 69 6f 6e 7d 7b 70 6c |}{subsec|tion}{pl|
|00004bd0| 68 69 73 74 7d 0a 0a 5c | 64 65 73 63 72 7b 50 6c |hist}..\|descr{Pl|
|00004be0| 6f 74 73 20 61 20 68 69 | 73 74 6f 67 72 61 6d 20 |ots a hi|stogram |
|00004bf0| 66 72 6f 6d 20 7b 5c 74 | 74 20 6e 7d 20 64 61 74 |from {\t|t n} dat|
|00004c00| 61 20 70 6f 69 6e 74 73 | 20 73 74 6f 72 65 64 20 |a points| stored |
|00004c10| 69 6e 20 74 68 65 20 61 | 72 72 61 79 20 7b 5c 74 |in the a|rray {\t|
|00004c20| 74 20 64 61 74 61 7d 2e | 0a 20 20 20 20 20 20 20 |t data}.|. |
|00004c30| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 62 69 6e |This rou|tine bin|
|00004c40| 73 20 74 68 65 20 64 61 | 74 61 20 69 6e 74 6f 20 |s the da|ta into |
|00004c50| 7b 5c 74 74 20 6e 62 69 | 6e 7d 20 62 69 6e 73 20 |{\tt nbi|n} bins |
|00004c60| 65 71 75 61 6c 6c 79 20 | 73 70 61 63 65 64 20 62 |equally |spaced b|
|00004c70| 65 74 77 65 65 6e 0a 20 | 20 20 20 20 20 20 7b 5c |etween. | {\|
|00004c80| 74 74 20 64 61 74 6d 69 | 6e 7d 20 61 6e 64 20 7b |tt datmi|n} and {|
|00004c90| 5c 74 74 20 64 61 74 6d | 61 78 7d 2c 20 61 6e 64 |\tt datm|ax}, and|
|00004ca0| 20 63 61 6c 6c 73 20 7b | 5c 74 74 20 70 6c 62 69 | calls {|\tt plbi|
|00004cb0| 6e 7d 20 74 6f 20 64 72 | 61 77 20 74 68 65 20 72 |n} to dr|aw the r|
|00004cc0| 65 73 75 6c 74 69 6e 67 | 0a 20 20 20 20 20 20 20 |esulting|. |
|00004cd0| 68 69 73 74 6f 67 72 61 | 6d 2e 20 50 61 72 61 6d |histogra|m. Param|
|00004ce0| 65 74 65 72 20 7b 5c 74 | 74 20 6f 6c 64 77 69 6e |eter {\t|t oldwin|
|00004cf0| 7d 20 61 6c 6c 6f 77 73 | 20 74 68 65 20 68 69 73 |} allows| the his|
|00004d00| 74 6f 67 72 61 6d 20 65 | 69 74 68 65 72 20 74 6f |togram e|ither to|
|00004d10| 0a 20 20 20 20 20 20 20 | 62 65 20 70 6c 6f 74 74 |. |be plott|
|00004d20| 65 64 20 69 6e 20 61 6e | 20 65 78 69 73 74 69 6e |ed in an| existin|
|00004d30| 67 20 77 69 6e 64 6f 77 | 20 6f 72 20 63 61 75 73 |g window| or caus|
|00004d40| 65 73 20 7b 5c 74 74 20 | 70 6c 68 69 73 74 7d 20 |es {\tt |plhist} |
|00004d50| 74 6f 20 63 61 6c 6c 0a | 20 20 20 20 20 20 20 7b |to call.| {|
|00004d60| 5c 74 74 20 70 6c 65 6e | 76 7d 20 77 69 74 68 20 |\tt plen|v} with |
|00004d70| 73 75 69 74 61 62 6c 65 | 20 6c 69 6d 69 74 73 20 |suitable| limits |
|00004d80| 62 65 66 6f 72 65 20 70 | 6c 6f 74 74 69 6e 67 20 |before p|lotting |
|00004d90| 74 68 65 20 68 69 73 74 | 6f 67 72 61 6d 2e 7d 0a |the hist|ogram.}.|
|00004da0| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 6e 7d 20 |.\argu {|{\tt n} |
|00004db0| 28 50 4c 49 4e 54 2c 20 | 69 6e 70 75 74 29 7d 7b |(PLINT, |input)}{|
|00004dc0| 4e 75 6d 62 65 72 20 6f | 66 20 64 61 74 61 20 70 |Number o|f data p|
|00004dd0| 6f 69 6e 74 73 2e 7d 0a | 0a 5c 61 72 67 75 20 7b |oints.}.|.\argu {|
|00004de0| 7b 5c 74 74 20 64 61 74 | 61 7d 20 28 50 4c 46 4c |{\tt dat|a} (PLFL|
|00004df0| 54 20 2a 2c 20 69 6e 70 | 75 74 29 7d 7b 50 6f 69 |T *, inp|ut)}{Poi|
|00004e00| 6e 74 65 72 20 74 6f 20 | 61 72 72 61 79 20 77 69 |nter to |array wi|
|00004e10| 74 68 0a 76 61 6c 75 65 | 73 20 6f 66 20 74 68 65 |th.value|s of the|
|00004e20| 20 7b 5c 74 74 20 6e 7d | 20 64 61 74 61 20 70 6f | {\tt n}| data po|
|00004e30| 69 6e 74 73 2e 7d 0a 0a | 5c 61 72 67 75 20 7b 7b |ints.}..|\argu {{|
|00004e40| 5c 74 74 20 64 61 74 6d | 69 6e 7d 20 28 50 4c 46 |\tt datm|in} (PLF|
|00004e50| 4c 54 2c 20 69 6e 70 75 | 74 29 7d 7b 4c 65 66 74 |LT, inpu|t)}{Left|
|00004e60| 2d 68 61 6e 64 20 65 64 | 67 65 20 6f 66 20 6c 6f |-hand ed|ge of lo|
|00004e70| 77 65 73 74 2d 76 61 6c | 75 65 64 20 62 69 6e 2e |west-val|ued bin.|
|00004e80| 7d 0a 0a 5c 61 72 67 75 | 20 7b 7b 5c 74 74 20 64 |}..\argu| {{\tt d|
|00004e90| 61 74 6d 61 78 7d 20 28 | 50 4c 46 4c 54 2c 20 69 |atmax} (|PLFLT, i|
|00004ea0| 6e 70 75 74 29 7d 7b 52 | 69 67 68 74 2d 68 61 6e |nput)}{R|ight-han|
|00004eb0| 64 20 65 64 67 65 20 6f | 66 20 68 69 67 68 65 73 |d edge o|f highes|
|00004ec0| 74 2d 76 61 6c 75 65 64 | 20 62 69 6e 2e 7d 0a 0a |t-valued| bin.}..|
|00004ed0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 62 69 6e |\argu {{|\tt nbin|
|00004ee0| 7d 20 28 50 4c 49 4e 54 | 2c 20 69 6e 70 75 74 29 |} (PLINT|, input)|
|00004ef0| 7d 7b 4e 75 6d 62 65 72 | 20 6f 66 20 28 65 71 75 |}{Number| of (equ|
|00004f00| 61 6c 2d 73 69 7a 65 64 | 29 20 62 69 6e 73 20 69 |al-sized|) bins i|
|00004f10| 6e 74 6f 20 77 68 69 63 | 68 0a 74 6f 20 64 69 76 |nto whic|h.to div|
|00004f20| 69 64 65 20 74 68 65 20 | 69 6e 74 65 72 76 61 6c |ide the |interval|
|00004f30| 20 7b 5c 74 74 20 78 6d | 69 6e 7d 20 74 6f 20 7b | {\tt xm|in} to {|
|00004f40| 5c 74 74 20 78 6d 61 78 | 7d 2e 7d 0a 0a 5c 61 72 |\tt xmax|}.}..\ar|
|00004f50| 67 75 20 7b 7b 5c 74 74 | 20 6f 6c 64 77 69 6e 7d |gu {{\tt| oldwin}|
|00004f60| 20 28 50 4c 49 4e 54 2c | 20 69 6e 70 75 74 29 7d | (PLINT,| input)}|
|00004f70| 7b 49 66 20 6f 6e 65 2c | 20 74 68 65 20 68 69 73 |{If one,| the his|
|00004f80| 74 6f 67 72 61 6d 20 69 | 73 20 70 6c 6f 74 74 65 |togram i|s plotte|
|00004f90| 64 20 69 6e 20 74 68 65 | 0a 63 75 72 72 65 6e 74 |d in the|.current|
|00004fa0| 6c 79 2d 64 65 66 69 6e | 65 64 20 77 69 6e 64 6f |ly-defin|ed windo|
|00004fb0| 77 2c 20 61 6e 64 20 69 | 66 20 7a 65 72 6f 2c 20 |w, and i|f zero, |
|00004fc0| 7b 5c 74 74 20 70 6c 65 | 6e 76 7d 20 69 73 20 63 |{\tt ple|nv} is c|
|00004fd0| 61 6c 6c 65 64 20 61 75 | 74 6f 6d 61 74 69 63 61 |alled au|tomatica|
|00004fe0| 6c 6c 79 0a 62 65 66 6f | 72 65 20 70 6c 6f 74 74 |lly.befo|re plott|
|00004ff0| 69 6e 67 2e 7d 0a 0a 0a | 0a 5c 62 6e 61 6d 65 7b |ing.}...|.\bname{|
|00005000| 70 6c 6a 6f 69 6e 28 78 | 31 2c 79 31 2c 78 32 2c |pljoin(x|1,y1,x2,|
|00005010| 79 32 29 7d 5c 6c 61 62 | 65 6c 7b 70 6c 6a 6f 69 |y2)}\lab|el{pljoi|
|00005020| 6e 7d 0a 5c 61 64 64 63 | 6f 6e 74 65 6e 74 73 6c |n}.\addc|ontentsl|
|00005030| 69 6e 65 7b 74 6f 63 7d | 7b 73 75 62 73 65 63 74 |ine{toc}|{subsect|
|00005040| 69 6f 6e 7d 7b 70 6c 6a | 6f 69 6e 7d 0a 0a 5c 64 |ion}{plj|oin}..\d|
|00005050| 65 73 63 72 7b 4a 6f 69 | 6e 73 20 74 68 65 20 70 |escr{Joi|ns the p|
|00005060| 6f 69 6e 74 20 7b 5c 74 | 74 20 28 78 31 2c 79 31 |oint {\t|t (x1,y1|
|00005070| 29 7d 20 74 6f 20 7b 5c | 74 74 20 28 78 32 2c 79 |)} to {\|tt (x2,y|
|00005080| 32 29 7d 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |2)}.}..\|argu {{\|
|00005090| 74 74 20 78 31 7d 20 28 | 50 4c 46 4c 54 2c 20 69 |tt x1} (|PLFLT, i|
|000050a0| 6e 70 75 74 29 7d 7b 78 | 7e 63 6f 6f 72 64 69 6e |nput)}{x|~coordin|
|000050b0| 61 74 65 20 6f 66 20 66 | 69 72 73 74 20 70 6f 69 |ate of f|irst poi|
|000050c0| 6e 74 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |nt.}..\a|rgu {{\t|
|000050d0| 74 20 79 31 7d 20 28 50 | 4c 46 4c 54 2c 20 69 6e |t y1} (P|LFLT, in|
|000050e0| 70 75 74 29 7d 7b 79 7e | 63 6f 6f 72 64 69 6e 61 |put)}{y~|coordina|
|000050f0| 74 65 20 6f 66 20 66 69 | 72 73 74 20 70 6f 69 6e |te of fi|rst poin|
|00005100| 74 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |t.}..\ar|gu {{\tt|
|00005110| 20 78 32 7d 20 28 50 4c | 46 4c 54 2c 20 69 6e 70 | x2} (PL|FLT, inp|
|00005120| 75 74 29 7d 7b 78 7e 63 | 6f 6f 72 64 69 6e 61 74 |ut)}{x~c|oordinat|
|00005130| 65 20 6f 66 20 73 65 63 | 6f 6e 64 20 70 6f 69 6e |e of sec|ond poin|
|00005140| 74 2e 7d 0a 0a 5c 61 72 | 67 75 20 7b 7b 5c 74 74 |t.}..\ar|gu {{\tt|
|00005150| 20 79 32 7d 20 28 50 4c | 46 4c 54 2c 20 69 6e 70 | y2} (PL|FLT, inp|
|00005160| 75 74 29 7d 7b 79 7e 63 | 6f 6f 72 64 69 6e 61 74 |ut)}{y~c|oordinat|
|00005170| 65 20 6f 66 20 73 65 63 | 6f 6e 64 20 70 6f 69 6e |e of sec|ond poin|
|00005180| 74 2e 7d 0a 0a 0a 0a 5c | 62 6e 61 6d 65 7b 70 6c |t.}....\|bname{pl|
|00005190| 6c 61 62 28 78 6c 61 62 | 65 6c 2c 79 6c 61 62 65 |lab(xlab|el,ylabe|
|000051a0| 6c 2c 74 6c 61 62 65 6c | 29 7d 5c 6c 61 62 65 6c |l,tlabel|)}\label|
|000051b0| 7b 70 6c 6c 61 62 7d 0a | 5c 61 64 64 63 6f 6e 74 |{pllab}.|\addcont|
|000051c0| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|000051d0| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 6c 61 62 7d |bsection|}{pllab}|
|000051e0| 0a 0a 5c 64 65 73 63 72 | 7b 52 6f 75 74 69 6e 65 |..\descr|{Routine|
|000051f0| 20 66 6f 72 20 77 72 69 | 74 69 6e 67 20 73 69 6d | for wri|ting sim|
|00005200| 70 6c 65 20 6c 61 62 65 | 6c 73 2e 20 55 73 65 20 |ple labe|ls. Use |
|00005210| 7b 5c 74 74 20 70 6c 6d | 74 65 78 7d 20 66 6f 72 |{\tt plm|tex} for|
|00005220| 20 6d 6f 72 65 20 63 6f | 6d 70 6c 65 78 0a 20 20 | more co|mplex. |
|00005230| 20 20 20 20 20 6c 61 62 | 65 6c 73 2e 7d 0a 0a 5c | lab|els.}..\|
|00005240| 61 72 67 75 20 7b 7b 5c | 74 74 20 78 6c 61 62 65 |argu {{\|tt xlabe|
|00005250| 6c 7d 20 28 63 68 61 72 | 20 2a 2c 20 69 6e 70 75 |l} (char| *, inpu|
|00005260| 74 29 7d 7b 4c 61 62 65 | 6c 20 66 6f 72 20 68 6f |t)}{Labe|l for ho|
|00005270| 72 69 7a 6f 6e 74 61 6c | 20 61 78 69 73 2e 7d 0a |rizontal| axis.}.|
|00005280| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 79 6c 61 |.\argu {|{\tt yla|
|00005290| 62 65 6c 7d 20 28 63 68 | 61 72 20 2a 2c 20 69 6e |bel} (ch|ar *, in|
|000052a0| 70 75 74 29 7d 7b 4c 61 | 62 65 6c 20 66 6f 72 20 |put)}{La|bel for |
|000052b0| 76 65 72 74 69 63 61 6c | 20 61 78 69 73 2e 7d 0a |vertical| axis.}.|
|000052c0| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 74 6c 61 |.\argu {|{\tt tla|
|000052d0| 62 65 6c 7d 20 28 63 68 | 61 72 20 2a 2c 20 69 6e |bel} (ch|ar *, in|
|000052e0| 70 75 74 29 7d 7b 54 69 | 74 6c 65 20 6f 66 20 67 |put)}{Ti|tle of g|
|000052f0| 72 61 70 68 2e 7d 0a 0a | 0a 0a 5c 62 6e 61 6d 65 |raph.}..|..\bname|
|00005300| 7b 70 6c 6c 69 6e 65 28 | 6e 2c 78 2c 79 29 7d 5c |{plline(|n,x,y)}\|
|00005310| 6c 61 62 65 6c 7b 70 6c | 6c 69 6e 65 7d 0a 5c 61 |label{pl|line}.\a|
|00005320| 64 64 63 6f 6e 74 65 6e | 74 73 6c 69 6e 65 7b 74 |ddconten|tsline{t|
|00005330| 6f 63 7d 7b 73 75 62 73 | 65 63 74 69 6f 6e 7d 7b |oc}{subs|ection}{|
|00005340| 70 6c 6c 69 6e 65 7d 0a | 0a 5c 64 65 73 63 72 7b |plline}.|.\descr{|
|00005350| 44 72 61 77 73 20 7b 5c | 74 74 20 6e 2d 31 7d 20 |Draws {\|tt n-1} |
|00005360| 6c 69 6e 65 20 73 65 67 | 6d 65 6e 74 73 20 6a 6f |line seg|ments jo|
|00005370| 69 6e 69 6e 67 20 70 6f | 69 6e 74 73 20 7b 5c 74 |ining po|ints {\t|
|00005380| 74 20 28 78 5b 69 5d 2c | 79 5b 69 5d 29 7d 2e 7d |t (x[i],|y[i])}.}|
|00005390| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 6e 7d |..\argu |{{\tt n}|
|000053a0| 20 28 50 4c 49 4e 54 2c | 20 69 6e 70 75 74 29 7d | (PLINT,| input)}|
|000053b0| 7b 4e 75 6d 62 65 72 20 | 6f 66 20 70 6f 69 6e 74 |{Number |of point|
|000053c0| 73 20 74 6f 20 6a 6f 69 | 6e 2e 7d 0a 0a 5c 61 72 |s to joi|n.}..\ar|
|000053d0| 67 75 20 7b 7b 5c 74 74 | 20 78 7d 20 28 50 4c 46 |gu {{\tt| x} (PLF|
|000053e0| 4c 54 20 2a 2c 20 69 6e | 70 75 74 29 7d 7b 50 6f |LT *, in|put)}{Po|
|000053f0| 69 6e 74 65 72 20 74 6f | 20 61 72 72 61 79 20 77 |inter to| array w|
|00005400| 69 74 68 0a 78 7e 63 6f | 6f 72 64 69 6e 61 74 65 |ith.x~co|ordinate|
|00005410| 73 20 6f 66 20 70 6f 69 | 6e 74 73 2e 7d 0a 0a 5c |s of poi|nts.}..\|
|00005420| 61 72 67 75 20 7b 7b 5c | 74 74 20 79 7d 20 28 50 |argu {{\|tt y} (P|
|00005430| 4c 46 4c 54 20 2a 2c 20 | 69 6e 70 75 74 29 7d 7b |LFLT *, |input)}{|
|00005440| 50 6f 69 6e 74 65 72 20 | 74 6f 20 61 72 72 61 79 |Pointer |to array|
|00005450| 20 77 69 74 68 0a 79 7e | 63 6f 6f 72 64 69 6e 61 | with.y~|coordina|
|00005460| 74 65 73 20 6f 66 20 70 | 6f 69 6e 74 73 2e 7d 0a |tes of p|oints.}.|
|00005470| 0a 0a 5c 62 6e 61 6d 65 | 7b 70 6c 6c 73 74 79 28 |..\bname|{pllsty(|
|00005480| 6e 29 7d 5c 6c 61 62 65 | 6c 7b 70 6c 6c 73 74 79 |n)}\labe|l{pllsty|
|00005490| 7d 0a 5c 61 64 64 63 6f | 6e 74 65 6e 74 73 6c 69 |}.\addco|ntentsli|
|000054a0| 6e 65 7b 74 6f 63 7d 7b | 73 75 62 73 65 63 74 69 |ne{toc}{|subsecti|
|000054b0| 6f 6e 7d 7b 70 6c 6c 73 | 74 79 7d 0a 0a 5c 64 65 |on}{plls|ty}..\de|
|000054c0| 73 63 72 20 7b 54 68 69 | 73 20 73 65 74 73 20 74 |scr {Thi|s sets t|
|000054d0| 68 65 20 6c 69 6e 65 20 | 73 74 79 6c 65 20 61 63 |he line |style ac|
|000054e0| 63 6f 72 64 69 6e 67 20 | 74 6f 20 6f 6e 65 20 6f |cording |to one o|
|000054f0| 66 20 65 69 67 68 74 20 | 70 72 65 64 65 66 69 6e |f eight |predefin|
|00005500| 65 64 20 70 61 74 74 65 | 72 6e 73 0a 28 61 6c 73 |ed patte|rns.(als|
|00005510| 6f 20 73 65 65 20 7b 5c | 74 74 20 70 6c 73 74 79 |o see {\|tt plsty|
|00005520| 6c 7d 29 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |l}).}..\|argu {{\|
|00005530| 74 74 20 6e 7d 20 28 50 | 4c 49 4e 54 2c 20 69 6e |tt n} (P|LINT, in|
|00005540| 70 75 74 29 7d 7b 49 6e | 74 65 67 65 72 20 76 61 |put)}{In|teger va|
|00005550| 6c 75 65 20 62 65 74 77 | 65 65 6e 20 31 20 61 6e |lue betw|een 1 an|
|00005560| 64 20 38 2e 7d 0a 0a 5c | 62 6e 61 6d 65 7b 70 6c |d 8.}..\|bname{pl|
|00005570| 6d 65 73 68 28 78 2c 79 | 2c 7a 2c 6c 79 2c 6e 78 |mesh(x,y|,z,ly,nx|
|00005580| 2c 6e 79 2c 6f 70 74 29 | 7d 5c 6c 61 62 65 6c 7b |,ny,opt)|}\label{|
|00005590| 70 6c 6d 65 73 68 7d 0a | 5c 61 64 64 63 6f 6e 74 |plmesh}.|\addcont|
|000055a0| 65 6e 74 73 6c 69 6e 65 | 7b 74 6f 63 7d 7b 73 75 |entsline|{toc}{su|
|000055b0| 62 73 65 63 74 69 6f 6e | 7d 7b 70 6c 6d 65 73 68 |bsection|}{plmesh|
|000055c0| 7d 0a 0a 5c 64 65 73 63 | 72 7b 50 6c 6f 74 73 20 |}..\desc|r{Plots |
|000055d0| 61 20 73 75 72 66 61 63 | 65 20 6d 65 73 68 20 77 |a surfac|e mesh w|
|000055e0| 69 74 68 69 6e 20 74 68 | 65 20 65 6e 76 69 72 6f |ithin th|e enviro|
|000055f0| 6e 6d 65 6e 74 0a 20 20 | 20 20 20 20 20 20 73 65 |nment. | se|
|00005600| 74 20 75 70 20 62 79 20 | 7b 5c 74 74 20 70 6c 77 |t up by |{\tt plw|
|00005610| 33 64 7d 2e 20 54 68 65 | 20 73 75 72 66 61 63 65 |3d}. The| surface|
|00005620| 20 69 73 20 64 65 66 69 | 6e 65 64 20 62 79 20 74 | is defi|ned by t|
|00005630| 68 65 20 74 77 6f 2d 64 | 69 6d 65 6e 73 69 6f 6e |he two-d|imension|
|00005640| 61 6c 0a 20 20 20 20 20 | 20 20 20 61 72 72 61 79 |al. | array|
|00005650| 20 7b 5c 74 74 20 7a 5b | 5d 5b 6c 79 5d 7d 2c 20 | {\tt z[|][ly]}, |
|00005660| 74 68 65 20 70 6f 69 6e | 74 20 7b 5c 74 74 20 7a |the poin|t {\tt z|
|00005670| 5b 69 5d 5b 6a 5d 7d 20 | 62 65 69 6e 67 20 74 68 |[i][j]} |being th|
|00005680| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 0a 20 |e value |of the. |
|00005690| 20 20 20 20 20 20 20 66 | 75 6e 63 74 69 6f 6e 20 | f|unction |
|000056a0| 61 74 20 7b 5c 74 74 20 | 28 78 5b 69 5d 2c 79 5b |at {\tt |(x[i],y[|
|000056b0| 6a 5d 29 7d 2e 20 4e 6f | 74 65 20 74 68 61 74 20 |j])}. No|te that |
|000056c0| 74 68 65 20 70 6f 69 6e | 74 73 20 69 6e 20 61 72 |the poin|ts in ar|
|000056d0| 72 61 79 73 20 7b 5c 74 | 74 20 78 7d 20 61 6e 64 |rays {\t|t x} and|
|000056e0| 0a 20 20 20 20 20 20 20 | 20 7b 5c 74 74 20 79 7d |. | {\tt y}|
|000056f0| 20 64 6f 20 6e 6f 74 20 | 6e 65 65 64 20 74 6f 20 | do not |need to |
|00005700| 62 65 20 65 71 75 61 6c | 6c 79 20 73 70 61 63 65 |be equal|ly space|
|00005710| 64 2c 20 62 75 74 20 6d | 75 73 74 20 62 65 20 73 |d, but m|ust be s|
|00005720| 74 6f 72 65 64 20 69 6e | 0a 20 20 20 20 20 20 20 |tored in|. |
|00005730| 20 61 73 63 65 6e 64 69 | 6e 67 20 6f 72 64 65 72 | ascendi|ng order|
|00005740| 2e 20 54 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |. The pa|rameter |
|00005750| 7b 5c 74 74 20 6f 70 74 | 7d 20 63 6f 6e 74 72 6f |{\tt opt|} contro|
|00005760| 6c 73 20 74 68 65 20 77 | 61 79 20 69 6e 20 77 68 |ls the w|ay in wh|
|00005770| 69 63 68 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |ich the.| |
|00005780| 73 75 72 66 61 63 65 20 | 69 73 20 64 69 73 70 6c |surface |is displ|
|00005790| 61 79 65 64 2e 20 53 65 | 65 20 53 65 63 74 69 6f |ayed. Se|e Sectio|
|000057a0| 6e 20 5c 72 65 66 7b 74 | 68 72 65 65 64 7d 20 6f |n \ref{t|hreed} o|
|000057b0| 6e 20 70 61 67 65 20 5c | 70 61 67 65 72 65 66 7b |n page \|pageref{|
|000057c0| 74 68 72 65 65 64 7d 0a | 20 20 20 20 20 20 20 20 |threed}.| |
|000057d0| 66 6f 72 20 66 75 72 74 | 68 65 72 20 64 65 74 61 |for furt|her deta|
|000057e0| 69 6c 73 2e 7d 0a 0a 5c | 61 72 67 75 20 7b 7b 5c |ils.}..\|argu {{\|
|000057f0| 74 74 20 78 7d 20 28 50 | 4c 46 4c 54 20 2a 2c 20 |tt x} (P|LFLT *, |
|00005800| 69 6e 70 75 74 29 7d 7b | 50 6f 69 6e 74 65 72 20 |input)}{|Pointer |
|00005810| 74 6f 0a 73 65 74 20 6f | 66 20 78 7e 63 6f 6f 72 |to.set o|f x~coor|
|00005820| 64 69 6e 61 74 65 20 76 | 61 6c 75 65 73 20 61 74 |dinate v|alues at|
|00005830| 20 77 68 69 63 68 20 74 | 68 65 0a 66 75 6e 63 74 | which t|he.funct|
|00005840| 69 6f 6e 20 69 73 20 65 | 76 61 6c 75 61 74 65 64 |ion is e|valuated|
|00005850| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00005860| 79 7d 20 28 50 4c 46 4c | 54 20 2a 2c 20 69 6e 70 |y} (PLFL|T *, inp|
|00005870| 75 74 29 7d 7b 50 6f 69 | 6e 74 65 72 20 74 6f 0a |ut)}{Poi|nter to.|
|00005880| 73 65 74 20 6f 66 20 79 | 7e 63 6f 6f 72 64 69 6e |set of y|~coordin|
|00005890| 61 74 65 20 76 61 6c 75 | 65 73 20 61 74 20 77 68 |ate valu|es at wh|
|000058a0| 69 63 68 20 74 68 65 0a | 66 75 6e 63 74 69 6f 6e |ich the.|function|
|000058b0| 20 69 73 20 65 76 61 6c | 75 61 74 65 64 2e 7d 0a | is eval|uated.}.|
|000058c0| 0a 5c 61 72 67 75 20 7b | 7b 5c 74 74 20 7a 7d 20 |.\argu {|{\tt z} |
|000058d0| 28 50 4c 46 4c 54 20 2a | 2c 20 69 6e 70 75 74 29 |(PLFLT *|, input)|
|000058e0| 7d 7b 50 6f 69 6e 74 65 | 72 20 74 6f 20 74 77 6f |}{Pointe|r to two|
|000058f0| 20 64 69 6d 65 6e 73 69 | 6f 6e 61 6c 20 61 72 72 | dimensi|onal arr|
|00005900| 61 79 20 77 69 74 68 0a | 73 65 74 20 6f 66 20 66 |ay with.|set of f|
|00005910| 75 6e 63 74 69 6f 6e 20 | 76 61 6c 75 65 73 2e 7d |unction |values.}|
|00005920| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 6c 79 |..\argu |{{\tt ly|
|00005930| 7d 20 28 50 4c 49 4e 54 | 2c 20 69 6e 70 75 74 29 |} (PLINT|, input)|
|00005940| 7d 7b 44 65 63 6c 61 72 | 65 64 20 73 65 63 6f 6e |}{Declar|ed secon|
|00005950| 64 20 64 69 6d 65 6e 73 | 69 6f 6e 20 6f 66 20 7b |d dimens|ion of {|
|00005960| 5c 74 74 20 7a 7d 7e 61 | 72 72 61 79 2e 7d 0a 0a |\tt z}~a|rray.}..|
|00005970| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 6e 78 7d 20 |\argu {{|\tt nx} |
|00005980| 28 50 4c 49 4e 54 2c 20 | 69 6e 70 75 74 29 7d 7b |(PLINT, |input)}{|
|00005990| 4e 75 6d 62 65 72 20 6f | 66 20 7b 5c 74 74 20 78 |Number o|f {\tt x|
|000059a0| 7d 7e 76 61 6c 75 65 73 | 20 61 74 20 77 68 69 63 |}~values| at whic|
|000059b0| 68 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 0a 65 76 |h functi|on is.ev|
|000059c0| 61 6c 75 61 74 65 64 2e | 7d 0a 0a 5c 61 72 67 75 |aluated.|}..\argu|
|000059d0| 20 7b 7b 5c 74 74 20 6e | 79 7d 20 28 50 4c 49 4e | {{\tt n|y} (PLIN|
|000059e0| 54 2c 20 69 6e 70 75 74 | 29 7d 7b 4e 75 6d 62 65 |T, input|)}{Numbe|
|000059f0| 72 20 6f 66 20 7b 5c 74 | 74 20 79 7d 7e 76 61 6c |r of {\t|t y}~val|
|00005a00| 75 65 73 20 61 74 20 77 | 68 69 63 68 20 66 75 6e |ues at w|hich fun|
|00005a10| 63 74 69 6f 6e 20 69 73 | 0a 65 76 61 6c 75 61 74 |ction is|.evaluat|
|00005a20| 65 64 2e 7d 0a 0a 5c 61 | 72 67 75 20 7b 7b 5c 74 |ed.}..\a|rgu {{\t|
|00005a30| 74 20 6f 70 74 7d 20 28 | 50 4c 49 4e 54 2c 20 69 |t opt} (|PLINT, i|
|00005a40| 6e 70 75 74 29 7d 7b 44 | 65 74 65 72 6d 69 6e 65 |nput)}{D|etermine|
|00005a50| 73 20 74 68 65 20 77 61 | 79 20 69 6e 20 77 68 69 |s the wa|y in whi|
|00005a60| 63 68 20 74 68 65 20 73 | 75 72 66 61 63 65 0a 69 |ch the s|urface.i|
|00005a70| 73 20 72 65 70 72 65 73 | 65 6e 74 65 64 3a 0a 5c |s repres|ented:.\|
|00005a80| 62 65 67 69 6e 7b 69 74 | 65 6d 69 7a 65 7d 0a 5c |begin{it|emize}.\|
|00005a90| 69 74 65 6d 7b 31 7d 3a | 20 4c 69 6e 65 73 20 61 |item{1}:| Lines a|
|00005aa0| 72 65 20 64 72 61 77 6e | 20 73 68 6f 77 69 6e 67 |re drawn| showing|
|00005ab0| 20 7b 5c 74 74 20 7a 7d | 20 61 73 20 61 20 66 75 | {\tt z}| as a fu|
|00005ac0| 6e 63 74 69 6f 6e 20 6f | 66 20 7b 5c 74 74 20 78 |nction o|f {\tt x|
|00005ad0| 7d 20 66 6f 72 20 65 61 | 63 68 20 76 61 6c 75 65 |} for ea|ch value|
|00005ae0| 0a 20 20 20 20 20 20 20 | 20 20 20 6f 66 20 7b 5c |. | of {\|
|00005af0| 74 74 20 79 5b 6a 5d 7d | 2e 0a 5c 69 74 65 6d 7b |tt y[j]}|..\item{|
|00005b00| 32 7d 3a 20 4c 69 6e 65 | 73 20 61 72 65 20 64 72 |2}: Line|s are dr|
|00005b10| 61 77 6e 20 73 68 6f 77 | 69 6e 67 20 7b 5c 74 74 |awn show|ing {\tt|
|00005b20| 20 7a 7d 20 61 73 20 61 | 20 66 75 6e 63 74 69 6f | z} as a| functio|
|00005b30| 6e 20 6f 66 20 7b 5c 74 | 74 20 79 7d 20 66 6f 72 |n of {\t|t y} for|
|00005b40| 20 65 61 63 68 20 76 61 | 6c 75 65 0a 20 20 20 20 | each va|lue. |
|00005b50| 20 20 20 20 20 20 6f 66 | 20 7b 5c 74 74 20 78 5b | of| {\tt x[|
|00005b60| 69 5d 7d 2e 0a 5c 69 74 | 65 6d 7b 33 7d 3a 20 4e |i]}..\it|em{3}: N|
|00005b70| 65 74 77 6f 72 6b 20 6f | 66 20 6c 69 6e 65 73 20 |etwork o|f lines |
|00005b80| 69 73 20 64 72 61 77 6e | 20 63 6f 6e 6e 65 63 74 |is drawn| connect|
|00005b90| 69 6e 67 20 70 6f 69 6e | 74 73 20 61 74 20 77 68 |ing poin|ts at wh|
|00005ba0| 69 63 68 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 0a |ich func|tion is.|
|00005bb0| 20 20 20 20 20 20 20 20 | 20 20 64 65 66 69 6e 65 | | define|
|00005bc0| 64 2e 0a 5c 65 6e 64 7b | 69 74 65 6d 69 7a 65 7d |d..\end{|itemize}|
|00005bd0| 0a 7d 0a 0a 0a 5c 62 6e | 61 6d 65 7b 70 6c 6d 74 |.}...\bn|ame{plmt|
|00005be0| 65 78 28 73 69 64 65 2c | 64 69 73 70 2c 70 6f 73 |ex(side,|disp,pos|
|00005bf0| 2c 6a 75 73 74 2c 74 65 | 78 74 29 7d 5c 6c 61 62 |,just,te|xt)}\lab|
|00005c00| 65 6c 7b 70 6c 6d 74 65 | 78 7d 0a 5c 61 64 64 63 |el{plmte|x}.\addc|
|00005c10| 6f 6e 74 65 6e 74 73 6c | 69 6e 65 7b 74 6f 63 7d |ontentsl|ine{toc}|
|00005c20| 7b 73 75 62 73 65 63 74 | 69 6f 6e 7d 7b 70 6c 6d |{subsect|ion}{plm|
|00005c30| 74 65 78 7d 0a 0a 5c 64 | 65 73 63 72 7b 57 72 69 |tex}..\d|escr{Wri|
|00005c40| 74 65 73 20 74 65 78 74 | 20 61 74 20 61 20 73 70 |tes text| at a sp|
|00005c50| 65 63 69 66 69 65 64 20 | 70 6f 73 69 74 69 6f 6e |ecified |position|
|00005c60| 20 72 65 6c 61 74 69 76 | 65 20 74 6f 20 74 68 65 | relativ|e to the|
|00005c70| 20 76 69 65 77 70 6f 72 | 74 0a 20 20 20 20 20 20 | viewpor|t. |
|00005c80| 20 62 6f 75 6e 64 61 72 | 69 65 73 2e 20 54 65 78 | boundar|ies. Tex|
|00005c90| 74 20 6d 61 79 20 62 65 | 20 77 72 69 74 74 65 6e |t may be| written|
|00005ca0| 20 69 6e 73 69 64 65 20 | 6f 72 20 6f 75 74 73 69 | inside |or outsi|
|00005cb0| 64 65 20 74 68 65 20 76 | 69 65 77 70 6f 72 74 2c |de the v|iewport,|
|00005cc0| 0a 20 20 20 20 20 20 20 | 62 75 74 20 69 73 20 63 |. |but is c|
|00005cd0| 6c 69 70 70 65 64 20 61 | 74 20 74 68 65 20 73 75 |lipped a|t the su|
|00005ce0| 62 70 61 67 65 20 62 6f | 75 6e 64 61 72 69 65 73 |bpage bo|undaries|
|00005cf0| 2e 0a 20 20 20 20 20 20 | 20 54 68 65 20 72 65 66 |.. | The ref|
|00005d00| 65 72 65 6e 63 65 20 70 | 6f 69 6e 74 20 6f 66 20 |erence p|oint of |
|00005d10| 61 20 73 74 72 69 6e 67 | 20 6c 69 65 73 20 61 6c |a string| lies al|
|00005d20| 6f 6e 67 20 61 20 6c 69 | 6e 65 20 70 61 73 73 69 |ong a li|ne passi|
|00005d30| 6e 67 0a 20 20 20 20 20 | 20 20 74 68 72 6f 75 67 |ng. | throug|
|00005d40| 68 20 74 68 65 20 73 74 | 72 69 6e 67 20 61 74 20 |h the st|ring at |
|00005d50| 68 61 6c 66 20 74 68 65 | 20 68 65 69 67 68 74 20 |half the| height |
|00005d60| 6f 66 20 61 20 63 61 70 | 69 74 61 6c 20 6c 65 74 |of a cap|ital let|
|00005d70| 74 65 72 2e 0a 20 20 20 | 20 20 20 20 54 68 65 20 |ter.. | The |
|00005d80| 70 6f 73 69 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |position| of the |
|00005d90| 72 65 66 65 72 65 6e 63 | 65 20 70 6f 69 6e 74 20 |referenc|e point |
|00005da0| 61 6c 6f 6e 67 20 74 68 | 69 73 20 6c 69 6e 65 20 |along th|is line |
|00005db0| 69 73 20 64 65 74 65 72 | 6d 69 6e 65 64 0a 20 20 |is deter|mined. |
|00005dc0| 20 20 20 20 20 62 79 20 | 7b 5c 74 74 20 6a 75 73 | by |{\tt jus|
|00005dd0| 74 7d 2c 20 61 6e 64 20 | 74 68 65 20 70 6f 73 69 |t}, and |the posi|
|00005de0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 72 65 66 65 |tion of |the refe|
|00005df0| 72 65 6e 63 65 20 70 6f | 69 6e 74 20 72 65 6c 61 |rence po|int rela|
|00005e00| 74 69 76 65 20 74 6f 0a | 20 20 20 20 20 20 20 74 |tive to.| t|
|00005e10| 68 65 20 76 69 65 77 70 | 6f 72 74 20 69 73 20 73 |he viewp|ort is s|
|00005e20| 65 74 20 62 79 20 7b 5c | 74 74 20 64 69 73 70 7d |et by {\|tt disp}|
|00005e30| 20 61 6e 64 20 7b 5c 74 | 74 20 70 6f 73 7d 2e 7d | and {\t|t pos}.}|
|00005e40| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 73 69 |..\argu |{{\tt si|
|00005e50| 64 65 7d 20 28 63 68 61 | 72 20 2a 2c 20 69 6e 70 |de} (cha|r *, inp|
|00005e60| 75 74 29 7d 7b 53 70 65 | 63 69 66 69 65 73 20 74 |ut)}{Spe|cifies t|
|00005e70| 68 65 20 73 69 64 65 20 | 6f 66 20 74 68 65 20 76 |he side |of the v|
|00005e80| 69 65 77 70 6f 72 74 20 | 61 6c 6f 6e 67 0a 77 68 |iewport |along.wh|
|00005e90| 69 63 68 20 74 68 65 20 | 74 65 78 74 20 69 73 20 |ich the |text is |
|00005ea0| 74 6f 20 62 65 20 77 72 | 69 74 74 65 6e 2e 20 54 |to be wr|itten. T|
|00005eb0| 68 65 20 73 74 72 69 6e | 67 20 6d 75 73 74 20 62 |he strin|g must b|
|00005ec0| 65 20 6f 6e 65 20 6f 66 | 3a 0a 5c 62 65 67 69 6e |e one of|:.\begin|
|00005ed0| 7b 69 74 65 6d 69 7a 65 | 7d 0a 5c 69 74 65 6d 7b |{itemize|}.\item{|
|00005ee0| 62 7d 3a 20 42 6f 74 74 | 6f 6d 20 6f 66 20 76 69 |b}: Bott|om of vi|
|00005ef0| 65 77 70 6f 72 74 2e 0a | 5c 69 74 65 6d 7b 6c 7d |ewport..|\item{l}|
|00005f00| 3a 20 4c 65 66 74 20 6f | 66 20 76 69 65 77 70 6f |: Left o|f viewpo|
|00005f10| 72 74 2c 20 74 65 78 74 | 20 77 72 69 74 74 65 6e |rt, text| written|
|00005f20| 20 70 61 72 61 6c 6c 65 | 6c 20 74 6f 20 65 64 67 | paralle|l to edg|
|00005f30| 65 2e 0a 5c 69 74 65 6d | 7b 6c 76 7d 3a 20 4c 65 |e..\item|{lv}: Le|
|00005f40| 66 74 20 6f 66 20 76 69 | 65 77 70 6f 72 74 2c 20 |ft of vi|ewport, |
|00005f50| 74 65 78 74 20 77 72 69 | 74 74 65 6e 20 61 74 20 |text wri|tten at |
|00005f60| 72 69 67 68 74 20 61 6e | 67 6c 65 73 20 74 6f 20 |right an|gles to |
|00005f70| 65 64 67 65 2e 0a 5c 69 | 74 65 6d 7b 72 7d 3a 20 |edge..\i|tem{r}: |
|00005f80| 52 69 67 68 74 20 6f 66 | 20 76 69 65 77 70 6f 72 |Right of| viewpor|
|00005f90| 74 2c 20 74 65 78 74 20 | 77 72 69 74 74 65 6e 20 |t, text |written |
|00005fa0| 70 61 72 61 6c 6c 65 6c | 20 74 6f 20 65 64 67 65 |parallel| to edge|
|00005fb0| 2e 0a 5c 69 74 65 6d 7b | 72 76 7d 3a 20 52 69 67 |..\item{|rv}: Rig|
|00005fc0| 68 74 20 6f 66 20 76 69 | 65 77 70 6f 72 74 2c 20 |ht of vi|ewport, |
|00005fd0| 74 65 78 74 20 77 72 69 | 74 74 65 6e 20 61 74 20 |text wri|tten at |
|00005fe0| 72 69 67 68 74 20 61 6e | 67 6c 65 73 20 74 6f 20 |right an|gles to |
|00005ff0| 65 64 67 65 2e 0a 5c 69 | 74 65 6d 7b 74 7d 3a 20 |edge..\i|tem{t}: |
|00006000| 54 6f 70 20 6f 66 20 76 | 69 65 77 70 6f 72 74 2e |Top of v|iewport.|
|00006010| 0a 5c 65 6e 64 7b 69 74 | 65 6d 69 7a 65 7d 0a 7d |.\end{it|emize}.}|
|00006020| 0a 0a 5c 61 72 67 75 20 | 7b 7b 5c 74 74 20 64 69 |..\argu |{{\tt di|
|00006030| 73 70 7d 20 28 50 4c 46 | 4c 54 2c 20 69 6e 70 75 |sp} (PLF|LT, inpu|
|00006040| 74 29 7d 7b 50 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |t)}{Posi|tion of |
|00006050| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |the refe|rence po|
|00006060| 69 6e 74 20 6f 66 20 73 | 74 72 69 6e 67 2c 0a 6d |int of s|tring,.m|
|00006070| 65 61 73 75 72 65 64 20 | 6f 75 74 77 61 72 64 73 |easured |outwards|
|00006080| 20 66 72 6f 6d 20 74 68 | 65 20 73 70 65 63 69 66 | from th|e specif|
|00006090| 69 65 64 20 76 69 65 77 | 70 6f 72 74 20 65 64 67 |ied view|port edg|
|000060a0| 65 20 69 6e 20 75 6e 69 | 74 73 20 6f 66 20 74 68 |e in uni|ts of th|
|000060b0| 65 0a 63 75 72 72 65 6e | 74 20 63 68 61 72 61 63 |e.curren|t charac|
|000060c0| 74 65 72 20 68 65 69 67 | 68 74 2e 20 55 73 65 20 |ter heig|ht. Use |
|000060d0| 6e 65 67 61 74 69 76 65 | 20 7b 5c 74 74 20 64 69 |negative| {\tt di|
|000060e0| 73 70 7d 20 74 6f 20 77 | 72 69 74 65 20 77 69 74 |sp} to w|rite wit|
|000060f0| 68 69 6e 20 74 68 65 0a | 76 69 65 77 70 6f 72 74 |hin the.|viewport|
|00006100| 2e 7d 0a 0a 5c 61 72 67 | 75 20 7b 7b 5c 74 74 20 |.}..\arg|u {{\tt |
|00006110| 70 6f 73 7d 20 28 50 4c | 46 4c 54 2c 20 69 6e 70 |pos} (PL|FLT, inp|
|00006120| 75 74 29 7d 7b 50 6f 73 | 69 74 69 6f 6e 20 6f 66 |ut)}{Pos|ition of|
|00006130| 20 74 68 65 20 72 65 66 | 65 72 65 6e 63 65 20 70 | the ref|erence p|
|00006140| 6f 69 6e 74 20 6f 66 20 | 73 74 72 69 6e 67 20 61 |oint of |string a|
|00006150| 6c 6f 6e 67 0a 74 68 65 | 20 73 70 65 63 69 66 69 |long.the| specifi|
|00006160| 65 64 20 65 64 67 65 2c | 20 65 78 70 72 65 73 73 |ed edge,| express|
|00006170| 65 64 20 61 73 20 61 20 | 66 72 61 63 74 69 6f 6e |ed as a |fraction|
|00006180| 20 6f 66 20 74 68 65 20 | 6c 65 6e 67 74 68 20 6f | of the |length o|
|00006190| 66 20 74 68 65 20 65 64 | 67 65 2e 7d 0a 0a 5c 61 |f the ed|ge.}..\a|
|000061a0| 72 67 75 20 7b 7b 5c 74 | 74 20 6a 75 73 74 7d 20 |rgu {{\t|t just} |
|000061b0| 28 50 4c 46 4c 54 2c 20 | 69 6e 70 75 74 29 7d 7b |(PLFLT, |input)}{|
|000061c0| 53 70 65 63 69 66 69 65 | 73 20 74 68 65 20 70 6f |Specifie|s the po|
|000061d0| 73 69 74 69 6f 6e 20 6f | 66 20 74 68 65 20 73 74 |sition o|f the st|
|000061e0| 72 69 6e 67 20 72 65 6c | 61 74 69 76 65 0a 74 6f |ring rel|ative.to|
|000061f0| 20 69 74 73 20 72 65 66 | 65 72 65 6e 63 65 20 70 | its ref|erence p|
|00006200| 6f 69 6e 74 2e 20 49 66 | 20 7b 5c 74 74 20 6a 75 |oint. If| {\tt ju|
|00006210| 73 74 3d 30 7d 2c 20 74 | 68 65 20 72 65 66 65 72 |st=0}, t|he refer|
|00006220| 65 6e 63 65 20 70 6f 69 | 6e 74 20 69 73 20 61 74 |ence poi|nt is at|
|00006230| 20 74 68 65 20 6c 65 66 | 74 0a 61 6e 64 20 69 66 | the lef|t.and if|
|00006240| 20 7b 5c 74 74 20 6a 75 | 73 74 3d 31 7d 2c 20 69 | {\tt ju|st=1}, i|
|00006250| 74 20 69 73 20 61 74 20 | 74 68 65 20 72 69 67 68 |t is at |the righ|
|00006260| 74 20 6f 66 20 74 68 65 | 20 73 74 72 69 6e 67 2e |t of the| string.|
|00006270| 20 4f 74 68 65 72 20 76 | 61 6c 75 65 73 20 6f 66 | Other v|alues of|
|00006280| 20 7b 5c 74 74 20 6a 75 | 73 74 7d 0a 67 69 76 65 | {\tt ju|st}.give|
|00006290| 20 69 6e 74 65 72 6d 65 | 64 69 61 74 65 20 6a 75 | interme|diate ju|
|000062a0| 73 74 69 66 69 63 61 74 | 69 6f 6e 73 2e 7d 0a 0a |stificat|ions.}..|
|000062b0| 5c 61 72 67 75 20 7b 7b | 5c 74 74 20 74 65 78 74 |\argu {{|\tt text|
|000062c0| 7d 20 28 63 68 61 72 20 | 2a 2c 20 69 6e 70 75 74 |} (char |*, input|
|000062d0| 29 7d 7b 54 68 65 20 73 | 74 72 69 6e 67 20 74 6f |)}{The s|tring to|
|000062e0| 20 62 65 20 77 72 69 74 | 74 65 6e 20 6f 75 74 2e | be writ|ten out.|
|000062f0| 7d 0a 0a 0a 0a 5c 62 6e | 61 6d 65 7b 70 6c 6f 74 |}....\bn|ame{plot|
|00006300| 33 64 28 78 2c 79 2c 7a | 2c 6c 79 2c 6e 78 2c 6e |3d(x,y,z|,ly,nx,n|
|00006310| 79 2c 6f 70 74 2c 73 69 | 64 65 29 7d 5c 6c 61 62 |y,opt,si|de)}\lab|
|00006320| 65 6c 7b 70 6c 6f 74 33 | 64 7d 0a 5c 61 64 64 63 |el{plot3|d}.\addc|
|00006330| 6f 6e 74 65 6e 74 73 6c | 69 6e 65 7b 74 6f 63 7d |ontentsl|ine{toc}|
|00006340| 7b 73 75 62 73 65 63 74 | 69 6f 6e 7d 7b 70 6c 6f |{subsect|ion}{plo|
|00006350| 74 33 64 7d 0a 0a 5c 64 | 65 73 63 72 7b 50 6c 6f |t3d}..\d|escr{Plo|
|00006360| 74 73 20 61 20 74 68 72 | 65 65 20 64 69 6d 65 6e |ts a thr|ee dimen|
|00006370| 73 69 6f 6e 61 6c 20 73 | 75 72 66 61 63 65 20 70 |sional s|urface p|
|00006380| 6c 6f 74 20 77 69 74 68 | 69 6e 20 74 68 65 20 65 |lot with|in the e|
|00006390| 6e 76 69 72 6f 6e 6d 65 | 6e 74 0a 20 20 20 20 20 |nvironme|nt. |
|000063a0| 20 20 20 73 65 74 20 75 | 70 20 62 79 20 7b 5c 74 | set u|p by {\t|
|000063b0| 74 20 70 6c 77 33 64 7d | 2e 20 54 68 65 20 73 75 |t plw3d}|. The su|
|000063c0| 72 66 61 63 65 20 69 73 | 20 64 65 66 69 6e 65 64 |rface is| defined|
|000063d0| 20 62 79 20 74 68 65 20 | 74 77 6f 2d 64 69 6d 65 | by the |two-dime|
|000063e0| 6e 73 69 6f 6e 61 6c 0a | 20 20 20 20 20 20 20 20 |nsional.| |
|000063f0| 61 72 72 61 79 20 7b 5c | 74 74 20 7a 5b 5d 5b 6c |array {\|tt z[][l|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.