Re: [ROOT] TF1 fill attributes

From: miha.puc@marvin.fmf.uni-lj.si
Date: Wed May 23 2001 - 01:34:06 MEST


Dear Rene!

Thank you.
Another question is how do I get rid of (y)axis labels and
retaining tickmarks and grid when drawing TF1 objects? Setting Ndivisions
to 0 deletes those too and this is the best I was able to do so far.

Miha

On Mon, 21 May 2001, Rene Brun wrote:

> 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