Re: [ROOT] TF1 fill attributes

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon May 21 2001 - 14:51:37 MEST


Hi Miha,

To force a fill area, you must use teh draw option "F". eg

root [0] TF1 f1("f1","abs(sin(x)/x)",0,10)
root [1] f1.SetFillColor(38)
root [2] f1.Draw("fc")

The option "F" is one of many options not yet documented. I have added a comment
in TF1::Draw in the CVS version.

Rene Brun

miha.puc@marvin.fmf.uni-lj.si wrote:
> 
> Hi!
> I cant set fill attributes for TF1 objects in compiled code.
> I tried
>    f1->GetHistogram()->SetFillStyle(1001);
>    f1->GetHistogram()->SetFillColor(16);
> and
>    f2->SetFillStyle(1001);
>    f2->SetFillColor(10);
> and via popup menu in canvas. Nothing happens.
> 
> Line attributes work OK.
> 
> I use 3.01/02  18 May 2001 on RH 6.2 Linux.
> Is there a solution?
> Miha
> --



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:46 MET