Hello, I use gROOT->SetStyle(“Plain”) to get the backgrounds of my plots white in stead of grey but the TLegend is still grey. How can I make that white too? I tried a number of things (googling), for example gStyle->SetCanvasColor(10); but this does not help either
Many thanks in advance,
I cannot reproduce your problem.
Are you calling gROOT->SetStyle(“Plain”) after having drawn the canvas?
If yes, call
h1 = new TH1F("h1","",100,-5,5);
// TLegend *leg = (TLegend*)gPad->BuildLegend();
No, at the very beginning I have:
Then further on:
TCanvas lumiCanvL7(“lumiCanvL7”,“H1 luminosity; last 7 days.”, 1,1, 1200,1200);
gStyle->SetCanvasColor(10); // This does not seem to work neither
And see the output (where all is white except the TLegend) attached (or see: desy.de/~ytsen/lumiWatcher/debug/lumiL7.eps)
This BuildLegend option does not work for me, maybe my root version is too old 4.00.08. Thanks anyway,
Sorry, I confused the legend and the stats box.