wyattb - 2013-05-10

Edit:
NEVER MIND :)
I didn't set this line.

$plot->SetIsInline(TRUE);

Here is the code (taken for the manual). I am using MAMP (Mac OS X Mt Lion). Ive set the path to 0775. It still outputs to regular http.

Any ideas?

<?php

//Include the code
require_once 'phplot-6.0.0/phplot.php';

//Define the object
$plot = new PHPlot();

//Define some data
$example_data = array(
     array('a',3),
     array('b',5),
     array('c',7),
     array('d',8),
     array('e',2),
     array('f',6),
     array('g',7)
);
$plot->SetDataValues($example_data);

//Turn off X axis ticks and labels because they get in the way:
$plot->SetXTickLabelPos('none');
$plot->SetXTickPos('none');

//output to a file
$plot->SetFileFormat('jpg');
$plot->SetOutputFile('/Applications/MAMP/phpplotout/mygraph.jpg');

//Draw it
$plot->DrawGraph();
?>
 

Last edit: wyattb 2013-05-10