13 Float_t vals[] = {.2, 1.1, .6, .9, 2.3};
15 Int_t nvals =
sizeof(vals) /
sizeof(vals[0]);
20 TPie *pie1 =
new TPie(
"pie1",
"Pie with offset and no colors", nvals, vals);
21 TPie *pie2 =
new TPie(
"pie2",
"Pie with radial labels", nvals, vals,
colors);
22 TPie *pie3 =
new TPie(
"pie3",
"Pie with tangential labels", nvals, vals,
colors);
23 TPie *pie4 =
new TPie(
"pie4",
"Pie with verbose labels", nvals, vals,
colors);
45 pie3->
Draw(
"3d t nol");
int Int_t
Signed integer 4 bytes (int).
float Float_t
Float 4 bytes (float).
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
Automatic pad generation by division.
void SetY1(Double_t y1) override
Set the Y1 value.
void SetY2(Double_t y2) override
Set the Y2 value.
void SetValue(Double_t)
Set the value for this slice.
TPieSlice * GetSlice(Int_t i)
void SetAngularOffset(Double_t)
void SetEntryFillStyle(Int_t, Int_t)
void SetLabelsOffset(Float_t)
void SetEntryRadiusOffset(Int_t, Double_t)
void SetLabelFormat(const char *)
void SetEntryLineStyle(Int_t, Int_t)
void SetEntryLineWidth(Int_t, Int_t)
void SetCircle(Double_t x=.5, Double_t y=.5, Double_t rad=.4)
TLegend * MakeLegend(Double_t x1=.65, Double_t y1=.65, Double_t x2=.95, Double_t y2=.95, const char *leg_header="")
void Draw(Option_t *option="l") override
Default Draw method for all objects.
void SetEntryLineColor(Int_t, Int_t)