<?php
require_once '../jpgraph.php';
require_once '../jpgraph_contourf.php';
$data = array(
array (12,12,10,10),
array (10,10,8,14),
array (7,7,13,17),
array (4,5,8,12),
array (10,8,7,8));
$graph = new Graph(300,300);
$graph->SetMargin(30, 30, 40, 30);
$graph->SetScale('intint');
$graph->SetMarginColor('white');
$graph->title->Set('Filled contour plot');
$graph->title->SetFont(FF_VERDANA,FS_BOLD,12);
$graph->subtitle->Set('(No lines, no labels)');
$graph->subtitle->SetFont(FF_VERDANA,FS_ITALIC,10);
$cp = new FilledContourPlot($data);
$cp->UseHighContrastColor(true);
$cp->SetInvert();
$cp->SetFilled(true);
$cp->ShowLabels(false);
$cp->ShowLines(false);
$graph->Add($cp);
$graph->stroke();
?> |