[ Index ] |
|
Code source de jpGraph 2.2 |
1 <?php 2 include ("../jpgraph.php"); 3 include ("../jpgraph_line.php"); 4 include ("../jpgraph_utils.inc.php"); 5 6 $f = new FuncGenerator('cos($i)','$i*$i*$i'); 7 list($xdata,$ydata) = $f->E(-M_PI,M_PI,25); 8 9 $graph = new Graph(380,450,"auto"); 10 $graph->SetScale("linlin"); 11 $graph->SetShadow(); 12 $graph->img->SetMargin(50,50,60,40); 13 $graph->SetBox(true,'black',2); 14 $graph->SetMarginColor('white'); 15 $graph->SetColor('lightyellow'); 16 $graph->SetAxisStyle(AXSTYLE_SIMPLE); 17 18 //$graph->xaxis->SetLabelFormat('%.1f'); 19 20 $graph->title->Set("Function plot with marker"); 21 $graph->title->SetFont(FF_FONT1,FS_BOLD); 22 $graph->subtitle->Set("(BOXOUT Axis style)"); 23 $graph->subtitle->SetFont(FF_FONT1,FS_NORMAL); 24 25 $lp1 = new LinePlot($ydata,$xdata); 26 $lp1->mark->SetType(MARK_FILLEDCIRCLE); 27 $lp1->mark->SetFillColor("red"); 28 $lp1->SetColor("blue"); 29 30 $graph->Add($lp1); 31 $graph->Stroke(); 32 ?> 33 34
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 |
![]() |