setAntiAliasing(TRUE); $blue = new Color(0, 0, 200); $group = new PlotGroup; $group->setPadding(40, 40); $group->setBackgroundColor( new Color(240, 240, 240) ); $values = $data; $plot = new LinePlot($values); $plot->setColor($blue); $plot->setYAxis(Plot::LEFT); $group->add($plot); $group->axis->left->setColor($blue); $group->axis->left->title->set("Nombre pixels"); $graph->add($group); $graph->draw(); ?>