Create and draw a polar graph with errors and polar axis in radians (PI fractions).
See the TGraphPolar documentation
Since TGraphPolar is a TGraphErrors, it is painted with TGraphPainter options.
With GetPolargram we retrieve the polar axis to format it; see the TGraphPolargram documentation
void gr013_polar2()
{
for (int i=0; i<8; i++) {
radius[i] = (i+1)*0.05;
eradius[i] = 0.05;
}
}
double Double_t
Double 8 bytes.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
void Update() override
Update canvas pad buffers.
TGraphPolargram * GetPolargram()
void Draw(Option_t *options="") override
Default Draw method for all objects.
void SetTitle(const char *title="") override
Set the title of the TNamed.
- Author
- Olivier Couet
Definition in file gr013_polar2.C.