37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
// From www-pnp.physics.ox.ac.uk/~west/root/plotting_with_style.html
|
|
// See also http://hep-www.px.tsukuba.ac.jp/~yuji/root/MyRootTips.html
|
|
void rootlogon ()
|
|
{
|
|
printf("rootlogon.C has been loaded.\n");
|
|
gStyle->SetCanvasColor(10); // or (kWhite) background is no longer mouse-dropping white
|
|
gStyle->SetPalette(1,0); // blue to red false color palette. Use 9 for b/w
|
|
gStyle->SetCanvasBorderMode(0); // turn off canvas borders
|
|
gStyle->SetPadBorderMode(0);
|
|
gStyle->SetPaintTextFormat("5.2f"); // What precision to put numbers if plotted with "TEXT"
|
|
gStyle->SetTitleColor(1);
|
|
//gStyle->SetFillColor(0);
|
|
//gStyle->SetPadColor(10);
|
|
gStyle->SetStatColor(10); // sets the filling of statistic box to white
|
|
gStyle->SetStatFont(62);
|
|
gStyle->SetStatBorderSize(0);
|
|
//gStyle->SetPaperSize(20,24);
|
|
|
|
//gStyle->SetLabelColor(6,"xy");
|
|
gStyle->SetTitleBorderSize(0);
|
|
gStyle->SetTitleFillColor(10);
|
|
//gStyle->SetTitleColor(4,"xy");
|
|
//gStyle->SetPadColor(23);
|
|
|
|
// For publishing:
|
|
gStyle->SetLineWidth(2.);
|
|
//gStyle->SetTextSize(1.1);
|
|
gStyle->SetLabelSize(0.05,"xy");
|
|
gStyle->SetTitleSize(0.05,"xy");
|
|
gStyle->SetTitleOffset(1.1,"x");
|
|
gStyle->SetTitleOffset(1.0,"y");
|
|
gStyle->SetPadTopMargin(0.1);
|
|
gStyle->SetPadRightMargin(0.1);
|
|
gStyle->SetPadBottomMargin(0.16);
|
|
gStyle->SetPadLeftMargin(0.12);
|
|
}
|