$graph4->yaxis->title->Set('time(nano-sec)'); $graph4->yaxis->title->SetFont(FF_FONT1, FS_BOLD); $graph4->ygrid->SetColor('black'); $graph4->yaxis->SetTitleMargin(45); $graph4->yaxis->scale->SetGrace(30); // TITRE: texte $graph4->title->Set("Mesuring latency Mod operation (nano-sec)"); // TITRE: marge et apparence $graph4->title->SetFont(FF_FONT1, FS_BOLD, 11); // Couleurs et transparence par histogramme $bplot4 = new BarPlot($data5); $bplot4->value->Show(); $bplot4->SetFillColor('blue'); $bplot4->value->SetFormat('%01.3f'); $bplot4->value->SetColor("black", "darkred"); $bplot4->SetShadow('black'); $bplot4->SetWidth(0.3); $graph4->Add($bplot4); //----------------------- // Create a multigraph //---------------------- $mgraph = new MGraph(); $mgraph->SetMargin(10, 10, 10, 10); $mgraph->SetFrame(true, 'darkgray', 2); $mgraph->SetBackgroundImage('../fond.png'); $mgraph->AddMix($graph, 0, 0, 85); $mgraph->AddMix($graph1, 0, 270, 85); $mgraph->AddMix($graph2, 0, 540, 85); $mgraph->AddMix($graph3, 0, 810, 85); $mgraph->AddMix($graph4, 0, 1080, 85); $mgraph->Stroke();
$graph2 = new Graph($w, 110); $graph2->SetScale('linlin', 0, 0, $xmin, $xmax); $graph2->SetMargin($lm, $rm, 5, 10); $graph2->SetMarginColor('white'); $graph2->SetFrame(false); $graph2->SetBox(true); $graph2->xgrid->Show(); $graph2->xaxis->SetTickPositions($tickPositions, $minTickPositions); $graph2->xaxis->SetLabelFormatString('My', true); $graph2->xaxis->SetPos('max'); $graph2->xaxis->HideLabels(); $graph2->xaxis->SetTickSide(SIDE_DOWN); $b1 = new BarPlot($datay2, $datax); $b1->SetFillColor('teal'); $b1->SetColor('teal:1.2'); $graph2->Add($b1); //----------------------- // Create a multigraph //---------------------- $mgraph = new MGraph(); $mgraph->SetImgFormat('jpeg', 60); $mgraph->SetMargin(2, 2, 2, 2); $mgraph->SetFrame(true, 'darkgray', 2); $mgraph->SetBackgroundImage('tiger1.jpg'); $mgraph->AddMix($graph, 0, 0, 85); $mgraph->AddMix($graph2, 0, 250, 85); $mgraph->Stroke(); ?>