[ Index ] |
|
Code source de jpGraph 2.2 |
1 <?php 2 3 include ("../jpgraph.php"); 4 include ("../jpgraph_log.php"); 5 include ("../jpgraph_error.php"); 6 7 $xdata = array( 2.0, 2.5, 3.0, 4.0, 5.0, 6.0, 8.0, 10.0, 8 12.0, 15.0, 20.0, 25.0, 30.0, 40.0, 50.0, 60.0, 9 75.0, 100., 125., 150., 175., 200., 250., 300., 10 400., 500., 600., 800., 950., 11 1200., 1500., 2000., 2500.); 12 $ydata = array(270., 280., // 2 m 13 330., 340., // 2.5 14 410., 420., // 3 15 550., 560., // 4 16 670., 680., // 5 17 770., 780., // 6 18 930., 940., // 8 19 1010., 1020., // 10 20 1040., 1050., // 12 21 980., 990., // 15 22 860., 870., // 20 23 720., 730., // 25 24 590., 600., // 30 25 370., 380., // 40 26 330., 340., // 50 27 320., 330., // 60 28 320., 330., // 75 29 300., 310., // 100 30 305., 315., // 125 31 310., 320., // 150 32 315., 325., // 175 33 300., 310., // 200 34 270., 280., // 250 35 240., 250., // 300 36 200., 210., // 400 37 150., 160., // 500 38 120., 130., // 600 39 50., 60., // 800 40 30., 40., // 950 41 15., 20., // 1200 42 8., 10., // 1500 43 7., 9., // 2000 44 8., 10. // 2500 m 45 ); 46 47 $graph = new Graph(500,300,"auto"); 48 $graph->SetScale("linlog"); 49 $graph->img->SetMargin(40,20,20,40); 50 $graph->title->SetFont(FF_FONT1,FS_BOLD); 51 $graph->xaxis->title->Set("ab/2"); 52 $graph->yaxis->title->Set("rho_s"); 53 $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 54 $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 55 $graph->ygrid->Show(true,true); 56 $graph->xgrid->Show(true,true); 57 58 $errorplot=new ErrorPlot($ydata, $xdata); 59 60 $graph->Add($errorplot); 61 62 $graph->Stroke(); 63 64 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 09:27:55 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |