Logo ROOT  
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);
8  pline->Draw("f");
9  pline->Draw();
10 }
TPolyLine
Defined by an array on N points in a 2-D space.
Definition: TPolyLine.h:23
x
Double_t x[n]
Definition: legend1.C:17
TAttLine::SetLineColor
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Definition: TAttLine.h:40
TPolyLine::Draw
virtual void Draw(Option_t *option="")
Draw this polyline with its current attributes.
Definition: TPolyLine.cxx:228
TAttLine::SetLineWidth
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Definition: TAttLine.h:43
pline
TPolyLine * pline
Definition: polyline.C:4
Double_t
double Double_t
Definition: RtypesCore.h:59
y
Double_t y[5]
Definition: polyline.C:3
TAttFill::SetFillColor
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:37