I am very confused with what i do now . the data doesn't show up. I want to show x and y with array. Anyone can help? This is the code.
<?phpsession_start();$xMid=$_SESSION['xMid'];$yMid=$_SESSION['yMid'];$xArray=$_SESSION['xArray'];$yArray=$_SESSION['yArray'];require_once'phplot.php';$data=array();$data[]=array('',$xArray,$yArray);// xarray and yarray doesn't show up in scatter plot$plot=newPHPlot(800,600);$plot->SetImageBorderType('plain');$plot->SetPlotType('points');$plot->SetDataType('data-data');$plot->SetDataValues($data);# Main plot title:$plot->SetTitle('Scatterplot (points plot)');# Need to set area and ticks to get reasonable choices.$plot->SetPlotAreaWorld(3,3,5,5);$plot->SetXTickIncrement(0.1);$plot->SetYTickIncrement(0.1);# Move axes and ticks to 0,0, but turn off tick labels:$plot->SetXAxisPosition($yMid);# Is default$plot->SetYAxisPosition($xMid);$plot->SetXTickPos('xaxis');$plot->SetYTickPos('yaxis');# Turn on 4 sided borders, now that axes are inside:$plot->SetPlotBorderType('full');# Draw both grids:$plot->SetDrawXGrid(True);$plot->SetDrawYGrid(True);# Is default$plot->DrawGraph();//for($i=0;$i<count($xArray);$i++){// $data[] = array('',$xArray[$i],$yArray[$i]);//}?>
Any help will be much appreciated! thanx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am very confused with what i do now . the data doesn't show up. I want to show x and y with array. Anyone can help? This is the code.
Any help will be much appreciated! thanx