SetScale('linlin',0,5000); $graph->yaxis->scale->ticks->Set(5,10); $theme_class=new UniversalTheme; $graph->SetTheme($theme_class); $graph->img->SetAntiAliasing(false); $graph->title->Set('Graph'); $graph->img->SetMargin(70,15,30,125); // Sets the margin. L, R, T, B $graph->title->Set('Mill 3 Speed Past 24 Hours'); $graph->subtitle->Set('(15 Minute Intervals)'); $graph->xaxis->title->Set(); $graph->yaxis->title->Set('RPM'); $graph->SetBox(false); $graph->img->SetAntiAliasing(); $graph->yaxis->HideZeroLabel(); $graph->yaxis->HideLine(false); $graph->yaxis->HideTicks(false,false); $graph->yaxis->title->Set('Mill Speed'); $graph->yaxis->SetTitleMargin(50); $graph->xgrid->Show(); $graph->xgrid->SetLineStyle("solid"); $graph->xaxis->SetTickLabels($datay); $graph->xaxis->SetLabelAngle(65); $graph->xgrid->SetColor('#E3E3E3'); // Create line 1 $p1=new LinePlot($datax1); $graph->Add($p1); $p1->SetColor("green"); $p1->SetLegend(''); $graph->legend->SetFrameWeight(1); // Output line $graph->Stroke(); ?>