forked from halo-battle/game
Version 1.12
This commit is contained in:
parent
2a066a7498
commit
de31cd3e9a
1373 changed files with 156282 additions and 45238 deletions
31
onyx2/include/jpgraph/Examples/linegraceex.php
Normal file
31
onyx2/include/jpgraph/Examples/linegraceex.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
include ("../jpgraph.php");
|
||||
include ("../jpgraph_line.php");
|
||||
|
||||
$datay = array(0.2980,0.3039,0.3020,0.3027,0.3015);
|
||||
|
||||
$graph = new Graph(300,200,"auto");
|
||||
$graph->img->SetMargin(40,40,40,40);
|
||||
|
||||
$graph->img->SetAntiAliasing();
|
||||
$graph->SetScale("textlin");
|
||||
$graph->SetShadow();
|
||||
$graph->title->Set("Example of 10% top/bottom grace");
|
||||
$graph->title->SetFont(FF_FONT1,FS_BOLD);
|
||||
|
||||
// Add 10% grace to top and bottom of plot
|
||||
$graph->yscale->SetGrace(10,10);
|
||||
|
||||
$p1 = new LinePlot($datay);
|
||||
$p1->mark->SetType(MARK_FILLEDCIRCLE);
|
||||
$p1->mark->SetFillColor("red");
|
||||
$p1->mark->SetWidth(4);
|
||||
$p1->SetColor("blue");
|
||||
$p1->SetCenter();
|
||||
$graph->Add($p1);
|
||||
|
||||
$graph->Stroke();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue