Logo ROOT  
Reference Guide
TStyle.cxx
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Rene Brun 12/12/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #include <cstring>
13 #include <cstdio>
14 #include <cctype>
15 #include <cmath>
16 #include <iostream>
17 #include <fstream>
18 
19 #include "strlcpy.h"
20 #include "TApplication.h"
21 #include "TColor.h"
22 #include "TDatime.h"
23 #include "TROOT.h"
24 #include "TStyle.h"
25 #include "TSystem.h"
26 #include "TVirtualPad.h"
27 #include "TVirtualMutex.h"
28 #include "TEnv.h"
29 
31 const UInt_t kTakeStyle = BIT(17);
32 
34 
35 /** \class TStyle
36 \ingroup Base
37  \ingroup GraphicsAtt
38 
39 TStyle objects may be created to define special styles.
40 By default ROOT creates a default style that can be accessed via
41 the gStyle pointer.
42 
43 This class includes functions to set some of the following object attributes.
44  - Canvas
45  - Pad
46  - Histogram axis
47  - Lines
48  - Fill areas
49  - Text
50  - Markers
51  - Functions
52  - Histogram Statistics and Titles
53 
54 All objects that can be drawn in a pad inherit from one or more attribute classes
55 like TAttLine, TAttFill, TAttText, TAttMarker. When the objects are created, their
56 default attributes are taken from the current style. The current style is an object
57 of the class[TStyle](https://root.cern.ch/doc/master/classTStyle.html) and can be
58 referenced via the global variable `gStyle` (in TStyle.h).
59 
60 ROOT provides two styles called "Default" and "Plain". The "Default"
61 style is created simply by:
62 
63 ~~~ .cpp
64 auto default = new TStyle("Default","Default Style");
65 ~~~
66 
67 The "**Plain**" style can be used if you are working on a monochrome display or
68 if you want to get a "conventional" Postscript output. These are the instructions
69 in the ROOT constructor to create the "Plain*" style.
70 
71 ```
72 auto plain = new TStyle("Plain","Plain Style (no colors/fill areas)");
73 
74  plain->SetCanvasBorderMode(0);
75  plain->SetPadBorderMode(0);
76  plain->SetPadColor(0);
77  plain->SetCanvasColor(0);
78  plain->SetTitleColor(0);
79  plain->SetStatColor(0);
80 ```
81 
82 You can set the current style with:
83 
84 ```
85 gROOT->SetStyle(style_name);
86 ```
87 
88 You can get a pointer to an existing style with:
89 
90 ```
91 auto style = gROOT->GetStyle(style_name);
92 ```
93 
94 You can create additional styles with:
95 
96 ```
97  TStyle *st1 = new TStyle("st1","my style");
98  st1->Set....
99  st1->cd(); this becomes now the current style gStyle
100 ```
101 
102 In your [rootlogon.C](https://root.cern.ch/doc/master/classexamples/startsession.log.html)
103 file, you can redefine the default parameters via statements like:
104 
105 ```
106  gStyle->SetStatX(0.7);
107  gStyle->SetStatW(0.2);
108  gStyle->SetLabelOffset(1.2);
109  gStyle->SetLabelFont(72);
110 ```
111 
112 Note that when an object is created, its attributes are taken from the current
113 style. For example, you may have created an histogram in a previous session,
114 saved it in a file. Meanwhile, if you have changed the style, the histogram will
115 be drawn with the old attributes. You can force the current style attributes to
116 be set when you read an object from a file by calling:
117 
118 ```
119 gROOT->ForceStyle();
120 ```
121 
122 before reading the objects from the file.
123 
124 Let's assume you have a canvas or pad with your histogram or any other object,
125 you can force these objects to get the attributes of the current style via:
126 
127 ```
128 canvas->UseCurrentStyle();
129 ```
130 
131 The description of the style functions should be clear from the name of the
132 TStyle Setters or Getters. Some functions have an extended description, in particular:
133 
134  - TStyle:SetLabelFont.
135  - TStyle:SetLineStyleString, to set the format of dashed lines.
136  - TStyle:SetOptStat.
137  - TStyle:SetPalette to change the colors palette.
138  - TStyle:SetTitleOffset.
139 
140 */
141 
142 ////////////////////////////////////////////////////////////////////////////////
143 /// Default constructor.
144 
146 {
147  Reset();
148 }
149 
150 ////////////////////////////////////////////////////////////////////////////////
151 /// Create a new TStyle.
152 /// The following names are reserved to create special styles
153 /// - `Classic`: the default style set in TStyle::Reset
154 /// - `Plain`: a black&white oriented style
155 /// - `Bold`
156 /// - `Video`
157 /// - `Pub`
158 /// - `Modern`
159 /// - `ATLAS`: style used by the ATLAS experiment
160 /// - `BELLE2`: style used by the BELLE II experiment
161 /// (see the definition of these styles below).
162 ///
163 /// Note a side-effect of calling gStyle->SetFillColor(0). This is nearly
164 /// equivalent of selecting the "Plain" style.
165 ///
166 /// Many graphics attributes may be set via the TStyle, see in particular
167 /// - TStyle::SetNdivisions
168 /// - TStyle::SetAxisColor
169 /// - TStyle::SetHeaderPS
170 /// - TStyle::SetTitlePS
171 /// - TStyle::SetLabelColor
172 /// - TStyle::SetLabelFont
173 /// - TStyle::SetLabelOffset
174 /// - TStyle::SetLabelSize
175 /// - TStyle::SetOptDate
176 /// - TStyle::SetLineStyleString
177 /// - TStyle::SetOptFit
178 /// - TStyle::SetOptStat
179 /// - TStyle::SetPaperSize
180 /// - TStyle::SetTickLength
181 /// - TStyle::SetTitleOffset
182 /// - TStyle::SetTitleSize
183 /// - TStyle::SetPalette
184 /// - TStyle::SetTimeOffset
185 /// - TStyle::SetStripDecimals
186 ///
187 /// The current style is pointed by gStyle.
188 ///
189 /// When calling myStyle->cd(), gStyle is set to myStyle.
190 ///
191 /// One can also use gROOT to change the current style, e.g.
192 ///
193 /// gROOT->SetStyle("Plain") will change the current style gStyle to the
194 /// "Plain" style
195 ///
196 /// See also TROOT::ForceStyle and TROOT::UseCurrentStyle
197 
198 TStyle::TStyle(const char *name, const char *title)
199 {
200  TString style_name = name;
201 
202  SetNameTitle(style_name, title);
203 
204  // If another style was already created with the same name, it is overwrite.
205  delete gROOT->GetStyle(style_name);
206 
207  Reset();
208 
209  {
211  gROOT->GetListOfStyles()->Add(this);
212  }
213 
214  if (strcmp(style_name,"Modern") == 0) {
215  // Modern style
219  SetCanvasColor(0);
220  SetPadBorderMode(0);
221  SetPadColor(0);
222  SetStatColor(0);
223  SetTitleFont(42,"");
224  SetLabelFont(42,"x");
225  SetTitleFont(42,"x");
226  SetLabelFont(42,"y");
227  SetTitleFont(42,"y");
228  SetLabelFont(42,"z");
229  SetTitleFont(42,"z");
230  SetStatFont(42);
231  SetLabelSize(0.035,"x");
232  SetTitleSize(0.035,"x");
233  SetLabelSize(0.035,"y");
234  SetTitleSize(0.035,"y");
235  SetLabelSize(0.035,"z");
236  SetTitleSize(0.035,"z");
237  SetTitleSize(0.050,"");
238  SetTitleAlign(23);
239  SetTitleX(0.5);
242  SetTitleStyle(0);
243  SetTitleOffset(0.,"Y");
245  SetOptStat(1111);
246  SetStatY(0.935);
250  SetLegendFont(42);
251  SetLegendTextSize(0.);
252  SetFuncWidth(2);
253  SetFuncColor(2);
254  }
255  if (strcmp(style_name,"Plain") == 0) {
256  // May be a standard style to be initialised
260  SetPadBorderMode(0);
261  SetPadColor(0);
262  SetCanvasColor(0);
265  SetStatColor(0);
268  return;
269  }
270  if (strcmp(style_name,"Bold") == 0) {
271  // Authors: Art Poskanzer and Jim Thomas, LBNL, Oct. 2000
272  SetPalette(1,0);
273  SetCanvasColor(10);
276  SetFrameFillColor(10);
277  SetPadColor(10);
278  SetPadTickX(1);
279  SetPadTickY(1);
280  SetPadBottomMargin(0.15);
281  SetPadLeftMargin(0.15);
282  SetHistLineWidth(3);
284  SetFuncWidth(3);
286  SetLineWidth(3);
287  SetLabelSize(0.05,"xyz");
288  SetLabelOffset(0.01,"y");
289  SetLabelColor(kBlue,"xy");
290  SetTitleSize(0.06,"xyz");
291  SetTitleOffset(1.3,"Y");
292  SetTitleFillColor(10);
294  SetStatColor(10);
295  return;
296  }
297  if (strcmp(style_name,"Video") == 0) {
298  // Author: Art Poskanzer, LBNL, Oct. 1999
299  SetPalette(1,0);
300  SetCanvasColor(10);
303  SetFrameFillColor(10);
304  SetPadColor(10);
305  SetPadTickX(1);
306  SetPadTickY(1);
307  SetPadBottomMargin(0.2);
308  SetPadLeftMargin(0.2);
309  SetHistLineWidth(8);
311  SetLabelSize(0.06,"xyz");
312  SetLabelColor(kBlue,"xyz");
313  SetTitleSize(0.08,"xyz");
314  SetTitleFillColor(10);
316  SetStatColor(10);
317  SetFuncWidth(8);
319  SetLineWidth(3);
320  return;
321  }
322  if (strcmp(style_name,"Pub") == 0) {
323  // Authors: Art Poskanzer and Jim Thomas, LBNL, Oct. 2000
324  SetOptTitle(0);
325  SetOptStat(0);
326  SetPalette(8,0);
327  SetCanvasColor(10);
330  SetFrameFillColor(10);
331  SetPadColor(10);
332  SetPadTickX(1);
333  SetPadTickY(1);
334  SetPadBottomMargin(0.15);
335  SetPadLeftMargin(0.15);
336  SetHistLineWidth(3);
338  SetFuncWidth(3);
340  SetLineWidth(3);
341  SetLabelSize(0.05,"xyz");
342  SetLabelOffset(0.01,"y");
343  SetLabelColor(kBlack,"xyz");
344  SetTitleSize(0.06,"xyz");
345  SetTitleOffset(1.3,"y");
346  SetTitleFillColor(10);
348  return;
349  }
350  if (strcmp(style_name,"ATLAS") == 0) {
351  // Author: M.Sutton - Atlas Collaboration 2010
355  SetCanvasColor(0);
356  SetPadBorderMode(0);
357  SetPadColor(0);
358  SetStatColor(0);
359  SetPaperSize(20,26);
360  SetPadTopMargin(0.05);
361  SetPadRightMargin(0.05);
362  SetPadBottomMargin(0.16);
363  SetPadLeftMargin(0.16);
364  SetTitleXOffset(1.4);
365  SetTitleYOffset(1.4);
366  Int_t font = 42;
367  Double_t tsize=0.05;
368  SetTextFont(font);
369  SetTextSize(tsize);
370  SetLabelFont(font,"x");
371  SetTitleFont(font,"x");
372  SetLabelFont(font,"y");
373  SetTitleFont(font,"y");
374  SetLabelFont(font,"z");
375  SetTitleFont(font,"z");
376  SetLabelSize(tsize,"x");
377  SetTitleSize(tsize,"x");
378  SetLabelSize(tsize,"y");
379  SetTitleSize(tsize,"y");
380  SetLabelSize(tsize,"z");
381  SetTitleSize(tsize,"z");
382  SetMarkerStyle(20);
383  SetMarkerSize(1.2);
384  SetHistLineWidth(2.);
385  SetLineStyleString(2,"[12 12]");
386  SetErrorX(0.0001); // get rid of X error bars (as recommended in ATLAS figure guidelines)
387  SetEndErrorSize(0.); // get rid of error bar caps
388  SetOptTitle(0);
389  SetOptStat(0);
390  SetOptFit(0);
391  SetPadTickX(1);
392  SetPadTickY(1);
393  }
394  if (strcmp(style_name,"BELLE2") == 0) {
395  // use plain black on white colors
396  Int_t icol=0; // WHITE
397  SetFrameBorderMode(icol);
398  SetFrameFillColor(icol);
399  SetCanvasBorderMode(icol);
400  SetCanvasColor(icol);
401  SetPadBorderMode(icol);
402  SetPadColor(icol);
403  SetStatColor(icol);
404  //SetFillColor(icol); // don't use: white fill color for *all* objects
405 
406  // set the paper & margin sizes
407  SetPaperSize(20,26);
408 
409  // set margin sizes
410  SetPadTopMargin(0.05);
411  SetPadRightMargin(0.05);
412  SetPadBottomMargin(0.16);
413  SetPadLeftMargin(0.16);
414 
415  // set title offsets (for axis label)
416  SetTitleXOffset(1.0);
417  SetTitleYOffset(1.0);
418 
419  // use large fonts
420  //Int_t font=72; // Helvetica italics
421  Int_t font=42; // Helvetica
422  Double_t tsize=0.05;
423  SetTextFont(font);
424  SetTextSize(tsize);
425 
426  SetLabelFont(font,"x");
427  SetTitleFont(font,"x");
428  SetLabelFont(font,"y");
429  SetTitleFont(font,"y");
430  SetLabelFont(font,"z");
431  SetTitleFont(font,"z");
432 
433  SetLabelSize(tsize,"x");
434  SetTitleSize(.065,"x");
435  SetLabelSize(tsize,"y");
436  SetTitleSize(.065,"y");
437  SetLabelSize(tsize,"z");
438  SetTitleSize(.065,"z");
439 
440  SetTitleOffset(1.1,"x");
441  SetTitleOffset(1.1,"y");
442  SetTitleOffset(1.1,"z");
443 
444  SetLabelOffset(0.015,"x");
445  SetLabelOffset(0.015,"y");
446  SetLabelOffset(0.015,"z");
447 
448  SetTickLength(0.03,"x");
449  SetTickLength(0.02,"y"); // This way we slighty achive equal length ticks for x and y
450 
451  // use bold lines and markers
452  SetMarkerStyle(20);
453  SetMarkerSize(0.9);
454  SetHistLineWidth(2);
455  SetLineStyleString(2,"[12 12]"); // postscript dashes
456 
457  // get rid of X error bars
458  SetErrorX(0.001);
459  // get rid of error bar caps
460  SetEndErrorSize(0.);
461 
462  // do not display any of the standard histogram decorations
463  SetOptTitle(0);
464  SetOptStat(0);
465  SetOptFit(0);
466 
467  // put tick marks on top and RHS of plots
468  SetPadTickX(0);
469  SetPadTickY(0);
470 
472  }
473 }
474 
475 ////////////////////////////////////////////////////////////////////////////////
476 /// Destructor.
477 
479 {
481  gROOT->GetListOfStyles()->Remove(this);
482  if (gStyle == this) gStyle = (TStyle*)gROOT->GetListOfStyles()->Last();
483 }
484 
485 ////////////////////////////////////////////////////////////////////////////////
486 /// Copy constructor and assignment operator.
487 
489 {
490  style.Copy(*this);
491 }
492 
494 {
495  style.Copy(*this);
496  return *this;
497 }
498 
499 ////////////////////////////////////////////////////////////////////////////////
500 /// Browse the style object.
501 
503 {
504  cd();
505 }
506 
507 ////////////////////////////////////////////////////////////////////////////////
508 /// Create some standard styles.
509 
511 {
512  TColor *col = new TColor(); // force the initialisation of fgPalette
513  new TStyle("Plain", "Plain Style (no colors/fill areas)");
514  new TStyle("Bold", "Bold Style");;
515  new TStyle("Video", "Style for video presentation histograms");
516  new TStyle("Pub", "Style for Publications");
517  new TStyle("Classic","Classic Style");
518  new TStyle("Default","Equivalent to Classic");
519  new TStyle("Modern", "Modern Style");
520  new TStyle("ATLAS", "ATLAS Style");
521  new TStyle("BELLE2", "Belle II Style");
522  delete col;
523 }
524 
525 ////////////////////////////////////////////////////////////////////////////////
526 /// Change current style.
527 
529 {
530  gStyle = this;
531 }
532 
533 ////////////////////////////////////////////////////////////////////////////////
534 /// Copy this style.
535 
536 void TStyle::Copy(TObject &obj) const
537 {
538  TAttLine::Copy(((TStyle&)obj));
539  TAttFill::Copy(((TStyle&)obj));
540  TAttMarker::Copy(((TStyle&)obj));
541  TAttText::Copy(((TStyle&)obj));
542  fXaxis.Copy(((TStyle&)obj).fXaxis);
543  fYaxis.Copy(((TStyle&)obj).fYaxis);
544  fZaxis.Copy(((TStyle&)obj).fZaxis);
545  fAttDate.Copy(((TStyle&)obj).fAttDate);
546  ((TStyle&)obj).fIsReading = fIsReading;
547  ((TStyle&)obj).fScreenFactor = fScreenFactor;
548  ((TStyle&)obj).fCanvasPreferGL = fCanvasPreferGL;
549  ((TStyle&)obj).fCanvasColor = fCanvasColor;
550  ((TStyle&)obj).fCanvasBorderSize = fCanvasBorderSize;
551  ((TStyle&)obj).fCanvasBorderMode = fCanvasBorderMode;
552  ((TStyle&)obj).fCanvasDefH = fCanvasDefH;
553  ((TStyle&)obj).fCanvasDefW = fCanvasDefW;
554  ((TStyle&)obj).fCanvasDefX = fCanvasDefX;
555  ((TStyle&)obj).fCanvasDefY = fCanvasDefY;
556  ((TStyle&)obj).fPadColor = fPadColor;
557  ((TStyle&)obj).fPadBorderSize = fPadBorderSize;
558  ((TStyle&)obj).fPadBorderMode = fPadBorderMode;
559  ((TStyle&)obj).fPadBottomMargin = fPadBottomMargin;
560  ((TStyle&)obj).fPadTopMargin = fPadTopMargin;
561  ((TStyle&)obj).fPadLeftMargin = fPadLeftMargin;
562  ((TStyle&)obj).fPadRightMargin = fPadRightMargin;
563  ((TStyle&)obj).fPadGridX = fPadGridX;
564  ((TStyle&)obj).fPadGridY = fPadGridY;
565  ((TStyle&)obj).fPadTickX = fPadTickX;
566  ((TStyle&)obj).fPadTickY = fPadTickY;
567  ((TStyle&)obj).fPaperSizeX = fPaperSizeX;
568  ((TStyle&)obj).fPaperSizeY = fPaperSizeY;
569  ((TStyle&)obj).fFuncColor = fFuncColor;
570  ((TStyle&)obj).fFuncStyle = fFuncStyle;
571  ((TStyle&)obj).fFuncWidth = fFuncWidth;
572  ((TStyle&)obj).fGridColor = fGridColor;
573  ((TStyle&)obj).fGridStyle = fGridStyle;
574  ((TStyle&)obj).fGridWidth = fGridWidth;
575  ((TStyle&)obj).fHatchesSpacing = fHatchesSpacing;
576  ((TStyle&)obj).fHatchesLineWidth = fHatchesLineWidth;
577  ((TStyle&)obj).fFrameFillColor = fFrameFillColor;
578  ((TStyle&)obj).fFrameFillStyle = fFrameFillStyle;
579  ((TStyle&)obj).fFrameLineColor = fFrameLineColor;
580  ((TStyle&)obj).fFrameLineStyle = fFrameLineStyle;
581  ((TStyle&)obj).fFrameLineWidth = fFrameLineWidth;
582  ((TStyle&)obj).fFrameBorderSize = fFrameBorderSize;
583  ((TStyle&)obj).fFrameBorderMode = fFrameBorderMode;
584  ((TStyle&)obj).fHistFillColor = fHistFillColor;
585  ((TStyle&)obj).fHistFillStyle = fHistFillStyle;
586  ((TStyle&)obj).fHistLineColor = fHistLineColor;
587  ((TStyle&)obj).fHistLineStyle = fHistLineStyle;
588  ((TStyle&)obj).fHistLineWidth = fHistLineWidth;
589  ((TStyle&)obj).fHistMinimumZero = fHistMinimumZero;
590  ((TStyle&)obj).fHistTopMargin = fHistTopMargin;
591  ((TStyle&)obj).fBarWidth = fBarWidth;
592  ((TStyle&)obj).fBarOffset = fBarOffset;
593  ((TStyle&)obj).fDrawBorder = fDrawBorder;
594  ((TStyle&)obj).fOptLogx = fOptLogx;
595  ((TStyle&)obj).fOptLogy = fOptLogy;
596  ((TStyle&)obj).fOptLogz = fOptLogz;
597  ((TStyle&)obj).fOptDate = fOptDate;
598  ((TStyle&)obj).fOptFit = fOptFit;
599  ((TStyle&)obj).fOptStat = fOptStat;
600  ((TStyle&)obj).fOptTitle = fOptTitle;
601  ((TStyle&)obj).fEndErrorSize = fEndErrorSize;
602  ((TStyle&)obj).fErrorX = fErrorX;
603  ((TStyle&)obj).fStatColor = fStatColor;
604  ((TStyle&)obj).fStatTextColor = fStatTextColor;
605  ((TStyle&)obj).fStatBorderSize = fStatBorderSize;
606  ((TStyle&)obj).fStatFont = fStatFont;
607  ((TStyle&)obj).fStatFontSize = fStatFontSize;
608  ((TStyle&)obj).fStatStyle = fStatStyle;
609  ((TStyle&)obj).fStatFormat = fStatFormat;
610  ((TStyle&)obj).fStatW = fStatW;
611  ((TStyle&)obj).fStatH = fStatH ;
612  ((TStyle&)obj).fStatX = fStatX;
613  ((TStyle&)obj).fStatY = fStatY;
614  ((TStyle&)obj).fTitleAlign = fTitleAlign;
615  ((TStyle&)obj).fTitleColor = fTitleColor;
616  ((TStyle&)obj).fTitleTextColor = fTitleTextColor;
617  ((TStyle&)obj).fTitleFont = fTitleFont;
618  ((TStyle&)obj).fTitleFontSize = fTitleFontSize;
619  ((TStyle&)obj).fTitleStyle = fTitleStyle;
620  ((TStyle&)obj).fTitleBorderSize = fTitleBorderSize;
621  ((TStyle&)obj).fTitleW = fTitleW;
622  ((TStyle&)obj).fTitleH = fTitleH;
623  ((TStyle&)obj).fTitleX = fTitleX;
624  ((TStyle&)obj).fTitleY = fTitleY;
625  ((TStyle&)obj).fDateX = fDateX;
626  ((TStyle&)obj).fDateY = fDateY;
627  ((TStyle&)obj).fFitFormat = fFitFormat;
628  ((TStyle&)obj).fPaintTextFormat = fPaintTextFormat;
629  ((TStyle&)obj).fShowEventStatus = fShowEventStatus;
630  ((TStyle&)obj).fShowEditor = fShowEditor;
631  ((TStyle&)obj).fShowToolBar = fShowToolBar;
632  ((TStyle&)obj).fLegoInnerR = fLegoInnerR;
633  ((TStyle&)obj).fStripDecimals = fStripDecimals;
634  ((TStyle&)obj).fNumberContours = fNumberContours;
635  ((TStyle&)obj).fLegendBorderSize = fLegendBorderSize;
636  ((TStyle&)obj).fLegendFillColor = fLegendFillColor;
637  ((TStyle&)obj).fLegendFont = fLegendFont;
638  ((TStyle&)obj).fLegendTextSize = fLegendTextSize;
639 
640  Int_t i;
641  for (i=0;i<30;i++) {
642  ((TStyle&)obj).fLineStyle[i] = fLineStyle[i];
643  }
644  ((TStyle&)obj).fHeaderPS = fHeaderPS;
645  ((TStyle&)obj).fTitlePS = fTitlePS;
646  ((TStyle&)obj).fLineScalePS = fLineScalePS;
647  ((TStyle&)obj).fJoinLinePS = fJoinLinePS;
648  ((TStyle&)obj).fCapLinePS = fCapLinePS;
649  ((TStyle&)obj).fColorModelPS = fColorModelPS;
650  ((TStyle&)obj).fTimeOffset = fTimeOffset;
651  ((TStyle&)obj).fImageScaling = fImageScaling;
652 }
653 
654 ////////////////////////////////////////////////////////////////////////////////
655 /// Function used by the TStyle manager when drawing a canvas showing the
656 /// current style.
657 
659 {
660  gPad->SetSelected(this);
661  return 0;
662 }
663 
664 ////////////////////////////////////////////////////////////////////////////////
665 /// Reset.
666 
668 {
669  fIsReading = kTRUE;
674  SetFillStyle(1001);
675  SetFillColor(19);
676  fXaxis.ResetAttAxis("X");
677  fYaxis.ResetAttAxis("Y");
678  fZaxis.ResetAttAxis("Z");
679  if (gEnv) fCanvasPreferGL = gEnv->GetValue("OpenGL.CanvasPreferGL",0);
680  else fCanvasPreferGL = kFALSE;
681  fCanvasColor = 19;
684  fCanvasDefH = 500;
685  fCanvasDefW = 700;
686  fCanvasDefX = 10;
687  fCanvasDefY = 10;
691  fPadBottomMargin= 0.1;
692  fPadTopMargin = 0.1;
693  fPadLeftMargin = 0.1;
694  fPadRightMargin = 0.1;
695  fPadGridX = kFALSE;
696  fPadGridY = kFALSE;
697  fPadTickX = 0;
698  fPadTickY = 0;
699  fFuncColor = 1;
700  fFuncStyle = 1;
701  fFuncWidth = 3;
702  fGridColor = 0;
703  fGridStyle = 3;
704  fGridWidth = 1;
705  fHatchesSpacing = 1;
706  fHatchesLineWidth = 1;
707  fHistLineColor = 1;
708  fHistFillColor = 0;
709  fHistFillStyle = 1001;
710  fHistLineStyle = 1;
711  fHistLineWidth = 1;
713  fHistTopMargin = 0.05;
714  fFrameLineColor = 1;
715  fFrameFillColor = 0;
716  fFrameFillStyle = 1001;
717  fFrameLineStyle = 1;
718  fFrameLineWidth = 1;
719  fFrameBorderSize= 1;
720  fFrameBorderMode= 1;
721  fBarWidth = 1;
722  fBarOffset = 0;
723  fDrawBorder = 0;
724  fOptLogx = 0;
725  fOptLogy = 0;
726  fOptLogz = 0;
727  fOptDate = 0;
728  fOptFile = 0;
729  fOptFit = 0;
730  fOptStat = 1;
731  fOptTitle = 1;
732  fEndErrorSize = 2;
733  fErrorX = 0.5;
734  fScreenFactor = 1;
736  fStatTextColor = 1;
737  fStatBorderSize = 2;
738  fStatFont = 62;
739  fStatFontSize = 0;
740  fStatStyle = 1001;
741  fStatW = 0.20;
742  fStatH = 0.16;
743  fStatX = 0.98;
744  fStatY = 0.995;
745  SetStatFormat();
746  SetFitFormat();
748  fTitleAlign = 13;
750  fTitleTextColor = 1;
751  fTitleFont = 62;
752  fTitleFontSize = 0;
753  fTitleStyle = 1001;
754  fTitleBorderSize= 2;
755  fTitleW = 0;
756  fTitleH = 0;
757  fTitleX = 0.01;
758  fTitleY = 0.995;
759  fShowEventStatus= 0;
760  fShowEditor = 0;
761  fShowToolBar = 0;
762  fLegoInnerR = 0.5;
763  fHeaderPS = "";
764  fTitlePS = "";
766  fNumberContours = 20;
768  fLegendFont = 62;
769  fLegendTextSize = 0.,
770  fLegendFillColor = 0;
771  fImageScaling = 1.;
772 
773  SetDateX();
774  SetDateY();
775  fAttDate.SetTextSize(0.025);
776  fAttDate.SetTextAlign(11);
777  SetLineScalePS();
778  SetJoinLinePS();
779  SetCapLinePS();
780  SetColorModelPS();
781  SetLineStyleString(1," ");
782  SetLineStyleString(2,"12 12");
783  SetLineStyleString(3,"4 8");
784  SetLineStyleString(4,"12 16 4 16");
785  SetLineStyleString(5,"20 12 4 12");
786  SetLineStyleString(6,"20 12 4 12 4 12 4 12");
787  SetLineStyleString(7,"20 20");
788  SetLineStyleString(8,"20 12 4 12 4 12");
789  SetLineStyleString(9,"80 20");
790  SetLineStyleString(10,"80 40 4 40");
791  for (Int_t i=11;i<30;i++) SetLineStyleString(i," ");
792 
793  SetPaperSize();
794 
795  SetPalette();
796 
797  fTimeOffset = 788918400; // UTC time at 01/01/95
798 
799  TString style_name = opt;
800 
801  if (strcmp(style_name,"Modern") == 0) {
802  // Modern style
806  SetCanvasColor(0);
807  SetPadBorderMode(0);
808  SetPadColor(0);
809  SetStatColor(0);
810  SetTitleFont(42,"");
811  SetLabelFont(42,"x");
812  SetTitleFont(42,"x");
813  SetLabelFont(42,"y");
814  SetTitleFont(42,"y");
815  SetLabelFont(42,"z");
816  SetTitleFont(42,"z");
817  SetStatFont(42);
818  SetLabelSize(0.035,"x");
819  SetTitleSize(0.035,"x");
820  SetLabelSize(0.035,"y");
821  SetTitleSize(0.035,"y");
822  SetLabelSize(0.035,"z");
823  SetTitleSize(0.035,"z");
824  SetTitleSize(0.050,"");
825  SetTitleAlign(23);
826  SetTitleX(0.5);
829  SetTitleStyle(0);
830  SetTitleOffset(0.,"Y");
832  SetOptStat(1111);
833  SetStatY(0.935);
837  SetLegendFont(42);
838  SetLegendTextSize(0.);
839  SetFuncWidth(2);
840  SetFuncColor(2);
841  }
842  if (strcmp(style_name,"Plain") == 0) {
845  SetPadBorderMode(0);
846  SetPadColor(0);
847  SetCanvasColor(0);
850  SetStatColor(0);
853  return;
854  }
855  if (strcmp(style_name,"Bold") == 0) {
856  SetPalette(1,0);
857  SetCanvasColor(10);
860  SetFrameFillColor(10);
861  SetPadColor(10);
862  SetPadTickX(1);
863  SetPadTickY(1);
864  SetPadBottomMargin(0.15);
865  SetPadLeftMargin(0.15);
866  SetHistLineWidth(3);
868  SetFuncWidth(3);
870  SetLineWidth(3);
871  SetLabelSize(0.05,"xyz");
872  SetLabelOffset(0.01,"y");
873  SetLabelColor(kBlue,"xy");
874  SetTitleSize(0.06,"xyz");
875  SetTitleOffset(1.3,"Y");
876  SetTitleFillColor(10);
878  SetStatColor(10);
879  return;
880  }
881  if (strcmp(style_name,"Video") == 0) {
882  SetPalette(1,0);
883  SetCanvasColor(10);
886  SetFrameFillColor(10);
887  SetPadColor(10);
888  SetPadTickX(1);
889  SetPadTickY(1);
890  SetPadBottomMargin(0.2);
891  SetPadLeftMargin(0.2);
892  SetHistLineWidth(8);
894  SetLabelSize(0.06,"xyz");
895  SetLabelColor(kBlue,"xyz");
896  SetTitleSize(0.08,"xyz");
897  SetTitleFillColor(10);
899  SetStatColor(10);
900  SetFuncWidth(8);
902  SetLineWidth(3);
903  return;
904  }
905  if (strcmp(style_name,"Pub") == 0) {
906  SetOptTitle(0);
907  SetOptStat(0);
908  SetPalette(8,0);
909  SetCanvasColor(10);
912  SetFrameFillColor(10);
913  SetPadColor(10);
914  SetPadTickX(1);
915  SetPadTickY(1);
916  SetPadBottomMargin(0.15);
917  SetPadLeftMargin(0.15);
918  SetHistLineWidth(3);
920  SetFuncWidth(3);
922  SetLineWidth(3);
923  SetLabelSize(0.05,"xyz");
924  SetLabelOffset(0.01,"y");
925  SetLabelColor(kBlack,"xyz");
926  SetTitleSize(0.06,"xyz");
927  SetTitleOffset(1.3,"y");
928  SetTitleFillColor(10);
930  return;
931  }
932  if (strcmp(style_name,"ATLAS") == 0) {
936  SetCanvasColor(0);
937  SetPadBorderMode(0);
938  SetPadColor(0);
939  SetStatColor(0);
940  SetPaperSize(20,26);
941  SetPadTopMargin(0.05);
942  SetPadRightMargin(0.05);
943  SetPadBottomMargin(0.16);
944  SetPadLeftMargin(0.16);
945  SetTitleXOffset(1.4);
946  SetTitleYOffset(1.4);
947  Int_t font = 42;
948  Double_t tsize=0.05;
949  SetTextFont(font);
950  SetTextSize(tsize);
951  SetLabelFont(font,"x");
952  SetTitleFont(font,"x");
953  SetLabelFont(font,"y");
954  SetTitleFont(font,"y");
955  SetLabelFont(font,"z");
956  SetTitleFont(font,"z");
957  SetLabelSize(tsize,"x");
958  SetTitleSize(tsize,"x");
959  SetLabelSize(tsize,"y");
960  SetTitleSize(tsize,"y");
961  SetLabelSize(tsize,"z");
962  SetTitleSize(tsize,"z");
963  SetMarkerStyle(20);
964  SetMarkerSize(1.2);
965  SetHistLineWidth(2.);
966  SetLineStyleString(2,"[12 12]");
967  SetErrorX(0.0001);
968  SetEndErrorSize(0.);
969  SetOptTitle(0);
970  SetOptStat(0);
971  SetOptFit(0);
972  SetPadTickX(1);
973  SetPadTickY(1);
974  return;
975  }
976  if (strcmp(style_name,"BELLE2") == 0) {
977  Int_t icol=0;
978  SetFrameBorderMode(icol);
979  SetFrameFillColor(icol);
980  SetCanvasBorderMode(icol);
981  SetCanvasColor(icol);
982  SetPadBorderMode(icol);
983  SetPadColor(icol);
984  SetStatColor(icol);
985  SetPaperSize(20,26);
986  SetPadTopMargin(0.05);
987  SetPadRightMargin(0.05);
988  SetPadBottomMargin(0.16);
989  SetPadLeftMargin(0.16);
990  SetTitleXOffset(1.0);
991  SetTitleYOffset(1.0);
992  Int_t font=42;
993  Double_t tsize=0.05;
994  SetTextFont(font);
995  SetTextSize(tsize);
996  SetLabelFont(font,"x");
997  SetTitleFont(font,"x");
998  SetLabelFont(font,"y");
999  SetTitleFont(font,"y");
1000  SetLabelFont(font,"z");
1001  SetTitleFont(font,"z");
1002  SetLabelSize(tsize,"x");
1003  SetTitleSize(.065,"x");
1004  SetLabelSize(tsize,"y");
1005  SetTitleSize(.065,"y");
1006  SetLabelSize(tsize,"z");
1007  SetTitleSize(.065,"z");
1008  SetTitleOffset(1.1,"x");
1009  SetTitleOffset(1.1,"y");
1010  SetTitleOffset(1.1,"z");
1011  SetLabelOffset(0.015,"x");
1012  SetLabelOffset(0.015,"y");
1013  SetLabelOffset(0.015,"z");
1014  SetTickLength(0.03,"x");
1015  SetTickLength(0.02,"y");
1016  SetMarkerStyle(20);
1017  SetMarkerSize(0.9);
1018  SetHistLineWidth(2);
1019  SetLineStyleString(2,"[12 12]");
1020  SetErrorX(0.001);
1021  SetEndErrorSize(0.);
1022  SetOptTitle(0);
1023  SetOptStat(0);
1024  SetOptFit(0);
1025  SetPadTickX(0);
1026  SetPadTickY(0);
1027  SetFrameLineWidth(2);
1028  }
1029 }
1030 
1031 ////////////////////////////////////////////////////////////////////////////////
1032 /// Return number of divisions.
1033 
1035 {
1036  Int_t ax = AxisChoice(axis);
1037  if (ax == 1) return fXaxis.GetNdivisions();
1038  if (ax == 2) return fYaxis.GetNdivisions();
1039  if (ax == 3) return fZaxis.GetNdivisions();
1040  return 0;
1041 }
1042 
1043 ////////////////////////////////////////////////////////////////////////////////
1044 /// Return the axis color number in the axis.
1045 
1047 {
1048  Int_t ax = AxisChoice(axis);
1049  if (ax == 1) return fXaxis.GetAxisColor();
1050  if (ax == 2) return fYaxis.GetAxisColor();
1051  if (ax == 3) return fZaxis.GetAxisColor();
1052  return 0;
1053 }
1054 
1055 ////////////////////////////////////////////////////////////////////////////////
1056 /// Return color number i in current palette.
1057 
1059 {
1060  return TColor::GetColorPalette(i);
1061 }
1062 
1063 ////////////////////////////////////////////////////////////////////////////////
1064 /// Return the label color number in the axis.
1065 
1067 {
1068  Int_t ax = AxisChoice(axis);
1069  if (ax == 1) return fXaxis.GetLabelColor();
1070  if (ax == 2) return fYaxis.GetLabelColor();
1071  if (ax == 3) return fZaxis.GetLabelColor();
1072  return 0;
1073 }
1074 
1075 ////////////////////////////////////////////////////////////////////////////////
1076 /// Return label font.
1077 
1079 {
1080  Int_t ax = AxisChoice(axis);
1081  if (ax == 1) return fXaxis.GetLabelFont();
1082  if (ax == 2) return fYaxis.GetLabelFont();
1083  if (ax == 3) return fZaxis.GetLabelFont();
1084  return 0;
1085 }
1086 
1087 ////////////////////////////////////////////////////////////////////////////////
1088 /// Return label offset.
1089 
1091 {
1092  Int_t ax = AxisChoice(axis);
1093  if (ax == 1) return fXaxis.GetLabelOffset();
1094  if (ax == 2) return fYaxis.GetLabelOffset();
1095  if (ax == 3) return fZaxis.GetLabelOffset();
1096  return 0;
1097 }
1098 
1099 ////////////////////////////////////////////////////////////////////////////////
1100 /// Return label size.
1101 
1103 {
1104  Int_t ax = AxisChoice(axis);
1105  if (ax == 1) return fXaxis.GetLabelSize();
1106  if (ax == 2) return fYaxis.GetLabelSize();
1107  if (ax == 3) return fZaxis.GetLabelSize();
1108  return 0;
1109 }
1110 
1111 ////////////////////////////////////////////////////////////////////////////////
1112 /// Return line style string (used by PostScript).
1113 /// See SetLineStyleString for more explanations
1114 
1115 const char *TStyle::GetLineStyleString(Int_t i) const
1116 {
1117  if (i < 1 || i > 29) return fLineStyle[0].Data();
1118  return fLineStyle[i].Data();
1119 }
1120 
1121 ////////////////////////////////////////////////////////////////////////////////
1122 /// Return number of colors in the color palette.
1123 
1125 {
1126  return TColor::GetNumberOfColors();
1127 }
1128 
1129 
1130 ////////////////////////////////////////////////////////////////////////////////
1131 /// Set paper size for PostScript output.
1132 
1133 void TStyle::GetPaperSize(Float_t &xsize, Float_t &ysize) const
1134 {
1135  xsize = fPaperSizeX;
1136  ysize = fPaperSizeY;
1137 }
1138 
1139 ////////////////////////////////////////////////////////////////////////////////
1140 /// Return tick length.
1141 
1143 {
1144  Int_t ax = AxisChoice(axis);
1145  if (ax == 1) return fXaxis.GetTickLength();
1146  if (ax == 2) return fYaxis.GetTickLength();
1147  if (ax == 3) return fZaxis.GetTickLength();
1148  return 0;
1149 }
1150 
1151 ////////////////////////////////////////////////////////////////////////////////
1152 /// Return title color.
1153 
1155 {
1156  Int_t ax = AxisChoice(axis);
1157  if (ax == 1) return fXaxis.GetTitleColor();
1158  if (ax == 2) return fYaxis.GetTitleColor();
1159  if (ax == 3) return fZaxis.GetTitleColor();
1160  return fTitleTextColor;
1161 }
1162 
1163 ////////////////////////////////////////////////////////////////////////////////
1164 /// Return title font.
1165 
1167 {
1168  Int_t ax = AxisChoice(axis);
1169  if (ax == 1) return fXaxis.GetTitleFont();
1170  if (ax == 2) return fYaxis.GetTitleFont();
1171  if (ax == 3) return fZaxis.GetTitleFont();
1172  return fTitleFont;
1173 }
1174 
1175 ////////////////////////////////////////////////////////////////////////////////
1176 /// Return title offset.
1177 
1179 {
1180  Int_t ax = AxisChoice(axis);
1181  if (ax == 1) return fXaxis.GetTitleOffset();
1182  if (ax == 2) return fYaxis.GetTitleOffset();
1183  if (ax == 3) return fZaxis.GetTitleOffset();
1184  return 0;
1185 }
1186 
1187 ////////////////////////////////////////////////////////////////////////////////
1188 /// Return title size.
1189 
1191 {
1192  Int_t ax = AxisChoice(axis);
1193  if (ax == 1) return fXaxis.GetTitleSize();
1194  if (ax == 2) return fYaxis.GetTitleSize();
1195  if (ax == 3) return fZaxis.GetTitleSize();
1196  return fTitleFontSize;
1197 }
1198 
1199 ////////////////////////////////////////////////////////////////////////////////
1200 /// Show the options from the current style
1201 
1203 {
1204  gROOT->ProcessLine(Form("TStyleManager::PaintStyle((TStyle*)0x%lx,\"%s\")",
1205  (ULong_t)this,option));
1206 }
1207 
1208 ////////////////////////////////////////////////////////////////////////////////
1209 /// Define the color model used by TPostScript and TPDF (RGB or CMYK).
1210 /// CMY and CMYK models are subtractive color models unlike RGB which is
1211 /// additive. They are mainly used for printing purposes. CMY means Cyan Magenta
1212 /// Yellow. To convert RGB to CMY it is enough to do: C=1-R, M=1-G and Y=1-B.
1213 /// CMYK has one more component K (black). The conversion from RGB to CMYK is:
1214 /// ~~~ {.cpp}
1215 /// Double_t Black = TMath::Min(TMath::Min(1-Red,1-Green),1-Blue);
1216 /// Double_t Cyan = (1-Red-Black)/(1-Black);
1217 /// Double_t Magenta = (1-Green-Black)/(1-Black);
1218 /// Double_t Yellow = (1-Blue-Black)/(1-Black);
1219 /// ~~~
1220 /// CMYK adds the black component which allows better quality for black
1221 /// printing. PostScript and PDF support the CMYK model.
1222 ///
1223 /// - c = 0 means TPostScript and TPDF will use RGB color model (default)
1224 /// - c = 1 means TPostScript and TPDF will use CMYK color model
1225 
1227 {
1228  fColorModelPS = c;
1229 }
1230 
1231 ////////////////////////////////////////////////////////////////////////////////
1232 /// If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms
1233 /// is set to 0.
1234 ///
1235 /// If the minimum bin content is greater than 0 and TH1::SetMinimum
1236 /// has not been called.
1237 /// Otherwise the minimum is based on the minimum bin content.
1238 
1240 {
1241  fHistMinimumZero = zero;
1242 }
1243 
1244 ////////////////////////////////////////////////////////////////////////////////
1245 /// Set the number of divisions to draw an axis.
1246 /// ndiv : Number of divisions.
1247 /// ~~~ {.cpp}
1248 /// n = N1 + 100*N2 + 10000*N3
1249 /// N1=number of primary divisions.
1250 /// N2=number of secondary divisions.
1251 /// N3=number of 3rd divisions.
1252 /// e.g.:
1253 /// nndi=0 --> no tick marks.
1254 /// nndi=2 --> 2 divisions, one tick mark in the middle
1255 /// of the axis.
1256 /// ~~~
1257 /// axis specifies which axis ("x","y","z"), default = "x"
1258 /// if axis="xyz" set all 3 axes
1259 
1261 {
1262  TString opt = axis;
1263  opt.ToLower();
1264  if (opt.Contains("x")) fXaxis.SetNdivisions(n);
1265  if (opt.Contains("y")) fYaxis.SetNdivisions(n);
1266  if (opt.Contains("z")) fZaxis.SetNdivisions(n);
1267 }
1268 
1269 ////////////////////////////////////////////////////////////////////////////////
1270 /// Set color to draw the axis line and tick marks.
1271 /// axis specifies which axis ("x","y","z"), default = "x"
1272 /// if axis="xyz" set all 3 axes
1273 
1275 {
1276  TString opt = axis;
1277  opt.ToLower();
1278 
1279  if (opt.Contains("x")) fXaxis.SetAxisColor(color);
1280  if (opt.Contains("y")) fYaxis.SetAxisColor(color);
1281  if (opt.Contains("z")) fZaxis.SetAxisColor(color);
1282 }
1283 
1284 ////////////////////////////////////////////////////////////////////////////////
1285 /// Set the size (in pixels) of the small lines drawn at the
1286 /// end of the error bars (TH1 or TGraphErrors).
1287 ///
1288 /// The default value is 2 pixels.
1289 /// Set np=0 to remove these lines
1290 
1292 {
1293  if (np >= 0) fEndErrorSize = np;
1294  else fEndErrorSize = 0;
1295 }
1296 
1297 ////////////////////////////////////////////////////////////////////////////////
1298 /// Define a string to be inserted in the Postscript header.
1299 ///
1300 /// The string in header will be added to the Postscript file
1301 /// immediately following the %%Page line
1302 /// For example, this string may contain special Postscript instructions like
1303 /// ~~~ {.cpp}
1304 /// 200 200 translate
1305 /// ~~~
1306 /// the following header string will print the string "my annotation" at the
1307 /// bottom left corner of the page (outside the user area)
1308 /// ~~~ {.cpp}
1309 /// "gsave 100 -100 t 0 r 0 0 m /Helvetica-Bold findfont 56 sf 0 0 m ( my annotation ) show gr"
1310 /// ~~~
1311 /// This information is used in TPostScript::Initialize
1312 
1313 void TStyle::SetHeaderPS(const char *header)
1314 {
1315  fHeaderPS = header;
1316 }
1317 
1318 ////////////////////////////////////////////////////////////////////////////////
1319 /// Sets the `fIsReading` member to reading (default=kTRUE).
1320 ///
1321 /// `fIsReading` (used via `gStyle->IsReading()`) can be used in
1322 /// the functions `myclass::UseCurrentStyle` to read from the current style
1323 /// or write to the current style
1324 
1326 {
1327  fIsReading = reading;
1328 }
1329 
1330 ////////////////////////////////////////////////////////////////////////////////
1331 /// Define a string to be used in the %%Title of the Postscript files.
1332 /// If this string is not defined, ROOT will use the canvas title.
1333 
1334 void TStyle::SetTitlePS(const char *pstitle)
1335 {
1336  fTitlePS = pstitle;
1337 }
1338 
1339 ////////////////////////////////////////////////////////////////////////////////
1340 /// Set axis labels color.
1341 /// axis specifies which axis ("x","y","z"), default = "x"
1342 /// if axis="xyz" set all 3 axes
1343 
1345 {
1346  TString opt = axis;
1347  opt.ToLower();
1348 
1349  if (opt.Contains("x")) fXaxis.SetLabelColor(color);
1350  if (opt.Contains("y")) fYaxis.SetLabelColor(color);
1351  if (opt.Contains("z")) fZaxis.SetLabelColor(color);
1352 }
1353 
1354 ////////////////////////////////////////////////////////////////////////////////
1355 /// Set font number used to draw axis labels.
1356 /// - font : Text font code = 10*fontnumber + precision
1357 /// - Font numbers must be between 1 and 14
1358 /// - precision = 1 fast hardware fonts (steps in the size)
1359 /// - precision = 2 scalable and rotatable hardware fonts
1360 /// The default font number is 62.
1361 /// axis specifies which axis ("x","y","z"), default = "x"
1362 /// if axis="xyz" set all 3 axes
1363 
1365 {
1366  TString opt = axis;
1367  opt.ToLower();
1368 
1369  if (opt.Contains("x")) fXaxis.SetLabelFont(font);
1370  if (opt.Contains("y")) fYaxis.SetLabelFont(font);
1371  if (opt.Contains("z")) fZaxis.SetLabelFont(font);
1372 }
1373 
1374 ////////////////////////////////////////////////////////////////////////////////
1375 /// Set offset between axis and axis labels.
1376 /// The offset is expressed as a percent of the pad height.
1377 /// axis specifies which axis ("x","y","z"), default = "x"
1378 /// if axis="xyz" set all 3 axes
1379 
1381 {
1382  TString opt = axis;
1383  opt.ToLower();
1384 
1385  if (opt.Contains("x")) fXaxis.SetLabelOffset(offset);
1386  if (opt.Contains("y")) fYaxis.SetLabelOffset(offset);
1387  if (opt.Contains("z")) fZaxis.SetLabelOffset(offset);
1388 }
1389 
1390 ////////////////////////////////////////////////////////////////////////////////
1391 /// Set size of axis labels. The size is expressed as a percent of the pad height.
1392 /// axis specifies which axis ("x","y","z"), default = "x"
1393 /// if axis="xyz" set all 3 axes
1394 
1396 {
1397  TString opt = axis;
1398  opt.ToLower();
1399 
1400  if (opt.Contains("x")) fXaxis.SetLabelSize(size);
1401  if (opt.Contains("y")) fYaxis.SetLabelSize(size);
1402  if (opt.Contains("z")) fZaxis.SetLabelSize(size);
1403 }
1404 
1405 ////////////////////////////////////////////////////////////////////////////////
1406 /// Set line style string using the PostScript convention.
1407 /// A line is a suite of segments, each segment is described by the number of
1408 /// pixels. The initial and alternating elements (second, fourth, and so on)
1409 /// are the dashes, and the others spaces between dashes.
1410 ///
1411 /// Default fixed line styles are pre-defined as:
1412 /// ~~~ {.cpp}
1413 /// linestyle 1 "[]" solid
1414 /// linestyle 2 "[12 12]" dashed
1415 /// linestyle 3 "[4 8]" dotted
1416 /// linestyle 4 "[12 16 4 16]" dash-dotted
1417 /// ~~~
1418 /// For example the following lines define the line style 5 to 9.
1419 /// ~~~ {.cpp}
1420 /// gStyle->SetLineStyleString(5,"20 12 4 12");
1421 /// gStyle->SetLineStyleString(6,"20 12 4 12 4 12 4 12");
1422 /// gStyle->SetLineStyleString(7,"20 20");
1423 /// gStyle->SetLineStyleString(8,"20 12 4 12 4 12");
1424 /// gStyle->SetLineStyleString(9,"80 20");
1425 /// ~~~
1426 /// \image html base_linestyle.png
1427 /// Note:
1428 /// - Up to 30 different styles may be defined.
1429 /// - The opening and closing brackets may be omitted
1430 /// - It is recommended to use 4 as the smallest segment length and multiple of
1431 /// 4 for other lengths.
1432 /// - The line style 1 to 10 are predefined. 1 to 4 cannot be changed.
1433 
1435 {
1436 
1437  char *l;
1438  Int_t nch = strlen(text);
1439  char *st = new char[nch+10];
1440  snprintf(st,nch+10," ");
1441  strlcat(st,text,nch+10);
1442  l = strstr(st,"["); if (l) l[0] = ' ';
1443  l = strstr(st,"]"); if (l) l[0] = ' ';
1444  if (i >= 1 && i <= 29) fLineStyle[i] = st;
1445  delete [] st;
1446 }
1447 
1448 ////////////////////////////////////////////////////////////////////////////////
1449 /// Set the default number of contour levels when drawing 2-d plots.
1450 
1452 {
1453  if (number > 0 && number < 1000) {
1454  fNumberContours = number;
1455  return;
1456  }
1457 
1458  Error("SetNumberContours","Illegal number of contours: %d, must be > 0 and < 1000",number);
1459 }
1460 
1461 ////////////////////////////////////////////////////////////////////////////////
1462 /// If optdate is non null, the current date/time will be printed in the canvas.
1463 /// The position of the date string can be controlled by:
1464 /// optdate = 10*format + mode
1465 /// - mode = 1 (default) date is printed in the bottom/left corner.
1466 /// - mode = 2 date is printed in the bottom/right corner.
1467 /// - mode = 3 date is printed in the top/right corner.
1468 /// - format = 0 (default) date has the format like: "Wed Sep 25 17:10:35 2002"
1469 /// - format = 1 date has the format like: "2002-09-25"
1470 /// - format = 2 date has the format like: "2002-09-25 17:10:35"
1471 ///
1472 /// examples:
1473 /// - optdate = 1 date like "Wed Sep 25 17:10:35 2002" in the bottom/left corner.
1474 /// - optdate = 13 date like "2002-09-25" in the top/right corner.
1475 ///
1476 /// The date position can also be controlled by:
1477 /// gStyle->SetDateX(x); x in NDC
1478 /// gStyle->SetDateY(y); y in NDC
1479 ///
1480 /// The date text attributes can be changed with:
1481 /// ~~~ {.cpp}
1482 /// gStyle->GetAttDate()->SetTextFont(font=62);
1483 /// gStyle->GetAttDate()->SetTextSize(size=0.025);
1484 /// gStyle->GetAttDate()->SetTextAngle(angle=0);
1485 /// gStyle->GetAttDate()->SetTextAlign(align=11);
1486 /// gStyle->GetAttDate()->SetTextColor(color=1);
1487 /// ~~~
1488 /// The current date attributes can be obtained via:
1489 /// ~~~ {.cpp}
1490 /// gStyle->GetAttDate()->GetTextxxxx();
1491 /// ~~~
1492 /// When the date option is active, a text object is created when the pad
1493 /// paint its list of primitives. The text object is named "DATE".
1494 /// The DATE attributes can also be edited interactively (position
1495 /// and attributes) via the normal context menu.
1496 
1498 {
1499  fOptDate = optdate;
1500  Int_t mode = optdate%10;
1501  if (mode == 1) {
1502  SetDateX(0.01);
1503  SetDateY(0.01);
1504  fAttDate.SetTextAlign(11);
1505  }
1506  if (mode == 2) {
1507  SetDateX(0.99);
1508  SetDateY(0.01);
1509  fAttDate.SetTextAlign(31);
1510  }
1511  if (mode == 3) {
1512  SetDateX(0.99);
1513  SetDateY(0.99);
1514  fAttDate.SetTextAlign(33);
1515  }
1516 }
1517 
1518 ////////////////////////////////////////////////////////////////////////////////
1519 /// The type of information about fit parameters printed in the histogram
1520 /// statistics box can be selected via the parameter `mode`.
1521 /// The parameter mode can be = `pcev`:
1522 /// - p = 1; print Probability
1523 /// - c = 1; print Chisquare/Number of degrees of freedom
1524 /// - e = 1; print errors (if e=1, v must be 1)
1525 /// - v = 1; print name/values of parameters
1526 /// Example: `gStyle->SetOptFit(1011);`
1527 /// print fit probability, parameter names/values and errors.
1528 /// - When "v"=1 is specified, only the non-fixed parameters are shown.
1529 /// - When "v"=2 all parameters are shown.
1530 ///
1531 /// #### Notes:
1532 ///
1533 /// - never call `SetOptFit(000111);` but `SetOptFit(111)`, 000111 will
1534 /// be taken as an octal number !!
1535 /// - `gStyle->SetOptFit(1)` is a shortcut allowing to set the most common
1536 /// case and is equivalent to `gStyle->SetOptFit(111)`
1537 /// - At ROOT startup the option fit is set to `0`. So, to see the fit parameters
1538 /// on all plot resulting from a fit, a call to `gStyle->SetOptFit()` with a
1539 /// non null value should be done. One can put it in the `rootlogon.C` file to
1540 /// always have it.
1541 ///
1542 /// see also SetOptStat below.
1543 
1545 {
1546  fOptFit = mode;
1547  if (gPad) {
1548  TObject *obj;
1549  TIter next(gPad->GetListOfPrimitives());
1550  while ((obj = next())) {
1551  TObject *stats = obj->FindObject("stats");
1552  if (stats) stats->SetBit(kTakeStyle);
1553  }
1554  gPad->Modified(); gPad->Update();
1555  }
1556 }
1557 
1558 ////////////////////////////////////////////////////////////////////////////////
1559 /// The type of information printed in the histogram statistics box
1560 /// can be selected via the parameter mode.
1561 /// The parameter mode can be = `ksiourmen`
1562 /// - k = 1; kurtosis printed
1563 /// - k = 2; kurtosis and kurtosis error printed
1564 /// - s = 1; skewness printed
1565 /// - s = 2; skewness and skewness error printed
1566 /// - i = 1; integral of bins printed
1567 /// - i = 2; integral of bins with option "width" printed
1568 /// - o = 1; number of overflows printed
1569 /// - u = 1; number of underflows printed
1570 /// - r = 1; rms printed
1571 /// - r = 2; rms and rms error printed
1572 /// - m = 1; mean value printed
1573 /// - m = 2; mean and mean error values printed
1574 /// - e = 1; number of entries printed
1575 /// - n = 1; name of histogram is printed
1576 ///
1577 /// Example: `gStyle->SetOptStat(11);`
1578 /// print only name of histogram and number of entries.
1579 /// `gStyle->SetOptStat(1101);` displays the name of histogram, mean value and RMS.
1580 ///
1581 /// #### Notes:
1582 ///
1583 /// - never call `SetOptStat(000111);` but `SetOptStat(111)`, 000111 will
1584 /// be taken as an octal number !!
1585 /// - `SetOptStat(1)` is s shortcut allowing to set the most common case, and is
1586 /// taken as `SetOptStat(1111)` (for backward compatibility with older versions.
1587 /// If you want to print only the name of the histogram call `SetOptStat(1000000001)`.
1588 /// - that in case of 2-D histograms, when selecting just underflow (10000)
1589 /// or overflow (100000), the stats box will show all combinations
1590 /// of underflow/overflows and not just one single number!
1591 
1593 {
1594  fOptStat = mode;
1595  if (gPad) {
1596  TObject *obj;
1597  TIter next(gPad->GetListOfPrimitives());
1598  while ((obj = next())) {
1599  TObject *stats = obj->FindObject("stats");
1600  if (stats) stats->SetBit(kTakeStyle);
1601  }
1602  gPad->Modified(); gPad->Update();
1603  }
1604 }
1605 
1606 ////////////////////////////////////////////////////////////////////////////////
1607 /// The parameter mode can be any combination of kKsSiourRmMen
1608 /// - k : kurtosis printed
1609 /// - K : kurtosis and kurtosis error printed
1610 /// - s : skewness printed
1611 /// - S : skewness and skewness error printed
1612 /// - i : integral of bins printed
1613 /// - I : integral of bins with option "width" printed
1614 /// - o : number of overflows printed
1615 /// - u : number of underflows printed
1616 /// - r : rms printed
1617 /// - R : rms and rms error printed
1618 /// - m : mean value printed
1619 /// - M : mean value mean error values printed
1620 /// - e : number of entries printed
1621 /// - n : name of histogram is printed
1622 ///
1623 /// Example: `gStyle->SetOptStat("ne");`
1624 /// print only name of histogram and number of entries.
1625 ///
1626 /// - `gStyle->SetOptStat("n")` print only the name of the histogram
1627 /// - `gStyle->SetOptStat("nemr")` is the default
1628 
1630 {
1631  Int_t mode=0;
1632 
1633  TString opt = stat;
1634 
1635  if (opt.Contains("n")) mode+=1;
1636  if (opt.Contains("e")) mode+=10;
1637  if (opt.Contains("m")) mode+=100;
1638  if (opt.Contains("M")) mode+=200;
1639  if (opt.Contains("r")) mode+=1000;
1640  if (opt.Contains("R")) mode+=2000;
1641  if (opt.Contains("u")) mode+=10000;
1642  if (opt.Contains("o")) mode+=100000;
1643  if (opt.Contains("i")) mode+=1000000;
1644  if (opt.Contains("I")) mode+=2000000;
1645  if (opt.Contains("s")) mode+=10000000;
1646  if (opt.Contains("S")) mode+=20000000;
1647  if (opt.Contains("k")) mode+=100000000;
1648  if (opt.Contains("K")) mode+=200000000;
1649  if (mode == 1) mode = 1000000001;
1650 
1651  SetOptStat(mode);
1652 }
1653 
1654 ////////////////////////////////////////////////////////////////////////////////
1655 /// Set paper size for PostScript output.
1656 
1658 {
1659  switch (size) {
1660  case kA4:
1661  SetPaperSize(20, 26);
1662  break;
1663  case kUSLetter:
1664  SetPaperSize(20, 24);
1665  break;
1666  default:
1667  Error("SetPaperSize", "illegal paper size %d\n", (int)size);
1668  break;
1669  }
1670 }
1671 
1672 ////////////////////////////////////////////////////////////////////////////////
1673 /// Set paper size for PostScript output.
1674 /// The paper size is specified in centimeters. Default is 20x26.
1675 /// See also TPad::Print
1676 
1678 {
1679  fPaperSizeX = xsize;
1680  fPaperSizeY = ysize;
1681 }
1682 
1683 ////////////////////////////////////////////////////////////////////////////////
1684 /// Set the tick marks length for an axis.
1685 /// axis specifies which axis ("x","y","z"), default = "x"
1686 /// if axis="xyz" set all 3 axes
1687 
1689 {
1690  TString opt = axis;
1691  opt.ToLower();
1692 
1693  if (opt.Contains("x")) fXaxis.SetTickLength(length);
1694  if (opt.Contains("y")) fYaxis.SetTickLength(length);
1695  if (opt.Contains("z")) fZaxis.SetTickLength(length);
1696 }
1697 
1698 ////////////////////////////////////////////////////////////////////////////////
1699 /// - if axis =="x" set the X axis title color
1700 /// - if axis =="y" set the Y axis title color
1701 /// - if axis =="z" set the Z axis title color
1702 ///
1703 /// any other value of axis will set the pad title color
1704 ///
1705 /// if axis="xyz" set all 3 axes
1706 
1708 {
1709  TString opt = axis;
1710  opt.ToLower();
1711 
1712  Bool_t set = kFALSE;
1713  if (opt.Contains("x")) {fXaxis.SetTitleColor(color); set = kTRUE;}
1714  if (opt.Contains("y")) {fYaxis.SetTitleColor(color); set = kTRUE;}
1715  if (opt.Contains("z")) {fZaxis.SetTitleColor(color); set = kTRUE;}
1716  if (!set) fTitleColor = color;
1717 }
1718 
1719 ////////////////////////////////////////////////////////////////////////////////
1720 /// - if axis =="x" set the X axis title font
1721 /// - if axis =="y" set the Y axis title font
1722 /// - if axis =="z" set the Z axis title font
1723 ///
1724 /// any other value of axis will set the pad title font
1725 ///
1726 /// if axis="xyz" set all 3 axes
1727 
1729 {
1730  TString opt = axis;
1731  opt.ToLower();
1732 
1733  Bool_t set = kFALSE;
1734  if (opt.Contains("x")) {fXaxis.SetTitleFont(font); set = kTRUE;}
1735  if (opt.Contains("y")) {fYaxis.SetTitleFont(font); set = kTRUE;}
1736  if (opt.Contains("z")) {fZaxis.SetTitleFont(font); set = kTRUE;}
1737  if (!set) fTitleFont = font;
1738 }
1739 
1740 ////////////////////////////////////////////////////////////////////////////////
1741 /// Specify a parameter offset to control the distance between the axis
1742 /// and the axis title.
1743 ///
1744 /// - offset = 1 means : use the default distance
1745 /// - offset = 1.2 means: the distance will be 1.2*(default distance)
1746 /// - offset = 0.8 means: the distance will be 0.8*(default distance)
1747 ///
1748 /// axis specifies which axis ("x","y","z"), default = "x"
1749 /// if axis="xyz" set all 3 axes
1750 
1752 {
1753  TString opt = axis;
1754  opt.ToLower();
1755 
1756  if (opt.Contains("x")) fXaxis.SetTitleOffset(offset);
1757  if (opt.Contains("y")) fYaxis.SetTitleOffset(offset);
1758  if (opt.Contains("z")) fZaxis.SetTitleOffset(offset);
1759 }
1760 
1761 ////////////////////////////////////////////////////////////////////////////////
1762 /// - if axis =="x" set the X axis title size
1763 /// - if axis =="y" set the Y axis title size
1764 /// - if axis =="z" set the Z axis title size
1765 ///
1766 /// any other value of axis will set the pad title size
1767 ///
1768 /// if axis="xyz" set all 3 axes
1769 
1771 {
1772  TString opt = axis;
1773  opt.ToLower();
1774 
1775  Bool_t set = kFALSE;
1776  if (opt.Contains("x")) {fXaxis.SetTitleSize(size); set = kTRUE;}
1777  if (opt.Contains("y")) {fYaxis.SetTitleSize(size); set = kTRUE;}
1778  if (opt.Contains("z")) {fZaxis.SetTitleSize(size); set = kTRUE;}
1779  if (!set) fTitleFontSize = size;
1780 }
1781 
1782 ////////////////////////////////////////////////////////////////////////////////
1783 /// See TColor::SetPalette.
1784 
1786 {
1787  TColor::SetPalette(ncolors,colors,alpha);
1788 }
1789 
1790 ////////////////////////////////////////////////////////////////////////////////
1791 /// Change the time offset for time plotting.
1792 /// Times are expressed in seconds. The corresponding numbers usually have 9
1793 /// digits (or more if one takes into account fractions of seconds).
1794 /// Thus, since it is very inconvenient to plot very large numbers on a scale,
1795 /// one has to set an offset time that will be added to the axis beginning,
1796 /// in order to plot times correctly and conveniently. A convenient way to
1797 /// set the time offset is to use TDatime::Convert().
1798 ///
1799 /// By default the time offset is set to 788918400 which corresponds to
1800 /// 01/01/1995. This allows to have valid dates until 2072. The standard
1801 /// UNIX time offset in 1970 allows only valid dates until 2030.
1802 
1804 {
1805  fTimeOffset = toffset;
1806 }
1807 
1808 ////////////////////////////////////////////////////////////////////////////////
1809 /// Set option to strip decimals when drawing axis labels.
1810 /// By default, TGaxis::PaintAxis removes trailing 0s after a dot
1811 /// in the axis labels. Ex: {0,0.5,1,1.5,2,2.5, etc}
1812 /// If this function is called with strip=kFALSE, TGAxis::PaintAxis will
1813 /// draw labels with the same number of digits after the dot
1814 /// Ex: (0.0,0.5,1.0,1.5,2.0,2.5,etc}
1815 
1817 {
1818  fStripDecimals = strip;
1819 }
1820 
1821 ////////////////////////////////////////////////////////////////////////////////
1822 /// Save the current style in a C++ macro file.
1823 
1824 void TStyle::SaveSource(const char *filename, Option_t *option)
1825 {
1826  // Opens a file named filename or "Rootstyl.C"
1827  TString ff = strlen(filename) ? filename : "Rootstyl.C";
1828 
1829  // Computes the main method name.
1830  const char *fname = gSystem->BaseName(ff);
1831  Int_t lenfname = strlen(fname);
1832  char *sname = new char[lenfname + 1];
1833  Int_t i = 0;
1834  while ((i < lenfname) && (fname[i] != '.')) {
1835  sname[i] = fname[i];
1836  i++;
1837  }
1838  if (i == lenfname) ff += ".C";
1839  sname[i] = 0;
1840 
1841  // Tries to open the file.
1842  std::ofstream out;
1843  out.open(ff.Data(), std::ios::out);
1844  if (!out.good()) {
1845  delete [] sname;
1846  Error("SaveSource", "cannot open file: %s", ff.Data());
1847  return;
1848  }
1849 
1850  // Writes macro header, date/time stamp as string, and the used Root version
1851  TDatime t;
1852  out <<"// Mainframe macro generated from application: " << gApplication->Argv(0) << std::endl;
1853  out <<"// By ROOT version " << gROOT->GetVersion() << " on " << t.AsSQLString() << std::endl;
1854  out << std::endl;
1855 
1856  char quote = '"';
1857 
1858  // Writes include.
1859  out << "#if !defined( __CINT__) || defined (__MAKECINT__)" << std::endl << std::endl;
1860  out << "#ifndef ROOT_TStyle" << std::endl;
1861  out << "#include " << quote << "TStyle.h" << quote << std::endl;
1862  out << "#endif" << std::endl;
1863  out << std::endl << "#endif" << std::endl;
1864 
1865  // Writes the macro entry point equal to the fname
1866  out << std::endl;
1867  out << "void " << sname << "()" << std::endl;
1868  out << "{" << std::endl;
1869  delete [] sname;
1870 
1871  TStyle::SavePrimitive(out, option);
1872 
1873  out << "}" << std::endl;
1874  out.close();
1875 
1876  printf(" C++ macro file %s has been generated\n", gSystem->BaseName(ff));
1877 }
1878 
1879 ////////////////////////////////////////////////////////////////////////////////
1880 /// Save a main frame widget as a C++ statement(s) on output stream out.
1881 
1882 void TStyle::SavePrimitive(std::ostream &out, Option_t * /*= ""*/)
1883 {
1884  char quote = '"';
1885 
1886  out << " // Add the saved style to the current ROOT session." << std::endl;
1887  out << std::endl;
1888  out<<" "<<"delete gROOT->GetStyle("<<quote<<GetName()<<quote<<");"<< std::endl;
1889  out << std::endl;
1890  out<<" "<<"TStyle *tmpStyle = new TStyle("
1891  << quote << GetName() << quote << ", "
1892  << quote << GetTitle() << quote << ");" << std::endl;
1893 
1894  // fXAxis, fYAxis and fZAxis
1895  out<<" "<<"tmpStyle->SetNdivisions(" <<GetNdivisions("x") <<", \"x\");"<<std::endl;
1896  out<<" "<<"tmpStyle->SetNdivisions(" <<GetNdivisions("y") <<", \"y\");"<<std::endl;
1897  out<<" "<<"tmpStyle->SetNdivisions(" <<GetNdivisions("z") <<", \"z\");"<<std::endl;
1898  out<<" "<<"tmpStyle->SetAxisColor(" <<GetAxisColor("x") <<", \"x\");"<<std::endl;
1899  out<<" "<<"tmpStyle->SetAxisColor(" <<GetAxisColor("y") <<", \"y\");"<<std::endl;
1900  out<<" "<<"tmpStyle->SetAxisColor(" <<GetAxisColor("z") <<", \"z\");"<<std::endl;
1901  out<<" "<<"tmpStyle->SetLabelColor(" <<GetLabelColor("x") <<", \"x\");"<<std::endl;
1902  out<<" "<<"tmpStyle->SetLabelColor(" <<GetLabelColor("y") <<", \"y\");"<<std::endl;
1903  out<<" "<<"tmpStyle->SetLabelColor(" <<GetLabelColor("z") <<", \"z\");"<<std::endl;
1904  out<<" "<<"tmpStyle->SetLabelFont(" <<GetLabelFont("x") <<", \"x\");"<<std::endl;
1905  out<<" "<<"tmpStyle->SetLabelFont(" <<GetLabelFont("y") <<", \"y\");"<<std::endl;
1906  out<<" "<<"tmpStyle->SetLabelFont(" <<GetLabelFont("z") <<", \"z\");"<<std::endl;
1907  out<<" "<<"tmpStyle->SetLabelOffset("<<GetLabelOffset("x")<<", \"x\");"<<std::endl;
1908  out<<" "<<"tmpStyle->SetLabelOffset("<<GetLabelOffset("y")<<", \"y\");"<<std::endl;
1909  out<<" "<<"tmpStyle->SetLabelOffset("<<GetLabelOffset("z")<<", \"z\");"<<std::endl;
1910  out<<" "<<"tmpStyle->SetLabelSize(" <<GetLabelSize("x") <<", \"x\");"<<std::endl;
1911  out<<" "<<"tmpStyle->SetLabelSize(" <<GetLabelSize("y") <<", \"y\");"<<std::endl;
1912  out<<" "<<"tmpStyle->SetLabelSize(" <<GetLabelSize("z") <<", \"z\");"<<std::endl;
1913  out<<" "<<"tmpStyle->SetTickLength(" <<GetTickLength("x") <<", \"x\");"<<std::endl;
1914  out<<" "<<"tmpStyle->SetTickLength(" <<GetTickLength("y") <<", \"y\");"<<std::endl;
1915  out<<" "<<"tmpStyle->SetTickLength(" <<GetTickLength("z") <<", \"z\");"<<std::endl;
1916  out<<" "<<"tmpStyle->SetTitleOffset("<<GetTitleOffset("x")<<", \"x\");"<<std::endl;
1917  out<<" "<<"tmpStyle->SetTitleOffset("<<GetTitleOffset("y")<<", \"y\");"<<std::endl;
1918  out<<" "<<"tmpStyle->SetTitleOffset("<<GetTitleOffset("z")<<", \"z\");"<<std::endl;
1919  out<<" "<<"tmpStyle->SetTitleSize(" <<GetTitleSize("x") <<", \"x\");"<<std::endl;
1920  out<<" "<<"tmpStyle->SetTitleSize(" <<GetTitleSize("y") <<", \"y\");"<<std::endl;
1921  out<<" "<<"tmpStyle->SetTitleSize(" <<GetTitleSize("z") <<", \"z\");"<<std::endl;
1922  out<<" "<<"tmpStyle->SetTitleColor(" <<GetTitleColor("x") <<", \"x\");"<<std::endl;
1923  out<<" "<<"tmpStyle->SetTitleColor(" <<GetTitleColor("y") <<", \"y\");"<<std::endl;
1924  out<<" "<<"tmpStyle->SetTitleColor(" <<GetTitleColor("z") <<", \"z\");"<<std::endl;
1925  out<<" "<<"tmpStyle->SetTitleFont(" <<GetTitleFont("x") <<", \"x\");"<<std::endl;
1926  out<<" "<<"tmpStyle->SetTitleFont(" <<GetTitleFont("y") <<", \"y\");"<<std::endl;
1927  out<<" "<<"tmpStyle->SetTitleFont(" <<GetTitleFont("z") <<", \"z\");"<<std::endl;
1928 
1929  out<<" "<<"tmpStyle->SetBarWidth(" <<GetBarWidth() <<");"<<std::endl;
1930  out<<" "<<"tmpStyle->SetBarOffset(" <<GetBarOffset() <<");"<<std::endl;
1931  out<<" "<<"tmpStyle->SetDrawBorder(" <<GetDrawBorder() <<");"<<std::endl;
1932  out<<" "<<"tmpStyle->SetOptLogx(" <<GetOptLogx() <<");"<<std::endl;
1933  out<<" "<<"tmpStyle->SetOptLogy(" <<GetOptLogy() <<");"<<std::endl;
1934  out<<" "<<"tmpStyle->SetOptLogz(" <<GetOptLogz() <<");"<<std::endl;
1935  out<<" "<<"tmpStyle->SetOptDate(" <<GetOptDate() <<");"<<std::endl;
1936  out<<" "<<"tmpStyle->SetOptStat(" <<GetOptStat() <<");"<<std::endl;
1937 
1938  if (GetOptTitle()) out << " tmpStyle->SetOptTitle(kTRUE);" << std::endl;
1939  else out << " tmpStyle->SetOptTitle(kFALSE);" << std::endl;
1940  out<<" "<<"tmpStyle->SetOptFit(" <<GetOptFit() <<");"<<std::endl;
1941  out<<" "<<"tmpStyle->SetNumberContours(" <<GetNumberContours() <<");"<<std::endl;
1942 
1943  // fAttDate
1944  out<<" "<<"tmpStyle->GetAttDate()->SetTextFont(" <<GetAttDate()->GetTextFont() <<");"<<std::endl;
1945  out<<" "<<"tmpStyle->GetAttDate()->SetTextSize(" <<GetAttDate()->GetTextSize() <<");"<<std::endl;
1946  out<<" "<<"tmpStyle->GetAttDate()->SetTextAngle("<<GetAttDate()->GetTextAngle()<<");"<<std::endl;
1947  out<<" "<<"tmpStyle->GetAttDate()->SetTextAlign("<<GetAttDate()->GetTextAlign()<<");"<<std::endl;
1948  out<<" "<<"tmpStyle->GetAttDate()->SetTextColor("<<GetAttDate()->GetTextColor()<<");"<<std::endl;
1949 
1950  out<<" "<<"tmpStyle->SetDateX(" <<GetDateX() <<");"<<std::endl;
1951  out<<" "<<"tmpStyle->SetDateY(" <<GetDateY() <<");"<<std::endl;
1952  out<<" "<<"tmpStyle->SetEndErrorSize(" <<GetEndErrorSize() <<");"<<std::endl;
1953  out<<" "<<"tmpStyle->SetErrorX(" <<GetErrorX() <<");"<<std::endl;
1954  out<<" "<<"tmpStyle->SetFuncColor(" <<GetFuncColor() <<");"<<std::endl;
1955  out<<" "<<"tmpStyle->SetFuncStyle(" <<GetFuncStyle() <<");"<<std::endl;
1956  out<<" "<<"tmpStyle->SetFuncWidth(" <<GetFuncWidth() <<");"<<std::endl;
1957  out<<" "<<"tmpStyle->SetGridColor(" <<GetGridColor() <<");"<<std::endl;
1958  out<<" "<<"tmpStyle->SetGridStyle(" <<GetGridStyle() <<");"<<std::endl;
1959  out<<" "<<"tmpStyle->SetGridWidth(" <<GetGridWidth() <<");"<<std::endl;
1960  out<<" "<<"tmpStyle->SetLegendBorderSize("<<GetLegendBorderSize()<<");"<<std::endl;
1961  out<<" "<<"tmpStyle->SetLegendFillColor(" <<GetLegendFillColor() <<");"<<std::endl;
1962  out<<" "<<"tmpStyle->SetLegendFont(" <<GetLegendFont() <<");"<<std::endl;
1963  out<<" "<<"tmpStyle->SetLegendTextSize(" <<GetLegendTextSize() <<");"<<std::endl;
1964  out<<" "<<"tmpStyle->SetHatchesLineWidth("<<GetHatchesLineWidth()<<");"<<std::endl;
1965  out<<" "<<"tmpStyle->SetHatchesSpacing(" <<GetHatchesSpacing() <<");"<<std::endl;
1966  out<<" "<<"tmpStyle->SetFrameFillColor(" <<GetFrameFillColor() <<");"<<std::endl;
1967  out<<" "<<"tmpStyle->SetFrameLineColor(" <<GetFrameLineColor() <<");"<<std::endl;
1968  out<<" "<<"tmpStyle->SetFrameFillStyle(" <<GetFrameFillStyle() <<");"<<std::endl;
1969  out<<" "<<"tmpStyle->SetFrameLineStyle(" <<GetFrameLineStyle() <<");"<<std::endl;
1970  out<<" "<<"tmpStyle->SetFrameLineWidth(" <<GetFrameLineWidth() <<");"<<std::endl;
1971  out<<" "<<"tmpStyle->SetFrameBorderSize(" <<GetFrameBorderSize() <<");"<<std::endl;
1972  out<<" "<<"tmpStyle->SetFrameBorderMode(" <<GetFrameBorderMode() <<");"<<std::endl;
1973  out<<" "<<"tmpStyle->SetHistFillColor(" <<GetHistFillColor() <<");"<<std::endl;
1974  out<<" "<<"tmpStyle->SetHistLineColor(" <<GetHistLineColor() <<");"<<std::endl;
1975  out<<" "<<"tmpStyle->SetHistFillStyle(" <<GetHistFillStyle() <<");"<<std::endl;
1976  out<<" "<<"tmpStyle->SetHistLineStyle(" <<GetHistLineStyle() <<");"<<std::endl;
1977  out<<" "<<"tmpStyle->SetHistLineWidth(" <<GetHistLineWidth() <<");"<<std::endl;
1978  if (GetHistMinimumZero()) out<<" tmpStyle->SetHistMinimumZero(kTRUE);" <<std::endl;
1979  else out<<" tmpStyle->SetHistMinimumZero(kFALSE);"<<std::endl;
1980  if (GetCanvasPreferGL()) out<<" tmpStyle->SetCanvasPreferGL(kTRUE);" <<std::endl;
1981  else out<<" tmpStyle->SetCanvasPreferGL(kFALSE);"<<std::endl;
1982  out<<" "<<"tmpStyle->SetCanvasColor(" <<GetCanvasColor() <<");"<<std::endl;
1983  out<<" "<<"tmpStyle->SetCanvasBorderSize("<<GetCanvasBorderSize()<<");"<<std::endl;
1984  out<<" "<<"tmpStyle->SetCanvasBorderMode("<<GetCanvasBorderMode()<<");"<<std::endl;
1985  out<<" "<<"tmpStyle->SetCanvasDefH(" <<GetCanvasDefH() <<");"<<std::endl;
1986  out<<" "<<"tmpStyle->SetCanvasDefW(" <<GetCanvasDefW() <<");"<<std::endl;
1987  out<<" "<<"tmpStyle->SetCanvasDefX(" <<GetCanvasDefX() <<");"<<std::endl;
1988  out<<" "<<"tmpStyle->SetCanvasDefY(" <<GetCanvasDefY() <<");"<<std::endl;
1989  out<<" "<<"tmpStyle->SetPadColor(" <<GetPadColor() <<");"<<std::endl;
1990  out<<" "<<"tmpStyle->SetPadBorderSize(" <<GetPadBorderSize() <<");"<<std::endl;
1991  out<<" "<<"tmpStyle->SetPadBorderMode(" <<GetPadBorderMode() <<");"<<std::endl;
1992  out<<" "<<"tmpStyle->SetPadBottomMargin(" <<GetPadBottomMargin() <<");"<<std::endl;
1993  out<<" "<<"tmpStyle->SetPadTopMargin(" <<GetPadTopMargin() <<");"<<std::endl;
1994  out<<" "<<"tmpStyle->SetPadLeftMargin(" <<GetPadLeftMargin() <<");"<<std::endl;
1995  out<<" "<<"tmpStyle->SetPadRightMargin(" <<GetPadRightMargin() <<");"<<std::endl;
1996  if (GetPadGridX()) out<<" tmpStyle->SetPadGridX(kTRUE);" <<std::endl;
1997  else out<<" tmpStyle->SetPadGridX(kFALSE);"<<std::endl;
1998  if (GetPadGridY()) out<<" tmpStyle->SetPadGridY(kTRUE);" <<std::endl;
1999  else out<<" tmpStyle->SetPadGridY(kFALSE);"<<std::endl;
2000  out<<" "<<"tmpStyle->SetPadTickX(" <<GetPadTickX() <<");"<<std::endl;
2001  out<<" "<<"tmpStyle->SetPadTickY(" <<GetPadTickY() <<");"<<std::endl;
2002 
2003  // fPaperSizeX, fPaperSizeY
2004  out<<" "<<"tmpStyle->SetPaperSize(" <<fPaperSizeX <<", "
2005  <<fPaperSizeY <<");"<<std::endl;
2006 
2007  out<<" "<<"tmpStyle->SetScreenFactor(" <<GetScreenFactor() <<");"<<std::endl;
2008  out<<" "<<"tmpStyle->SetStatColor(" <<GetStatColor() <<");"<<std::endl;
2009  out<<" "<<"tmpStyle->SetStatTextColor(" <<GetStatTextColor() <<");"<<std::endl;
2010  out<<" "<<"tmpStyle->SetStatBorderSize(" <<GetStatBorderSize() <<");"<<std::endl;
2011  out<<" "<<"tmpStyle->SetStatFont(" <<GetStatFont() <<");"<<std::endl;
2012  out<<" "<<"tmpStyle->SetStatFontSize(" <<GetStatFontSize() <<");"<<std::endl;
2013  out<<" "<<"tmpStyle->SetStatStyle(" <<GetStatStyle() <<");"<<std::endl;
2014  out<<" "<<"tmpStyle->SetStatFormat(" <<quote << GetStatFormat()
2015  <<quote <<");"<<std::endl;
2016  out<<" "<<"tmpStyle->SetStatX(" <<GetStatX() <<");"<<std::endl;
2017  out<<" "<<"tmpStyle->SetStatY(" <<GetStatY() <<");"<<std::endl;
2018  out<<" "<<"tmpStyle->SetStatW(" <<GetStatW() <<");"<<std::endl;
2019  out<<" "<<"tmpStyle->SetStatH(" <<GetStatH() <<");"<<std::endl;
2020  if (GetStripDecimals()) out<<" tmpStyle->SetStripDecimals(kTRUE);" <<std::endl;
2021  else out<<" tmpStyle->SetStripDecimals(kFALSE);"<<std::endl;
2022  out<<" "<<"tmpStyle->SetTitleAlign(" <<GetTitleAlign() <<");"<<std::endl;
2023  out<<" "<<"tmpStyle->SetTitleFillColor(" <<GetTitleFillColor() <<");"<<std::endl;
2024  out<<" "<<"tmpStyle->SetTitleTextColor(" <<GetTitleTextColor() <<");"<<std::endl;
2025  out<<" "<<"tmpStyle->SetTitleBorderSize("<<GetTitleBorderSize()<<");"<<std::endl;
2026  out<<" "<<"tmpStyle->SetTitleFont(" <<GetTitleFont() <<");"<<std::endl;
2027  out<<" "<<"tmpStyle->SetTitleFontSize(" <<GetTitleFontSize() <<");"<<std::endl;
2028  out<<" "<<"tmpStyle->SetTitleStyle(" <<GetTitleStyle() <<");"<<std::endl;
2029  out<<" "<<"tmpStyle->SetTitleX(" <<GetTitleX() <<");"<<std::endl;
2030  out<<" "<<"tmpStyle->SetTitleY(" <<GetTitleY() <<");"<<std::endl;
2031  out<<" "<<"tmpStyle->SetTitleW(" <<GetTitleW() <<");"<<std::endl;
2032  out<<" "<<"tmpStyle->SetTitleH(" <<GetTitleH() <<");"<<std::endl;
2033  out<<" "<<"tmpStyle->SetLegoInnerR(" <<GetLegoInnerR() <<");"<<std::endl;
2034  out<<std::endl;
2035 
2036  // fPalette
2037  out<<" "<<"Int_t fPaletteColor[" <<GetNumberOfColors() <<"] = {";
2038  for (Int_t ci=0; ci<GetNumberOfColors()-1; ++ci) {
2039  if (ci % 10 == 9)
2040  out<<std::endl<<" ";
2041  out<<GetColorPalette(ci)<<", ";
2042  }
2043  out<<GetColorPalette(GetNumberOfColors() - 1) <<"};"<<std::endl;
2044  out<<" "<<"tmpStyle->SetPalette(" << GetNumberOfColors()
2045  << ", fPaletteColor);" << std::endl;
2046  out<<std::endl;
2047 
2048  // fLineStyle
2049  out<<" "<<"TString fLineStyleArrayTmp[30] = {";
2050  for (Int_t li=0; li<29; ++li) {
2051  if (li % 5 == 4)
2052  out<<std::endl<<" ";
2053  out<<quote << fLineStyle[li].Data() << quote << ", ";
2054  }
2055  out<<quote<<fLineStyle[29].Data()<<quote<<"};"<<std::endl;
2056  out<<" "<<"for (Int_t i=0; i<30; i++)"<<std::endl;
2057  out<<" "<<" tmpStyle->SetLineStyleString(i, fLineStyleArrayTmp[i]);"<<std::endl;
2058  out<<std::endl;
2059 
2060  out<<" "<<"tmpStyle->SetHeaderPS(" <<quote<<GetHeaderPS()
2061  <<quote <<");"<<std::endl;
2062  out<<" "<<"tmpStyle->SetTitlePS(" <<quote<<GetTitlePS()
2063  <<quote <<");"<<std::endl;
2064  out<<" "<<"tmpStyle->SetFitFormat(" <<quote<<GetFitFormat()
2065  <<quote <<");"<<std::endl;
2066  out<<" "<<"tmpStyle->SetPaintTextFormat("<<quote<<GetPaintTextFormat()
2067  <<quote <<");"<<std::endl;
2068  out<<" "<<"tmpStyle->SetLineScalePS(" <<GetLineScalePS() <<");"<<std::endl;
2069  out<<" "<<"tmpStyle->SetJoinLinePS(" <<GetJoinLinePS() <<");"<<std::endl;
2070  out<<" "<<"tmpStyle->SetCapLinePS(" <<GetCapLinePS() <<");"<<std::endl;
2071  out<<" "<<"tmpStyle->SetColorModelPS(" <<GetColorModelPS() <<");"<<std::endl;
2072  out<<" "<<Form("tmpStyle->SetTimeOffset(%9.0f);", GetTimeOffset()) <<std::endl;
2073  out<<std::endl;
2074 
2075  // Inheritance :
2076  // TAttLine :
2077  out <<" " <<"tmpStyle->SetLineColor(" <<GetLineColor() <<");" <<std::endl;
2078  out <<" " <<"tmpStyle->SetLineStyle(" <<GetLineStyle() <<");" <<std::endl;
2079  out <<" " <<"tmpStyle->SetLineWidth(" <<GetLineWidth() <<");" <<std::endl;
2080 
2081  // TAttFill
2082  out <<" " <<"tmpStyle->SetFillColor(" <<GetFillColor() <<");" <<std::endl;
2083  out <<" " <<"tmpStyle->SetFillStyle(" <<GetFillStyle() <<");" <<std::endl;
2084 
2085  // TAttMarker
2086  out <<" " <<"tmpStyle->SetMarkerColor(" <<GetMarkerColor() <<");" <<std::endl;
2087  out <<" " <<"tmpStyle->SetMarkerSize(" <<GetMarkerSize() <<");" <<std::endl;
2088  out <<" " <<"tmpStyle->SetMarkerStyle(" <<GetMarkerStyle() <<");" <<std::endl;
2089 
2090  // TAttText
2091  out <<" " <<"tmpStyle->SetTextAlign(" <<GetTextAlign() <<");" <<std::endl;
2092  out <<" " <<"tmpStyle->SetTextAngle(" <<GetTextAngle() <<");" <<std::endl;
2093  out <<" " <<"tmpStyle->SetTextColor(" <<GetTextColor() <<");" <<std::endl;
2094  out <<" " <<"tmpStyle->SetTextFont(" <<GetTextFont() <<");" <<std::endl;
2095  out <<" " <<"tmpStyle->SetTextSize(" <<GetTextSize() <<");" <<std::endl;
2096 }
c
#define c(i)
Definition: RSha256.hxx:119
l
auto * l
Definition: textangle.C:4
TStyle::SetLabelSize
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Set size of axis labels.
Definition: TStyle.cxx:1395
TAttText
Definition: TAttText.h:18
TStyle::Copy
virtual void Copy(TObject &style) const
Copy this style.
Definition: TStyle.cxx:536
SetMarkerStyle
m SetMarkerStyle(20)
n
const Int_t n
Definition: legend1.C:16
TStyle::SetTickLength
void SetTickLength(Float_t length=0.03, Option_t *axis="X")
Set the tick marks length for an axis.
Definition: TStyle.cxx:1688
TStyle::SetPadColor
void SetPadColor(Color_t color=19)
Definition: TStyle.h:338
TStyle::GetPadBorderMode
Int_t GetPadBorderMode() const
Definition: TStyle.h:201
TAttAxis::ResetAttAxis
virtual void ResetAttAxis(Option_t *option="")
Reset axis attributes.
Definition: TAttAxis.cxx:78
TStyle::GetEndErrorSize
Float_t GetEndErrorSize() const
Definition: TStyle.h:177
TStyle::GetTickLength
Float_t GetTickLength(Option_t *axis="X") const
Return tick length.
Definition: TStyle.cxx:1142
TStyle::GetStatW
Float_t GetStatW() const
Definition: TStyle.h:257
TStyle::SetStatBorderSize
void SetStatBorderSize(Width_t size=2)
Definition: TStyle.h:376
TStyle::SetTitleFont
void SetTitleFont(Style_t font=62, Option_t *axis="X")
Definition: TStyle.cxx:1728
TBrowser
Definition: TBrowser.h:37
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TStyle::fHeaderPS
TString fHeaderPS
User defined additional Postscript header.
Definition: TStyle.h:130
TStyle::GetTitlePS
const char * GetTitlePS() const
Definition: TStyle.h:276
TStyle::fCanvasBorderSize
Width_t fCanvasBorderSize
Canvas border size.
Definition: TStyle.h:85
Style_t
short Style_t
Definition: RtypesCore.h:80
TStyle::SetPadBottomMargin
void SetPadBottomMargin(Float_t margin=0.1)
Definition: TStyle.h:341
TStyle::GetPaintTextFormat
const char * GetPaintTextFormat() const
Definition: TStyle.h:241
TStyle::GetFitFormat
const char * GetFitFormat() const
Definition: TStyle.h:191
TStyle::fStatFormat
TString fStatFormat
Printing format for stats.
Definition: TStyle.h:111
TStyle::GetOptLogy
Int_t GetOptLogy() const
Definition: TStyle.h:239
TStyle::SetHistMinimumZero
void SetHistMinimumZero(Bool_t zero=kTRUE)
If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms is set to 0.
Definition: TStyle.cxx:1239
snprintf
#define snprintf
Definition: civetweb.c:1540
TStyle::GetFuncColor
Color_t GetFuncColor() const
Definition: TStyle.h:210
TStyle::~TStyle
virtual ~TStyle()
Destructor.
Definition: TStyle.cxx:478
TStyle::SetTitlePS
void SetTitlePS(const char *pstitle)
Define a string to be used in the %Title of the Postscript files.
Definition: TStyle.cxx:1334
TStyle::fHistLineColor
Color_t fHistLineColor
Histogram line color.
Definition: TStyle.h:77
TStyle::SetTitleStyle
void SetTitleStyle(Style_t style=1001)
Definition: TStyle.h:389
TNamed::SetNameTitle
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
Definition: TNamed.cxx:154
TStyle::GetFrameLineColor
Color_t GetFrameLineColor() const
Definition: TStyle.h:217
TStyle::GetTitleY
Float_t GetTitleY() const
Definition: TStyle.h:272
TStyle::SavePrimitive
void SavePrimitive(std::ostream &out, Option_t *="")
Save a main frame widget as a C++ statement(s) on output stream out.
Definition: TStyle.cxx:1882
TStyle::SetPaintTextFormat
void SetPaintTextFormat(const char *format="g")
Definition: TStyle.h:369
TStyle::fTitleColor
Color_t fTitleColor
Title fill area color.
Definition: TStyle.h:118
gEnv
R__EXTERN TEnv * gEnv
Definition: TEnv.h:171
kGreen
@ kGreen
Definition: Rtypes.h:66
TSystem::BaseName
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
Definition: TSystem.cxx:933
TStyle::SetLineStyleString
void SetLineStyleString(Int_t i, const char *text)
Set line style string using the PostScript convention.
Definition: TStyle.cxx:1434
TStyle::fHistTopMargin
Double_t fHistTopMargin
Margin between histogram's top and pad's top.
Definition: TStyle.h:82
TStyle::SetLabelColor
void SetLabelColor(Color_t color=1, Option_t *axis="X")
Set axis labels color.
Definition: TStyle.cxx:1344
TStyle::fCanvasColor
Color_t fCanvasColor
Canvas color.
Definition: TStyle.h:84
TString::Data
const char * Data() const
Definition: TString.h:369
TStyle::fIsReading
Bool_t fIsReading
! Set to FALSE when userclass::UseCurrentStyle is called by the style manager
Definition: TStyle.h:138
TStyle::GetCanvasBorderMode
Int_t GetCanvasBorderMode() const
Definition: TStyle.h:182
TStyle::GetTitleOffset
Float_t GetTitleOffset(Option_t *axis="X") const
Return title offset.
Definition: TStyle.cxx:1178
TStyle::GetDateX
Float_t GetDateX() const
Definition: TStyle.h:189
TAttAxis::SetAxisColor
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
Set color of the line axis and tick marks.
Definition: TAttAxis.cxx:162
TStyle::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Function used by the TStyle manager when drawing a canvas showing the current style.
Definition: TStyle.cxx:658
TAttAxis::Copy
void Copy(TAttAxis &attaxis) const
Copy of the object.
Definition: TAttAxis.cxx:60
TStyle::GetFrameFillStyle
Style_t GetFrameFillStyle() const
Definition: TStyle.h:218
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
Form
char * Form(const char *fmt,...)
TNamed::GetTitle
virtual const char * GetTitle() const
Returns title of object.
Definition: TNamed.h:54
TStyle::fHistLineWidth
Width_t fHistLineWidth
Histogram line width.
Definition: TStyle.h:80
TStyle::SetTitleSize
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
Definition: TStyle.cxx:1770
TStyle::SetLabelOffset
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis labels.
Definition: TStyle.cxx:1380
TStyle::fErrorX
Float_t fErrorX
Per cent of bin width for errors along X.
Definition: TStyle.h:56
TStyle::fStripDecimals
Bool_t fStripDecimals
Strip decimals in axis labels.
Definition: TStyle.h:116
TStyle::GetLegendFont
Style_t GetLegendFont() const
Definition: TStyle.h:196
TDatime.h
TStyle::GetHistFillColor
Color_t GetHistFillColor() const
Definition: TStyle.h:223
TAttAxis::SetLabelOffset
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels.
Definition: TAttAxis.cxx:192
SetFillStyle
a SetFillStyle(0)
TStyle::SetFuncWidth
void SetFuncWidth(Width_t width=4)
Definition: TStyle.h:351
TStyle::fXaxis
TAttAxis fXaxis
X axis attributes.
Definition: TStyle.h:32
TStyle::GetLineScalePS
Float_t GetLineScalePS() const
Definition: TStyle.h:280
TStyle::fDateX
Float_t fDateX
X position of the date in the canvas (in NDC)
Definition: TStyle.h:53
TStyle::GetStatColor
Color_t GetStatColor() const
Definition: TStyle.h:248
TObject::Error
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition: TObject.cxx:890
colors
Color * colors
Definition: X3DBuffer.c:21
TStyle::fBarOffset
Float_t fBarOffset
Offset of bar for graphs.
Definition: TStyle.h:36
TStyle::fLegendFont
Style_t fLegendFont
Legend font style.
Definition: TStyle.h:65
TStyle::GetTitleFontSize
Float_t GetTitleFontSize() const
Definition: TStyle.h:265
TStyle::fPadRightMargin
Float_t fPadRightMargin
Pad right margin.
Definition: TStyle.h:97
TStyle::SetColorModelPS
void SetColorModelPS(Int_t c=0)
Define the color model used by TPostScript and TPDF (RGB or CMYK).
Definition: TStyle.cxx:1226
TAttMarker::Copy
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
Definition: TAttMarker.cxx:235
TStyle::fPadGridX
Bool_t fPadGridX
True to get the grid along X.
Definition: TStyle.h:98
TStyle::GetCanvasDefH
Int_t GetCanvasDefH() const
Definition: TStyle.h:183
TStyle::fPadTickY
Int_t fPadTickY
True to set special pad ticks along Y.
Definition: TStyle.h:101
TStyle::GetLabelColor
Color_t GetLabelColor(Option_t *axis="X") const
Return the label color number in the axis.
Definition: TStyle.cxx:1066
TAttAxis::GetLabelSize
virtual Float_t GetLabelSize() const
Definition: TAttAxis.h:47
TStyle::fFuncColor
Color_t fFuncColor
Function color.
Definition: TStyle.h:57
TStyle::GetNumberOfColors
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
Definition: TStyle.cxx:1124
TStyle::fPadColor
Color_t fPadColor
Pad color.
Definition: TStyle.h:91
Float_t
float Float_t
Definition: RtypesCore.h:57
TStyle::GetOptFit
Int_t GetOptFit() const
Definition: TStyle.h:235
TStyle::EPaperSize
EPaperSize
Definition: TStyle.h:142
TStyle::GetFrameBorderMode
Int_t GetFrameBorderMode() const
Definition: TStyle.h:222
TStyle::fFuncWidth
Width_t fFuncWidth
Function line width.
Definition: TStyle.h:59
TStyle.h
TStyle::fLineScalePS
Float_t fLineScalePS
Line scale factor when drawing lines on Postscript.
Definition: TStyle.h:134
TStyle::fPaperSizeX
Float_t fPaperSizeX
PostScript paper size along X.
Definition: TStyle.h:102
TAttText::Copy
void Copy(TAttText &atttext) const
Copy this text attributes to a new TAttText.
Definition: TAttText.cxx:291
TStyle::SetStatColor
void SetStatColor(Color_t color=19)
Definition: TStyle.h:373
TStyle::fOptLogz
Int_t fOptLogz
True if log scale in z.
Definition: TStyle.h:41
TStyle::GetTitleSize
Float_t GetTitleSize(Option_t *axis="X") const
Return title size.
Definition: TStyle.cxx:1190
TStyle::fOptTitle
Int_t fOptTitle
True if option Title is selected.
Definition: TStyle.h:44
TStyle::fOptFile
Int_t fOptFile
True if option File is selected.
Definition: TStyle.h:45
TStyle::Browse
virtual void Browse(TBrowser *b)
Browse the style object.
Definition: TStyle.cxx:502
TStyle::fStatTextColor
Color_t fStatTextColor
Stat text color.
Definition: TStyle.h:106
TStyle::SetEndErrorSize
void SetEndErrorSize(Float_t np=2)
Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors).
Definition: TStyle.cxx:1291
TStyle::GetPadTopMargin
Float_t GetPadTopMargin() const
Definition: TStyle.h:203
TString::Contains
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Definition: TString.h:624
TStyle::GetTitleColor
Color_t GetTitleColor(Option_t *axis="X") const
Return title color.
Definition: TStyle.cxx:1154
TStyle::fHistFillColor
Color_t fHistFillColor
Histogram fill color.
Definition: TStyle.h:76
TStyle::fFitFormat
TString fFitFormat
Printing format for fit parameters.
Definition: TStyle.h:132
TStyle::fFrameLineStyle
Style_t fFrameLineStyle
Pad frame line style.
Definition: TStyle.h:72
TStyle::SetTitleFillColor
void SetTitleFillColor(Color_t color=1)
Definition: TStyle.h:387
TAttAxis::GetAxisColor
virtual Color_t GetAxisColor() const
Definition: TAttAxis.h:43
TStyle::fFrameBorderMode
Int_t fFrameBorderMode
Pad frame border mode.
Definition: TStyle.h:75
TStyle::SetPaperSize
void SetPaperSize(EPaperSize size)
Set paper size for PostScript output.
Definition: TStyle.cxx:1657
TStyle::SetHeaderPS
void SetHeaderPS(const char *header)
Define a string to be inserted in the Postscript header.
Definition: TStyle.cxx:1313
TStyle::fFuncStyle
Style_t fFuncStyle
Function style.
Definition: TStyle.h:58
TStyle::fStatFontSize
Float_t fStatFontSize
Font size in pixels for fonts with precision type 3.
Definition: TStyle.h:109
TEnv::GetValue
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
Definition: TEnv.cxx:491
TStyle::fJoinLinePS
Int_t fJoinLinePS
Determines the appearance of joining lines on PostScript, PDF and SVG.
Definition: TStyle.h:135
TStyle::fHistFillStyle
Style_t fHistFillStyle
Histogram fill style.
Definition: TStyle.h:78
TColor.h
TStyle::fTitleW
Float_t fTitleW
Width of title box.
Definition: TStyle.h:126
TStyle::GetStatFontSize
Float_t GetStatFontSize() const
Definition: TStyle.h:252
TStyle::SetTitleXOffset
void SetTitleXOffset(Float_t offset=1)
Definition: TStyle.h:392
TStyle::GetLegoInnerR
Float_t GetLegoInnerR() const
Definition: TStyle.h:231
TStyle::SetLegendFont
void SetLegendFont(Style_t font=62)
Definition: TStyle.h:336
TStyle::fGridStyle
Style_t fGridStyle
Grid line style.
Definition: TStyle.h:61
TStyle::GetFrameBorderSize
Width_t GetFrameBorderSize() const
Definition: TStyle.h:221
TColor::GetColorPalette
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
Definition: TColor.cxx:1390
TEnv.h
TStyle::Reset
virtual void Reset(Option_t *option="")
Reset.
Definition: TStyle.cxx:667
TStyle::SaveSource
void SaveSource(const char *filename, Option_t *option=0)
Save the current style in a C++ macro file.
Definition: TStyle.cxx:1824
TStyle::SetPadTickY
void SetPadTickY(Int_t ticky)
Definition: TStyle.h:348
TStyle::GetBarOffset
Float_t GetBarOffset() const
Definition: TStyle.h:174
TStyle::SetPadBorderMode
void SetPadBorderMode(Int_t mode=1)
Definition: TStyle.h:340
TString
Definition: TString.h:136
TAttAxis::GetLabelOffset
virtual Float_t GetLabelOffset() const
Definition: TAttAxis.h:46
TStyle::fYaxis
TAttAxis fYaxis
Y axis attributes.
Definition: TStyle.h:33
TStyle::SetStatFont
void SetStatFont(Style_t font=62)
Definition: TStyle.h:377
TStyle::fHatchesLineWidth
Int_t fHatchesLineWidth
Hatches line width for hatch styles > 3100.
Definition: TStyle.h:67
TStyle::fTitleX
Float_t fTitleX
X position of top left corner of title box.
Definition: TStyle.h:124
TStyle::SetFitFormat
void SetFitFormat(const char *format="5.4g")
Definition: TStyle.h:287
Color_t
short Color_t
Definition: RtypesCore.h:83
TStyle::fShowToolBar
Int_t fShowToolBar
Show toolbar.
Definition: TStyle.h:49
TStyle::GetDateY
Float_t GetDateY() const
Definition: TStyle.h:190
text
TText * text
Definition: entrylist_figure1.C:10
TStyle::GetStatY
Float_t GetStatY() const
Definition: TStyle.h:256
TAttText::ResetAttText
virtual void ResetAttText(Option_t *toption="")
Reset this text attributes to default values.
Definition: TAttText.cxx:332
TStyle::GetPadTickY
Int_t GetPadTickY() const
Definition: TStyle.h:209
TStyle::fPadBorderSize
Width_t fPadBorderSize
Pad border size.
Definition: TStyle.h:92
TStyle::GetLineStyleString
const char * GetLineStyleString(Int_t i=1) const
Return line style string (used by PostScript).
Definition: TStyle.cxx:1115
TStyle::SetErrorX
void SetErrorX(Float_t errorx=0.5)
Definition: TStyle.h:324
TStyle::fCanvasDefX
Int_t fCanvasDefX
Default canvas top X position.
Definition: TStyle.h:89
TStyle::fImageScaling
Float_t fImageScaling
Image scaling to produce high definition bitmap images.
Definition: TStyle.h:139
TAttAxis::SetTitleColor
virtual void SetTitleColor(Color_t color=1)
Set color of axis title.
Definition: TAttAxis.cxx:312
gStyle
TStyle * gStyle
Definition: TStyle.cxx:30
TStyle::GetStatH
Float_t GetStatH() const
Definition: TStyle.h:258
bool
TStyle::fStatY
Float_t fStatY
Y position of top right corner of stat box.
Definition: TStyle.h:113
TStyle::SetOptFit
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
Definition: TStyle.cxx:1544
TStyle::GetTitleStyle
Style_t GetTitleStyle() const
Definition: TStyle.h:264
TStyle::SetStatFormat
void SetStatFormat(const char *format="6.4g")
Definition: TStyle.h:379
TStyle::GetFrameLineWidth
Width_t GetFrameLineWidth() const
Definition: TStyle.h:220
TAttAxis::SetTitleSize
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title.
Definition: TAttAxis.cxx:303
TStyle::GetLabelOffset
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
Definition: TStyle.cxx:1090
TStyle::fDateY
Float_t fDateY
Y position of the date in the canvas (in NDC)
Definition: TStyle.h:54
TStyle::GetLegendBorderSize
Width_t GetLegendBorderSize() const
Definition: TStyle.h:194
TStyle::GetCanvasPreferGL
Bool_t GetCanvasPreferGL() const
Definition: TStyle.h:179
TStyle::GetCanvasColor
Color_t GetCanvasColor() const
Definition: TStyle.h:180
TROOT.h
TStyle::fHatchesSpacing
Double_t fHatchesSpacing
Hatches spacing for hatch styles > 3100.
Definition: TStyle.h:68
TStyle::GetFuncStyle
Style_t GetFuncStyle() const
Definition: TStyle.h:211
TStyle::fTimeOffset
Double_t fTimeOffset
Time offset to the beginning of an axis.
Definition: TStyle.h:137
TApplication.h
style
TCanvas * style()
Definition: style.C:1
TStyle::GetStripDecimals
Int_t GetStripDecimals() const
Definition: TStyle.h:259
TStyle::GetStatTextColor
Color_t GetStatTextColor() const
Definition: TStyle.h:249
TStyle::GetNdivisions
Int_t GetNdivisions(Option_t *axis="X") const
Return number of divisions.
Definition: TStyle.cxx:1034
TStyle::fShowEventStatus
Int_t fShowEventStatus
Show event status panel.
Definition: TStyle.h:47
TStyle::fFrameFillStyle
Style_t fFrameFillStyle
Pad frame fill style.
Definition: TStyle.h:71
TStyle::fTitleFont
Style_t fTitleFont
Font style of Title PaveLabel.
Definition: TStyle.h:121
TStyle::fStatX
Float_t fStatX
X position of top right corner of stat box.
Definition: TStyle.h:112
TAttLine::Copy
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
Definition: TAttLine.cxx:172
kBlack
@ kBlack
Definition: Rtypes.h:65
TStyle::fLegoInnerR
Float_t fLegoInnerR
Inner radius for cylindrical legos.
Definition: TStyle.h:128
TStyle::GetCanvasDefX
Int_t GetCanvasDefX() const
Definition: TStyle.h:185
TAttAxis::SetLabelSize
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
Definition: TAttAxis.cxx:203
TStyle::fOptLogx
Int_t fOptLogx
True if log scale in X.
Definition: TStyle.h:39
TStyle::GetScreenFactor
Float_t GetScreenFactor() const
Definition: TStyle.h:247
TStyle::fTitleY
Float_t fTitleY
Y position of top left corner of title box.
Definition: TStyle.h:125
TStyle::GetStatFormat
const char * GetStatFormat() const
Definition: TStyle.h:254
TStyle::GetCanvasDefY
Int_t GetCanvasDefY() const
Definition: TStyle.h:186
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TStyle::GetGridWidth
Width_t GetGridWidth() const
Definition: TStyle.h:215
TStyle::GetFrameFillColor
Color_t GetFrameFillColor() const
Definition: TStyle.h:216
TAttFill::Copy
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
Definition: TAttFill.cxx:202
TStyle::GetTitleBorderSize
Width_t GetTitleBorderSize() const
Definition: TStyle.h:266
TStyle::GetTitleAlign
Int_t GetTitleAlign()
Definition: TStyle.h:261
SetLineWidth
f1 SetLineWidth(4)
TAttLine
Definition: TAttLine.h:18
TStyle::GetFrameLineStyle
Style_t GetFrameLineStyle() const
Definition: TStyle.h:219
TStyle::fFrameLineWidth
Width_t fFrameLineWidth
Pad frame line width.
Definition: TStyle.h:73
TSystem.h
TStyle::SetStripDecimals
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
Definition: TStyle.cxx:1816
SetFillColor
h1 SetFillColor(kGreen)
TStyle::GetHatchesLineWidth
Int_t GetHatchesLineWidth() const
Definition: TStyle.h:192
TStyle::fHistMinimumZero
Bool_t fHistMinimumZero
True if default minimum is 0, false if minimum is automatic.
Definition: TStyle.h:81
TColor
Definition: TColor.h:19
TStyle::GetTitleFillColor
Color_t GetTitleFillColor() const
Definition: TStyle.h:262
TAttAxis::GetTitleColor
virtual Color_t GetTitleColor() const
Definition: TAttAxis.h:52
gROOTMutex
R__EXTERN TVirtualMutex * gROOTMutex
Definition: TROOT.h:61
TStyle::GetOptTitle
Int_t GetOptTitle() const
Definition: TStyle.h:237
TStyle::fTitlePS
TString fTitlePS
User defined Postscript file title.
Definition: TStyle.h:131
TStyle::GetPadColor
Color_t GetPadColor() const
Definition: TStyle.h:199
TAttAxis::GetTickLength
virtual Float_t GetTickLength() const
Definition: TAttAxis.h:51
TObject::SetBit
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Definition: TObject.cxx:696
TDatime::AsSQLString
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
Definition: TDatime.cxx:152
TStyle::GetPadTickX
Int_t GetPadTickX() const
Definition: TStyle.h:208
TStyle::fStatW
Float_t fStatW
Width of stat box.
Definition: TStyle.h:114
TStyle::fEndErrorSize
Float_t fEndErrorSize
Size of lines at the end of error bars.
Definition: TStyle.h:55
SetMarkerSize
gr SetMarkerSize(1.3)
TStyle::SetTitleX
void SetTitleX(Float_t x=0)
Definition: TStyle.h:396
TAttAxis::SetTitleFont
virtual void SetTitleFont(Style_t font=62)
Set the title font.
Definition: TAttAxis.cxx:321
TStyle::fCanvasDefY
Int_t fCanvasDefY
Default canvas top Y position.
Definition: TStyle.h:90
TStyle::fStatFont
Style_t fStatFont
Font style of Stats PaveLabel.
Definition: TStyle.h:108
TStyle::GetDrawBorder
Int_t GetDrawBorder() const
Definition: TStyle.h:176
TAttAxis::GetLabelColor
virtual Color_t GetLabelColor() const
Definition: TAttAxis.h:44
TStyle::AxisChoice
Int_t AxisChoice(Option_t *axis) const
Definition: TStyle.h:149
TNamed
Definition: TNamed.h:29
TAttMarker::ResetAttMarker
virtual void ResetAttMarker(Option_t *toption="")
Reset this marker attributes to the default values.
Definition: TAttMarker.cxx:329
TStyle::SetLabelFont
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
Definition: TStyle.cxx:1364
TStyle::SetLineScalePS
void SetLineScalePS(Float_t scale=3)
Definition: TStyle.h:294
TStyle::BuildStyles
static void BuildStyles()
Create some standard styles.
Definition: TStyle.cxx:510
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TStyle::fPadLeftMargin
Float_t fPadLeftMargin
Pad left margin.
Definition: TStyle.h:96
TStyle::fFrameBorderSize
Width_t fFrameBorderSize
Pad frame border size.
Definition: TStyle.h:74
TStyle::fOptStat
Int_t fOptStat
True if option Stat is selected.
Definition: TStyle.h:43
TStyle::GetHistFillStyle
Style_t GetHistFillStyle() const
Definition: TStyle.h:225
TStyle::GetTimeOffset
Double_t GetTimeOffset() const
Definition: TStyle.h:260
TStyle::fTitleH
Float_t fTitleH
Height of title box.
Definition: TStyle.h:127
TStyle::fShowEditor
Int_t fShowEditor
Show pad editor.
Definition: TStyle.h:48
TStyle::fFrameFillColor
Color_t fFrameFillColor
Pad frame fill color.
Definition: TStyle.h:69
TStyle::GetTitleTextColor
Color_t GetTitleTextColor() const
Definition: TStyle.h:263
TObject::FindObject
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
Definition: TObject.cxx:323
TStyle::fCapLinePS
Int_t fCapLinePS
Determines the appearance of line caps on PostScript, PDF and SVG.
Definition: TStyle.h:136
TStyle::operator=
TStyle & operator=(const TStyle &style)
Definition: TStyle.cxx:493
TStyle::fLineStyle
TString fLineStyle[30]
String describing line style i (for postScript)
Definition: TStyle.h:129
TAttMarker
Definition: TAttMarker.h:19
TStyle::GetOptDate
Int_t GetOptDate() const
Definition: TStyle.h:233
TAttLine::ResetAttLine
virtual void ResetAttLine(Option_t *option="")
Reset this line attributes to default values.
Definition: TAttLine.cxx:260
gApplication
R__EXTERN TApplication * gApplication
Definition: TApplication.h:166
TStyle::SetTitleYOffset
void SetTitleYOffset(Float_t offset=1)
Definition: TStyle.h:394
TStyle::fPadTopMargin
Float_t fPadTopMargin
Pad top margin.
Definition: TStyle.h:95
TStyle::GetColorPalette
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
Definition: TStyle.cxx:1058
BIT
#define BIT(n)
Definition: Rtypes.h:85
R__LOCKGUARD
#define R__LOCKGUARD(mutex)
Definition: TVirtualMutex.h:104
TVirtualPad.h
TStyle::SetFrameBorderMode
void SetFrameBorderMode(Int_t mode=1)
Definition: TStyle.h:361
TStyle::SetDateY
void SetDateY(Float_t y=0.01)
Definition: TStyle.h:322
TStyle
Definition: TStyle.h:29
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TStyle::kUSLetter
@ kUSLetter
Definition: TStyle.h:142
TStyle::GetNumberContours
Int_t GetNumberContours() const
Definition: TStyle.h:232
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
TStyle::SetHistLineWidth
void SetHistLineWidth(Width_t width=1)
Definition: TStyle.h:366
TStyle::GetStatX
Float_t GetStatX() const
Definition: TStyle.h:255
TStyle::SetPadTopMargin
void SetPadTopMargin(Float_t margin=0.1)
Definition: TStyle.h:342
TStyle::fPadBorderMode
Int_t fPadBorderMode
Pad border mode.
Definition: TStyle.h:93
TStyle::SetTitleTextColor
void SetTitleTextColor(Color_t color=1)
Definition: TStyle.h:388
TStyle::kA4
@ kA4
Definition: TStyle.h:142
TStyle::SetPadLeftMargin
void SetPadLeftMargin(Float_t margin=0.1)
Definition: TStyle.h:343
TStyle::GetPadLeftMargin
Float_t GetPadLeftMargin() const
Definition: TStyle.h:204
TStyle::GetPadGridY
Bool_t GetPadGridY() const
Definition: TStyle.h:207
TStyle::GetBarWidth
Float_t GetBarWidth() const
Definition: TStyle.h:175
kRed
@ kRed
Definition: Rtypes.h:66
TVirtualMutex.h
TAttFill::ResetAttFill
virtual void ResetAttFill(Option_t *option="")
Reset this fill attributes to default values.
Definition: TAttFill.cxx:225
TStyle::SetFrameLineWidth
void SetFrameLineWidth(Width_t width=1)
Definition: TStyle.h:359
TStyle::SetOptStat
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Definition: TStyle.cxx:1592
TStyle::SetOptTitle
void SetOptTitle(Int_t tit=1)
Definition: TStyle.h:318
TStyle::fHistLineStyle
Style_t fHistLineStyle
Histogram line style.
Definition: TStyle.h:79
TStyle::GetGridStyle
Style_t GetGridStyle() const
Definition: TStyle.h:214
TStyle::SetTimeOffset
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
Definition: TStyle.cxx:1803
TStyle::GetAxisColor
Color_t GetAxisColor(Option_t *axis="X") const
Return the axis color number in the axis.
Definition: TStyle.cxx:1046
TStyle::fAttDate
TAttText fAttDate
Canvas date attribute.
Definition: TStyle.h:52
gSystem
R__EXTERN TSystem * gSystem
Definition: TSystem.h:559
TStyle::GetTitleH
Float_t GetTitleH() const
Definition: TStyle.h:274
TStyle::GetErrorX
Float_t GetErrorX() const
Definition: TStyle.h:178
TStyle::SetPadRightMargin
void SetPadRightMargin(Float_t margin=0.1)
Definition: TStyle.h:344
TStyle::fPaperSizeY
Float_t fPaperSizeY
PostScript paper size along Y.
Definition: TStyle.h:103
TAttAxis::SetLabelColor
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
Definition: TAttAxis.cxx:172
TStyle::SetHistLineColor
void SetHistLineColor(Color_t color=1)
Definition: TStyle.h:363
TStyle::SetStatY
void SetStatY(Float_t y=0)
Definition: TStyle.h:381
TStyle::GetPadRightMargin
Float_t GetPadRightMargin() const
Definition: TStyle.h:205
TStyle::GetHistMinimumZero
Bool_t GetHistMinimumZero() const
Definition: TStyle.h:228
TStyle::fTitleBorderSize
Width_t fTitleBorderSize
Border size of Title PavelLabel.
Definition: TStyle.h:120
TStyle::SetCanvasColor
void SetCanvasColor(Color_t color=19)
Definition: TStyle.h:327
TStyle::GetHatchesSpacing
Double_t GetHatchesSpacing() const
Definition: TStyle.h:193
Double_t
double Double_t
Definition: RtypesCore.h:59
TStyle::SetCanvasBorderMode
void SetCanvasBorderMode(Int_t mode=1)
Definition: TStyle.h:329
TStyle::fFrameLineColor
Color_t fFrameLineColor
Pad frame line color.
Definition: TStyle.h:70
TStyle::fPadTickX
Int_t fPadTickX
True to set special pad ticks along X.
Definition: TStyle.h:100
TStyle::fBarWidth
Float_t fBarWidth
Width of bar for graphs.
Definition: TStyle.h:35
TStyle::SetPalette
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
Definition: TStyle.cxx:1785
TStyle::GetAttDate
TAttText * GetAttDate()
Definition: TStyle.h:162
TStyle::fCanvasPreferGL
Bool_t fCanvasPreferGL
If true, rendering in canvas is with GL.
Definition: TStyle.h:83
TStyle::SetTitleAlign
void SetTitleAlign(Int_t a=13)
Definition: TStyle.h:386
TStyle::SetLegendBorderSize
void SetLegendBorderSize(Width_t size=4)
Definition: TStyle.h:334
TStyle::SetLegendFillColor
void SetLegendFillColor(Color_t color=0)
Definition: TStyle.h:335
TStyle::GetLegendTextSize
Double_t GetLegendTextSize() const
Definition: TStyle.h:197
TStyle::GetCanvasBorderSize
Width_t GetCanvasBorderSize() const
Definition: TStyle.h:181
TStyle::fScreenFactor
Float_t fScreenFactor
Multiplication factor for canvas size and position.
Definition: TStyle.h:104
TStyle::fNumberContours
Int_t fNumberContours
Default number of contours for 2-d plots.
Definition: TStyle.h:51
TAttAxis::GetTitleFont
virtual Style_t GetTitleFont() const
Definition: TAttAxis.h:53
TStyle::GetOptLogz
Int_t GetOptLogz() const
Definition: TStyle.h:240
TObject
Definition: TObject.h:37
TStyle::Paint
virtual void Paint(Option_t *option="")
Show the options from the current style.
Definition: TStyle.cxx:1202
TStyle::fPadBottomMargin
Float_t fPadBottomMargin
Pad bottom margin.
Definition: TStyle.h:94
TStyle::fCanvasDefW
Int_t fCanvasDefW
Default canvas width.
Definition: TStyle.h:88
TStyle::GetCanvasDefW
Int_t GetCanvasDefW() const
Definition: TStyle.h:184
TStyle::GetOptLogx
Int_t GetOptLogx() const
Definition: TStyle.h:238
TStyle::SetFuncColor
void SetFuncColor(Color_t color=1)
Definition: TStyle.h:350
TStyle::GetLabelFont
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
Definition: TStyle.cxx:1078
TStyle::GetFuncWidth
Width_t GetFuncWidth() const
Definition: TStyle.h:212
TStyle::SetTitleBorderSize
void SetTitleBorderSize(Width_t size=2)
Definition: TStyle.h:391
TStyle::GetHeaderPS
const char * GetHeaderPS() const
Definition: TStyle.h:275
TAttAxis::SetTickLength
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length.
Definition: TAttAxis.cxx:279
TStyle::SetDateX
void SetDateX(Float_t x=0.01)
Definition: TStyle.h:321
name
char name[80]
Definition: TGX11.cxx:110
TStyle::GetGridColor
Color_t GetGridColor() const
Definition: TStyle.h:213
kBlue
@ kBlue
Definition: Rtypes.h:66
TStyle::GetTitleFont
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
Definition: TStyle.cxx:1166
TStyle::fPaintTextFormat
TString fPaintTextFormat
Printing format for TH2::PaintText.
Definition: TStyle.h:133
TStyle::fLegendFillColor
Color_t fLegendFillColor
Legend fill color.
Definition: TStyle.h:64
TStyle::fCanvasDefH
Int_t fCanvasDefH
Default canvas height.
Definition: TStyle.h:87
TAttAxis::SetNdivisions
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
Definition: TAttAxis.cxx:228
TStyle::GetPadGridX
Bool_t GetPadGridX() const
Definition: TStyle.h:206
gPad
#define gPad
Definition: TVirtualPad.h:287
TStyle::SetLegendTextSize
void SetLegendTextSize(Double_t size=0.)
Definition: TStyle.h:337
TIter
Definition: TCollection.h:233
TStyle::GetColorModelPS
Int_t GetColorModelPS() const
Definition: TStyle.h:188
TStyle::fOptFit
Int_t fOptFit
True if option Fit is selected.
Definition: TStyle.h:46
TObject::Copy
virtual void Copy(TObject &object) const
Copy this to obj.
Definition: TObject.cxx:63
TStyle::fStatStyle
Style_t fStatStyle
Fill area style of Stats PaveLabel.
Definition: TStyle.h:110
TDatime
Definition: TDatime.h:37
TStyle::SetFrameFillColor
void SetFrameFillColor(Color_t color=1)
Definition: TStyle.h:355
TStyle::fOptLogy
Int_t fOptLogy
True if log scale in y.
Definition: TStyle.h:40
TStyle::GetHistLineWidth
Width_t GetHistLineWidth() const
Definition: TStyle.h:227
TStyle::GetLabelSize
Float_t GetLabelSize(Option_t *axis="X") const
Return label size.
Definition: TStyle.cxx:1102
TStyle::SetNdivisions
void SetNdivisions(Int_t n=510, Option_t *axis="X")
Set the number of divisions to draw an axis.
Definition: TStyle.cxx:1260
TStyle::GetOptStat
Int_t GetOptStat() const
Definition: TStyle.h:236
TStyle::fStatBorderSize
Width_t fStatBorderSize
Border size of Stats PaveLabel.
Definition: TStyle.h:107
TStyle::fDrawBorder
Int_t fDrawBorder
Flag to draw border(=1) or not (0)
Definition: TStyle.h:38
TAttFill
Definition: TAttFill.h:19
TColor::SetPalette
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Static function.
Definition: TColor.cxx:2414
TStyle::SetPadTickX
void SetPadTickX(Int_t tickx)
Definition: TStyle.h:347
TStyle::GetStatStyle
Style_t GetStatStyle() const
Definition: TStyle.h:253
TAttAxis::GetLabelFont
virtual Style_t GetLabelFont() const
Definition: TAttAxis.h:45
TStyle::GetHistLineColor
Color_t GetHistLineColor() const
Definition: TStyle.h:224
TStyle::cd
virtual void cd()
Change current style.
Definition: TStyle.cxx:528
TNamed::GetName
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:53
TStyle::fLegendBorderSize
Width_t fLegendBorderSize
Legend box border size.
Definition: TStyle.h:63
TStyle::GetTitleW
Float_t GetTitleW() const
Definition: TStyle.h:273
TColor::GetNumberOfColors
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
Definition: TColor.cxx:1410
TAttAxis::SetTitleOffset
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
Definition: TAttAxis.cxx:293
TStyle::SetNumberContours
void SetNumberContours(Int_t number=20)
Set the default number of contour levels when drawing 2-d plots.
Definition: TStyle.cxx:1451
SetTextFont
pt SetTextFont(42)
TStyle::GetTitleX
Float_t GetTitleX() const
Definition: TStyle.h:271
TStyle::SetTitleColor
void SetTitleColor(Color_t color=1, Option_t *axis="X")
Definition: TStyle.cxx:1707
TStyle::fOptDate
Int_t fOptDate
True if date option is selected.
Definition: TStyle.h:42
TString::ToLower
void ToLower()
Change string to lower-case.
Definition: TString.cxx:1125
TStyle::fColorModelPS
Int_t fColorModelPS
PostScript color model: 0 = RGB, 1 = CMYK.
Definition: TStyle.h:37
TStyle::fZaxis
TAttAxis fZaxis
Z axis attributes.
Definition: TStyle.h:34
TStyle::fPadGridY
Bool_t fPadGridY
True to get the grid along Y.
Definition: TStyle.h:99
TStyle::SetTitleOffset
void SetTitleOffset(Float_t offset=1, Option_t *axis="X")
Specify a parameter offset to control the distance between the axis and the axis title.
Definition: TStyle.cxx:1751
TStyle::GetStatBorderSize
Width_t GetStatBorderSize() const
Definition: TStyle.h:250
TAttAxis::SetLabelFont
virtual void SetLabelFont(Style_t font=62)
Set labels' font.
Definition: TAttAxis.cxx:182
TStyle::GetPadBorderSize
Width_t GetPadBorderSize() const
Definition: TStyle.h:200
TStyle::fStatH
Float_t fStatH
Height of stat box.
Definition: TStyle.h:115
SetTextSize
th1 SetTextSize(0.12)
TStyle::fTitleTextColor
Color_t fTitleTextColor
Title text color.
Definition: TStyle.h:119
TStyle::fLegendTextSize
Double_t fLegendTextSize
Legend text size. If 0 the size is computed automatically.
Definition: TStyle.h:66
TApplication::Argv
char ** Argv() const
Definition: TApplication.h:137
TStyle::GetLegendFillColor
Color_t GetLegendFillColor() const
Definition: TStyle.h:195
TStyle::GetPaperSize
void GetPaperSize(Float_t &xsize, Float_t &ysize) const
Set paper size for PostScript output.
Definition: TStyle.cxx:1133
TAttAxis::GetNdivisions
virtual Int_t GetNdivisions() const
Definition: TAttAxis.h:42
TAttAxis::GetTitleSize
virtual Float_t GetTitleSize() const
Definition: TAttAxis.h:50
TStyle::fCanvasBorderMode
Int_t fCanvasBorderMode
Canvas border mode.
Definition: TStyle.h:86
TStyle::fGridWidth
Width_t fGridWidth
Grid line width.
Definition: TStyle.h:62
TStyle::GetHistLineStyle
Style_t GetHistLineStyle() const
Definition: TStyle.h:226
TStyle::TStyle
TStyle()
Default constructor.
Definition: TStyle.cxx:145
TStyle::SetAxisColor
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
Definition: TStyle.cxx:1274
TStyle::GetStatFont
Style_t GetStatFont() const
Definition: TStyle.h:251
kTakeStyle
const UInt_t kTakeStyle
Definition: TStyle.cxx:31
TStyle::fTitleAlign
Int_t fTitleAlign
Title box alignment.
Definition: TStyle.h:117
gROOT
#define gROOT
Definition: TROOT.h:406
TStyle::fTitleStyle
Style_t fTitleStyle
Fill area style of title PaveLabel.
Definition: TStyle.h:123
int
TStyle::fStatColor
Color_t fStatColor
Stat fill area color.
Definition: TStyle.h:105
TStyle::fTitleFontSize
Float_t fTitleFontSize
Font size in pixels for fonts with precision type 3.
Definition: TStyle.h:122
TStyle::SetOptDate
void SetOptDate(Int_t datefl=1)
If optdate is non null, the current date/time will be printed in the canvas.
Definition: TStyle.cxx:1497
TStyle::fGridColor
Color_t fGridColor
Grid line color (if 0 use axis line color)
Definition: TStyle.h:60
TStyle::SetIsReading
void SetIsReading(Bool_t reading=kTRUE)
Sets the fIsReading member to reading (default=kTRUE).
Definition: TStyle.cxx:1325
TStyle::GetPadBottomMargin
Float_t GetPadBottomMargin() const
Definition: TStyle.h:202
TAttAxis::GetTitleOffset
virtual Float_t GetTitleOffset() const
Definition: TAttAxis.h:49