13 TCanvas *CPol =
new TCanvas(
"CPol",
"TGraphPolar Examples",500,500);
20 TF1 *fp1 =
new TF1(
"fplot",
"cos(x)",rmin,rmax);
21 for (
Int_t ipt = 0; ipt < 1000; ipt++) {
22 r[ipt] = ipt*(rmax-rmin)/1000+rmin;
23 theta[ipt] = fp1->
Eval(
r[ipt]);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Evaluate this function.
void Draw(Option_t *options="") override
Draw TGraphPolar.
void SetTitle(const char *title="") override
Change (i.e.