Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<style type="text/css">
2
		<!--
3
		A:link        {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
4
		A:visited     {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
5
		A:hover       {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: underline; color: #FF0000}
6
		th            {font-family: helvetica, arial; color : blue; font-size:85%; background : lightgrey; border-right:black solid 1pt; border-bottom:black solid 1pt;}
7
		//-->
8
		</style><hr><a name="_C_LEGEND"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>Legend</b></div>
9
<i>(Defined in: jpgraph.php : 5147)</i><table border=1><tr><td>&nbsp;<a href="Legend.html" style="font-family:arial;font-weight:bold;color:darkblue;">Legend</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="Legend.html#_LEGEND_HIDE">Hide()</a>&nbsp;<br>
10
&nbsp;<a href="Legend.html#_LEGEND_POS">Pos()</a>&nbsp;<br>
11
&nbsp;<a href="Legend.html#_LEGEND_SETABSPOS">SetAbsPos()</a>&nbsp;<br>
12
&nbsp;<a href="Legend.html#_LEGEND_SETCOLOR">SetColor()</a>&nbsp;<br>
13
&nbsp;<a href="Legend.html#_LEGEND_SETCOLUMNS">SetColumns()</a>&nbsp;<br>
14
&nbsp;<a href="Legend.html#_LEGEND_SETFILLCOLOR">SetFillColor()</a>&nbsp;<br>
15
&nbsp;<a href="Legend.html#_LEGEND_SETFONT">SetFont()</a>&nbsp;<br>
16
&nbsp;<a href="Legend.html#_LEGEND_SETFRAMEWEIGHT">SetFrameWeight()</a>&nbsp;<br>
17
&nbsp;<a href="Legend.html#_LEGEND_SETHCOLMARGIN">SetHColMargin()</a>&nbsp;<br>
18
&nbsp;<a href="Legend.html#_LEGEND_SETLAYOUT">SetLayout()</a>&nbsp;<br>
19
&nbsp;<a href="Legend.html#_LEGEND_SETLEFTMARGIN">SetLeftMargin()</a>&nbsp;<br>
20
&nbsp;<a href="Legend.html#_LEGEND_SETLINESPACING">SetLineSpacing()</a>&nbsp;<br>
21
&nbsp;<a href="Legend.html#_LEGEND_SETLINEWEIGHT">SetLineWeight()</a>&nbsp;<br>
22
&nbsp;<a href="Legend.html#_LEGEND_SETMARKABSHSIZE">SetMarkAbsHSize()</a>&nbsp;<br>
23
&nbsp;<a href="Legend.html#_LEGEND_SETMARKABSSIZE">SetMarkAbsSize()</a>&nbsp;<br>
24
&nbsp;<a href="Legend.html#_LEGEND_SETMARKABSVSIZE">SetMarkAbsVSize()</a>&nbsp;<br>
25
&nbsp;<a href="Legend.html#_LEGEND_SETPOS">SetPos()</a>&nbsp;<br>
26
&nbsp;<a href="Legend.html#_LEGEND_SETREVERSE">SetReverse()</a>&nbsp;<br>
27
&nbsp;<a href="Legend.html#_LEGEND_SETSHADOW">SetShadow()</a>&nbsp;<br>
28
&nbsp;<a href="Legend.html#_LEGEND_SETVCOLMARGIN">SetVColMargin()</a>&nbsp;<br>
29
</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>This class is responsible for drawing a legend at the specified position in the graph. Individual data series are added by calling it's Add() method.
30
<p>
31
This is all handled by the framework. Legend is instantiated in the graph as instance variable legend. When stroking individual plots this instance variable is used by the individual Legend() methods in the plot classes to add whatever the individual plots need to add.
32
 <p> &nbsp;
33
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
34
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_HIDE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
35
function&nbsp;Hide($aHide)</font>
36
</b></div></a></span>
37
 
38
<span style='font-family:arial;font-size:90%;'><i>Hide legend box</i></span><p>
39
 
40
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
41
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
42
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
43
$aHide</font>
44
 
45
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
46
true</font>
47
</td><td>True = hide</td></tr>
48
</table>
49
 
50
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Hides the legend.&nbsp;<br>
51
 
52
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
53
$graph-&gt;legend-&gt;Hide();</font>
54
</span><br>
55
<p>
56
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_POS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
57
function&nbsp;Pos($aX,$aY,$aHAlign,$aVAlign)</font>
58
</b></div></a></span>
59
 
60
<span style='font-family:arial;font-size:90%;'><i>Specify the position for the legend box</i></span><p>
61
 
62
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
63
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
64
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
65
$aX</font>
66
 
67
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>X coordinate</td></tr>
68
 
69
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
70
$aY</font>
71
 
72
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Y coordinate</td></tr>
73
 
74
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
75
$aHAlign</font>
76
 
77
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
78
"right"</font>
79
</td><td>Horizontal alignment</td></tr>
80
 
81
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
82
$aVAlign</font>
83
 
84
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
85
"top"</font>
86
</td><td>Vertical alignment</td></tr>
87
</table>
88
 
89
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set the position of the legend box on the Graph. The alignment arguments determine how the position of the legend box should be interpretated, i.e from what position on the Graph should the fraction be counted. ('right' uses the right side and positoins the legend with its left side according to the specified fraction and so on). Possible alignemts are:
90
<p>
91
Horizontal: 'left','right','center'<br>
92
Vertical: 'bottom','top','center'
93
<p>
94
Please note that the X and Y positions should be give as fractions , i.e Pos(0.1,0.1)
95
<p>
96
If the alignment is not given the the default is 'right','top'&nbsp;<br>
97
 
98
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
99
$graph-&gt;legend-&gt;Pos(0.05,0.1);</font>
100
</span><br>
101
<p>
102
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETABSPOS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
103
function&nbsp;SetAbsPos($aX,$aY,$aHAlign,$aVAlign)</font>
104
</b></div></a></span>
105
 
106
<span style='font-family:arial;font-size:90%;'><i>Specify X and Y coordinate for the legend box</i></span><p>
107
 
108
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
109
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
110
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
111
$aX</font>
112
 
113
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>x Coordinate</td></tr>
114
 
115
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
116
$aY</font>
117
 
118
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>y Coordinate</td></tr>
119
 
120
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
121
$aHAlign</font>
122
 
123
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
124
"right"</font>
125
</td><td>Horizontal anchor point</td></tr>
126
 
127
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
128
$aVAlign</font>
129
 
130
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
131
"top"</font>
132
</td><td>Vertical Anchor point</td></tr>
133
</table>
134
 
135
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify X and Y coordinate for the legend box&nbsp;<br>
136
 
137
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
138
//&nbsp;10x10&nbsp;pixels&nbsp;from&nbsp;the&nbsp;upper&nbsp;right&nbsp;corner
<br />$graph-&gt;legend-&gt;SetAbsPos(10,10,'right','top')</font>
139
</span><br>
140
<p>
141
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
142
function&nbsp;SetColor($aFontColor,$aColor)</font>
143
</b></div></a></span>
144
145
 
146
147
 
148
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
149
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
150
$aFontColor</font>
151
152
 
153
154
 
155
$aColor</font>
156
157
 
158
'black'</font>
159
</td><td>Frame color</td></tr>
160
</table>
161
162
 
163
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Legend.html#_LEGEND_SETFILLCOLOR">Legend::SetFillColor</a>
164
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
165
$graph-&gt;legend-&gt;SetColor('blue');</font>
166
</span><br>
167
<p>
168
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETCOLUMNS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
169
function&nbsp;SetColumns($aCols)</font>
170
</b></div></a></span>
171
172
 
173
174
 
175
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
176
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
177
$aCols</font>
178
179
 
180
</table>
181
182
 
183
<p>
184
By default i column us used.&nbsp;<br>
185
186
 
187
$graph-&gt;legend-&gt;SetColumns(2);</font>
188
</span><br>
189
<p>
190
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETFILLCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
191
function&nbsp;SetFillColor($aColor)</font>
192
</b></div></a></span>
193
194
 
195
196
 
197
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
198
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
199
$aColor</font>
200
201
 
202
</table>
203
204
 
205
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Legend.html#_LEGEND_SETCOLOR">Legend::SetColor</a>
206
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
207
$graph-&gt;legend-&gt;SetFillColor('lightblue');</font>
208
</span><br>
209
<p>
210
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETFONT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
211
function&nbsp;SetFont($aFamily,$aStyle,$aSize)</font>
212
</b></div></a></span>
213
214
 
215
216
 
217
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
218
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
219
$aFamily</font>
220
221
 
222
223
 
224
$aStyle</font>
225
226
 
227
FS_NORMAL</font>
228
</td><td>Font style</td></tr>
229
230
 
231
$aSize</font>
232
233
 
234
10</font>
235
</td><td>Font size</td></tr>
236
</table>
237
238
 
239
240
 
241
$graph-&gt;legend-&gt;SetFont(FF_FONT2,FS_NORMAL);</font>
242
</span><br>
243
<p>
244
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETFRAMEWEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
245
function&nbsp;SetFrameWeight($aWeight)</font>
246
</b></div></a></span>
247
248
 
249
250
 
251
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
252
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
253
$aWeight</font>
254
255
 
256
</table>
257
258
 
259
260
 
261
$graph-&gt;legend-&gt;SetFrameWeight(2);</font>
262
</span><br>
263
<p>
264
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETHCOLMARGIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
265
function&nbsp;SetHColMargin($aXMarg)</font>
266
</b></div></a></span>
267
268
 
269
270
 
271
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
272
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
273
$aXMarg</font>
274
275
 
276
</table>
277
278
 
279
<p>
280
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETLAYOUT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
281
function&nbsp;SetLayout($aDirection)</font>
282
</b></div></a></span>
283
284
 
285
286
 
287
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
288
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
289
$aDirection</font>
290
291
 
292
LEGEND_VERT</font>
293
</td><td>Layout for legend box</td></tr>
294
</table>
295
296
 
297
<p>
298
Allowed arguments: LEGEND_VERT,LEGEND_HOR
299
<p>
300
Please note that horizontal layout is only suitable for a few legends since it makes use of quite a lot of horizontal space.&nbsp;<br>
301
302
 
303
//&nbsp;Put&nbsp;a&nbsp;horizontal&nbsp;legend&nbsp;box&nbsp;at&nbsp;the&nbsp;bottom&nbsp;of&nbsp;the&nbsp;graph
<br />$graph-&gt;legend-&gt;Pos(0.5,0.0.5,'left','bottom');
<br />$graph-&gt;legend-&gt;SetLayout(LEGEND_HOR);</font>
304
</span><br>
305
<p>
306
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETLEFTMARGIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
307
function&nbsp;SetLeftMargin($aXMarg)</font>
308
</b></div></a></span>
309
310
<span style='font-family:arial;font-size:90%;'><i>Specify marging between the left edge and the first column</i></span><p>
311
312
 
313
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
314
 
315
$aXMarg</font>
316
317
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
318
</table>
319
 
320
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify marging between the left edge and the first column&nbsp;<br>
321
<p>
322
 
323
function&nbsp;SetLineSpacing($aSpacing)</font>
324
</b></div></a></span>
325
326
<span style='font-family:arial;font-size:90%;'><i>Extra vertical spacing (in pixels) between rows</i></span><p>
327
328
 
329
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
330
 
331
$aSpacing</font>
332
333
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Extra margin (in pixels)</td></tr>
334
</table>
335
 
336
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Extra vertical spacing (in pixels) between rows&nbsp;<br>
337
338
 
339
//&nbsp;Add&nbsp;5&nbsp;pixels&nbsp;extra&nbsp;margin&nbsp;between&nbsp;each&nbsp;legend&nbsp;row
<br />$graph-&gt;legend-&gt;SetLineSpacing(5);</font>
340
 
341
<p>
342
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETLINEWEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
343
function&nbsp;SetLineWeight($aWeight)</font>
344
</b></div></a></span>
345
346
<span style='font-family:arial;font-size:90%;'><i>Set the line width for the indicators.</i></span><p>
347
348
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
349
 
350
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
351
 
352
353
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Line weight in pixels</td></tr>
354
</table>
355
356
 
357
358
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
359
 
360
</span><br>
361
 
362
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETMARKABSHSIZE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
363
function&nbsp;SetMarkAbsHSize($aSize)</font>
364
</b></div></a></span>
365
366
<span style='font-family:arial;font-size:90%;'><i></i></span><p>
367
368
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
369
 
370
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
371
 
372
373
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
374
</table>
375
376
 
377
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETMARKABSSIZE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
378
function&nbsp;SetMarkAbsSize($aSize)</font>
379
 
380
381
<span style='font-family:arial;font-size:90%;'><i>Specify the size of the marker in pixels</i></span><p>
382
383
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
384
 
385
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
386
 
387
388
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Size in pixels</td></tr>
389
</table>
390
391
 
392
<p>
393
It is often desirable to use a smaller size for the marks in the legend than in the graph itself.&nbsp;<br>
394
 
395
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
396
$graph-&gt;legend-&gt;SetMarkAbsSize(6);</font>
397
</span><br>
398
 
399
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETMARKABSVSIZE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
400
function&nbsp;SetMarkAbsVSize($aSize)</font>
401
</b></div></a></span>
402
403
<span style='font-family:arial;font-size:90%;'><i></i></span><p>
404
405
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
406
 
407
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
408
 
409
410
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
411
</table>
412
413
 
414
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETPOS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
415
function&nbsp;SetPos($aX,$aY,$aHAlign,$aVAlign)</font>
416
 
417
418
<span style='font-family:arial;font-size:90%;'><i>Alias for Pos. Specify Position for Legend</i></span><p>
419
420
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
421
 
422
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
423
 
424
425
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>X position</td></tr>
426
427
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
428
 
429
430
 
431
432
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
433
 
434
435
 
436
"right"</font>
437
</td><td>Horizontal anchor point</td></tr>
438
 
439
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
440
$aVAlign</font>
441
442
 
443
"top"</font>
444
</td><td>Vertical anchor point</td></tr>
445
 
446
447
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>See Legend::Pos()&nbsp;<br>
448
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Legend.html#_LEGEND_POS">Legend::Pos</a>
449
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
450
 
451
</span><br>
452
<p>
453
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETREVERSE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
454
function&nbsp;SetReverse($f)</font>
455
</b></div></a></span>
456
457
<span style='font-family:arial;font-size:90%;'><i>Print the legend in reverse order</i></span><p>
458
459
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
460
 
461
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
462
 
463
464
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
465
true</font>
466
</td><td>TRUE=In reverse order</td></tr>
467
 
468
469
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Print the legend in reverse order&nbsp;<br>
470
471
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
472
 
473
</span><br>
474
 
475
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETSHADOW"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
476
function&nbsp;SetShadow($aShow,$aWidth)</font>
477
</b></div></a></span>
478
479
<span style='font-family:arial;font-size:90%;'><i>Add a drop shadow to the legend box</i></span><p>
480
481
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
482
 
483
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
484
 
485
486
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
487
'gray'</font>
488
</td><td>True = show drop shadow</td></tr>
489
 
490
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
491
$aWidth</font>
492
493
 
494
2</font>
495
</td><td>Width of drop shadow in pixels</td></tr>
496
 
497
498
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Add a drop down shadow for the legend box.&nbsp;<br>
499
500
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
501
 
502
</span><br>
503
 
504
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_LEGEND_SETVCOLMARGIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
505
function&nbsp;SetVColMargin($aSpacing)</font>
506
</b></div></a></span>
507
508
<span style='font-family:arial;font-size:90%;'><i>Specify the margin between rows in the legend</i></span><p>
509
510
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
511
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
512
 
513
$aSpacing</font>
514
 
515
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
516
</table>
517
518
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify the margin between rows in the legend&nbsp;<br>
519