Ajout lgende

This commit is contained in:
Rodolphe Quiedeville 2005-12-08 15:21:31 +00:00
parent 2e82c98c60
commit 6777b53bb5

View File

@ -135,13 +135,18 @@ if ($resql)
$b2plot = new LinePlot($datas);
$b2plot->SetWeight(2);
$b2plot->SetColor("red");
$b2plot->SetLegend("réel");
$graph->Add($b2plot);
$lineplot = new LinePlot($moydatas);
$lineplot->SetColor("blue");
$lineplot->SetLegend("moyenne");
$graph->Add($lineplot);
$graph->img->SetImgFormat("png");
$graph->legend->Pos(0.08,0.08,"left","top");
$graph->Stroke($file);
}
}