Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
23
artichow/examples/pattern-003.php
Normal file
23
artichow/examples/pattern-003.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
require_once "../Pattern.class.php";
|
||||
require_once "../Graph.class.php";
|
||||
|
||||
$graph = new Graph(400, 200);
|
||||
|
||||
// Set title
|
||||
$graph->title->set('Pattern 2');
|
||||
$graph->title->setFont(new Tuffy(12));
|
||||
$graph->title->setColor(new DarkRed);
|
||||
|
||||
$pattern = Pattern::get('LightLine');
|
||||
$pattern->setArgs(array(
|
||||
'y' => array(5, 3, 4, 7, 6, 5, 8, 4, 7),
|
||||
'legend' => 'John Doe'
|
||||
));
|
||||
|
||||
$plot = $pattern->create();
|
||||
|
||||
$graph->add($plot);
|
||||
$graph->draw();
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue