| 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_POLARPLOT"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>PolarPlot</b></div>
|
|
|
9 |
<i>(Defined in: jpgraph_polar.php : 36)</i><table border=1><tr><td> <a href="PolarPlot.html" style="font-family:arial;font-weight:bold;color:darkblue;">PolarPlot</a> </td></tr><tr><td valign=top> <a href="PolarPlot.html#_POLARPLOT_POLARPLOT">PolarPlot()</a> <br>
|
|
|
10 |
<a href="PolarPlot.html#_POLARPLOT_SETCOLOR">SetColor()</a> <br>
|
|
|
11 |
<a href="PolarPlot.html#_POLARPLOT_SETCSIMTARGETS">SetCSIMTargets()</a> <br>
|
|
|
12 |
<a href="PolarPlot.html#_POLARPLOT_SETFILLCOLOR">SetFillColor()</a> <br>
|
|
|
13 |
<a href="PolarPlot.html#_POLARPLOT_SETLEGEND">SetLegend()</a> <br>
|
|
|
14 |
<a href="PolarPlot.html#_POLARPLOT_SETWEIGHT">SetWeight()</a> <br>
|
|
|
15 |
</td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Represents a polar plot. A polar plot is a line plot that may have marks or be filled.
|
|
|
16 |
|
|
|
17 |
Public properties are
|
|
|
18 |
|
|
|
19 |
<ul>
|
|
|
20 |
<li> mark, Instance of class PlotMark. Make sit possible to add Plot marks in the plot.
|
|
|
21 |
</ul> <p>
|
|
|
22 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="PlotMark.html">PlotMark</a> <p> <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
23 |
<p> <p> <span style='font-size:110%;'><a name="_POLARPLOT_POLARPLOT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
24 |
function PolarPlot($aData)</font>
|
|
|
25 |
</b></div></a></span>
|
|
|
26 |
|
|
|
27 |
<span style='font-family:arial;font-size:90%;'><i>Constructor. Create a new Polar plot</i></span><p>
|
|
|
28 |
|
|
|
29 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
30 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
31 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
32 |
$aData</font>
|
|
|
33 |
|
|
|
34 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Data array</td></tr>
|
|
|
35 |
</table>
|
|
|
36 |
|
|
|
37 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>A polar plot is created form an array of (angle,radius) specification for each plot point.. <br>
|
|
|
38 |
|
|
|
39 |
<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">
|
|
|
40 |
$pdata = array(0,0,15,35,40,70,70,120);
<br />
<br />$polarplot = new PolarPlot($pdata);
<br />$polarplot->SetFillColor('lightblue@0.5');
<br />
<br />$polargraph->Add($polarplot);
<br />
<br />$polargraph->Stroke();
<br /></font>
|
|
|
41 |
</span><br>
|
|
|
42 |
<p>
|
|
|
43 |
<p> <p> <span style='font-size:110%;'><a name="_POLARPLOT_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">
|
|
|
44 |
function SetColor($aColor)</font>
|
|
|
45 |
</b></div></a></span>
|
|
|
46 |
|
|
|
47 |
<span style='font-family:arial;font-size:90%;'><i>Specify line color for polar plot</i></span><p>
|
|
|
48 |
|
|
|
49 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
50 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
51 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
52 |
$aColor</font>
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
</table>
|
|
|
56 |
|
|
|
57 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify line color for polar plot <br>
|
|
|
58 |
|
|
|
59 |
<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">
|
|
|
60 |
$polarplot->SetColor('navy');</font>
|
|
|
61 |
|
|
|
62 |
<p>
|
|
|
63 |
<p> <p> <span style='font-size:110%;'><a name="_POLARPLOT_SETCSIMTARGETS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
64 |
|
|
|
65 |
</b></div></a></span>
|
|
|
66 |
|
|
|
67 |
<span style='font-family:arial;font-size:90%;'><i>Specify URL targets for markers</i></span><p>
|
|
|
68 |
|
|
|
69 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
70 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
71 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
72 |
$aTargets</font>
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
$aAlts</font>
|
|
|
78 |
|
|
|
79 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
80 |
null</font>
|
|
|
81 |
|
|
|
82 |
</table>
|
|
|
83 |
|
|
|
84 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify URL targets for markers on the polar plot. If you have specified a mark the polar plot you can add URL targets for each mark with this method.
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Graph.html#_GRAPH_STROKECSIM">Graph::StrokeCSIM</a>
|
|
|
88 |
<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">
|
|
|
89 |
// Dummy targets
<br />$t = array('#1','#2','#3','#4','#5','#6');
<br />
<br />$polarplot->SetCSIMTargets($t);
<br />
<br /></font>
|
|
|
90 |
</span><br>
|
|
|
91 |
|
|
|
92 |
<p> <p> <span style='font-size:110%;'><a name="_POLARPLOT_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">
|
|
|
93 |
|
|
|
94 |
</b></div></a></span>
|
|
|
95 |
|
|
|
96 |
<span style='font-family:arial;font-size:90%;'><i>Specify fill color for plot</i></span><p>
|
|
|
97 |
|
|
|
98 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
99 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
100 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
101 |
$aColor</font>
|
|
|
102 |
|
|
|
103 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Fill color</td></tr>
|
|
|
104 |
</table>
|
|
|
105 |
|
|
|
106 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify fill color for plot. If the fill color is specified as '' then no fill will be used. <br>
|
|
|
107 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="PolarPlot.html#_POLARPLOT_SETCOLOR">PolarPlot::SetColor</a>
|
|
|
108 |
|
|
|
109 |
$polarplot->SetFillColor('orange');</font>
|
|
|
110 |
|
|
|
111 |
<p>
|
|
|
112 |
<p> <p> <span style='font-size:110%;'><a name="_POLARPLOT_SETLEGEND"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
113 |
function SetLegend($aLegend,$aCSIM,$aCSIMAlt)</font>
|
|
|
114 |
</b></div></a></span>
|
|
|
115 |
|
|
|
116 |
<span style='font-family:arial;font-size:90%;'><i>Specify legend text for the plot</i></span><p>
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
120 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
121 |
$aLegend</font>
|
|
|
122 |
|
|
|
123 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Legend text</td></tr>
|
|
|
124 |
|
|
|
125 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
126 |
$aCSIM</font>
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
""</font>
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
133 |
$aCSIMAlt</font>
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
""</font>
|
|
|
137 |
|
|
|
138 |
</table>
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
<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">
|
|
|
143 |
$polarplot->SetLegend('Year 2002');</font>
|
|
|
144 |
|
|
|
145 |
<p>
|
|
|
146 |
<p> <p> <span style='font-size:110%;'><a name="_POLARPLOT_SETWEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
147 |
|
|
|
148 |
</b></div></a></span>
|
|
|
149 |
|
|
|
150 |
<span style='font-family:arial;font-size:90%;'><i>Sepcify line weight (in pixels)</i></span><p>
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
154 |
|
|
|
155 |
$aWeight</font>
|
|
|
156 |
|
|
|
157 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Line weight</td></tr>
|
|
|
158 |
</table>
|
|
|
159 |
|
|
|
160 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Sepcify line weight for plot <br>
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
$polarplot->SetWeight(2);</font>
|
|
|
164 |
|
|
|
165 |
<p> <hr> <p>
|