I called the hist->SetFillColor(a_color), see[1], for my hist but when I open the root file, the hist is not fill. When I use the hist->SetLineColor(a_color) everything work. Can you please tell me what is wrong?
my code is more complicate then yours. Maybe something wrong is happening but the SetFillColor is not working. I send you the code that I’m using, can you please have a look, do you see something wrong?
what I want is to see the hist fill with color when using hist->SetFillColor(color).
right now I’m writing the hist in a root file (no ->Draw()) involve.
Where do you want me to call a Draw(“hist”)?
when I did at line 124 of file.C:
for(int i=0; i<9; i++) { hmass[i]->Draw(“hist”); hmass[i]->Write(); }
it still not working. Do you know what is wrong?
Yes you write the histograms… I got that… and they are stored with the correct fill color… you can see that when later you Draw them with the “hist” option .
Now the question is: how did you see it is not working ?