本文整理匯總了PHP中GroupBarPlot::SetAlign方法的典型用法代碼示例。如果您正苦於以下問題:PHP GroupBarPlot::SetAlign方法的具體用法?PHP GroupBarPlot::SetAlign怎麽用?PHP GroupBarPlot::SetAlign使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GroupBarPlot
的用法示例。
在下文中一共展示了GroupBarPlot::SetAlign方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: date
$graph->title->Set($cities[$station]["name"] . " [{$station}] Precipitation for " . date("M Y", $ts));
if ($hasclimate) {
$graph->subtitle->Set("Climate Site: " . $cities[strtoupper($climate_site)]["name"] . "[" . $climate_site . "]");
}
$graph->legend->SetLayout(LEGEND_HOR);
$graph->legend->Pos(0.05, 0.1, "right", "top");
if ($hasclimate && sizeof($cdiff) > 0) {
// Create the linear plot
$b1plot = new BarPlot($cdiff);
$b1plot->SetFillColor("red");
$b1plot->SetLegend("Accum Difference");
$b2plot = new BarPlot($obs);
$b2plot->SetFillColor("blue");
$b2plot->SetLegend("Obs Rain");
$g = new GroupBarPlot(array($b1plot, $b2plot));
$g->SetAlign("left");
}
// Create the linear plot
$lp1 = new LinePlot($aobs);
$lp1->SetLegend("Actual Accum");
$lp1->SetColor("blue");
$lp1->SetWeight(2);
if ($hasclimate && sizeof($cdiff) > 0) {
$lp2 = new LinePlot($aclimate);
$lp2->SetLegend("Climate Accum");
$lp2->SetColor("red");
$lp2->SetWeight(2);
$z = new LinePlot($zeros);
$z->SetWeight(2);
}
// Add the plot to the graph