1e6 ) // mask the missing values from the graph $tmp = '.'; $ydata[] = $tmp; } // Create the graph. $graph = new Graph(450,350,"auto"); $graph->SetScale("linlin"); //$graph->img->SetMargin(30,90,40,50); $graph->xaxis->SetFont(FF_ARIAL); //$graph->xscale->ticks->Set(7,1); $graph->xaxis->SetLabelAngle(25); // 45 deg upwards //echo $graph->SetTickDensity(TICKD_NORMAL,TICKD_SPARSE); //$graph->title->Set($sql); $graph->title->Set("$rvar_title UJD=$curUJD UJD_m=$thismonthUJD $startISO $endISO"); $graph->xaxis->title->Set(sprintf("fractional day of %s",date("Y-M",$thismonthUJD*24*3600))); $graph->yaxis->title->Set("$var (units?)"); // 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(); ?>