15 TCanvas * CPol =
new TCanvas(
"CPol",
"TGraphPolar Examples",1200,600);
27 TF1 * fplot =
new TF1(
"fplot",
"cos(2*x)*cos(20*x)",xmin,xmax);
29 for (
Int_t ipt = 0; ipt < 1000; ipt++){
30 x[ipt] = ipt*(xmax-
xmin)/1000+xmin;
31 y[ipt] = fplot->
Eval(x[ipt]);
41 for (
Int_t ipt = 0; ipt < 20; ipt++){
42 xval1[ipt] = x[1000/20*ipt];
43 yval1[ipt] = y[1000/20*ipt];
65 for (
Int_t ipt = 0; ipt < 30; ipt++){
66 x2[ipt] = x[1000/30*ipt];
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
void SetToRadian()
The Polar circle is labelled using radian.
void SetTwoPi()
Set range from 0 to 2*pi.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
static const double x2[5]
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
TGraphPolargram * GetPolargram()
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Evaluate this function.
void SetNdivPolar(Int_t Ndiv=508)
Set the number of Polar divisions: enter a number ij with 0<i<99 and 0<j<99.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
void Draw(Option_t *options="")
Draw TGraphPolar.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
virtual void Update()
Update canvas pad buffers.
void SetRangePolar(Double_t tmin, Double_t tmax)
Allows to change range Polar.