Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > da32bb5395522d8bf4e482cce91a6775 > files > 55

php-pear-Image_Graph-0.8.0-8.mga7.noarch.rpm

<?php
/**
 * Usage example for Image_Graph.
 * 
 * Main purpose: 
 * Somebody liked it :)
 * 
 * Other: 
 * None specific
 * 
 * $Id: misc04.php 192339 2005-08-03 21:22:11Z nosey $
 * 
 * @package Image_Graph
 * @author Jesper Veggerby <pear.nosey@veggerby.dk>
 */

require_once 'Image/Graph.php';

// create the graph
$Graph =& Image_Graph::factory('graph', array(500, 300));

$Plotarea =& $Graph->addNew('plotarea');

$Dataset =& Image_Graph::factory('Image_Graph_Dataset_Random', array(20, 10, 100, true));

$Fill =& Image_Graph::factory('Image_Graph_Fill_Image', './images/audi-tt-coupe.jpg');
$Plotarea->setFillStyle($Fill);

$Plot =& $Plotarea->addNew('Image_Graph_Plot_Smoothed_Area', $Dataset);

$Plot->setFillColor('white@0.4');
    
// output the Graph
$Graph->done();
?>