Hello
How can I fill histogramm with some style without filling any color
for example :
TH1F *a;
a->UseCurrentStyle();
a->SetFillColor(0);
a->SetFillStyle(3005);
a->Draw();
The histogramm fill area has no any style . ROOT v. 3.10
alex
Hello
How can I fill histogramm with some style without filling any color
for example :
TH1F *a;
a->UseCurrentStyle();
a->SetFillColor(0);
a->SetFillStyle(3005);
a->Draw();
The histogramm fill area has no any style . ROOT v. 3.10
alex
I am not sure to understand your problem. Here is an example showing how to change the histogram fill style:
void style()
{
TH1F* h1 = new TH1F("h1","Random Gaussian",100,-2,2);
h1->FillRandom("gaus",10000);
h1->SetFillColor(2);
h1->SetFillStyle(3007);
h1->Draw();
}
if I write h1->SetFillCollor(0) instead h1->SetFillColor(2)
then operator h1->SetFillStyle(3007) will not work
it does work but color 0 is white … on a white background you see nothing. Which is normal… try 1