@@ -6,11 +6,11 @@ |
||
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | $data = array(0,1,10,2,30,25,40,60, |
| 9 | - 50,110,60,160,70,210,75,230,80,260, |
|
| 10 | - 85,270,90,280, |
|
| 11 | - 95,270,100,260,105,230, |
|
| 12 | - 110,210,120,160,130,110,140,60, |
|
| 13 | - 150,25,170,2,180,1); |
|
| 9 | + 50,110,60,160,70,210,75,230,80,260, |
|
| 10 | + 85,270,90,280, |
|
| 11 | + 95,270,100,260,105,230, |
|
| 12 | + 110,210,120,160,130,110,140,60, |
|
| 13 | + 150,25,170,2,180,1); |
|
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | $graph = new PolarGraph(300, 350); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | // form,at string will be the value of the slice (either the percetage or absolute |
| 44 | 44 | // depending on what was specified in the SetLabelType() above. |
| 45 | 45 | $lbl = array("Jan\n%.1f%%","Feb\n%.1f%%","March\n%.1f%%", |
| 46 | - "Apr\n%.1f%%","May\n%.1f%%","Jun\n%.1f%%"); |
|
| 46 | + "Apr\n%.1f%%","May\n%.1f%%","Jun\n%.1f%%"); |
|
| 47 | 47 | $p1->SetLabels($lbl); |
| 48 | 48 | |
| 49 | 49 | // Add drop shadow to slices |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $mp = array(); |
| 24 | 24 | $n = 4; |
| 25 | 25 | $pos = array(0.3,0.33, 0.8,0.68, |
| 26 | - 0.3,0.68, 0.8,0.33); |
|
| 26 | + 0.3,0.68, 0.8,0.33); |
|
| 27 | 27 | for ($i=0; $i < $n; ++$i) { |
| 28 | 28 | $mp[$i] = new MatrixPlot($data); |
| 29 | 29 | $mp[$i]->colormap->SetMap($i); |
@@ -146,10 +146,10 @@ |
||
| 146 | 146 | $this->graph = new CanvasGraph($aWidth, $aHeight); |
| 147 | 147 | $this->grad = new Gradient($this->graph->img); |
| 148 | 148 | $this->grad->FilledRectangle(0,0, |
| 149 | - $this->iWidth,$this->iHeight, |
|
| 150 | - $this->iFromColor, |
|
| 151 | - $this->iToColor, |
|
| 152 | - $this->iStyle); |
|
| 149 | + $this->iWidth,$this->iHeight, |
|
| 150 | + $this->iFromColor, |
|
| 151 | + $this->iToColor, |
|
| 152 | + $this->iStyle); |
|
| 153 | 153 | |
| 154 | 154 | if ($aFileName != "") { |
| 155 | 155 | $this->graph->Stroke($aFileName); |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | // Setup control point for bezier |
| 15 | 15 | $p = array(3,6, |
| 16 | - 6,9, |
|
| 17 | - 5,3, |
|
| 18 | - 7,4); |
|
| 16 | + 6,9, |
|
| 17 | + 5,3, |
|
| 18 | + 7,4); |
|
| 19 | 19 | |
| 20 | 20 | // Visualize control points |
| 21 | 21 | $shape->SetColor('blue'); |
@@ -42,14 +42,14 @@ |
||
| 42 | 42 | |
| 43 | 43 | // Alignment for anchor points to use |
| 44 | 44 | $anchors = array('left','top', |
| 45 | - 'center','top', |
|
| 46 | - 'right','top', |
|
| 47 | - 'left','center', |
|
| 48 | - 'center','center', |
|
| 49 | - 'right','center', |
|
| 50 | - 'left','bottom', |
|
| 51 | - 'center','bottom', |
|
| 52 | - 'right','bottom'); |
|
| 45 | + 'center','top', |
|
| 46 | + 'right','top', |
|
| 47 | + 'left','center', |
|
| 48 | + 'center','center', |
|
| 49 | + 'right','center', |
|
| 50 | + 'left','bottom', |
|
| 51 | + 'center','bottom', |
|
| 52 | + 'right','bottom'); |
|
| 53 | 53 | |
| 54 | 54 | $n = count($anchors) / 2; |
| 55 | 55 | |