img->SetImgFormat("jpeg"); //画像の種類を明示的に指定する。 $graph->SetScale("textlin"); $graph->title->Set("Line Plot Example"); $graph->xaxis->SetTickLabels($xdata); $graph->xaxis->title->Set("Month"); $graph->yaxis->title->Set("y-title"); $lp1 = new LinePlot($ydata); //*2 $lp1->SetColor("orange"); $lp1->SetLegend("Temperature"); $graph->Add($lp1); //$graph->Stroke("./tmp/samplelineplot.jpg"); $graph->Stroke(); ?>