SetColor("lightyellow"); $odo[$i]->needle->Set(80); $odo[$i]->needle->SetStyle($nstyle[$i]); $odo[$i]->caption->Set($captions[$i]); $odo[$i]->caption->SetFont(FF_FONT1); $odo[$i]->caption->SetMargin(3); } // Use the automatic layout engine to positon the plots on the graph $row1 = new LayoutHor( array($odo[0],$odo[1],$odo[2]) ); $row2 = new LayoutHor( array($odo[3],$odo[4],$odo[5]) ); $col1 = new LayoutVert( array($row1,$row2) ); // Add the odometer to the graph $graph->Add($col1); // ... and finally stroke and stream the image back to the browser $graph->Stroke(); ?>