clearTheme(); $graph->SetScale("linlin"); $graph->Set90AndMargin(40,40,40,40); $graph->SetShadow(); $graph->title->Set("A 90 degrees rotated scatter plot"); $graph->title->SetFont(FF_FONT1,FS_BOLD); // Adjust the label align for X-axis so they look good rotated $graph->xaxis->SetLabelAlign('right','center','right'); // Adjust the label align for Y-axis so they look good rotated $graph->yaxis->SetLabelAlign('center','bottom'); $graph->xaxis->SetTitle('X-Axis title','low'); $graph->xaxis->title->SetAngle(90); $graph->xaxis->title->SetMargin(15); $sp1 = new ScatterPlot($datay,$datax); $sp1->mark->SetType(MARK_FILLEDCIRCLE); $sp1->mark->SetFillColor("red"); $sp1->mark->SetWidth(5); $graph->Add($sp1); $graph->Stroke(); ?>