Hello everyone,
TH1F *h1 = new (...);
h1->SetFillStyle(3013);
TH1F *h1 = new (...);
h1->SetFillColor(kRed);
The first code doesnt work, while the second one does… Does anyone have a clue?
Thanks
Andrea
Hello everyone,
TH1F *h1 = new (...);
h1->SetFillStyle(3013);
TH1F *h1 = new (...);
h1->SetFillColor(kRed);
The first code doesnt work, while the second one does… Does anyone have a clue?
Thanks
Andrea
root [0] hpx->Draw();
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [1] hpx->SetFillStyle(3013);
root [2] hpx->SetFillColor(kRed);
root [3] gPad->Modified()
Gives me the attached picture.
[quote=“Andrea_”]
The first code doesnt work
Andrea[/quote]
Hmm, I guess, it’s quite difficult to notice white hatches on a white background So, probably it works but you did not realise that
[quote=“tpochep”][quote=“Andrea_”]
The first code doesnt work
Andrea[/quote]
Hmm, I guess, it’s quite difficult to notice white hatches on a white background So, probably it works but you did not realise that [/quote]
Yes indeed, i was still trying to reproduce your code when i noticed it!
Thanks a lot!
P.S. I thought Black was the default color, White is a bit misleading.