SetMarginColor(BKG_COLOR); //$graph->SetScale('datlin',0,1000); if ( (!strcmp($_POST['param'],"V1")) || (!strcmp($_POST['param'],"V2")) || (!strcmp($_POST['param'],"V3"))) $graph->SetScale('datlin',0,10000); if ((!strcmp($_POST['param'],"Pic")) || (!strcmp($_POST['param'],"Pch")) || (!strcmp($_POST['param'],"Prc"))) $graph->SetScale('datlin',0,1000); if ((!strcmp($_POST['param'],"PT100_1w")) || (!strcmp($_POST['param'],"PT100_1c")) || (!strcmp($_POST['param'],"PT100_2w")) || (!strcmp($_POST['param'],"PT100_2c"))) $graph->SetScale('datlin',0,50); $graph->Set90AndMargin(50,10,70,30); $graph->SetFrame(true,'white',0); $graph->SetBox(); //$graph->title->Set('Pic'); $graph->title->Set($param); $graph->title->SetColor('red'); $graph->title->SetFont(FF_FONT1,FS_BOLD,48); $graph->title->SetMargin(5); $graph->xaxis->SetFont(FF_FONT0,FS_NORMAL,9); $graph->xaxis->SetTickLabels($xdata); $graph->xgrid->Show(); $graph->yaxis->SetLabelAngle(90); $graph->yaxis->SetColor('red'); $graph->yaxis->SetFont(FF_FONT0,FS_NORMAL,9); $graph->yaxis->SetLabelMargin(0); $graph->yaxis->scale->SetAutoMin(10); $line = new LinePlot($data_param); $line->SetStepStyle(); $line->SetColor('red'); $graph->AddLine($line); //----------------------- // Create a multigraph //---------------------- $mgraph = new MGraph(); $mgraph->SetMargin(2,2,2,2); $mgraph->SetFrame(true,'darkgray',2); $mgraph->SetFillColor(BKG_COLOR); $mgraph->Add($graph,460,50); //$mgraph->title->Set('XFEL Banc D 18 mars 2014'); $title = "XFEL Stand "; $title .= $banc; //$title .= " 18 mars 2014"; //echo $data_measure[0]; $title .= " " .$data_measure[0]; $mgraph->title->Set($title); $mgraph->title->SetFont(FF_FONT2,FS_BOLD,80); $mgraph->title->SetMargin(8); $mgraph->Stroke(); } else {} ?>