SetMarginColor(BKG_COLOR); $graph->SetScale('datlin',0,1000); $graph->Set90AndMargin(50,10,70,30); $graph->SetFrame(true,'white',0); $graph->SetBox(); $graph->title->Set('Pic'); $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_pic); $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 B 20 Septembre 2013'); $mgraph->title->SetFont(FF_FONT2,FS_BOLD,80); $mgraph->title->SetMargin(8); $mgraph->Stroke(); ?>