Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/impulsex3.php
include ("../jpgraph.php");
include ("../jpgraph_scatter.php");


// Create some data points
for($i=0; $i<$numpoints; ++$i) {

// A format callbakc function
function mycallback($l) {
	return sprintf("%02.2f",$l);

// Setup the basic parameters for the graph
$graph = new Graph(400,200,"auto");

$graph->title->Set("Impuls Example 3");

// Set format callback for labels

// Set X-axis at the minimum value of Y-axis (default will be at 0)
$graph->xaxis->SetPos("min");	// "min" will position the x-axis at the minimum value of the Y-axis

// Extend the margin for the labels on the Y-axis and reverse the direction
// of the ticks on the Y-axis

// Create a new impuls type scatter plot
$sp1 = new ScatterPlot($datay);



Return current item: Monyet