Re: [ROOT] Fill attributes for a TF1

From: Laurent APHECETCHE (aphecetc@in2p3.fr)
Date: Tue Oct 10 2000 - 15:49:29 MEST


Patois Yannick wrote:
> 
> Hi rooters,
> 
> I try to display a function with some filling attributes but the curve
> is never filled.
> 
> root [0] f1=new TF1("f1","gaus",-5,5)
> root [1] f1->SetParameter(0,1)
> root [2] f1->SetParameter(1,1)
> root [3] f1->SetParameter(2,1)
> root [4] f1->SetFillColor(27);
> root [6] f1->SetFillStyle(3005);
> root [7] f1->Draw()
> 
> Doest fill f1 with a pattern.
> 

Hi Yannick,

Don't know if this is what you want, but try this :
f1->Draw("H"), i.e. draw function as an histogram. Then it's filled.

Regards,
-- 
Dr. Laurent APHECETCHE (mailto:aphecetc@in2p3.fr) | TAPS/PHENIX/ALICE
SUBATECH-Ecole des Mines de Nantes-4 rue Alfred Kastler-44070 NANTES
cedex 03
TEL (+33/0) 2 51 85 84 17 - FAX (+33/0) 2 51 85 84 24 (France)
http://www-subatech.in2p3.fr/~photons -
http://www.phenix.bnl.gov/~aphecetc



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET