SetMargin(40,120,60,50); $graph->title->Set("Contour plot, high contrast color"); $graph->title->SetFont(FF_ARIAL,FS_BOLD,12); $graph->title->SetMargin(10); // For contour plots it is custom to use a box style ofr the axis $graph->SetScale('intint',0,56,0,56); // Setup axis and grids $graph->SetAxisStyle(AXSTYLE_BOXOUT); $graph->xgrid->Show(true); $graph->ygrid->Show(true); // A simple contour plot with 10 isobar lines and flipped Y-coordinates // Make the data smoother by interpolate the original matrice by a factor of two // which will make each grid cell half the original size $cp = new ContourPlot($data,10, 3); $cp->UseHighContrastColor(true); // Display the legend $cp->ShowLegend(); // Make the isobar lines slightly thicker $graph->Add($cp); // ... and send the graph back to the browser $graph->Stroke(); ?>