break; } } if($x_verif>$largeurTotale){ $j=1; } $tmp_taille_police=$j; } $y=round($tab20[2*$i+1]-(90-($angle-270))*(ImageFontHeight($taille_police)-2)/90); } writinfo('/tmp/infos_graphe.txt','a+',"\$x=$x\n"); writinfo('/tmp/infos_graphe.txt','a+',"\$y=$y\n"); writinfo('/tmp/infos_graphe.txt','a+',"\$tmp_taille_police=$tmp_taille_police\n"); writinfo('/tmp/infos_graphe.txt','a+',"\$rapport_imageString_imagettftext=$rapport_imageString_imagettftext\n"); imagettftext($img, $tmp_taille_police*$rapport_imageString_imagettftext, 0, $x, $y, $axes, dirname(__FILE__)."/../fpdf/font/unifont/DejaVuSansCondensed.ttf", strtr($texte,"_"," ")); // Ajout des notes sous le nom de matière: $ytmp=$y+2+ImageFontHeight($taille_police); //************** // A FAIRE: // Correctif à arranger... pour positionner au mieux en fonction de l'angle if(($angle>270)&&($angle<360)){$xtmp=$x+30;}else{$xtmp=$x;} //************** for($k=1;$k<=$nb_series_bis;$k++){ //if(($k==1)||($avec_moy_classe!='n')||($legendy[2]=='Toutes_les_périodes')) { /*
imageLine($img,$x1,$ycourbe[$k][$i],$x2,$ycourbe[$k][$i+1],$couleureleve[$k]); } elseif(($afficher_pointille!='n')&&(isset($ycourbe[$k][$i]))&&($ycourbe[$k][$i]!=-1)&&(isset($ycourbe[$k][$i+2]))&&($ycourbe[$k][$i+2]!=-1)) { /* // imageDashedLine() est bugguée... on peut récupérer des hachures de 8mm de hauteur pour 2mm de large imagesetthickness($img,1); imageDashedLine($img,$x[$i+2],$ycourbe[$k][$i+2],$x1,$ycourbe[$k][$i],$couleureleve[$k]); imagesetthickness($img,$epaisseur); */ imagesetstyle($img, $style_pointille); imageLine($img,$x1,$ycourbe[$k][$i],$x[$i+2],$ycourbe[$k][$i+2],IMG_COLOR_STYLED); imagesetstyle($img, $style_plein); } } if($epaisseur_croissante_traits_periodes=='oui') { $epaisseur+=1; } } } //================================================================ writinfo('/tmp/infos_graphe.txt','a+',"\nJuste avant imagePNG\n"); imagePNG($img); imageDestroy($img); ?>