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
require_once "../Pattern.class.php";
3
require_once "../Graph.class.php";
4
 
5
$graph = new Graph(400, 200);
6
 
7
// Set title
8
$graph->title->set('Pattern 2');
9
$graph->title->setFont(new Tuffy(12));
10
$graph->title->setColor(new DarkRed);
11
 
12
$pattern = Pattern::get('LightLine');
13
$pattern->setArgs(array(
14
	'y' => array(5, 3, 4, 7, 6, 5, 8, 4, 7),
15
	'legend' => 'John Doe'
16
));
17
 
18
$plot = $pattern->create();
19
 
20
$graph->add($plot);
21
$graph->draw();
22
 
23
?>