Create and draw a polar graph with PI axis
void graphpolar2()
{
auto CPol =
new TCanvas(
"CPol",
"TGraphPolar Example", 500, 500);
for (int i = 0; i < 8; i++) {
radius[i] = (i + 1) * 0.05;
eradius[i] = 0.05;
}
auto grP1 =
new TGraphPolar(8, theta, radius, etheta, eradius);
grP1->SetTitle("");
grP1->SetMarkerStyle(20);
grP1->SetMarkerSize(2.);
grP1->SetMarkerColor(4);
grP1->SetLineColor(2);
grP1->SetLineWidth(3);
grP1->Draw("RPE");
}
- Author
- Olivier Couet
Definition in file graphpolar2.C.