15 auto CPol =
new TCanvas(
"CPol",
"TGraphPolar Examples", 1200, 600);
27 TF1 fplot(
"fplot",
"cos(2*x)*cos(20*x)",
xmin,
xmax);
29 for (
Int_t ipt = 0; ipt < 1000; ipt++) {
31 y[ipt] = fplot.Eval(
x[ipt]);
37 grP->SetFillStyle(3012);
41 for (
Int_t ipt = 0; ipt < 20; ipt++) {
42 xval1[ipt] =
x[1000 / 20 * ipt];
43 yval1[ipt] =
y[1000 / 20 * ipt];
47 grP1->SetMarkerStyle(29);
48 grP1->SetMarkerSize(2);
49 grP1->SetMarkerColor(4);
50 grP1->SetLineColor(4);
55 if (grP->GetPolargram()) {
56 grP->GetPolargram()->SetTextColor(8);
57 grP->GetPolargram()->SetNdivPolar(703);
65 for (
Int_t ipt = 0; ipt < 30; ipt++) {
66 x2[ipt] =
x[1000 / 30 * ipt];
73 grPE->SetMarkerStyle(22);
74 grPE->SetMarkerSize(1.5);
75 grPE->SetMarkerColor(5);
76 grPE->SetLineColor(6);
77 grPE->SetLineWidth(2);
82 if (grPE->GetPolargram())
83 grPE->GetPolargram()->SetTextSize(0.03);
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char y2
RVec< PromoteType< T > > cos(const RVec< T > &v)
RVec< PromoteType< T > > sin(const RVec< T > &v)