Subversion Repositories Applications.gtt

Rev

Rev 61 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
60 jpm 1
<?php
2
 
3
require_once "../ScatterPlot.class.php";
4
 
5
$graph = new Graph(400, 400);
6
 
7
$graph->title->set('Linked ScatterPlot');
8
 
9
$y = array(1, 10, 3,-4, 1, 4, 8, 7);
10
$x = array(0.5, 0.5, 3, 5, 2, 3, 4, 1.5);
11
 
12
$plot = new ScatterPlot($y, $x);
13
$plot->setBackgroundColor(new VeryLightGray);
14
$plot->setPadding(NULL, NULL, 40, 20);
15
 
16
$plot->link(TRUE, new DarkBlue);
17
 
18
$graph->add($plot);
19
$graph->draw();
20
 
21
?>