本文整理汇总了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