StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
boldStyle.C
1 //
3 // $Id: boldStyle.C,v 1.3 2000/02/04 16:42:45 posk Exp $
4 //
5 // Author: Art Poskanzer, LBNL, Sep. 1999
6 // Description: Style file for presentation histograms.
7 // Just execute this macro before making your graphs.
8 // Begining with ROOT 2.23/11 you can do
9 // gROOT->SetStyle("Bold");
10 // gROOT->ForceStyle();
11 // You can return to defaultStyle with
12 // gROOT->SetStyle("Default");
13 //
15 //
16 // $Log: boldStyle.C,v $
17 // Revision 1.3 2000/02/04 16:42:45 posk
18 // Documented the availability in ROOT.
19 //
20 // Revision 1.2 1999/12/22 21:43:56 posk
21 // Reduced the line widths to compensate for the increase in postscript
22 // line width which started in ROOT 2.23/08.
23 //
24 // Revision 1.1 1999/10/28 21:24:07 posk
25 // Style file for making presentation histograms.
26 //
27 //
29 
30 // A graph made with the ROOT defaultStyle:
31 // Begin_Html <P ALIGN=CENTER> <IMG SRC="gif/defaultStyle.gif"> </P> End_Html //
32 //
33 // The same graph made with this boldStyle:
34 // Begin_Html <P ALIGN=CENTER> <IMG SRC="gif/boldStyle.gif"> </P> End_Html //
35 
36 {
37 TStyle* myStyle = new TStyle("boldStyle", "Bold Style");
38 
39 myStyle->SetPalette(1,0);
40 myStyle->SetCanvasColor(10);
41 myStyle->SetCanvasBorderMode(0);
42 myStyle->SetLineWidth(2);
43 myStyle->SetFrameLineWidth(2);
44 myStyle->SetFrameFillColor(10);
45 myStyle->SetPadColor(10);
46 myStyle->SetPadTickX(1);
47 myStyle->SetPadTickY(1);
48 myStyle->SetPadBottomMargin(0.15);
49 myStyle->SetPadLeftMargin(0.17);
50 myStyle->SetHistLineWidth(3);
51 myStyle->SetHistLineColor(kRed);
52 myStyle->SetLabelSize(0.04,"X");
53 myStyle->SetLabelSize(0.04,"Y");
54 myStyle->SetLabelSize(0.04,"Z");
55 //myStyle->SetLabelOffset(0.01,"X");
56 //myStyle->SetLabelOffset(0.01,"Y");
57 myStyle->SetLabelColor(kBlue,"X");
58 myStyle->SetLabelColor(kBlue,"Y");
59 myStyle->SetLabelColor(kBlue,"Z");
60 myStyle->SetTitleSize(0.06,"X");
61 myStyle->SetTitleSize(0.06,"Y");
62 myStyle->SetTitleSize(0.06,"Z");
63 //myStyle->SetTitleOffset(0.08,"X");
64 //myStyle->SetTitleOffset(0.08,"Y");
65 myStyle->SetTitleColor(10);
66 myStyle->SetTitleTextColor(kBlue);
67 //myStyle->SetOptStat(1110111);
68 myStyle->SetStatColor(10);
69 myStyle->SetFuncWidth(3);
70 myStyle->SetFuncColor(kGreen);
71 
72 gROOT->ForceStyle();
73 gStyle->ls();
74 }