I am trying to plot a polar graph which is basically going to represent angular distribution. But there are about 100 entries for the graph. These entries are saved in a .dat file. Can TGraphPolar take values from a .dat file. If Yes what should be the pattern of values in the .dat file? right now in ang_dist.dat file, I have it as 1st column values of angle (in degress) and second column is radius.
{
auto c1 = new TCanvas("c1","Polar graph",1500,500);
auto pad = new TPad("pad","",0,0,1,1);
pad->SetGrid();
pad->Draw();
pad->cd();
TGraphPolar * gp = new TGraphPolar ("ang_dist.dat");
gp-> SetTitle("Angular distribution");
gp-> SetMarkerStyle(20);
gp->SetMarkersize(2.0);
gp->SetMarkerColor(2);
gp->SetLineWidth(3);
gp->Draw("PE");
c1->Update();
gp->GetPolargram()->SetToRadian();
return c1;
}