library: libCore #include "TStyle.h"

# TStyle

class description - source file - inheritance tree (.ps)

## class TStyle : public TNamed, public TAttLine, public TAttFill, public TAttMarker, public TAttText

| Inheritance Chart:

`TObject`

<-

`TNamed`

`TAttLine`

`TAttFill`

`TAttMarker`

`TAttText`

<-

`TStyle`

        public:

                          TStyle()
                          TStyle(const char* name, const char* title)
                          TStyle(const TStyle& style)
                  virtual ~TStyle()
                    Int_t AxisChoice(Option_t* axis) const
             virtual void Browse(TBrowser* b)
              static void BuildStyles()
             virtual void cd()
           static TClass* Class()
             virtual void Copy(TObject& style) const
             static Int_t CreateGradientColorTable(UInt_t Number, Double_t* Length, Double_t* Red, Double_t* Green, Double_t* Blue, UInt_t NColors)
                TAttText* GetAttDate()
                  Color_t GetAxisColor(Option_t* axis = "X") const
                  Float_t GetBarOffset() const
                  Float_t GetBarWidth() const
                    Int_t GetCanvasBorderMode() const
                  Width_t GetCanvasBorderSize() const
                  Color_t GetCanvasColor() const
                    Int_t GetCanvasDefH() const
                    Int_t GetCanvasDefW() const
                    Int_t GetCanvasDefX() const
                    Int_t GetCanvasDefY() const
                    Int_t GetColorPalette(Int_t i) const
                  Float_t GetDateX() const
                  Float_t GetDateY() const
                    Int_t GetDrawBorder() const
                  Float_t GetEndErrorSize() const
                    Int_t GetErrorMarker() const
                  Float_t GetErrorX() const
              const char* GetFitFormat() const
                    Int_t GetFrameBorderMode() const
                  Width_t GetFrameBorderSize() const
                  Color_t GetFrameFillColor() const
                  Style_t GetFrameFillStyle() const
                  Color_t GetFrameLineColor() const
                  Style_t GetFrameLineStyle() const
                  Width_t GetFrameLineWidth() const
                  Color_t GetFuncColor() const
                  Style_t GetFuncStyle() const
                  Width_t GetFuncWidth() const
                  Color_t GetGridColor() const
                  Style_t GetGridStyle() const
                  Width_t GetGridWidth() const
              const char* GetHeaderPS() const
                  Color_t GetHistFillColor() const
                  Style_t GetHistFillStyle() const
                  Color_t GetHistLineColor() const
                  Style_t GetHistLineStyle() const
                  Width_t GetHistLineWidth() const
                  Color_t GetLabelColor(Option_t* axis = "X") const
                  Style_t GetLabelFont(Option_t* axis = "X") const
                  Float_t GetLabelOffset(Option_t* axis = "X") const
                  Float_t GetLabelSize(Option_t* axis = "X") const
                  Float_t GetLegoInnerR() const
                  Float_t GetLineScalePS() const
              const char* GetLineStyleString(Int_t i = 1) const
                    Int_t GetNdivisions(Option_t* axis = "X") const
                    Int_t GetNumberContours() const
                    Int_t GetNumberOfColors() const
                    Int_t GetOptDate() const
                    Int_t GetOptFile() const
                    Int_t GetOptFit() const
                    Int_t GetOptLogx() const
                    Int_t GetOptLogy() const
                    Int_t GetOptLogz() const
                    Int_t GetOptStat() const
                    Int_t GetOptTitle() const
                    Int_t GetPadBorderMode() const
                  Width_t GetPadBorderSize() const
                  Float_t GetPadBottomMargin() const
                  Color_t GetPadColor() const
                   Bool_t GetPadGridX() const
                   Bool_t GetPadGridY() const
                  Float_t GetPadLeftMargin() const
                  Float_t GetPadRightMargin() const
                    Int_t GetPadTickX() const
                    Int_t GetPadTickY() const
                  Float_t GetPadTopMargin() const
              const char* GetPaintTextFormat() const
                     void GetPaperSize(Float_t& xsize, Float_t& ysize)
                  Float_t GetScreenFactor() const
                    Int_t GetShowEditor() const
                    Int_t GetShowEventStatus() const
                    Int_t GetShowToolBar() const
                  Width_t GetStatBorderSize() const
                  Color_t GetStatColor() const
                  Style_t GetStatFont() const
                  Float_t GetStatFontSize() const
              const char* GetStatFormat() const
                  Float_t GetStatH() const
                  Style_t GetStatStyle() const
                  Color_t GetStatTextColor() const
                  Float_t GetStatW() const
                  Float_t GetStatX() const
                  Float_t GetStatY() const
                    Int_t GetStripDecimals() const
                  Float_t GetTickLength(Option_t* axis = "X") const
                 Double_t GetTimeOffset() const
                  Width_t GetTitleBorderSize() const
                  Color_t GetTitleColor(Option_t* axis = "X") const
                  Color_t GetTitleFillColor() const
                  Style_t GetTitleFont(Option_t* axis = "X") const
                  Float_t GetTitleFontSize() const
                  Float_t GetTitleH() const
                  Float_t GetTitleOffset(Option_t* axis = "X") const
              const char* GetTitlePS() const
                  Float_t GetTitleSize(Option_t* axis = "X") const
                  Style_t GetTitleStyle() const
                  Color_t GetTitleTextColor() const
                  Float_t GetTitleW() const
                  Float_t GetTitleX() const
                  Float_t GetTitleXOffset() const
                  Float_t GetTitleXSize() const
                  Float_t GetTitleY() const
                  Float_t GetTitleYOffset() const
                  Float_t GetTitleYSize() const
          virtual TClass* IsA() const
                  TStyle& operator=(const TStyle&)
             virtual void Reset(Option_t* option)
                     void SetAxisColor(Color_t color = 1, Option_t* axis = "X")
                     void SetBarOffset(Float_t baroff = 0.5)
                     void SetBarWidth(Float_t barwidth = 0.5)
                     void SetCanvasBorderMode(Int_t mode = 1)
                     void SetCanvasBorderSize(Width_t size = 1)
                     void SetCanvasColor(Color_t color = 19)
                     void SetCanvasDefH(Int_t h = 500)
                     void SetCanvasDefW(Int_t w = 700)
                     void SetCanvasDefX(Int_t topx = 10)
                     void SetCanvasDefY(Int_t topy = 10)
                     void SetDateX(Float_t x = 0.01)
                     void SetDateY(Float_t y = 0.01)
                     void SetDrawBorder(Int_t drawborder = 1)
                     void SetEndErrorSize(Float_t np = 2)
                     void SetErrorMarker(Int_t marker = 21)
                     void SetErrorX(Float_t errorx = 0.5)
                     void SetFitFormat(const char* format = "5.4g")
                     void SetFrameBorderMode(Int_t mode = 1)
                     void SetFrameBorderSize(Width_t size = 1)
                     void SetFrameFillColor(Color_t color = 1)
                     void SetFrameFillStyle(Style_t styl = 0)
                     void SetFrameLineColor(Color_t color = 1)
                     void SetFrameLineStyle(Style_t styl = 0)
                     void SetFrameLineWidth(Width_t width = 1)
                     void SetFuncColor(Color_t color = 1)
                     void SetFuncStyle(Style_t style = 1)
                     void SetFuncWidth(Width_t width = 4)
                     void SetGridColor(Color_t color = 0)
                     void SetGridStyle(Style_t style = 3)
                     void SetGridWidth(Width_t width = 1)
                     void SetHeaderPS(const char* header)
                     void SetHistFillColor(Color_t color = 1)
                     void SetHistFillStyle(Style_t styl = 0)
                     void SetHistLineColor(Color_t color = 1)
                     void SetHistLineStyle(Style_t styl = 0)
                     void SetHistLineWidth(Width_t width = 1)
                     void SetLabelColor(Color_t color = 1, Option_t* axis = "X")
                     void SetLabelFont(Style_t font = 62, Option_t* axis = "X")
                     void SetLabelOffset(Float_t offset = 0.005, Option_t* axis = "X")
                     void SetLabelSize(Float_t size = 0.04, Option_t* axis = "X")
                     void SetLegoInnerR(Float_t rad = 0.5)
                     void SetLineScalePS(Float_t scale = 3)
                     void SetLineStyleString(Int_t i, const char* text)
                     void SetNdivisions(Int_t n = 510, Option_t* axis = "X")
                     void SetNumberContours(Int_t number = 20)
                     void SetOptDate(Int_t datefl = 1)
                     void SetOptFile(Int_t file = 1)
                     void SetOptFit(Int_t fit = 1)
                     void SetOptLogx(Int_t logx = 1)
                     void SetOptLogy(Int_t logy = 1)
                     void SetOptLogz(Int_t logz = 1)
                     void SetOptStat(Int_t stat = 1)
                     void SetOptStat(Option_t* stat)
                     void SetOptTitle(Int_t tit = 1)
                     void SetPadBorderMode(Int_t mode = 1)
                     void SetPadBorderSize(Width_t size = 1)
                     void SetPadBottomMargin(Float_t margin = 0.1)
                     void SetPadColor(Color_t color = 19)
                     void SetPadGridX(Bool_t gridx)
                     void SetPadGridY(Bool_t gridy)
                     void SetPadLeftMargin(Float_t margin = 0.1)
                     void SetPadRightMargin(Float_t margin = 0.1)
                     void SetPadTickX(Int_t tickx)
                     void SetPadTickY(Int_t ticky)
                     void SetPadTopMargin(Float_t margin = 0.1)
                     void SetPaintTextFormat(const char* format = "g")
                     void SetPalette(Int_t ncolors = 0, Int_t* colors = 0)
                     void SetPaperSize(TStyle::EPaperSize size)
                     void SetPaperSize(Float_t xsize = 20, Float_t ysize = 26)
                     void SetScreenFactor(Float_t factor = 1)
                     void SetStatBorderSize(Width_t size = 2)
                     void SetStatColor(Int_t color = 19)
                     void SetStatFont(Style_t font = 62)
                     void SetStatFontSize(Float_t size = 0)
                     void SetStatFormat(const char* format = "6.4g")
                     void SetStatH(Float_t h = 0.1)
                     void SetStatStyle(Style_t style = 1001)
                     void SetStatTextColor(Int_t color = 1)
                     void SetStatW(Float_t w = 0.19)
                     void SetStatX(Float_t x = 0)
                     void SetStatY(Float_t y = 0)
                     void SetStripDecimals(Bool_t strip = kTRUE)
                     void SetTickLength(Float_t length = 0.03, Option_t* axis = "X")
                     void SetTimeOffset(Double_t toffset)
                     void SetTitleBorderSize(Width_t size = 2)
                     void SetTitleColor(Color_t color = 1, Option_t* axis = "X")
                     void SetTitleFillColor(Color_t color = 1)
                     void SetTitleFont(Style_t font = 62, Option_t* axis = "X")
                     void SetTitleFontSize(Float_t size = 0)
                     void SetTitleH(Float_t h = 0)
                     void SetTitleOffset(Float_t offset = 1, Option_t* axis = "X")
                     void SetTitlePS(const char* pstitle)
                     void SetTitleSize(Float_t size = 0.02, Option_t* axis = "X")
                     void SetTitleStyle(Style_t style = 1001)
                     void SetTitleTextColor(Color_t color = 1)
                     void SetTitleW(Float_t w = 0)
                     void SetTitleX(Float_t x = 0)
                     void SetTitleXOffset(Float_t offset = 1)
                     void SetTitleXSize(Float_t size = 0.02)
                     void SetTitleY(Float_t y = 0.985)
                     void SetTitleYOffset(Float_t offset = 1)
                     void SetTitleYSize(Float_t size = 0.02)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
                     void ToggleEditor()
                     void ToggleEventStatus()
                     void ToggleToolBar()

### Data Members

        private:

          TAttAxis fXaxis             X axis attributes
          TAttAxis fYaxis             Y axis attributes
          TAttAxis fZaxis             Z axis attributes
           Float_t fBarWidth          width of bar for graphs
           Float_t fBarOffset         offset of bar for graphs
             Int_t fDrawBorder        flag to draw border(=1) or not (0)
             Int_t fOptLogx           =1 if log scale in X
             Int_t fOptLogy           =1 if log scale in y
             Int_t fOptLogz           =1 if log scale in z
             Int_t fOptDate           =1 if date option is selected
             Int_t fOptStat           =1 if option Stat is selected
             Int_t fOptTitle          =1 if option Title is selected
             Int_t fOptFile           =1 if option File is selected
             Int_t fOptFit            =1 if option Fit is selected
             Int_t fErrorMarker       marker for error bars
             Int_t fShowEventStatus   Show event status panel
             Int_t fShowEditor        Show pad editor
             Int_t fShowToolBar       Show toolbar
             Int_t fNumberContours    default number of contours for 2-d plots
          TAttText fAttDate           canvas date attribute
           Float_t fDateX             X position of the date in the canvas (in NDC)
           Float_t fDateY             Y position of the date in the canvas (in NDC)
           Float_t fEndErrorSize      Size of lines at the end of error bars
           Float_t fErrorX            per cent of bin width for errors along X
           Color_t fFuncColor         function color
           Style_t fFuncStyle         function style
           Width_t fFuncWidth         function line width
           Color_t fGridColor         grid line color (if 0 use axis line color)
           Style_t fGridStyle         grid line style
           Width_t fGridWidth         grid line width
           Color_t fFrameFillColor    pad frame fill color
           Color_t fFrameLineColor    pad frame line color
           Style_t fFrameFillStyle    pad frame fill style
           Style_t fFrameLineStyle    pad frame line style
           Width_t fFrameLineWidth    pad frame line width
           Width_t fFrameBorderSize   pad frame border size
             Int_t fFrameBorderMode   pad frame border mode
           Color_t fHistFillColor     histogram fill color
           Color_t fHistLineColor     histogram line color
           Style_t fHistFillStyle     histogram fill style
           Style_t fHistLineStyle     histogram line style
           Width_t fHistLineWidth     histogram line width
           Color_t fCanvasColor       canvas color
           Width_t fCanvasBorderSize  canvas border size
             Int_t fCanvasBorderMode  canvas border mode
             Int_t fCanvasDefH        default canvas height
             Int_t fCanvasDefW        default canvas width
             Int_t fCanvasDefX        default canvas top X position
             Int_t fCanvasDefY        default canvas top Y position
           Color_t fPadColor          pad color
           Width_t fPadBorderSize     pad border size
             Int_t fPadBorderMode     pad border mode
           Float_t fPadBottomMargin   pad bottom margin
           Float_t fPadTopMargin      pad top margin
           Float_t fPadLeftMargin     pad left margin
           Float_t fPadRightMargin    pad right margin
            Bool_t fPadGridX          true to get the grid along X
            Bool_t fPadGridY          true to get the grid along Y
             Int_t fPadTickX          =1 to set special pad ticks along X
             Int_t fPadTickY          =1 to set special pad ticks along Y
           Float_t fPaperSizeX        PostScript paper size along X
           Float_t fPaperSizeY        PostScript paper size along Y
           Float_t fScreenFactor      Multiplication factor for canvas size and position
           Color_t fStatColor         stat fill area color
           Color_t fStatTextColor     stat text color
           Width_t fStatBorderSize    border size of Stats PaveLabel
           Style_t fStatFont          font style of Stats PaveLabel
           Float_t fStatFontSize      font size in pixels for fonts with precision type 3
           Style_t fStatStyle         fill area style of Stats PaveLabel
           TString fStatFormat        Printing format for stats
           Float_t fStatX             X position of top right corner of stat box
           Float_t fStatY             Y position of top right corner of stat box
           Float_t fStatW             width of stat box
           Float_t fStatH             height of stat box
            Bool_t fStripDecimals     Strip decimals in axis labels
           Color_t fTitleColor        title fill area color
           Color_t fTitleTextColor    title text color
           Width_t fTitleBorderSize   border size of Title PavelLabel
           Style_t fTitleFont         font style of Title PaveLabel
           Float_t fTitleFontSize     font size in pixels for fonts with precision type 3
           Style_t fTitleStyle        fill area style of title PaveLabel
           Float_t fTitleX            X position of top left corner of title box
           Float_t fTitleY            Y position of top left corner of title box
           Float_t fTitleW            width of title box
           Float_t fTitleH            height of title box
           Float_t fLegoInnerR        Inner radius for cylindrical legos
           TArrayI fPalette           Color palette
           TString fLineStyle[30]     String describing line style i (for postScript)
           TString fHeaderPS          User defined additional Postscript header
           TString fTitlePS           User defined Postscript file title
           TString fFitFormat         Printing format for fit parameters
           TString fPaintTextFormat   Printing format for TH2::PaintText
           Float_t fLineScalePS       Line scale factor when drawing lines on Postscript
          Double_t fTimeOffset        Time offset to the beginning of an axis

        public:

          static const TStyle::EPaperSize kA4
          static const TStyle::EPaperSize kUSLetter

## Class Description

     TStyle objects may be created to define special styles.
     By default ROOT creates a default style that can be accessed via
     the gStyle pointer.

     This class includes functions to set the following object attributes.
       - Canvas
       - Pad
       - Histogram axis
       - Lines
       - Fill areas
       - Text
       - Markers
       - Functions
       - Histogram Statistics and Titles

TStyle() :TNamed()

TStyle(const char *name, const char *title) : TNamed(name,title)

     Create a new TStyle.
     The following names are reserved to create special styles
       -Default: the default style set in TStyle::Reset
       -Plain: a black&white oriented style
       -Bold:
       -Video;
       -Pub:
         (see the definition of these styles below).

     Note a side-effect of calling gStyle->SetFillColor(0). This is nearly
     equivalent of selecting the "Plain" style.

     Many graphics attributes may be set via the TStyle, see in particular
      - TStyle::SetNdivisions
      - TStyle::SetAxisColor
      - TStyle::SetHeaderPS
      - TStyle::SetTitlePS
      - TStyle::SetLabelColor
      - TStyle::SetLabelFont
      - TStyle::SetLabelOffset
      - TStyle::SetLabelSize
      - TStyle::SetOptDate
      - TStyle::SetLineStyleString
      - TStyle::SetOptFit
      - TStyle::SetOptStat
      - TStyle::SetPaperSize
      - TStyle::SetTickLength
      - TStyle::SetTitleOffset
      - TStyle::SetTitleSize
      - TStyle::SetPalette
      - TStyle::SetTimeOffset
      - TStyle::SetStripDecimals

      The current style is pointed by gStyle.
      When calling myStyle->cd(), gStyle is set to myStyle.
      One can also use gROOT to change the current style, eg
        gROOT->SetStyle("Plain") will change the current style gStyle to the "Plain" style
      See also TROOT::ForceStyle and TROOT::UseCurrentStyle

~TStyle()

TStyle(const TStyle &style) : TNamed(style), TAttLine(style), TAttFill(style), TAttMarker(style), TAttText(style)

void Browse(TBrowser *)

void BuildStyles()

     create some standard styles

void cd()

       Change current style

void Copy(TObject &obj) const

void Reset(Option_t *)

Int_t AxisChoice( Option_t *axis) const

Int_t GetNdivisions( Option_t *axis) const

Color_t GetAxisColor( Option_t *axis) const

Int_t GetColorPalette(Int_t i) const // return color number i in current palette

Color_t GetLabelColor( Option_t *axis) const

Style_t GetLabelFont( Option_t *axis) const

Float_t GetLabelOffset( Option_t *axis) const

Float_t GetLabelSize( Option_t *axis) const

const char* GetLineStyleString(Int_t i) const

       return line style string (used by PostScript).
       See SetLineStyleString for more explanations

void GetPaperSize(Float_t &xsize, Float_t &ysize)

        Set paper size for PostScript output

Float_t GetTickLength( Option_t *axis) const

Color_t GetTitleColor( Option_t *axis) const

Style_t GetTitleFont( Option_t *axis) const

Float_t GetTitleOffset( Option_t *axis) const

Float_t GetTitleSize( Option_t *axis) const

void SetNdivisions(Int_t n, Option_t *axis)

     Set the number of divisions to draw an axis.
      ndiv      : Number of divisions.

           n = N1 + 100*N2 + 10000*N3
           N1=number of primary divisions.
           N2=number of secondary divisions.
           N3=number of 3rd divisions.
               e.g.:
               nndi=0 --> no tick marks.
               nndi=2 --> 2 divisions, one tick mark in the middle
                          of the axis.
     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetAxisColor(Color_t color, Option_t *axis)

     Set color to draw the axis line and tick marks.
     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetEndErrorSize(Float_t np)

     Set the size (in pixels) of the small lines drawn at the
     end of the error bars (TH1 or TGraphErrors).
     The default value is 2 pixels.
     Set np=0 to remove these lines

void SetHeaderPS(const char *header)

     Define a string to be inserted in the Postscript header
     The string in header will be added to the Postscript file
     immediatly following the %%Page line
     For example, this string may contain special Postscript instructions like
          200 200 translate
     the following header string will print the string "my annotation" at the
     bottom left corner of the page (outside the user area)
      "gsave 100 -100 t 0 r 0 0 m /Helvetica-Bold findfont 56 sf 0 0 m ( my annotation ) show gr"
     This information is used in TPostScript::Initialize

void SetTitlePS(const char *pstitle)

     Define a string to be used in the %%Title of the Postscript files.
     If this string is not defined, ROOT will use the canvas title.

void SetLabelColor(Color_t color, Option_t *axis)

     Set axis labels color.
     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetLabelFont(Style_t font, Option_t *axis)

     Set font number used to draw axis labels.
        font  : Text font code = 10*fontnumber + precision
                 Font numbers must be between 1 and 14
                 precision = 1 fast hardware fonts (steps in the size)
                 precision = 2 scalable and rotatable hardware fonts
     The default font number is 62.
     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetLabelOffset(Float_t offset, Option_t *axis)

     Set offset between axis and axis labels.
     The offset is expressed as a percent of the pad height.
     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetLabelSize(Float_t size, Option_t *axis)

     Set size of axis labels. The size is expressed as a percent of the pad height.
     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetLineStyleString(Int_t i, const char *text)

     Set line style string (used by Postscript)
     PostScript uses the following convention
      a line is a suite of segments, each segment is described by the
      number of pixels. For example default line styles are defined as:
       linestyle 1  "[]"             solid
       linestyle 2  "[12 12]"        dashed
       linestyle 3  "[4 8]"          dotted
       linestyle 4  "[12 15 4 15]"   dash-dotted

      Up to 30 different styles may be defined.
       The opening and closing brackets may be omitted
       They will be automaticalled added by this function.

void SetNumberContours(Int_t number)

     set the default number of contour levels when drawing 2-d plots

void SetOptDate(Int_t optdate)

     if optdate is non null, the current date/time will be printed in the canvas.
     The position of the date string can be controlled by:
      optdate = 10*format + mode
        mode = 1   (default) date is printed in the bottom/left corner.
        mode = 2   date is printed in the bottom/right corner.
        mode = 3   date is printed in the top/right corner.
        format = 0 (default) date has the format like: "Wed Sep 25 17:10:35 2002"
        format = 1 date has the format like: "2002-09-25"
        format = 2 date has the format like: "2002-09-25 17:10:35"

      examples:
        optdate = 1  date like "Wed Sep 25 17:10:35 2002" in the bottom/left corner.
        optdate = 13 date like "2002-09-25" in the top/right corner.

      The date position can also be controlled by:
        gStyle->SetDateX(x);  x in NDC
        gStyle->SetDateY(y);  y in NDC

      The date text attributes can be changed with:
        gStyle->GetAttDate()->SetTextFont(font=62);
        gStyle->GetAttDate()->SetTextSize(size=0.025);
        gStyle->GetAttDate()->SetTextAngle(angle=0);
        gStyle->GetAttDate()->SetTextAlign(align=11);
        gStyle->GetAttDate()->SetTextColor(color=1);

      The current date attributes can be obtained via:
        gStyle->GetAttDate()->GetTextxxxx();

      When the date option is active, a text object is created when the pad
      paint its list of primitives. The text object is named "DATE".
      The DATE attributes can also be edited interactively (position
      and attributes) via the normal context menu.

void SetOptFit(Int_t mode)

     The type of information about fit parameters printed in the histogram
     statistics box can be selected via the parameter mode.
      The parameter mode can be = pcev  (default = 0111)
        v = 1;  print name/values of parameters
        e = 1;  print errors (if e=1, v must be 1)
        c = 1;  print Chisquare/Number of degress of freedom
        p = 1;  print Probability
      Example: gStyle->SetOptFit(1011);
               print fit probability, parameter names/values and errors.
        When "v"=1 is specified, only the non-fixed parameters are shown.
        When "v"=2 all parameters are shown.
     see also SetOptStat below.

void SetOptStat(Int_t mode)

     The type of information printed in the histogram statistics box
      can be selected via the parameter mode.
      The parameter mode can be = iourmen  (default = 0001111)
        n = 1;  name of histogram is printed
        e = 1;  number of entries printed
        m = 1;  mean value printed
        r = 1;  rms printed
        u = 1;  number of underflows printed
        o = 1;  number of overflows printed
        i = 1;  integral of bins printed
      Example: gStyle->SetOptStat(11);
               print only name of histogram and number of entries.
               gStyle->SetOptStat(1101);  displays the name of histogram, mean value and RMS.
      WARNING: never call SetOptStat(000111); but SetOptStat(1111), 0001111 will
              be taken as an octal number !!
      WARNING: SetOptStat(1) is taken as SetOptStat(1111) (for back compatibility
               with older versions. If you want to print only the name of the histogram
               call SetOptStat(10000001).
      NOTE that in case of 2-D histograms, when selecting just underflow (10000)
            or overflow (100000), the stats box will show all combinations
            of underflow/overflows and not just one single number!

void SetOptStat(Option_t *stat)

      The parameter mode can be = IOURMEN
        n :  name of histogram is printed
        e :  number of entries printed
        m :  mean value printed
        r :  rms printed
        u :  number of underflows printed
        o :  number of overflows printed
        i :  integral of bins printed
      Example: gStyle->SetOptStat("ne");
               print only name of histogram and number of entries.
      gStyle->SetOptStat("n") print only the name of the histogram
      gStyle->SetOptStat("nemr") is the default

void SetPaperSize(EPaperSize size)

     Set paper size for PostScript output.

void SetPaperSize(Float_t xsize, Float_t ysize)

     Set paper size for PostScript output.
     The paper size is specified in centimeters. Default is 20x26.
     See also TPad::Print

void SetTickLength(Float_t length, Option_t *axis)

     set the tick marks length for an axis.
     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetTitleColor(Color_t color, Option_t *axis)

     if axis =="x"  set the X axis title color
     if axis =="y"  set the Y axis title color
     if axis =="z"  set the Z axis title color
     any other value of axis will set the pad title color

     if axis="xyz" set all 3 axes

void SetTitleFont(Style_t font, Option_t *axis)

     if axis =="x"  set the X axis title font
     if axis =="y"  set the Y axis title font
     if axis =="z"  set the Z axis title font
     any other value of axis will set the pad title font

     if axis="xyz" set all 3 axes

void SetTitleOffset(Float_t offset, Option_t *axis)

     Specify a parameter offset to control the distance between the axis
     and the axis title.
     offset = 1 means : use the default distance
     offset = 1.2 means: the distance will be 1.2*(default distance)
     offset = 0.8 means: the distance will be 0.8*(default distance)

     axis specifies which axis ("x","y","z"), default = "x"
     if axis="xyz" set all 3 axes

void SetTitleSize(Float_t size, Option_t *axis)

     if axis =="x"  set the X axis title size
     if axis =="y"  set the Y axis title size
     if axis =="z"  set the Z axis title size
     any other value of axis will set the pad title size

     if axis="xyz" set all 3 axes

Int_t CreateGradientColorTable(UInt_t Number, Double_t* Length, Double_t* Red, Double_t* Green, Double_t* Blue, UInt_t NColors)

     STATIC function.
     Linear gradient color table:
     Red, Green and Blue are several RGB colors with values from 0.0 .. 1.0.
     Their number is "Intervals".
     Length is the length of the color interval between the RGB-colors:
     Imaging the whole gradient goes from 0.0 for the first RGB color to 1.0
     for the last RGB color, then each "Length"-entry in between stands for
     the length of the intervall between the according RGB colors.

     This definition is similar to the povray-definition of gradient
     color tables.

     In order to create a color table do the following:
     Define the RGB Colors:
     > UInt_t Number = 5;
     > Double_t Red[5]   = { 0.00, 0.09, 0.18, 0.09, 0.00 };
     > Double_t Green[5] = { 0.01, 0.02, 0.39, 0.68, 0.97 };
     > Double_t Blue[5]  = { 0.17, 0.39, 0.62, 0.79, 0.97 };
     Define the length of the (color)-interval between this points
     > Double_t Stops[5] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
     i.e. the color interval between Color 2 and Color 3 is
     0.79 - 0.62 => 17 % of the total palette area between these colors

      Original code by Andreas Zoglauer <zog@mpe.mpg.de>

void SetPalette(Int_t ncolors, Int_t *colors)

     The color palette is used by the histogram classes
      (see TH1::Draw options).
     For example TH1::Draw("col") draws a 2-D histogram with cells
     represented by a box filled with a color CI function of the cell content.
     if the cell content is N, the color CI used will be the color number
     in colors[N],etc. If the maximum cell content is > ncolors, all
     cell contents are scaled to ncolors.

     if ncolors <= 0 a default palette (see below) of 50 colors is defined.
         the colors defined in this palette are OK for coloring pads, labels

     if ncolors == 1 && colors == 0, then
         a Pretty Palette with a Spectrum Violet->Red is created.
       It is recommended to use this Pretty palette when drawing legos,
       surfaces or contours.

     if ncolors > 50 and colors=0, the DeepSea palette is used.
         (see TStyle::CreateGradientColorTable for more details)

     if ncolors > 0 and colors = 0, the default palette is used
     with a maximum of ncolors.

     The default palette defines:
       index 0->9   : grey colors from light to dark grey
       index 10->19 : "brown" colors
       index 20->29 : "blueish" colors
       index 30->39 : "redish" colors
       index 40->49 : basic colors

      The color numbers specified in the palette can be viewed by selecting
      the item "colors" in the "VIEW" menu of the canvas toolbar.
      The color parameters can be changed via TColor::SetRGB.

void SetTimeOffset(Double_t toffset)

     Change the time offset for time plotting.
     Times are expressed in seconds. The corresponding numbers usually have 9
     digits (or more if one takes into account fractions of seconds).
     Thus, since it is very inconvenient to plot very large numbers on a scale,
     one has to set an offset time that will be added to the axis begining,
     in order to plot times correctly and conveniently. A convenient way to
     set the time offset is to use TDatime::Convert().

void SetStripDecimals(Bool_t strip)

      Set option to strip decimals when drawing axis labels.
      By default, TGaxis::PaintAxis removes trailing 0s after a dot
      in the axis labels. Ex: {0,0.5,1,1.5,2,2.5, etc}
      If this function is called with strip=kFALSE, TGAxis::PaintAxis will
      draw labels with the same number of digits after the dot
      Ex: (0.0,0.5,1.0,1.5,2.0,2.5,etc}

### Inline Functions

              TAttText* GetAttDate()
                Float_t GetBarOffset() const
                Float_t GetBarWidth() const
                  Int_t GetDrawBorder() const
                  Int_t GetErrorMarker() const
                Float_t GetEndErrorSize() const
                Float_t GetErrorX() const
                Color_t GetCanvasColor() const
                Width_t GetCanvasBorderSize() const
                  Int_t GetCanvasBorderMode() const
                  Int_t GetCanvasDefH() const
                  Int_t GetCanvasDefW() const
                  Int_t GetCanvasDefX() const
                  Int_t GetCanvasDefY() const
                Float_t GetDateX() const
                Float_t GetDateY() const
            const char* GetFitFormat() const
                  Int_t GetNumberOfColors() const
                Color_t GetPadColor() const
                Width_t GetPadBorderSize() const
                  Int_t GetPadBorderMode() const
                Float_t GetPadBottomMargin() const
                Float_t GetPadTopMargin() const
                Float_t GetPadLeftMargin() const
                Float_t GetPadRightMargin() const
                 Bool_t GetPadGridX() const
                 Bool_t GetPadGridY() const
                  Int_t GetPadTickX() const
                  Int_t GetPadTickY() const
                Color_t GetFuncColor() const
                Style_t GetFuncStyle() const
                Width_t GetFuncWidth() const
                Color_t GetGridColor() const
                Style_t GetGridStyle() const
                Width_t GetGridWidth() const
                Color_t GetFrameFillColor() const
                Color_t GetFrameLineColor() const
                Style_t GetFrameFillStyle() const
                Style_t GetFrameLineStyle() const
                Width_t GetFrameLineWidth() const
                Width_t GetFrameBorderSize() const
                  Int_t GetFrameBorderMode() const
                Color_t GetHistFillColor() const
                Color_t GetHistLineColor() const
                Style_t GetHistFillStyle() const
                Style_t GetHistLineStyle() const
                Width_t GetHistLineWidth() const
                Float_t GetLegoInnerR() const
                  Int_t GetNumberContours() const
                  Int_t GetOptDate() const
                  Int_t GetOptFile() const
                  Int_t GetOptFit() const
                  Int_t GetOptStat() const
                  Int_t GetOptTitle() const
                  Int_t GetOptLogx() const
                  Int_t GetOptLogy() const
                  Int_t GetOptLogz() const
            const char* GetPaintTextFormat() const
                  Int_t GetShowEventStatus() const
                  Int_t GetShowEditor() const
                  Int_t GetShowToolBar() const
                Float_t GetScreenFactor() const
                Color_t GetStatColor() const
                Color_t GetStatTextColor() const
                Width_t GetStatBorderSize() const
                Style_t GetStatFont() const
                Float_t GetStatFontSize() const
                Style_t GetStatStyle() const
            const char* GetStatFormat() const
                Float_t GetStatX() const
                Float_t GetStatY() const
                Float_t GetStatW() const
                Float_t GetStatH() const
                  Int_t GetStripDecimals() const
               Double_t GetTimeOffset() const
                Color_t GetTitleFillColor() const
                Color_t GetTitleTextColor() const
                Style_t GetTitleStyle() const
                Float_t GetTitleFontSize() const
                Width_t GetTitleBorderSize() const
                Float_t GetTitleXOffset() const
                Float_t GetTitleXSize() const
                Float_t GetTitleYOffset() const
                Float_t GetTitleYSize() const
                Float_t GetTitleX() const
                Float_t GetTitleY() const
                Float_t GetTitleW() const
                Float_t GetTitleH() const
            const char* GetHeaderPS() const
            const char* GetTitlePS() const
                Float_t GetLineScalePS() const
                   void SetFitFormat(const char* format = "5.4g")
                   void SetLineScalePS(Float_t scale = 3)
                   void SetLegoInnerR(Float_t rad = 0.5)
                   void SetScreenFactor(Float_t factor = 1)
                   void SetOptFile(Int_t file = 1)
                   void SetOptLogx(Int_t logx = 1)
                   void SetOptLogy(Int_t logy = 1)
                   void SetOptLogz(Int_t logz = 1)
                   void SetOptTitle(Int_t tit = 1)
                   void SetBarOffset(Float_t baroff = 0.5)
                   void SetBarWidth(Float_t barwidth = 0.5)
                   void SetDateX(Float_t x = 0.01)
                   void SetDateY(Float_t y = 0.01)
                   void SetErrorMarker(Int_t marker = 21)
                   void SetErrorX(Float_t errorx = 0.5)
                   void SetDrawBorder(Int_t drawborder = 1)
                   void SetCanvasColor(Color_t color = 19)
                   void SetCanvasBorderSize(Width_t size = 1)
                   void SetCanvasBorderMode(Int_t mode = 1)
                   void SetCanvasDefH(Int_t h = 500)
                   void SetCanvasDefW(Int_t w = 700)
                   void SetCanvasDefX(Int_t topx = 10)
                   void SetCanvasDefY(Int_t topy = 10)
                   void SetPadColor(Color_t color = 19)
                   void SetPadBorderSize(Width_t size = 1)
                   void SetPadBorderMode(Int_t mode = 1)
                   void SetPadBottomMargin(Float_t margin = 0.1)
                   void SetPadTopMargin(Float_t margin = 0.1)
                   void SetPadLeftMargin(Float_t margin = 0.1)
                   void SetPadRightMargin(Float_t margin = 0.1)
                   void SetPadGridX(Bool_t gridx)
                   void SetPadGridY(Bool_t gridy)
                   void SetPadTickX(Int_t tickx)
                   void SetPadTickY(Int_t ticky)
                   void SetFuncStyle(Style_t style = 1)
                   void SetFuncColor(Color_t color = 1)
                   void SetFuncWidth(Width_t width = 4)
                   void SetGridStyle(Style_t style = 3)
                   void SetGridColor(Color_t color = 0)
                   void SetGridWidth(Width_t width = 1)
                   void SetFrameFillColor(Color_t color = 1)
                   void SetFrameLineColor(Color_t color = 1)
                   void SetFrameFillStyle(Style_t styl = 0)
                   void SetFrameLineStyle(Style_t styl = 0)
                   void SetFrameLineWidth(Width_t width = 1)
                   void SetFrameBorderSize(Width_t size = 1)
                   void SetFrameBorderMode(Int_t mode = 1)
                   void SetHistFillColor(Color_t color = 1)
                   void SetHistLineColor(Color_t color = 1)
                   void SetHistFillStyle(Style_t styl = 0)
                   void SetHistLineStyle(Style_t styl = 0)
                   void SetHistLineWidth(Width_t width = 1)
                   void SetPaintTextFormat(const char* format = "g")
                   void SetStatColor(Int_t color = 19)
                   void SetStatTextColor(Int_t color = 1)
                   void SetStatStyle(Style_t style = 1001)
                   void SetStatBorderSize(Width_t size = 2)
                   void SetStatFont(Style_t font = 62)
                   void SetStatFontSize(Float_t size = 0)
                   void SetStatFormat(const char* format = "6.4g")
                   void SetStatX(Float_t x = 0)
                   void SetStatY(Float_t y = 0)
                   void SetStatW(Float_t w = 0.19)
                   void SetStatH(Float_t h = 0.1)
                   void SetTitleFillColor(Color_t color = 1)
                   void SetTitleTextColor(Color_t color = 1)
                   void SetTitleStyle(Style_t style = 1001)
                   void SetTitleFontSize(Float_t size = 0)
                   void SetTitleBorderSize(Width_t size = 2)
                   void SetTitleXOffset(Float_t offset = 1)
                   void SetTitleXSize(Float_t size = 0.02)
                   void SetTitleYOffset(Float_t offset = 1)
                   void SetTitleYSize(Float_t size = 0.02)
                   void SetTitleX(Float_t x = 0)
                   void SetTitleY(Float_t y = 0.985)
                   void SetTitleW(Float_t w = 0)
                   void SetTitleH(Float_t h = 0)
                   void ToggleEventStatus()
                   void ToggleEditor()
                   void ToggleToolBar()
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                TStyle& operator=(const TStyle&)

Author: Rene Brun 12/12/94
Last update: root/base:$Name: $:$Id: TStyle.cxx,v 1.36 2004/07/08 12:18:49 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *