0){ $pData[]=$speed; } } include ( "jpg/jpgraph.php"); include ("jpg/jpgraph_line.php"); // Create the graph. These two calls are always required $h_size = 600; if (!empty($_GET['h_size'])){ $h_size = $_GET['h_size']; } $v_size = 400; if (!empty($_GET['v_size'])){ $v_size = $_GET['v_size']; } $graph = new Graph($h_size,$v_size,"auto"); $graph->SetScale( "textlin"); include ("s_types.php"); // Create the linear plot $lineplot =new LinePlot($pData); $lineplot ->SetColor("blue"); if (count($pData) > 30){ $graph->xaxis->SetTextLabelInterval(5); } // Add the plot to the graph $graph->Add( $lineplot); $graph->title->Set ('Pitch Speed'); $graph->img-> SetMargin(40,20 ,20,40); $graph->xaxis-> title->Set("Pitch Number" ); $graph->yaxis-> title->Set("Pitch Speed (in MPH)" ); $graph->xaxis->SetLabelAngle(90); $graph-> title->SetFont(FF_FONT1 ,FS_BOLD); $graph->yaxis-> title->SetFont(FF_FONT1 ,FS_BOLD); $graph->xaxis-> title->SetFont(FF_FONT1 ,FS_BOLD); $lineplot ->SetColor("blue"); $lineplot ->SetWeight(2); // Two pixel wide $graph ->SetShadow(); // Display the graph $graph->Stroke(); ?>