forked from halo-battle/game
Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
21
artichow/examples/scatter-001.php
Normal file
21
artichow/examples/scatter-001.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
require_once "../ScatterPlot.class.php";
|
||||
|
||||
$graph = new Graph(400, 400);
|
||||
|
||||
$graph->title->set('Simple ScatterPlot');
|
||||
|
||||
$y = array(1, 10, 3,-4, 1, 4, 8, 7);
|
||||
$x = array(0.5, 0.5, 3, 5, 2, 3, 4, 1.5);
|
||||
|
||||
$plot = new ScatterPlot($y, $x);
|
||||
$plot->setBackgroundColor(new VeryLightGray);
|
||||
$plot->setPadding(NULL, NULL, 40, 20);
|
||||
|
||||
$plot->legend->add($plot, 'Some points', Legend::MARKONLY);
|
||||
|
||||
$graph->add($plot);
|
||||
$graph->draw();
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue