ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
Definition: TAttLine.h:57
virtual void SetLineColor(Color_t lcolor)
Definition: TAttLine.h:54
virtual void Draw(Option_t *option="")
Draw this polyline with its current attributes.
Definition: TPolyLine.cxx:232
virtual void SetFillColor(Color_t fcolor)
Definition: TAttFill.h:50
double Double_t
Definition: RtypesCore.h:55
Defined by an array on N points in a 2-D space.
Definition: TPolyLine.h:40