I checked and find SetFillColor is a virtual method of TAttFill class. I was wondering why TLegend->SetFillColor("#") is not working in a code like this.
TLegend *t=new TLegend(0.1,0.1,0.2,0.2);
t->SetFillColor(“2”);
t->Draw();
I checked and find SetFillColor is a virtual method of TAttFill class. I was wondering why TLegend->SetFillColor("#") is not working in a code like this.
TLegend *t=new TLegend(0.1,0.1,0.2,0.2);
t->SetFillColor(“2”);
t->Draw();
because you should do:
t->SetFillColor(2)
or
t->SetFillColor(kRed)
Is there a way to put something in rootlogin.C along the lines of
gStyle->SetLegendFillColor(0); ?
TStyle allows to set already a lot of global attributes. Surely we cannot but all the attributes of all the ROOT objects in TStyle … This one can be consider… but should surely think twice a put it only if it is really useful.
Ok, thanks anyway.