SetFillColor for TF1 not working

Dear experts,

I am trying to use SetFillColor of TF1 .
The way I am doing it is for function f1:

f1->SetFillColor(38); f1->Draw("fc");
But it is not working.
could you please let me know where I am missing?


root [0] TF1 f2("f2","x*x",-1,1);
root [1] f2->SetFillStyle(1001)
root [2] f2->SetFillColor(3)
root [3] f2->Draw("CF");

Dear Couet,

Thanks. It worked. I was missing SetFillStyle();

Best Regards,