SetScale("linlin"); //$graph->img->SetMargin(30,90,40,50); $graph->xaxis->SetFont(FF_ARIAL,FS_BOLD); $graph->xscale->ticks->Set(7,1); $graph->xaxis->SetLabelAngle(45); // 45 deg upwards //echo $graph->SetTickDensity(TICKD_NORMAL,TICKD_SPARSE); $graph->title->Set($sql); $graph->xaxis->title->Set(date("Y-M")); $graph->yaxis->title->Set("Wind (mph)"); // Create the linear plot $plot=new ScatterPlot($ydata,$xdata); $plot->SetLegend("mph"); $plot->mark->SetType(0); $plot->mark->SetWidth(5); // $sp1->SetWeight(3); //$plot->mark->SetWidth(4); $plot->SetLinkPoints(); // Add the plot to the graph $graph->Add($plot); // Display the graph $graph->Stroke(); ?>