<?php 
 
require_once ("jpgraph/jpgraph.php");
require_once ("jpgraph/jpgraph_contour.php");
 
$data = array(
            array ( 12,7,3,15 ),
            array ( 18,5,1, 9 ),
            array ( 13,9,5,12),
            array (  5,3,8, 9 ),
            array (  1,8,5, 7 ));
 
 
$graph = new Graph(350,250);
$graph->SetScale('intint');
 
$graph->SetAxisStyle(AXSTYLE_BOXOUT);
 
$graph->SetMargin(30,100,40,30);
 
$graph->title->Set('Basic contour plot with multiple axis');
$graph->title->SetFont(FF_ARIAL,FS_BOLD,12);
 
$cp = new ContourPlot($data,10,1);
 
$cp->ShowLegend();
 
$graph->Add($cp);
 
$graph->Stroke();
 
?> |