14 QStyle::QStyle(
const char *name,
const char *title) : TStyle(name,title) {}
21 int *Map=
new int [ncolors];
23 double s[]={0.00,1.0};
24 double r[]={2./255,0./255};
25 double g[]={35./255,247./255};
26 double b[]={255./255,255./255};
27 Int_t FI=TColor::CreateGradientColorTable(nstops,s,r,g,
b,ncolors);
28 for(
int i=0;i<ncolors;i++) Map[i]=FI+i;
29 this->SetPalette(ncolors,Map);
30 this->SetNumberContours(256);
41 time_t today=time(NULL);
43 strftime(buffer,32,
"%b-%d-%Y",gmtime(&today));
47 DateText.SetTextAlign(11);
48 DateText.SetTextSize(.03);
49 DateText.DrawTextNDC(xpos,ypos,Date);
57 const char* defaultStyle =
"qprod";
58 gROOT->SetStyle(defaultStyle);
59 std::cout<<
"QStyles: Style\""<<defaultStyle<<
"\" has been set"<<std::endl;
67 this->SetFrameBorderMode(0);
68 this->SetFrameFillColor(0);
69 this->SetCanvasBorderMode(0);
70 this->SetPadBorderMode(0);
72 this->SetCanvasColor(0);
73 this->SetTitleFillColor(0);
74 this->SetTitleBorderSize(1);
75 this->SetStatColor(0);
76 this->SetStatBorderSize(1);
77 this->SetLegendBorderSize(1);
83 this->SetTitleAlign(23);
84 this->SetTitleBorderSize(0);
85 this->SetLegendBorderSize(0);
87 this->SetTitleFont(myFont);
89 this->SetOptStat(
"rmei");
90 this->SetStatFont(myFont);
95 this->SetTextFont(myFont);
96 this->SetLabelFont(myFont,
"xyz");
97 this->SetTitleFont(myFont,
"xyz");
98 this->SetTitleFont(myFont,
"t");
101 this->SetLabelSize(size,
"xyz");
102 this->SetTitleSize(size,
"xyz");
103 this->SetPadBottomMargin(0.10);
104 this->SetPadLeftMargin(0.10);
112 this->SetFrameBorderMode(0);
113 this->SetFrameFillColor(0);
114 this->SetCanvasBorderMode(0);
115 this->SetPadBorderMode(0);
116 this->SetPadColor(0);
117 this->SetCanvasColor(0);
118 this->SetTitleFillColor(0);
119 this->SetTitleBorderSize(1);
120 this->SetStatColor(0);
121 this->SetStatBorderSize(1);
122 this->SetLegendBorderSize(1);
124 this->SetOptTitle(1);
125 this->SetTitleX(0.5);
126 this->SetTitleAlign(23);
127 this->SetTitleBorderSize(0);
128 this->SetLegendBorderSize(0);
130 this->SetTitleFont(myFont);
131 this->SetOptFit(112);
132 this->SetOptStat(
"rmei");
133 this->SetStatFont(myFont);
134 this->SetStatX(0.93);
137 this->SetStatH(0.15);
138 this->SetTextFont(myFont);
139 this->SetLabelFont(myFont,
"xyz");
140 this->SetTitleFont(myFont,
"xyz");
141 this->SetTitleFont(myFont,
"t");
144 this->SetLabelSize(size,
"xyz");
145 this->SetTitleSize(size,
"xyz");
146 this->SetPadBottomMargin(0.13);
147 this->SetPadLeftMargin(0.12);
148 this->SetPadRightMargin(0.07);
150 this->SetTitleFontSize(.07);
151 this->SetLineWidth(2);
152 this->SetFrameLineWidth(2);
153 this->SetHistLineWidth(2);
161 TString name = this->GetName();
162 TString title = this->GetTitle();
164 TStyle* prodStyle = gROOT->GetStyle(
"qprod");
166 (*me) = (*prodStyle);
168 this->SetTitle(title);
170 this->SetOptTitle(0);
171 this->SetLabelSize(0.04,
"xyz");
172 this->SetTitleSize(0.05,
"xyz");
173 this->SetPadBottomMargin(0.11);
174 this->SetPadLeftMargin(0.1);
175 this->SetPadRightMargin(.02);
176 this->SetPadTopMargin(.02);
QStyle(const char *name="", const char *title="")
static void DrawDianaDate(const char *date="Today", Double_t xpos=.01, Double_t ypos=.01)
void LoadDefaultPalette()