/usr/share/doc/pyxplot/html/ex-australia.html is in pyxplot-doc 0.8.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: Text Labels</title>
<link href="sec-colourmaps.html" title="Colour Maps" rel="next" />
<link href="sec-set_arrow.html" title="Arrows" rel="prev" />
<link href="sect0059.html" title="Labelling Graphs" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sec-set_arrow.html" title="Arrows"><img alt="Previous: Arrows" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0059.html" title="Labelling Graphs"><img alt="Up: Labelling Graphs" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sec-colourmaps.html" title="Colour Maps"><img alt="Next: Colour Maps" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0043.html">Plotting and Vector Graphics</a> <b>:</b>
</span>
</span><span>
<span>
<a href="ch-plotting.html">Plotting: A Detailed Survey</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0059.html">Labelling Graphs</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">Text Labels</b>
</span>
</span>
<hr />
</div>
<div><h2 id="ex:australia">1.11.2 Text Labels</h2>
<p>Text labels may be placed on plots using the <tt class="tt">set label</tt> command<a name="a0000000820" id="a0000000820"></a>. As with all textual labels in PyXPlot, these are rendered in L<sup style="font-variant:small-caps; margin-left:-0.3em">a</sup>T<sub style="text-transform:uppercase; margin-left:-0.2em">e</sub>X: </p><pre>
set label 1 'Hello World' at 0,0
</pre><p>As in the previous section, the number <tt class="tt">1</tt> is a reference number, which allows the label to be removed by either of the following two commands: </p><pre>
set nolabel 1
unset label 1
</pre><p>The positional coordinates for the text label, placed after the <tt class="tt">at</tt> keyword, can be specified in any of the coordinate systems described for arrows above. As above, either two or three coordinates may be supplied. A rotation angle may optionally be specified after the keyword <tt class="tt">rotate</tt><a name="a0000000821" id="a0000000821"></a>, to rotate text counter-clockwise by a given angle, measured in degrees. For example, the following would produce upward-running text: </p><pre>
set label 1 'Hello World' at axis3 3.0, axis4 2.7 rotate 90
</pre><p>A colour can also be specified, if desired, using the <tt class="tt">with colour</tt> modifier. For example, the following would produce a green label at the origin: </p><pre>
set label 2 'This label is green' at 0, 0 with colour green
</pre><p><a name="a0000000822" id="a0000000822"></a><a name="a0000000823" id="a0000000823"></a> The size of the text in such labels can be set globally using the <tt class="tt">set fontsize</tt> command<a name="a0000000824" id="a0000000824"></a>. This applies not only to the <tt class="tt">set label</tt> command, but also to plot titles, axis labels, keys, etc. The value supplied should be a multiplicative factor greater than zero; a value of <tt class="tt">2</tt> would cause text to be rendered at twice its normal size, and a value of <tt class="tt">0.5</tt> would cause text to be rendered at half its normal size. </p><p><a name="a0000000825" id="a0000000825"></a><a name="a0000000826" id="a0000000826"></a> The <tt class="tt">set textcolour</tt> command<a name="a0000000827" id="a0000000827"></a> can be used to globally set the colour of all text output, and applies to all of the text that the <tt class="tt">set fontsize</tt> command does. It is especially useful when producing plots to be embedded in presentation slideshows, where bright text on a dark background may be desired. It should be followed either by an integer, to set a colour from the present palette, or by a colour name. A list of the recognised colour names can be found in Section <a href="sec-colour_names.html">8.4</a>. For example: </p><pre>
set textcolour 2
set textcolour blue
</pre><p><a name="a0000000828" id="a0000000828"></a><a name="a0000000829" id="a0000000829"></a>By default, each label’s specified position corresponds to its bottom left corner. This alignment may be changed with the <tt class="tt">set texthalign</tt><a name="a0000000830" id="a0000000830"></a> and <tt class="tt">set textvalign</tt><a name="a0000000831" id="a0000000831"></a> commands. The former takes the options <tt class="tt">left</tt><a name="a0000000832" id="a0000000832"></a>, <tt class="tt">centre</tt><a name="a0000000833" id="a0000000833"></a> or <tt class="tt">right</tt><a name="a0000000834" id="a0000000834"></a>, and the latter takes the options <tt class="tt">bottom</tt><a name="a0000000835" id="a0000000835"></a>, <tt class="tt">centre</tt><a name="a0000000836" id="a0000000836"></a> or <tt class="tt">top</tt><a name="a0000000837" id="a0000000837"></a>, for example: </p><pre>
set texthalign right
set textvalign top
</pre><p> <span class="upshape"><span class="mdseries"><span class="rm">A diagram of the atomic lines of hydrogen.</span></span></span></p><div>
<table cellspacing="0" class="tabular">
<tr>
<td style="border-top-style:solid; border-left:1px solid black; border-right:1px solid black; border-top-color:black; border-top-width:1px; text-align:left"><p> The wavelengths of the spectral lines of atomic hydrogen are given by the Rydberg formula, </p><table id="a0000000838" class="equation" width="100%" cellspacing="0" cellpadding="7">
<tr>
<td style="width:40%"> </td>
<td><img src="images/img-0492.png" alt="\[ \frac{1}{\lambda } = R_\mathrm {H}\left(\frac{1}{n^2}-\frac{1}{m^2}\right), \]" style="width:172px;
height:44px" class="math gen" /></td>
<td style="width:40%"> </td>
<td class="eqnnum" style="width:20%"> </td>
</tr>
</table><p> where <img src="images/img-0478.png" alt="$\lambda $" style="vertical-align:0px;
width:9px;
height:13px" class="math gen" /> is wavelength, <img src="images/img-0493.png" alt="$R_\mathrm {H}$" style="vertical-align:-3px;
width:24px;
height:15px" class="math gen" /> is the Rydberg constant, predefined in PyXPlot as the variable <tt class="tt">phy_Ry</tt>, and <tt class="tt">n</tt> and <tt class="tt">m</tt> are positive non-zero integers such that <tt class="tt">m>n</tt>. The first few series are called the Lyman series (<tt class="tt">n</tt><img src="images/img-0494.png" alt="$=1$" style="vertical-align:0px;
width:26px;
height:12px" class="math gen" />), the Balmer series (<tt class="tt">n</tt><img src="images/img-0495.png" alt="$=2$" style="vertical-align:0px;
width:27px;
height:12px" class="math gen" />), the Paschen series (<tt class="tt">n</tt><img src="images/img-0496.png" alt="$=3$" style="vertical-align:0px;
width:27px;
height:12px" class="math gen" />) and the Brackett series (<tt class="tt">n</tt><img src="images/img-0497.png" alt="$=4$" style="vertical-align:0px;
width:27px;
height:12px" class="math gen" />). Within each series, the lines are given Greek letter designations – <img src="images/img-0498.png" alt="$\alpha $" style="vertical-align:0px;
width:11px;
height:8px" class="math gen" /> for <tt class="tt">m</tt><img src="images/img-0499.png" alt="$=$" style="vertical-align:2px;
width:12px;
height:4px" class="math gen" /><tt class="tt">n</tt><img src="images/img-0500.png" alt="$+1$" style="vertical-align:-1px;
width:21px;
height:13px" class="math gen" />, <img src="images/img-0501.png" alt="$\beta $" style="vertical-align:-4px;
width:11px;
height:16px" class="math gen" /> for <tt class="tt">m</tt><img src="images/img-0499.png" alt="$=$" style="vertical-align:2px;
width:12px;
height:4px" class="math gen" /><tt class="tt">n</tt><img src="images/img-0502.png" alt="$+2$" style="vertical-align:-1px;
width:22px;
height:13px" class="math gen" />, and so forth. </p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p>In the following example, we produce a diagram of the lines in the first four series, drawing the first 20 lines within each. At the bottom of the diagram, we overlay indications of the wavelengths of ten colour filters commonly used by astronomers (data taken from Binney & Merrifield, <i class="it">Galactic Astronomy</i>, Princeton, 1998). </p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt">set numeric display latex</tt><br /><tt class="tt">set width 20</tt><br /><tt class="tt">set size ratio 0.4</tt><br /><tt class="tt">set numerics sf 4</tt><br /><tt class="tt">set log x</tt><br /><tt class="tt">set x1label "Wavelength"</tt><br /><tt class="tt">set x2label "Frequency" ; set unit of frequency Hz</tt><br /><tt class="tt">set x3label "Photon Energy" ; set unit of energy eV</tt><br /><tt class="tt">set axis x2 linked x1 using phy_c/x</tt><br /><tt class="tt">set axis x3 linked x2 using phy_h*x</tt><br /><tt class="tt">set noytics ; set nomytics</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># Draw lines of first four series of hydrogen lines</tt><br /><tt class="tt">an=2</tt><br /><tt class="tt">n=1</tt><br /><tt class="tt">foreach SeriesName in ("Ly","Ba","Pa","Br")</tt><br /><tt class="tt">{</tt><br /><tt class="tt">for m=n+1 to n+21</tt><br /><tt class="tt">{</tt><br /><tt class="tt">wl = 1/(phy_Ry*(1/n**2-1/m**2))</tt><br /><tt class="tt">set arrow an from wl,0.3 to wl,0.6 with nohead col n</tt><br /><tt class="tt">if (m-n==1) { ; GreekLetter = "<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /><img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />alpha" ; }</tt><br /><tt class="tt">if (m-n==2) { ; GreekLetter = "<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /><img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />beta" ; }</tt><br /><tt class="tt">if (m-n==3) { ; GreekLetter = "<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /><img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />gamma" ; }</tt><br /><tt class="tt">if (m-n<img src="images/img-0034.png" alt="$<$" style="vertical-align:0px;
width:12px;
height:11px" class="math gen" />4)</tt><br /><tt class="tt">{</tt><br /><tt class="tt">set label an "<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />parbox{5cm}{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />footnotesize<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />center{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="tt">%s-$%s$<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /><img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />newline $%d<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />to%d$<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /><img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />newline %s<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /><img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />newline}}" <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="tt">%(SeriesName,GreekLetter,n,m,wl) at wl,0.55+0.2*(m-n) <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="tt">hal centre val centre</tt><br /><tt class="tt">}</tt><br /><tt class="tt">an = an+1</tt><br /><tt class="tt">}</tt><br /><tt class="tt">n=n+1</tt><br /><tt class="tt">}</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># Label astronomical photometric colours</tt><br /><tt class="tt">foreach datum i,name,wl_c,wl_w in "–" using <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="tt">1:"%s"%($2):($3*unit(nm)):($4*unit(nm))</tt><br /><tt class="tt">{</tt><br /><tt class="tt">arry = 0.12+0.1*(i%2) # Vertical positions for arrows</tt><br /><tt class="tt">laby = 0.07+0.1*(i%2) # Vertical positions for labels</tt><br /><tt class="tt">x0 = (wl_c-wl_w/2) # Shortward end of passband</tt><br /><tt class="tt">x1 = wl_c # Centre of passband</tt><br /><tt class="tt">x2 = (wl_c+wl_w/2) # Longward end of passband</tt><br /><tt class="tt">set arrow an from x0,arry to x2,arry with nohead</tt><br /><tt class="tt">set label an name at x1,laby hal centre val centre</tt><br /><tt class="tt">an = an+1</tt><br /><tt class="tt">}</tt><br /><tt class="tt">1 U 365 66</tt><br /><tt class="tt">2 B 445 94</tt><br /><tt class="tt">3 V 551 88</tt><br /><tt class="tt">4 R 658 138</tt><br /><tt class="tt">5 I 806 149</tt><br /><tt class="tt">6 J 1220 213</tt><br /><tt class="tt">7 H 1630 307</tt><br /><tt class="tt">8 K 2190 390</tt><br /><tt class="tt">9 L 3450 472</tt><br /><tt class="tt">10 M 4750 460</tt><br /><tt class="tt">END</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># Draw a marker for the Lyman limit</tt><br /><tt class="tt">ll = 91.1267*unit(nm)</tt><br /><tt class="tt">set arrow 1 from ll,0.12 to ll,0.22</tt><br /><tt class="tt">set label 1 "Lyman Limit: %s"%(ll) at 95*unit(nm),0.17 <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="tt">hal left val centre</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># Finally produce plot</tt><br /><tt class="tt">plot [80*unit(nm):5500*unit(nm)][0:1.25]</tt><br /></small> </p></td>
</tr><tr>
<td style="border-bottom-style:solid; border-bottom-width:1px; border-left:1px solid black; border-right:1px solid black; text-align:left; border-bottom-color:black"><center>
<img src="images/img-0504.png" alt="\includegraphics[width=11cm]{examples/eps/ex_hlines}" style="width:11cm" /> </center></td>
</tr>
</table>
</div><p><br /> <span class="upshape"><span class="mdseries"><span class="rm">A map of Australia.</span></span></span></p><div>
<table cellspacing="0" class="tabular">
<tr>
<td style="border-top-style:solid; border-left:1px solid black; border-right:1px solid black; border-top-color:black; border-top-width:1px; text-align:left"><p> In this example, we use PyXPlot to plot a map of Australia, using a coastal outline obtained from http://www.maproom.psu.edu/dcw/. We use the <tt class="tt">set label</tt> command to label the states and major cities. The files <tt class="tt">ex_map_1.dat.gz</tt> and <tt class="tt">ex_map_2.dat</tt> can be found in the PyXPlot installation tarball in the directory <tt class="tt">doc/examples/</tt>. </p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt">set width 20</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># We want a plot without axes or key</tt><br /><tt class="tt">set nokey</tt><br /><tt class="tt">set axis x invisible</tt><br /><tt class="tt">set axis y invisible</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># Labels for the states</tt><br /><tt class="tt">set label 1 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape Western Australia}’ 117, -28</tt><br /><tt class="tt">set label 2 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape South Australia}’ 130, -29.5</tt><br /><tt class="tt">set label 3 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape Northern Territory}’ 129.5, -20.5</tt><br /><tt class="tt">set label 4 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape Queensland}’ 141,-24</tt><br /><tt class="tt">set label 5 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape New South Wales}’ 142,-32.5</tt><br /><tt class="tt">set label 6 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape Victoria}’ 139,-41</tt><br /><tt class="tt">set arrow 6 from 141,-40 to 142, -37 with nohead</tt><br /><tt class="tt">set label 7 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape Tasmania}’ 149,-42</tt><br /><tt class="tt">set arrow 7 from 149, -41.5 to 146.5, -41.75 with nohead</tt><br /><tt class="tt">set label 8 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />large <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape Capital Territory}’ 151,-37</tt><br /><tt class="tt">set arrow 8 from 151, -36.25 to 149, -36 with nohead</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># Labels for the cities</tt><br /><tt class="tt">set label 10 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Perth}’ 116.5, -32.4</tt><br /><tt class="tt">set label 11 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Adelaide}’ 136, -38</tt><br /><tt class="tt">set arrow 11 from 137.5,-37.2 to 138.601, -34.929</tt><br /><tt class="tt">set label 12 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Darwin}’ 131, -13.5</tt><br /><tt class="tt">set label 13 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Brisbane}’ 149, -27.5</tt><br /><tt class="tt">set label 14 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Sydney}’ 151.5, -34.5</tt><br /><tt class="tt">set label 15 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Melbourne}’ 143, -37.3</tt><br /><tt class="tt">set label 16 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Hobart}’ 147.5, -44.25</tt><br /><tt class="tt">set label 17 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf Canberra}’ 145, -35.25</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># A big label saying "Australia"</tt><br /><tt class="tt">set label 20 ’{<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />Huge <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />sf <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />slshape Australia}’ 117,-42</tt><br /></small></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><small class="footnotesize"><tt class="tt"># Plot the coastline and cities</tt><br /><tt class="tt">plot [][-45:] ’ex_map_1.dat.gz’ every ::1 with lines, <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="tt">’ex_map_2.dat’ with points pointtype 10 pointsize 2</tt> </small> </p></td>
</tr><tr>
<td style="border-bottom-style:solid; border-bottom-width:1px; border-left:1px solid black; border-right:1px solid black; text-align:left; border-bottom-color:black"><center>
<img src="images/img-0507.png" alt="\includegraphics[width=\textwidth ]{examples/eps/ex_map}" style="width:" /> </center></td>
</tr>
</table>
</div></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sec-set_arrow.html" title="Arrows"><img alt="Previous: Arrows" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0059.html" title="Labelling Graphs"><img alt="Up: Labelling Graphs" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sec-colourmaps.html" title="Colour Maps"><img alt="Next: Colour Maps" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>
</body>
</html>
|