分类: PHP
2013-01-17 23:16:54
"; while($row = mysql_fetch_array($result)) { if ($row['ch2'] > -100 and $row['ch2'] < 100) $data[] = array('',strtotime($row['date']),$row['ch2'],$row['ch2']-2); /* echo ""; echo " "; */ } //echo ""; //echo count($data); $plot = new PHPlot(800, 600); $plot->SetTitle('df'); $plot->SetXLabelType('time', '%Y-%m-%d'); $plot->SetDataValues($data); $plot->SetDataValues($data2); $plot->SetDataType('data-data'); $plot->SetPlotType('lines'); $plot->SetXTitle('Date(Y-m-d)'); $plot->SetYTitle('Temprature'); //$plot->SetLegend(array('2Y', 'Y^2')); $plot->DrawGraph();" . $row['date'] . " "; echo "" . $row['ch1'] . " "; echo "