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