本文整理汇总了PHP中Amenadiel\JpGraph\Graph\Graph::stroke方法的典型用法代码示例。如果您正苦于以下问题:PHP Graph::stroke方法的具体用法?PHP Graph::stroke怎么用?PHP Graph::stroke使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Amenadiel\JpGraph\Graph\Graph
的用法示例。
在下文中一共展示了Graph::stroke方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
// Setup some data to use for the contour
$data = array(array(12, 12, 10, 10), array(10, 10, 8, 14), array(7, 7, 13, 17), array(4, 5, 8, 12), array(10, 8, 7, 8));
// create a basic graph as a container
$graph = new Graph\Graph(300, 300);
$graph->SetMargin(30, 30, 40, 30);
$graph->SetScale('intint');
$graph->SetMarginColor('white');
// Setup title of graph
$graph->title->Set('Filled contour plot');
$graph->title->SetFont(FF_VERDANA, FS_BOLD, 12);
$graph->subtitle->Set('(With lines and labels)');
$graph->subtitle->SetFont(FF_VERDANA, FS_ITALIC, 10);
// Create a new contour plot
$cp = new FilledContourPlot($data, 7);
// Use only blue/red color schema
$cp->UseHighContrastColor(true);
// Flip visually
$cp->SetInvert();
// Fill the contours
$cp->SetFilled(true);
// Specify method to use
$cp->SetMethod('tri');
// Display the labels
$cp->ShowLabels(true, true);
$cp->SetFont(FF_ARIAL, FS_BOLD, 9);
$cp->SetFontColor('white');
// And add the plot to the graph
$graph->Add($cp);
// Send it back to the client
$graph->stroke();