SetMargin(30, 30, 40, 30); $graph->SetScale('intint'); $graph->SetMarginColor('white'); // Setup title of graph $graph->title->Set('Filled contour plot'); $graph->title->SetFont(FF_VERDANA,FS_BOLD,12); $graph->subtitle->Set('(horizontal labels)'); $graph->subtitle->SetFont(FF_VERDANA,FS_ITALIC,10); // Create a new contour plot $cp = new FilledContourPlot($data,8); // Use only black/and white schema $cp->UseHighContrastColor(true,true); // Flip visually $cp->SetInvert(); // Fill the contours $cp->SetFilled(true); // Show lines in red $cp->ShowLines(true,'red'); // Display the labels $cp->ShowLabels(true,false); $cp->SetFont(FF_ARIAL,FS_BOLD,9); $cp->SetFontColor('white'); // And add the plot to the graph $graph->Add($cp); // Send it back to the client $graph->stroke(); ?>