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_POLARGRAPH"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>PolarGraph</b> EXTENDS <a href="Graph .html#_C_GRAPH " style="font-face:arial;font-weight:bold;">Graph </a></div>
9
<i>(Defined in: jpgraph_polar.php : 639)</i><table border=1><tr><td>&nbsp;<a href="PolarGraph.html" style="font-family:arial;font-weight:bold;color:darkblue;">PolarGraph</a>&nbsp;</td><td>&nbsp;<a href="Graph .html" style="font-family:arial;font-weight:bold;color:darkblue;">Graph </a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="PolarGraph.html#_POLARGRAPH_POLARGRAPH">PolarGraph()</a>&nbsp;<br>
10
&nbsp;<a href="PolarGraph.html#_POLARGRAPH_SET90ANDMARGIN">Set90AndMargin()</a>&nbsp;<br>
11
&nbsp;<a href="PolarGraph.html#_POLARGRAPH_SETDENSITY">SetDensity()</a>&nbsp;<br>
12
&nbsp;<a href="PolarGraph.html#_POLARGRAPH_SETPLOTSIZE">SetPlotSize()</a>&nbsp;<br>
13
&nbsp;<a href="PolarGraph.html#_POLARGRAPH_SETSCALE">SetScale()</a>&nbsp;<br>
14
&nbsp;<a href="PolarGraph.html#_POLARGRAPH_SETTYPE">SetType()</a>&nbsp;<br>
15
&nbsp;<a href="PolarGraph.html#_POLARGRAPH_STROKE">Stroke()</a>&nbsp;<br>
16
</td><td valign=top>&nbsp;</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Represent a polar graph. Accessible properties are
17
 
18
<ul>
19
<li> <b>axis</b>, An instance of PolarAxis() use to manipulate apperance of both radius and angle axis in the graph.
20
</ul> <p> &nbsp;
21
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="PolarAxis.html">PolarAxis</a> <p> &nbsp;<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
22
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARGRAPH_POLARGRAPH"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
23
function&nbsp;PolarGraph($aWidth,$aHeight,$aCachedName,$aTimeOut,$aInline)</font>
24
</b></div></a></span>
25
 
26
<span style='font-family:arial;font-size:90%;'><i>Construct a new graph</i></span><p>
27
 
28
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
29
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
30
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
31
$aWidth</font>
32
 
33
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
34
300</font>
35
</td><td>Width (in pixels)</td></tr>
36
 
37
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
38
$aHeight</font>
39
 
40
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
41
200</font>
42
</td><td>Height (in pixels)</td></tr>
43
 
44
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
45
$aCachedName</font>
46
 
47
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
48
""</font>
49
</td><td>Cache name</td></tr>
50
 
51
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
52
$aTimeOut</font>
53
 
54
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
55
0</font>
56
</td><td>Cache timeout</td></tr>
57
 
58
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
59
$aInline</font>
60
 
61
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
62
true</font>
63
</td><td>Inline flag (DEPRECATED)</td></tr>
64
</table>
65
 
66
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Construct a new Polar Graph. This is completely analog to the standard Graph() creation and follows the exactly same pattern. &nbsp;<br>
67
 
68
<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">
69
$polargraph&nbsp;=&nbsp;new&nbsp;PolarGraph(300,500);</font>
70
</span><br>
71
<p>
72
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARGRAPH_SET90ANDMARGIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
73
function&nbsp;Set90AndMargin($lm,$rm,$tm,$bm)</font>
74
</b></div></a></span>
75
 
76
<span style='font-family:arial;font-size:90%;'><i>Rotate the polar graph 90 degrees</i></span><p>
77
 
78
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
79
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
80
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
81
$lm</font>
82
 
83
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
84
0</font>
85
</td><td>Left margin</td></tr>
86
 
87
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
88
$rm</font>
89
 
90
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
91
0</font>
92
</td><td>Right Margin</td></tr>
93
 
94
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
95
$tm</font>
96
 
97
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
98
0</font>
99
</td><td>Top margin</td></tr>
100
 
101
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
102
$bm</font>
103
 
104
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
105
0</font>
106
</td><td>Bottom margin</td></tr>
107
</table>
108
 
109
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Rotate the polar graph 90 degrees&nbsp;<br>
110
 
111
<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">
112
$polargraph-&gt;Set90AndMargin(40,40,40,40);</font>
113
</span><br>
114
<p>
115
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARGRAPH_SETDENSITY"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
116
function&nbsp;SetDensity($aDense)</font>
117
</b></div></a></span>
118
 
119
<span style='font-family:arial;font-size:90%;'><i>Specify density for the radius axis</i></span><p>
120
 
121
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
122
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
123
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
124
$aDense</font>
125
 
126
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Density</td></tr>
127
</table>
128
 
129
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>This is analog to the density specification for the X, and Y-scale s for the standard X-Y-plots.
130
This specifies how close the autoscaling algorithm will place the tick marks to each other.
131
 
132
The tick density can be one of
133
 
134
<ul>
135
<li> TICKD_DENSE, Dense tick layout
136
<li> TICKD_NORMAL, Normal tick layout
137
<li> TICKD_SPARSE, Sparse tick layout (few tick marks)
138
<li> TICKD_VERYSPARSE, Very Sparse tick layout (very few tick marks)
139
</ul>
140
 
141
By default the radius density os set to TICKD_DENSE
142
&nbsp;<br>
143
 
144
<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">
145
//&nbsp;Slightly&nbsp;fewer&nbsp;ticks&nbsp;than&nbsp;default
<br />$polargraph-&gt;SetDensity(TICKD_NORMAL);</font>
146
</span><br>
147
<p>
148
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARGRAPH_SETPLOTSIZE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
149
function&nbsp;SetPlotSize($w,$h)</font>
150
</b></div></a></span>
151
152
 
153
154
 
155
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
156
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
157
$w</font>
158
159
 
160
161
 
162
$h</font>
163
164
 
165
</table>
166
167
 
168
169
 
170
171
 
172
$graphwidth-($w/2),$graphwidth-($w/2),
173
$graphheight-($h/2),$graphheight-($h/2));
174
&nbsp;<br>
175
176
 
177
$polargraph-&gt;SetPlotSize(200,250);</font>
178
</span><br>
179
<p>
180
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARGRAPH_SETSCALE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
181
function&nbsp;SetScale($aScale,$rmax)</font>
182
</b></div></a></span>
183
184
 
185
186
 
187
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
188
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
189
$aScale</font>
190
191
 
192
193
 
194
$rmax</font>
195
196
 
197
0</font>
198
</td><td>Manual maximum value</td></tr>
199
</table>
200
201
 
202
203
 
204
//&nbsp;Specify&nbsp;a&nbsp;logarithmic&nbsp;scale&nbsp;for&nbsp;the&nbsp;radius
<br />$polargraph-&gt;SetScale('log');</font>
205
</span><br>
206
<p>
207
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARGRAPH_SETTYPE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
208
function&nbsp;SetType($aType)</font>
209
</b></div></a></span>
210
211
<span style='font-family:arial;font-size:90%;'><i>Specify if the graphs should be 360 or 180</i></span><p>
212
 
213
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
214
 
215
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
216
$aType</font>
217
218
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Type</td></tr>
219
 
220
221
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify if the polargraph should be a full 360 degrees or just 180 degrees. The possible values for type are
222
 
223
<ul>
224
 
225
<li> POLAR_180, A half 180 polar plot
226
</ul>
227
228
By default the graph is a full 260 degrees.&nbsp;<br>
229
 
230
<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">
231
 
232
</span><br>
233
<p>
234
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARGRAPH_STROKE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
235
function&nbsp;Stroke($aStrokeFileName)</font>
236
</b></div></a></span>
237
238
<span style='font-family:arial;font-size:90%;'><i>Send graph back to browser or file</i></span><p>
239
240
 
241
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
242
 
243
$aStrokeFileName</font>
244
245
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
246
""</font>
247
 
248
</table>
249
250
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Send a graph back to browser or to a file. This must be the last call in your script.
251
252
 
253
254
 
255
$polargraph-&gt;Stroke();</font>
256
 
257
<p> <hr> <p>