SetMarginColor('white'); $graph->title->Set('Adding labels on the edges'); $graph->title->SetFont(FF_ARIAL,FS_BOLD,14); // Create one matrix plot $mp = new MatrixPlot($data,1); $mp->SetModuleSize(13,15); $mp->SetCenterPos(0.35,0.45); $mp->colormap->SetNullColor('gray'); // Setup column lablels $mp->collabel->Set($xlabels); $mp->collabel->SetSide('bottom'); $mp->collabel->SetFont(FF_ARIAL,FS_NORMAL,8); $mp->collabel->SetFontColor('darkgray'); // Setup row lablels $mp->rowlabel->Set($ylabels); $mp->rowlabel->SetSide('right'); $mp->rowlabel->SetFont(FF_ARIAL,FS_NORMAL,8); $mp->rowlabel->SetFontColor('darkgray'); // Move the legend more to the right $mp->legend->SetMargin(90); $graph->Add($mp); $graph->Stroke(); ?>