Dear ROOT team,
I am trying to change the background of a pad on top of which an histo is drawn. It seems simple, it is simple, but it doesn’t work as I expect it
See this example where I change the background of the pad before drawing the histo, draw the histo, and change back the color :
root [0] TCanvas c
root [1] TH1F *h = new TH1F("adsf", "adsf", 100, 0, 99)
root [2] gPad->SetFillColor(43)
root [3] h->Draw()
root [4] gPad->SetFillColor(19)
root [5] gPad->Modified()
The result is a grey pad with a coloured histogram (see picture). I would expect that
- the histo’s color is never changed (as when you draw first the histo and then change the color of the pad)
- the histo’s color is at least changed back at step 4…
What do you think ?
Thanks
Barth