setAntiAliasing(TRUE); $group = new PlotGroup; $group->setXAxisZero(FALSE); $group->setBackgroundColor(new Color(197, 180, 210, 80)); $group->setPadding(25, 10, 10, 20); $group->axis->left->setLabelNumber(2); $group->axis->left->setLabelPrecision(1); // Display two lines for($n = 0; $n < 2; $n++) { $x = array(); for($i = 0; $i < 10; $i++) { $x[] = (cos($i * M_PI / 5)) / ($n + 1); } $plot = new LinePlot($x); $plot->setColor(color(10)); // Random line color $plot->setFillColor(color(90)); // Random background color $group->add($plot); } $graph->add($group); $graph->draw(); ?>