SetScale('loglog'); $graph->SetBox(); $graph->SetMarginColor('white'); $graph->SetFrame(false); $graph->img->SetMargin(60,10,30,50); $graph->title->Set("FFT of the Temperature"); $graph->xaxis->title->Set("Frequency[Hz]"); $graph->yaxis->title->Set("PS[a.u.]"); $graph->title->SetFont(FF_FONT1,FS_BOLD); $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); $graph->xgrid->Show(true,true); $graph->ygrid->Show(true,true); $graph->xaxis->SetTitleMargin(10); $graph->yaxis->SetTitleMargin(40); $graph->yaxis->SetPos("min"); $graph->xaxis->SetPos("min"); $lineplot=new LinePlot($y,$x); $lineplot->SetColor("darkgreen"); // Add plots to the graph $graph->Add($lineplot); // Display the graph $graph->Stroke(); ?>