Draw a simple graph.
printf(
" i %i %f %f \n",
i,
x[
i],
y[
i]);
}
gr->SetTitle(
"a simple graph");
gr->GetXaxis()->SetTitle(
"X title");
gr->GetYaxis()->SetTitle(
"Y title");
c1->GetFrame()->SetBorderSize(12);
}
A TGraph is an object made of two arrays X and Y with npoints each.
- Author
- Rene Brun
Definition in file graph.C.