Filled TPolyLines

Norbert Danneberg (norbert.dannebereg@psi.ch)
Thu, 04 Jun 1998 17:31:52 +0200


Hi,
how can I draw filled (colored) TPolyLine ?
The solution I tried draws only the line,
no color-filled area.

{
gROOT->Reset();
Float_t x[7] = {0.2,0.3,0.3,0.2,0.1,0.1,0.2};
Float_t y[7] = {0.4,0.3,0.2,0.1,0.2,0.3,0.4};
TPolyLine *pl1 = new TPolyLine(7,x,y);
pl1.SetFillColor(6);
pl1.SetFillStyle(3008);
pl1.Draw();
}

Thanks,

Norbert