ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/Tools/tdrStyle.cc
(Generate patch)

Comparing UserCode/FGolf/Tools/tdrStyle.cc (file contents):
Revision 1.1 by fgolf, Sat Mar 17 19:42:24 2012 UTC vs.
Revision 1.2 by fgolf, Sat Jul 14 22:50:05 2012 UTC

# Line 1 | Line 1
1   #include "TStyle.h"
2   #include "TPad.h"
3 + #include "TColor.h"
4  
5   #include "tdrStyle.h"
6  
# Line 20 | Line 21 | void setTDRStyle() {
21  
22      tdrStyle = new TStyle("tdrStyle","Style for P-TDR");
23  
24 +    // More better palette
25 +    const Int_t NRGBs = 5;
26 +    const Int_t NCont = 255;
27 +    
28 +    Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
29 +    Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
30 +    Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
31 +    Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
32 +    TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
33 +    gStyle->SetNumberContours(NCont);
34 +
35   // For the canvas:
36      tdrStyle->SetCanvasBorderMode(0);
37      tdrStyle->SetCanvasColor(kWhite);
# Line 93 | Line 105 | void setTDRStyle() {
105      // tdrStyle->SetStatY(Float_t y = 0);
106  
107   // Margins:
108 <    tdrStyle->SetPadTopMargin(0.08);
109 <    tdrStyle->SetPadBottomMargin(0.10);
110 <    tdrStyle->SetPadLeftMargin(0.15);
108 >    tdrStyle->SetPadTopMargin(0.04);
109 >    tdrStyle->SetPadBottomMargin(0.14);
110 >    tdrStyle->SetPadLeftMargin(0.10);
111   //  tdrStyle->SetPadRightMargin(0.035);
112 <    tdrStyle->SetPadRightMargin(0.04);
112 >    tdrStyle->SetPadRightMargin(0.14);
113  
114   // For the Global title:
115  
# Line 121 | Line 133 | void setTDRStyle() {
133      tdrStyle->SetTitleSize(0.06, "XYZ");
134      // tdrStyle->SetTitleXSize(Float_t size = 0.02); // Another way to set the size?
135      // tdrStyle->SetTitleYSize(Float_t size = 0.02);
136 <    tdrStyle->SetTitleXOffset(1.1);
137 <    tdrStyle->SetTitleOffset(1.7, "Y"); // Another way to set the Offset
136 >    tdrStyle->SetTitleXOffset(0.9);
137 >    tdrStyle->SetTitleOffset(0.8, "Y"); // Another way to set the Offset
138  
139   // For the axis labels:
140  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines