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);
5  pline->SetFillColor(38);
6  pline->SetLineColor(2);
7  pline->SetLineWidth(4);
8  pline->Draw("f");
9  pline->Draw();
10 }
TPolyLine
Definition: TPolyLine.h:23
x
Double_t x[n]
Definition: legend1.C:17
TPolyLine::Draw
virtual void Draw(Option_t *option="")
Draw this polyline with its current attributes.
Definition: TPolyLine.cxx:228
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