| 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_POLARAXIS"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>PolarAxis</b> EXTENDS <a href="Axis .html#_C_AXIS " style="font-face:arial;font-weight:bold;">Axis </a></div>
|
|
|
9 |
<i>(Defined in: jpgraph_polar.php : 151)</i><table border=1><tr><td> <a href="PolarAxis.html" style="font-family:arial;font-weight:bold;color:darkblue;">PolarAxis</a> </td><td> <a href="Axis .html" style="font-family:arial;font-weight:bold;color:darkblue;">Axis </a> </td></tr><tr><td valign=top> <a href="PolarAxis.html#_POLARAXIS_HIDETICKS">HideTicks()</a> <br>
|
|
|
10 |
<a href="PolarAxis.html#_POLARAXIS_SETANGLEFONT">SetAngleFont()</a> <br>
|
|
|
11 |
<a href="PolarAxis.html#_POLARAXIS_SETANGLESTEP">SetAngleStep()</a> <br>
|
|
|
12 |
<a href="PolarAxis.html#_POLARAXIS_SETCOLOR">SetColor()</a> <br>
|
|
|
13 |
<a href="PolarAxis.html#_POLARAXIS_SETGRIDCOLOR">SetGridColor()</a> <br>
|
|
|
14 |
<a href="PolarAxis.html#_POLARAXIS_SETTICKCOLORS">SetTickColors()</a> <br>
|
|
|
15 |
<a href="PolarAxis.html#_POLARAXIS_SHOWANGLEDEGREEMARK">ShowAngleDegreeMark()</a> <br>
|
|
|
16 |
<a href="PolarAxis.html#_POLARAXIS_SHOWANGLELABEL">ShowAngleLabel()</a> <br>
|
|
|
17 |
<a href="PolarAxis.html#_POLARAXIS_SHOWGRID">ShowGrid()</a> <br>
|
|
|
18 |
</td><td valign=top> </td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Represents the different axis for a polar plot. This class holds the property both for the radius and the angle axis classes. It is accessed throught the 'axis' property in the PolarGraph class. <p>
|
|
|
19 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="PolarGraph.html">PolarGraph</a> <p> <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
20 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_HIDETICKS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
21 |
function HideTicks($aFlg,$aAngleFlg)</font>
|
|
|
22 |
</b></div></a></span>
|
|
|
23 |
|
|
|
24 |
<span style='font-family:arial;font-size:90%;'><i>HIde ticks marks</i></span><p>
|
|
|
25 |
|
|
|
26 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
27 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
28 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
29 |
$aFlg</font>
|
|
|
30 |
|
|
|
31 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
32 |
true</font>
|
|
|
33 |
</td><td>Hide radius tick marks</td></tr>
|
|
|
34 |
|
|
|
35 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
36 |
$aAngleFlg</font>
|
|
|
37 |
|
|
|
38 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
39 |
true</font>
|
|
|
40 |
</td><td>Hide angle tick marks</td></tr>
|
|
|
41 |
</table>
|
|
|
42 |
|
|
|
43 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>HIde ticks marks <br>
|
|
|
44 |
|
|
|
45 |
<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">
|
|
|
46 |
// Hide just the angle tick marks
<br />$polargraph->axis->HideTicks(false,true);</font>
|
|
|
47 |
</span><br>
|
|
|
48 |
<p>
|
|
|
49 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_SETANGLEFONT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
50 |
function SetAngleFont($aFontFam,$aFontStyle,$aFontSize)</font>
|
|
|
51 |
</b></div></a></span>
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
57 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
58 |
$aFontFam</font>
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
$aFontStyle</font>
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
FS_NORMAL</font>
|
|
|
67 |
</td><td>Font style</td></tr>
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
$aFontSize</font>
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
10</font>
|
|
|
74 |
</td><td>Font size</td></tr>
|
|
|
75 |
</table>
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
$polargraph->axis->SetAngleFont(FF_ARIAL,FS_NORMAL,8);</font>
|
|
|
81 |
</span><br>
|
|
|
82 |
<p>
|
|
|
83 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_SETANGLESTEP"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
84 |
function SetAngleStep($aStep)</font>
|
|
|
85 |
</b></div></a></span>
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
91 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
92 |
$aStep</font>
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
</table>
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
// Set 20 degrees between each marker
<br />$polargraph->axis->SetAngleStep(20);</font>
|
|
|
101 |
</span><br>
|
|
|
102 |
<p>
|
|
|
103 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_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">
|
|
|
104 |
function SetColor($aColor,$aRadColor,$aAngleColor)</font>
|
|
|
105 |
</b></div></a></span>
|
|
|
106 |
|
|
|
107 |
<span style='font-family:arial;font-size:90%;'><i>Specify axis and label colors</i></span><p>
|
|
|
108 |
|
|
|
109 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
110 |
|
|
|
111 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
112 |
$aColor</font>
|
|
|
113 |
|
|
|
114 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Color for radius axis</td></tr>
|
|
|
115 |
|
|
|
116 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
120 |
|
|
|
121 |
</td><td>Color for radius labels</td></tr>
|
|
|
122 |
|
|
|
123 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
127 |
|
|
|
128 |
</td><td>Color for angle labels</td></tr>
|
|
|
129 |
</table>
|
|
|
130 |
|
|
|
131 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify axis and label colors. <br>
|
|
|
132 |
|
|
|
133 |
<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">
|
|
|
134 |
$polargraph->axis->SetColor('black','navy','darkred');</font>
|
|
|
135 |
</span><br>
|
|
|
136 |
<p>
|
|
|
137 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_SETGRIDCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
138 |
function SetGridColor($aMajorColor,$aMinorColor,$aAngleColor)</font>
|
|
|
139 |
</b></div></a></span>
|
|
|
140 |
|
|
|
141 |
<span style='font-family:arial;font-size:90%;'><i>Set colors for the various grids</i></span><p>
|
|
|
142 |
|
|
|
143 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
144 |
|
|
|
145 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
146 |
$aMajorColor</font>
|
|
|
147 |
|
|
|
148 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Major radius grid color</td></tr>
|
|
|
149 |
|
|
|
150 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
154 |
|
|
|
155 |
</td><td>Minor radius grid color</td></tr>
|
|
|
156 |
|
|
|
157 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
161 |
|
|
|
162 |
</td><td>Angle grid color</td></tr>
|
|
|
163 |
</table>
|
|
|
164 |
|
|
|
165 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set colors for the various grids <br>
|
|
|
166 |
|
|
|
167 |
<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">
|
|
|
168 |
|
|
|
169 |
</span><br>
|
|
|
170 |
<p>
|
|
|
171 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_SETTICKCOLORS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
172 |
function SetTickColors($aRadColor,$aAngleColor)</font>
|
|
|
173 |
</b></div></a></span>
|
|
|
174 |
|
|
|
175 |
<span style='font-family:arial;font-size:90%;'><i>Specify color for axis tick marks</i></span><p>
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
179 |
|
|
|
180 |
$aRadColor</font>
|
|
|
181 |
|
|
|
182 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Radius axis colors</td></tr>
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
$aAngleColor</font>
|
|
|
186 |
|
|
|
187 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
188 |
''</font>
|
|
|
189 |
|
|
|
190 |
</table>
|
|
|
191 |
|
|
|
192 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify color for axis tick marks <br>
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
$polargraph->axis->SetTickColor('red');</font>
|
|
|
196 |
|
|
|
197 |
<p>
|
|
|
198 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_SHOWANGLEDEGREEMARK"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
199 |
function ShowAngleDegreeMark($aFlg)</font>
|
|
|
200 |
</b></div></a></span>
|
|
|
201 |
|
|
|
202 |
<span style='font-family:arial;font-size:90%;'><i>Add a degree mark after each angel label</i></span><p>
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
206 |
|
|
|
207 |
$aFlg</font>
|
|
|
208 |
|
|
|
209 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
210 |
true</font>
|
|
|
211 |
|
|
|
212 |
</table>
|
|
|
213 |
|
|
|
214 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Add a degree mark after each angel label ( a small sperscripted 'o' ). This is enabled by default. <br>
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
$polargraph->axis->ShowAngleDegreeMark(true);</font>
|
|
|
218 |
|
|
|
219 |
<p>
|
|
|
220 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_SHOWANGLELABEL"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
221 |
function ShowAngleLabel($aFlg)</font>
|
|
|
222 |
</b></div></a></span>
|
|
|
223 |
|
|
|
224 |
<span style='font-family:arial;font-size:90%;'><i>Show angle labels</i></span><p>
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
228 |
|
|
|
229 |
$aFlg</font>
|
|
|
230 |
|
|
|
231 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
232 |
true</font>
|
|
|
233 |
|
|
|
234 |
</table>
|
|
|
235 |
|
|
|
236 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Show angle labels. This is on by default. <br>
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
// Enable angle labels
<br />$polargraph->axis->ShowAngleLabel();</font>
|
|
|
240 |
|
|
|
241 |
<p>
|
|
|
242 |
<p> <p> <span style='font-size:110%;'><a name="_POLARAXIS_SHOWGRID"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
243 |
function ShowGrid($aMajor,$aMinor,$aAngle)</font>
|
|
|
244 |
</b></div></a></span>
|
|
|
245 |
|
|
|
246 |
<span style='font-family:arial;font-size:90%;'><i>Determine what grid lines should be visible</i></span><p>
|
|
|
247 |
|
|
|
248 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
249 |
|
|
|
250 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
254 |
true</font>
|
|
|
255 |
</td><td>Show major radius grid lines</td></tr>
|
|
|
256 |
|
|
|
257 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
258 |
$aMinor</font>
|
|
|
259 |
|
|
|
260 |
|
|
|
261 |
false</font>
|
|
|
262 |
</td><td>Show minor radius grid lines</td></tr>
|
|
|
263 |
|
|
|
264 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
265 |
$aAngle</font>
|
|
|
266 |
|
|
|
267 |
|
|
|
268 |
true</font>
|
|
|
269 |
</td><td>Show angle grid lines</td></tr>
|
|
|
270 |
|
|
|
271 |
|
|
|
272 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Determine what grid lines should be visible. <br>
|
|
|
273 |
|
|
|
274 |
<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">
|
|
|
275 |
|
|
|
276 |
</span><br>
|
|
|
277 |
|