示例#1
0
$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();
示例#2
0
$graph7->ygrid->SetColor('black');
$graph7->yaxis->SetTitleMargin(45);
$graph7->yaxis->scale->SetGrace(30);
// TITRE: texte
$graph7->title->Set("Benchmarking simulated cpu of x in the presence of simulated Memload -Mesuring Deadline met-");
// TITRE: marge et apparence
$graph7->title->SetFont(FF_FONT1, FS_BOLD, 11);
// Couleurs et transparence par histogramme
$bplot7 = new BarPlot($data8);
$bplot7->SetFillColor('green');
$bplot7->value->Show();
$bplot7->value->SetFormat('%01.3f');
$bplot7->value->SetColor("black", "darkred");
$bplot7->SetShadow('black');
$bplot7->SetWidth(0.3);
$graph7->Add($bplot7);
//-----------------------
// 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($graph2, 0, 270, 85);
$mgraph->AddMix($graph3, 0, 540, 85);
$mgraph->AddMix($graph4, 0, 810, 85);
$mgraph->AddMix($graph5, 0, 1080, 85);
$mgraph->AddMix($graph6, 0, 1350, 85);
$mgraph->AddMix($graph7, 0, 1620, 85);
$mgraph->Stroke();
示例#3
0
// TITRE: texte
$graph9->title->Set("Mesuring latency Sh process (micro-sec)");
// TITRE: marge et apparence
$graph9->title->SetFont(FF_FONT1, FS_BOLD, 11);
// Couleurs et transparence par histogramme
$bplot9 = new BarPlot($data10);
$bplot9->SetFillColor('lightgray');
$bplot9->value->Show();
$bplot9->value->SetFormat('%01.3f');
$bplot9->value->SetColor("black", "darkred");
$bplot9->SetShadow('black');
$bplot9->SetWidth(0.3);
$graph9->Add($bplot9);
//-----------------------
// 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->AddMix($graph5, 0, 1350, 85);
$mgraph->AddMix($graph6, 0, 1620, 85);
$mgraph->AddMix($graph7, 0, 1890, 85);
$mgraph->AddMix($graph8, 0, 2110, 85);
$mgraph->AddMix($graph9, 0, 2380, 85);
$mgraph->Stroke();
示例#4
0
$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();
?>


示例#5
0
$graph->xaxis->SetTitleMargin(10);
// AXE Y
$graph->yaxis->SetFont(FF_FONT1, FS_BOLD);
$graph->yaxis->SetColor('black');
$graph->yaxis->title->Set('Delta(us)');
$graph->yaxis->title->SetFont(FF_FONT1, FS_BOLD);
$graph->ygrid->SetColor('black');
$graph->yaxis->SetTitleMargin(45);
$graph->yaxis->scale->SetGrace(30);
// TITRE: texte
$graph->title->Set("Mesuring delta(us)");
// TITRE: marge et apparence
$graph->title->SetFont(FF_FONT1, FS_BOLD, 11);
// Couleurs et transparence par histogramme
$bplot = new BarPlot($data1);
$bplot->SetFillColor('lightpink');
$bplot->value->Show();
$bplot->value->SetFormat('%01.3f');
$bplot->value->SetColor("black", "darkred");
$bplot->SetShadow('black');
$bplot->SetWidth(0.3);
$graph->Add($bplot);
//-----------------------
// 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->Stroke();