Logo ROOT   6.12/07
Reference Guide
polyline.C
Go to the documentation of this file.
1 {
2  Double_t x[5] = {.2,.7,.6,.25,.2};
3  Double_t y[5] = {.5,.1,.9,.7,.5};
4  TPolyLine *pline = new TPolyLine(5,x,y);
5  pline->SetFillColor(38);
6  pline->SetLineColor(2);
7  pline->SetLineWidth(4);
8  pline->Draw("f");
9  pline->Draw();
10 }
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Definition: TAttLine.h:43
Double_t x[n]
Definition: legend1.C:17
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Definition: TAttLine.h:40
virtual void Draw(Option_t *option="")
Draw this polyline with its current attributes.
Definition: TPolyLine.cxx:232
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:37
Double_t y[5]
Definition: polyline.C:3
double Double_t
Definition: RtypesCore.h:55
Defined by an array on N points in a 2-D space.
Definition: TPolyLine.h:23
TPolyLine * pline
Definition: polyline.C:4