$myPicture->setFontProperties(array("FontName" => "../fonts/pf_arma_five.ttf", "FontSize" => 9)); /* Set the graph area */ // $myPicture->setGraphArea(50,60,350,360); $myPicture->setGraphArea(75, 90, 525, 540); /* Create the Scatter chart object */ $myScatter = new pScatter($myPicture, $myData); /* Draw the scale */ $myScatter->drawScatterScale(); /* Turn on shadow computing */ $myPicture->setShadow(TRUE, array("X" => 1, "Y" => 1, "R" => 0, "G" => 0, "B" => 0, "Alpha" => 10)); /* Draw a scatter plot chart */ $myScatter->drawScatterPlotChart(); /* Draw the legend */ $myScatter->drawScatterLegend(420, 580, array("Mode" => LEGEND_HORIZONTAL, "Style" => LEGEND_NOBORDER)); /* Draw the line of best fit */ $myScatter->drawScatterBestFit(); /* Render the picture (choose the best way) */ // $myPicture->autoOutput("pictures/example.drawScatterBestFit.png"); $myPicture->Render("attempts_pro2.png"); } echo "<body>"; if (isset($_POST['option'])) { echo "<div class='bigcontainer2'>"; echo "<div class='bigmain2'>"; } else { echo "<div class='bigcontainer'>"; echo "<div class='bigmain'>"; } echo "<table align=center style='width:50%'>"; echo "<tr>"; if (isset($_POST['option'])) {