SetScale("loglog"); $graph->SetY2Scale("lin"); $graph->y2axis->SetColor("blue","blue"); $graph->img->SetMargin(50,70,40,50); $graph->title->Set("Geoelektrik"); $graph->xaxis->title->Set("Auslage ab/2 [m]"); $graph->yaxis->title->Set("rho_s [Ohm m]"); $graph->y2axis->title->Set("mn/2 [m]"); $graph->y2axis->title->SetColor("blue"); $graph->y2axis->SetTitleMargin(35); $graph->title->SetFont(FF_FONT1,FS_BOLD); $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); $graph->xgrid->Show(true,true); $graph->ygrid->Show(true,true); // Create the linear plot $lineplot=new LinePlot($rhos,$ab2); $lineplot->SetWeight(1); $lineplot->mark->SetType(MARK_FILLEDCIRCLE); $lineplot->mark->SetWidth(2); // Create scatter plot $scplot=new ScatterPlot($mn2,$ab2); $scplot->mark->SetType(MARK_FILLEDCIRCLE); $scplot->mark->SetColor("blue"); $scplot->mark->SetWidth(2); // Add plots to the graph $graph->AddY2($scplot); $graph->Add($lineplot); // Display the graph $graph->Stroke(); ?>