Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches

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 some of the following object attributes.

  • Canvas
  • Pad
  • Histogram axis
  • Lines
  • Fill areas
  • Text
  • Markers
  • Functions
  • Histogram Statistics and Titles

All objects that can be drawn in a pad inherit from one or more attribute classes like TAttLine, TAttFill, TAttText, TAttMarker. When the objects are created, their default attributes are taken from the current style. The current style is an object of the classTStyle and can be referenced via the global variable gStyle (in TStyle.h).

ROOT provides two styles called "Default" and "Plain". The "Default" style is created simply by:

auto default = new TStyle("Default","Default Style");
TStyle()
Default constructor.
Definition TStyle.cxx:145

The Plain style can be used if you are working on a monochrome display or if you want to get a "conventional" Postscript output. These are the instructions in the ROOT constructor to create the Plain style.

auto plain = new TStyle("Plain","Plain Style (no colors/fill areas)");
plain->SetCanvasBorderMode(0);
plain->SetPadBorderMode(0);
plain->SetPadColor(0);
plain->SetCanvasColor(0);
plain->SetTitleColor(0);
plain->SetStatColor(0);

You can set the current style with:

gROOT->SetStyle(style_name);
#define gROOT
Definition TROOT.h:406

You can get a pointer to an existing style with:

auto style = gROOT->GetStyle(style_name);
Option_t Option_t style

You can create additional styles with:

TStyle *st1 = new TStyle("st1","my style");
st1->Set....
st1->cd(); this becomes now the current style gStyle
R__EXTERN TStyle * gStyle
Definition TStyle.h:436
TStyle objects may be created to define special styles.
Definition TStyle.h:29
virtual void cd()
Change current style.
Definition TStyle.cxx:543

In your rootlogon.C file, you can redefine the default parameters via statements like:

void SetStatX(Float_t x=0)
Definition TStyle.h:397
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
Definition TStyle.cxx:1413
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis labels.
Definition TStyle.cxx:1429
void SetStatW(Float_t w=0.19)
Definition TStyle.h:399

Note that when an object is created, its attributes are taken from the current style. For example, you may have created an histogram in a previous session, saved it in a file. Meanwhile, if you have changed the style, the histogram will be drawn with the old attributes. You can force the current style attributes to be set when you read an object from a file by calling:

gROOT->ForceStyle();

before reading the objects from the file.

Let's assume you have a canvas or pad with your histogram or any other object, you can force these objects to get the attributes of the current style via:

canvas->UseCurrentStyle();

The description of the style functions should be clear from the name of the TStyle Setters or Getters. Some functions have an extended description, in particular:

  • TStyle:SetLabelFont.
  • TStyle:SetLineStyleString, to set the format of dashed lines.
  • TStyle:SetOptStat.
  • TStyle:SetPalette to change the colors palette.
  • TStyle:SetTitleOffset.

Definition at line 29 of file TStyle.h.

Public Types

enum  EPaperSize { kA4 , kUSLetter }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 

Public Member Functions

 TStyle ()
 Default constructor.
 
 TStyle (const char *name, const char *title)
 Create a new TStyle.
 
 TStyle (const TStyle &style)
 Copy constructor.
 
virtual ~TStyle ()
 Destructor.
 
Int_t AxisChoice (Option_t *axis) const
 
void Browse (TBrowser *b) override
 Browse the style object.
 
virtual void cd ()
 Change current style.
 
void Copy (TObject &style) const override
 Copy this style.
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 Function used by the TStyle manager when drawing a canvas showing the current style.
 
TAttTextGetAttDate ()
 
Color_t GetAxisColor (Option_t *axis="X") const
 Return the axis color number in the axis.
 
Int_t GetAxisMaxDigits () const
 Method returns maximum number of digits permitted for the axis labels above which the notation with 10^N is used.
 
Float_t GetBarOffset () const
 
Float_t GetBarWidth () const
 
Double_t GetCandleBoxRange () const
 
Bool_t GetCandleScaled () const
 
Double_t GetCandleWhiskerRange () 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
 
Bool_t GetCanvasPreferGL () const
 
Int_t GetCapLinePS () const
 Returns the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details.
 
Int_t GetColorModelPS () const
 
Int_t GetColorPalette (Int_t i) const
 Return color number i in current palette.
 
Float_t GetDateX () const
 
Float_t GetDateY () const
 
Int_t GetDrawBorder () const
 
Float_t GetEndErrorSize () const
 
Float_t GetErrorX () const
 
void GetExponentOffset (Float_t &xoff, Float_t &yoff, Option_t *axis="X") const
 Method returns X and Y offset of the axis 10^n notation.
 
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
 
Int_t GetHatchesLineWidth () const
 
Double_t GetHatchesSpacing () 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
 
Bool_t GetHistMinimumZero () const
 
Double_t GetHistTopMargin () const
 
Float_t GetImageScaling () const
 
Int_t GetJoinLinePS () const
 Returns the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details.
 
Color_t GetLabelColor (Option_t *axis="X") const
 Return the label color number in the axis.
 
Style_t GetLabelFont (Option_t *axis="X") const
 Return label font.
 
Float_t GetLabelOffset (Option_t *axis="X") const
 Return label offset.
 
Float_t GetLabelSize (Option_t *axis="X") const
 Return label size.
 
Width_t GetLegendBorderSize () const
 
Color_t GetLegendFillColor () const
 
Style_t GetLegendFillStyle () const
 
Style_t GetLegendFont () const
 
Double_t GetLegendTextSize () const
 
Float_t GetLegoInnerR () const
 
Float_t GetLineScalePS () const
 
const char * GetLineStyleString (Int_t i=1) const
 Return line style string (used by PostScript).
 
Int_t GetNdivisions (Option_t *axis="X") const
 Return number of divisions.
 
Int_t GetNumberContours () const
 
Int_t GetNumberOfColors () const
 Return number of colors in the color palette.
 
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
 
Bool_t GetOrthoCamera () 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) const
 Set paper size for PostScript output.
 
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
 Return tick length.
 
Double_t GetTimeOffset () const
 
Int_t GetTitleAlign () const
 
Width_t GetTitleBorderSize () const
 
Color_t GetTitleColor (Option_t *axis="X") const
 Return title color.
 
Color_t GetTitleFillColor () const
 
Style_t GetTitleFont (Option_t *axis="X") const
 Return title font.
 
Float_t GetTitleFontSize () const
 
Float_t GetTitleH () const
 
Float_t GetTitleOffset (Option_t *axis="X") const
 Return title offset.
 
const char * GetTitlePS () const
 
Float_t GetTitleSize (Option_t *axis="X") const
 Return title size.
 
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
 
Bool_t GetViolinScaled () const
 
TClassIsA () const override
 
Bool_t IsReading () const
 
TStyleoperator= (const TStyle &style)
 Assignment operator.
 
void Paint (Option_t *option="") override
 Copy this style to gStyle.
 
virtual void Reset (Option_t *option="")
 Reset.
 
void SavePrimitive (std::ostream &out, Option_t *="") override
 Save a main frame widget as a C++ statement(s) on output stream out.
 
void SaveSource (const char *filename, Option_t *option=nullptr)
 Save the current style in a C++ macro file.
 
void SetAxisColor (Color_t color=1, Option_t *axis="X")
 Set color to draw the axis line and tick marks.
 
void SetAxisMaxDigits (Int_t maxd=5)
 Method set maximum number of digits permitted for the axis labels above which the notation with 10^N is used.
 
void SetBarOffset (Float_t baroff=0.5)
 
void SetBarWidth (Float_t barwidth=0.5)
 
void SetCandleBoxRange (Double_t bRange=0.5)
 By setting box-range for candle plot, one can force the box of the candle-chart to cover that given fraction of the distribution.
 
void SetCandleScaled (Bool_t on=kFALSE)
 
void SetCandleWhiskerRange (Double_t wRange=1.0)
 By setting whisker-range for candle plot, one can force the whiskers to cover the fraction of the distribution.
 
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 SetCanvasPreferGL (Bool_t prefer=kTRUE)
 
void SetCapLinePS (Int_t capline=0)
 Set the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details.
 
void SetColorModelPS (Int_t c=0)
 Define the color model used by TPostScript and TPDF (RGB or CMYK).
 
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)
 Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors).
 
void SetErrorX (Float_t errorx=0.5)
 
void SetExponentOffset (Float_t xoff=0., Float_t yoff=0., Option_t *axis="XY")
 Method set X and Y offset of the axis 10^n notation.
 
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 SetHatchesLineWidth (Int_t l)
 
void SetHatchesSpacing (Double_t h)
 
void SetHeaderPS (const char *header)
 Define a string to be inserted in the Postscript 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 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.
 
void SetHistTopMargin (Double_t hmax=0.05)
 
void SetImageScaling (Float_t s)
 
void SetIsReading (Bool_t reading=kTRUE)
 Sets the fIsReading member to reading (default=kTRUE).
 
void SetJoinLinePS (Int_t joinline=0)
 Set the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details.
 
void SetLabelColor (Color_t color=1, Option_t *axis="X")
 Set axis labels color.
 
void SetLabelFont (Style_t font=62, Option_t *axis="X")
 Set font number used to draw axis labels.
 
void SetLabelOffset (Float_t offset=0.005, Option_t *axis="X")
 Set offset between axis and axis labels.
 
void SetLabelSize (Float_t size=0.04, Option_t *axis="X")
 Set size of axis labels.
 
void SetLegendBorderSize (Width_t size=4)
 
void SetLegendFillColor (Color_t color=0)
 
void SetLegendFillStyle (Style_t style=1001)
 
void SetLegendFont (Style_t font=62)
 
void SetLegendTextSize (Double_t size=0.)
 
void SetLegoInnerR (Float_t rad=0.5)
 
void SetLineScalePS (Float_t scale=3)
 
void SetLineStyleString (Int_t i, const char *text)
 Set line style string using the PostScript convention.
 
void SetNdivisions (Int_t n=510, Option_t *axis="X")
 Set the number of divisions to draw an axis.
 
void SetNumberContours (Int_t number=20)
 Set the default number of contour levels when drawing 2-d plots.
 
void SetOptDate (Int_t datefl=1)
 If optdate is non null, the current date/time will be printed in the canvas.
 
void SetOptFile (Int_t file=1)
 
void SetOptFit (Int_t fit=1)
 The type of information about fit parameters printed in the histogram statistics box can be selected via the parameter mode.
 
void SetOptLogx (Int_t logx=1)
 
void SetOptLogy (Int_t logy=1)
 
void SetOptLogz (Int_t logz=1)
 
void SetOptStat (Int_t stat=1)
 The type of information printed in the histogram statistics box can be selected via the parameter mode.
 
void SetOptStat (Option_t *stat)
 The parameter mode can be any combination of kKsSiourRmMen.
 
void SetOptTitle (Int_t tit=1)
 
void SetOrthoCamera (Bool_t on=kTRUE)
 
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=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
 See TColor::SetPalette.
 
void SetPalette (TString fileName, Float_t alpha=1.)
 
void SetPaperSize (EPaperSize size)
 Set paper size for PostScript output.
 
void SetPaperSize (Float_t xsize=20, Float_t ysize=26)
 Set paper size for PostScript output.
 
void SetScreenFactor (Float_t factor=1)
 
void SetStatBorderSize (Width_t size=2)
 
void SetStatColor (Color_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 (Color_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)
 Set option to strip decimals when drawing axis labels.
 
void SetTickLength (Float_t length=0.03, Option_t *axis="X")
 Set the tick marks length for an axis.
 
void SetTimeOffset (Double_t toffset)
 Change the time offset for time plotting.
 
void SetTitleAlign (Int_t a=13)
 
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")
 Specify a parameter offset to control the distance between the axis and the axis title.
 
void SetTitlePS (const char *pstitle)
 Define a string to be used in the %Title of the Postscript files.
 
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)
 
void SetViolinScaled (Bool_t on=kTRUE)
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void ToggleEditor ()
 
void ToggleEventStatus ()
 
void ToggleToolBar ()
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
 
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
 
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
const char * GetName () const override
 Returns name of object.
 
const char * GetTitle () const override
 Returns title of object.
 
ULong_t Hash () const override
 Return hash value for this object.
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 List TNamed name and title.
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
void Print (Option_t *option="") const override
 Print TNamed name and title.
 
virtual void SetName (const char *name)
 Set the name of the TNamed.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor.
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor.
 
virtual ~TAttLine ()
 AttLine destructor.
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine.
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line.
 
virtual Color_t GetLineColor () const
 Return the line color.
 
virtual Style_t GetLineStyle () const
 Return the line style.
 
virtual Width_t GetLineWidth () const
 Return the line width.
 
virtual void Modify ()
 Change current line attributes if necessary.
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values.
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out.
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes.
 
virtual void SetLineColor (Color_t lcolor)
 Set the line color.
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color.
 
virtual void SetLineStyle (Style_t lstyle)
 Set the line style.
 
virtual void SetLineWidth (Width_t lwidth)
 Set the line width.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor.
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor.
 
virtual ~TAttFill ()
 AttFill destructor.
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill.
 
virtual Color_t GetFillColor () const
 Return the fill area color.
 
virtual Style_t GetFillStyle () const
 Return the fill area style.
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary.
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values.
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 Save fill attributes as C++ statement(s) on output stream out.
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes.
 
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color.
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color.
 
virtual void SetFillStyle (Style_t fstyle)
 Set the fill area style.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 TAttMarker default constructor.
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 TAttMarker normal constructor.
 
virtual ~TAttMarker ()
 TAttMarker destructor.
 
void Copy (TAttMarker &attmarker) const
 Copy this marker attributes to a new TAttMarker.
 
virtual Color_t GetMarkerColor () const
 Return the marker color.
 
virtual Size_t GetMarkerSize () const
 Return the marker size.
 
virtual Style_t GetMarkerStyle () const
 Return the marker style.
 
virtual void Modify ()
 Change current marker attributes if necessary.
 
virtual void ResetAttMarker (Option_t *toption="")
 Reset this marker attributes to the default values.
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 Save line attributes as C++ statement(s) on output stream out.
 
virtual void SetMarkerAttributes ()
 Invoke the DialogCanvas Marker attributes.
 
virtual void SetMarkerColor (Color_t mcolor=1)
 Set the marker color.
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 Set a transparent marker color.
 
virtual void SetMarkerSize (Size_t msize=1)
 Set the marker size.
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 Set the marker style.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttText
 TAttText ()
 AttText default constructor.
 
 TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
 AttText normal constructor.
 
virtual ~TAttText ()
 AttText destructor.
 
void Copy (TAttText &atttext) const
 Copy this text attributes to a new TAttText.
 
virtual Short_t GetTextAlign () const
 Return the text alignment.
 
virtual Float_t GetTextAngle () const
 Return the text angle.
 
virtual Color_t GetTextColor () const
 Return the text color.
 
virtual Font_t GetTextFont () const
 Return the text font.
 
virtual Float_t GetTextSize () const
 Return the text size.
 
virtual Float_t GetTextSizePercent (Float_t size)
 Return the text in percent of the pad size.
 
virtual void Modify ()
 Change current text attributes if necessary.
 
virtual void ResetAttText (Option_t *toption="")
 Reset this text attributes to default values.
 
virtual void SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
 Save text attributes as C++ statement(s) on output stream out.
 
virtual void SetTextAlign (Short_t align=11)
 Set the text alignment.
 
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle.
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes.
 
virtual void SetTextColor (Color_t tcolor=1)
 Set the text color.
 
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
 Set a transparent text color.
 
virtual void SetTextFont (Font_t tfont=62)
 Set the text font.
 
virtual void SetTextSize (Float_t tsize=1)
 Set the text size.
 
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixel.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static void BuildStyles ()
 Create some standard styles.
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 
- Static Public Member Functions inherited from TAttLine
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttFill
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttMarker
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Width_t GetMarkerLineWidth (Style_t style)
 Internal helper function that returns the line width of the given marker style (0 = filled marker)
 
static Style_t GetMarkerStyleBase (Style_t style)
 Internal helper function that returns the corresponding marker style with line width 1 for the given style.
 
- Static Public Member Functions inherited from TAttText
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Attributes

TAttText fAttDate
 Canvas date attribute.
 
Int_t fAxisMaxDigits
 Number of digits above which the 10^N notation is used for axis.
 
Float_t fBarOffset
 Offset of bar for graphs.
 
Float_t fBarWidth
 Width of bar for graphs.
 
Double_t fCandleBoxRange
 Candle plot, The fraction which is covered by the box (0 < x < 1), default 0.5.
 
Bool_t fCandleScaled
 Candle plot, shall the box-width be scaled to each other by the integral of a box?
 
Double_t fCandleWhiskerRange
 Candle plot, the fraction which is covered by the whiskers (0 < x < 1), default 1.
 
Int_t fCanvasBorderMode
 Canvas border mode.
 
Width_t fCanvasBorderSize
 Canvas border size.
 
Color_t fCanvasColor
 Canvas color.
 
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.
 
Bool_t fCanvasPreferGL
 If true, rendering in canvas is with GL.
 
Int_t fCapLinePS
 Determines the appearance of line caps on PostScript, PDF and SVG.
 
Int_t fColorModelPS
 PostScript color model: 0 = RGB, 1 = CMYK.
 
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)
 
Int_t fDrawBorder
 Flag to draw border(=1) or not (0)
 
Float_t fEndErrorSize
 Size of lines at the end of error bars.
 
Float_t fErrorX
 Per cent of bin width for errors along X.
 
TString fFitFormat
 Printing format for fit parameters.
 
Int_t fFrameBorderMode
 Pad frame border mode.
 
Width_t fFrameBorderSize
 Pad frame border size.
 
Color_t fFrameFillColor
 Pad frame fill color.
 
Style_t fFrameFillStyle
 Pad frame fill style.
 
Color_t fFrameLineColor
 Pad frame line color.
 
Style_t fFrameLineStyle
 Pad frame line style.
 
Width_t fFrameLineWidth
 Pad frame line width.
 
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.
 
Int_t fHatchesLineWidth
 Hatches line width for hatch styles > 3100.
 
Double_t fHatchesSpacing
 Hatches spacing for hatch styles > 3100.
 
TString fHeaderPS
 User defined additional Postscript header.
 
Color_t fHistFillColor
 Histogram fill color.
 
Style_t fHistFillStyle
 Histogram fill style.
 
Color_t fHistLineColor
 Histogram line color.
 
Style_t fHistLineStyle
 Histogram line style.
 
Width_t fHistLineWidth
 Histogram line width.
 
Bool_t fHistMinimumZero
 True if default minimum is 0, false if minimum is automatic.
 
Double_t fHistTopMargin
 Margin between histogram's top and pad's top.
 
Float_t fImageScaling
 Image scaling to produce high definition bitmap images.
 
Bool_t fIsReading
 ! Set to FALSE when userclass::UseCurrentStyle is called by the style manager
 
Int_t fJoinLinePS
 Determines the appearance of joining lines on PostScript, PDF and SVG.
 
Width_t fLegendBorderSize
 Legend box border size.
 
Color_t fLegendFillColor
 Legend fill color.
 
Style_t fLegendFillStyle
 Legend fill style.
 
Style_t fLegendFont
 Legend font style.
 
Double_t fLegendTextSize
 Legend text size. If 0 the size is computed automatically.
 
Float_t fLegoInnerR
 Inner radius for cylindrical legos.
 
Float_t fLineScalePS
 Line scale factor when drawing lines on Postscript.
 
TString fLineStyle [30]
 String describing line style i (for postScript)
 
Int_t fNumberContours
 Default number of contours for 2-d plots.
 
Int_t fOptDate
 True if date option is selected.
 
Int_t fOptFile
 True if option File is selected.
 
Int_t fOptFit
 True if option Fit is selected.
 
Int_t fOptLogx
 True if log scale in X.
 
Int_t fOptLogy
 True if log scale in y.
 
Int_t fOptLogz
 True if log scale in z.
 
Int_t fOptStat
 True if option Stat is selected.
 
Int_t fOptTitle
 True if option Title is selected.
 
Bool_t fOrthoCamera
 Use orthographic camera with web display.
 
Int_t fPadBorderMode
 Pad border mode.
 
Width_t fPadBorderSize
 Pad border size.
 
Float_t fPadBottomMargin
 Pad bottom margin.
 
Color_t fPadColor
 Pad color.
 
Bool_t fPadGridX
 True to get the grid along X.
 
Bool_t fPadGridY
 True to get the grid along Y.
 
Float_t fPadLeftMargin
 Pad left margin.
 
Float_t fPadRightMargin
 Pad right margin.
 
Int_t fPadTickX
 True to set special pad ticks along X.
 
Int_t fPadTickY
 True to set special pad ticks along Y.
 
Float_t fPadTopMargin
 Pad top margin.
 
TString fPaintTextFormat
 Printing format for TH2::PaintText.
 
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.
 
Int_t fShowEditor
 Show pad editor.
 
Int_t fShowEventStatus
 Show event status panel.
 
Int_t fShowToolBar
 Show toolbar.
 
Width_t fStatBorderSize
 Border size of Stats PaveLabel.
 
Color_t fStatColor
 Stat fill area color.
 
Style_t fStatFont
 Font style of Stats PaveLabel.
 
Float_t fStatFontSize
 Font size in pixels for fonts with precision type 3.
 
TString fStatFormat
 Printing format for stats.
 
Float_t fStatH
 Height of stat box.
 
Style_t fStatStyle
 Fill area style of Stats PaveLabel.
 
Color_t fStatTextColor
 Stat text color.
 
Float_t fStatW
 Width of stat box.
 
Float_t fStatX
 X position of top right corner of stat box.
 
Float_t fStatY
 Y position of top right corner of stat box.
 
Bool_t fStripDecimals
 Strip decimals in axis labels.
 
Double_t fTimeOffset
 Time offset to the beginning of an axis.
 
Int_t fTitleAlign
 Title box alignment.
 
Width_t fTitleBorderSize
 Border size of Title PavelLabel.
 
Color_t fTitleColor
 Title fill area color.
 
Style_t fTitleFont
 Font style of Title PaveLabel.
 
Float_t fTitleFontSize
 Font size in pixels for fonts with precision type 3.
 
Float_t fTitleH
 Height of title box.
 
TString fTitlePS
 User defined Postscript file title.
 
Style_t fTitleStyle
 Fill area style of title PaveLabel.
 
Color_t fTitleTextColor
 Title text color.
 
Float_t fTitleW
 Width of title box.
 
Float_t fTitleX
 X position of top left corner of title box.
 
Float_t fTitleY
 Y position of top left corner of title box.
 
Bool_t fViolinScaled
 Violin plot, shall the violin or histos be scaled to each other by the maximum height?
 
TAttAxis fXaxis
 X axis attributes.
 
Float_t fXAxisExpXOffset
 X axis exponent label X offset.
 
Float_t fXAxisExpYOffset
 X axis exponent label Y offset.
 
TAttAxis fYaxis
 Y axis attributes.
 
Float_t fYAxisExpXOffset
 Y axis exponent label X offset.
 
Float_t fYAxisExpYOffset
 Y axis exponent label Y offset.
 
TAttAxis fZaxis
 Z axis attributes.
 

Additional Inherited Members

- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color.
 
Style_t fLineStyle
 Line style.
 
Width_t fLineWidth
 Line width.
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color.
 
Style_t fFillStyle
 Fill area style.
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 Marker color.
 
Size_t fMarkerSize
 Marker size.
 
Style_t fMarkerStyle
 Marker style.
 
- Protected Attributes inherited from TAttText
Short_t fTextAlign
 Text alignment.
 
Float_t fTextAngle
 Text angle.
 
Color_t fTextColor
 Text color.
 
Font_t fTextFont
 Text font.
 
Float_t fTextSize
 Text size.
 

#include <TStyle.h>

Inheritance diagram for TStyle:
[legend]

Member Enumeration Documentation

◆ EPaperSize

Enumerator
kA4 
kUSLetter 

Definition at line 153 of file TStyle.h.

Constructor & Destructor Documentation

◆ TStyle() [1/3]

TStyle::TStyle ( )

Default constructor.

Definition at line 145 of file TStyle.cxx.

◆ TStyle() [2/3]

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

Create a new TStyle.

The following names are reserved to create special styles:

  • Classic: Similar to Default style set in TStyle::Reset
  • Plain: a black&white oriented style
  • Bold
  • Video
  • Pub
  • Modern: Used when ROOT starts
  • ATLAS: style used by the ATLAS experiment
  • BELLE2: style used by the BELLE II experiment (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

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, e.g.

gROOT->SetStyle("Plain") will change the current style gStyle to the "Plain" style

See also TROOT::ForceStyle and TROOT::UseCurrentStyle

Definition at line 199 of file TStyle.cxx.

◆ TStyle() [3/3]

TStyle::TStyle ( const TStyle style)

Copy constructor.

Definition at line 489 of file TStyle.cxx.

◆ ~TStyle()

TStyle::~TStyle ( )
virtual

Destructor.

Definition at line 479 of file TStyle.cxx.

Member Function Documentation

◆ AxisChoice()

Int_t TStyle::AxisChoice ( Option_t axis) const

Definition at line 507 of file TStyle.cxx.

◆ Browse()

void TStyle::Browse ( TBrowser b)
overridevirtual

Browse the style object.

Reimplemented from TObject.

Definition at line 517 of file TStyle.cxx.

◆ BuildStyles()

void TStyle::BuildStyles ( )
static

Create some standard styles.

Definition at line 525 of file TStyle.cxx.

◆ cd()

void TStyle::cd ( )
virtual

Change current style.

Definition at line 543 of file TStyle.cxx.

◆ Class()

static TClass * TStyle::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TStyle::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TStyle::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 432 of file TStyle.h.

◆ Copy()

void TStyle::Copy ( TObject style) const
overridevirtual

Copy this style.

Reimplemented from TNamed.

Definition at line 551 of file TStyle.cxx.

◆ DeclFileName()

static const char * TStyle::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 432 of file TStyle.h.

◆ DistancetoPrimitive()

Int_t TStyle::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
overridevirtual

Function used by the TStyle manager when drawing a canvas showing the current style.

Reimplemented from TObject.

Definition at line 687 of file TStyle.cxx.

◆ GetAttDate()

TAttText * TStyle::GetAttDate ( )
inline

Definition at line 168 of file TStyle.h.

◆ GetAxisColor()

Color_t TStyle::GetAxisColor ( Option_t axis = "X") const

Return the axis color number in the axis.

Definition at line 1089 of file TStyle.cxx.

◆ GetAxisMaxDigits()

Int_t TStyle::GetAxisMaxDigits ( ) const

Method returns maximum number of digits permitted for the axis labels above which the notation with 10^N is used.

See SetAxisMaxDigits for more details

Definition at line 1157 of file TStyle.cxx.

◆ GetBarOffset()

Float_t TStyle::GetBarOffset ( ) const
inline

Definition at line 182 of file TStyle.h.

◆ GetBarWidth()

Float_t TStyle::GetBarWidth ( ) const
inline

Definition at line 183 of file TStyle.h.

◆ GetCandleBoxRange()

Double_t TStyle::GetCandleBoxRange ( ) const
inline

Definition at line 291 of file TStyle.h.

◆ GetCandleScaled()

Bool_t TStyle::GetCandleScaled ( ) const
inline

Definition at line 292 of file TStyle.h.

◆ GetCandleWhiskerRange()

Double_t TStyle::GetCandleWhiskerRange ( ) const
inline

Definition at line 290 of file TStyle.h.

◆ GetCanvasBorderMode()

Int_t TStyle::GetCanvasBorderMode ( ) const
inline

Definition at line 190 of file TStyle.h.

◆ GetCanvasBorderSize()

Width_t TStyle::GetCanvasBorderSize ( ) const
inline

Definition at line 189 of file TStyle.h.

◆ GetCanvasColor()

Color_t TStyle::GetCanvasColor ( ) const
inline

Definition at line 188 of file TStyle.h.

◆ GetCanvasDefH()

Int_t TStyle::GetCanvasDefH ( ) const
inline

Definition at line 191 of file TStyle.h.

◆ GetCanvasDefW()

Int_t TStyle::GetCanvasDefW ( ) const
inline

Definition at line 192 of file TStyle.h.

◆ GetCanvasDefX()

Int_t TStyle::GetCanvasDefX ( ) const
inline

Definition at line 193 of file TStyle.h.

◆ GetCanvasDefY()

Int_t TStyle::GetCanvasDefY ( ) const
inline

Definition at line 194 of file TStyle.h.

◆ GetCanvasPreferGL()

Bool_t TStyle::GetCanvasPreferGL ( ) const
inline

Definition at line 187 of file TStyle.h.

◆ GetCapLinePS()

Int_t TStyle::GetCapLinePS ( ) const
inline

Returns the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details.

Definition at line 288 of file TStyle.h.

◆ GetColorModelPS()

Int_t TStyle::GetColorModelPS ( ) const
inline

Definition at line 196 of file TStyle.h.

◆ GetColorPalette()

Int_t TStyle::GetColorPalette ( Int_t  i) const

Return color number i in current palette.

Definition at line 1101 of file TStyle.cxx.

◆ GetDateX()

Float_t TStyle::GetDateX ( ) const
inline

Definition at line 197 of file TStyle.h.

◆ GetDateY()

Float_t TStyle::GetDateY ( ) const
inline

Definition at line 198 of file TStyle.h.

◆ GetDrawBorder()

Int_t TStyle::GetDrawBorder ( ) const
inline

Definition at line 184 of file TStyle.h.

◆ GetEndErrorSize()

Float_t TStyle::GetEndErrorSize ( ) const
inline

Definition at line 185 of file TStyle.h.

◆ GetErrorX()

Float_t TStyle::GetErrorX ( ) const
inline

Definition at line 186 of file TStyle.h.

◆ GetExponentOffset()

void TStyle::GetExponentOffset ( Float_t xoff,
Float_t yoff,
Option_t axis = "X" 
) const

Method returns X and Y offset of the axis 10^n notation.

It applies on axis belonging to an histogram (TAxis)

Definition at line 1855 of file TStyle.cxx.

◆ GetFitFormat()

const char * TStyle::GetFitFormat ( ) const
inline

Definition at line 199 of file TStyle.h.

◆ GetFrameBorderMode()

Int_t TStyle::GetFrameBorderMode ( ) const
inline

Definition at line 231 of file TStyle.h.

◆ GetFrameBorderSize()

Width_t TStyle::GetFrameBorderSize ( ) const
inline

Definition at line 230 of file TStyle.h.

◆ GetFrameFillColor()

Color_t TStyle::GetFrameFillColor ( ) const
inline

Definition at line 225 of file TStyle.h.

◆ GetFrameFillStyle()

Style_t TStyle::GetFrameFillStyle ( ) const
inline

Definition at line 227 of file TStyle.h.

◆ GetFrameLineColor()

Color_t TStyle::GetFrameLineColor ( ) const
inline

Definition at line 226 of file TStyle.h.

◆ GetFrameLineStyle()

Style_t TStyle::GetFrameLineStyle ( ) const
inline

Definition at line 228 of file TStyle.h.

◆ GetFrameLineWidth()

Width_t TStyle::GetFrameLineWidth ( ) const
inline

Definition at line 229 of file TStyle.h.

◆ GetFuncColor()

Color_t TStyle::GetFuncColor ( ) const
inline

Definition at line 219 of file TStyle.h.

◆ GetFuncStyle()

Style_t TStyle::GetFuncStyle ( ) const
inline

Definition at line 220 of file TStyle.h.

◆ GetFuncWidth()

Width_t TStyle::GetFuncWidth ( ) const
inline

Definition at line 221 of file TStyle.h.

◆ GetGridColor()

Color_t TStyle::GetGridColor ( ) const
inline

Definition at line 222 of file TStyle.h.

◆ GetGridStyle()

Style_t TStyle::GetGridStyle ( ) const
inline

Definition at line 223 of file TStyle.h.

◆ GetGridWidth()

Width_t TStyle::GetGridWidth ( ) const
inline

Definition at line 224 of file TStyle.h.

◆ GetHatchesLineWidth()

Int_t TStyle::GetHatchesLineWidth ( ) const
inline

Definition at line 200 of file TStyle.h.

◆ GetHatchesSpacing()

Double_t TStyle::GetHatchesSpacing ( ) const
inline

Definition at line 201 of file TStyle.h.

◆ GetHeaderPS()

const char * TStyle::GetHeaderPS ( ) const
inline

Definition at line 284 of file TStyle.h.

◆ GetHistFillColor()

Color_t TStyle::GetHistFillColor ( ) const
inline

Definition at line 232 of file TStyle.h.

◆ GetHistFillStyle()

Style_t TStyle::GetHistFillStyle ( ) const
inline

Definition at line 234 of file TStyle.h.

◆ GetHistLineColor()

Color_t TStyle::GetHistLineColor ( ) const
inline

Definition at line 233 of file TStyle.h.

◆ GetHistLineStyle()

Style_t TStyle::GetHistLineStyle ( ) const
inline

Definition at line 235 of file TStyle.h.

◆ GetHistLineWidth()

Width_t TStyle::GetHistLineWidth ( ) const
inline

Definition at line 236 of file TStyle.h.

◆ GetHistMinimumZero()

Bool_t TStyle::GetHistMinimumZero ( ) const
inline

Definition at line 237 of file TStyle.h.

◆ GetHistTopMargin()

Double_t TStyle::GetHistTopMargin ( ) const
inline

Definition at line 238 of file TStyle.h.

◆ GetImageScaling()

Float_t TStyle::GetImageScaling ( ) const
inline

Definition at line 239 of file TStyle.h.

◆ GetJoinLinePS()

Int_t TStyle::GetJoinLinePS ( ) const
inline

Returns the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details.

Definition at line 287 of file TStyle.h.

◆ GetLabelColor()

Color_t TStyle::GetLabelColor ( Option_t axis = "X") const

Return the label color number in the axis.

Definition at line 1109 of file TStyle.cxx.

◆ GetLabelFont()

Style_t TStyle::GetLabelFont ( Option_t axis = "X") const

Return label font.

Definition at line 1121 of file TStyle.cxx.

◆ GetLabelOffset()

Float_t TStyle::GetLabelOffset ( Option_t axis = "X") const

Return label offset.

Definition at line 1133 of file TStyle.cxx.

◆ GetLabelSize()

Float_t TStyle::GetLabelSize ( Option_t axis = "X") const

Return label size.

Definition at line 1145 of file TStyle.cxx.

◆ GetLegendBorderSize()

Width_t TStyle::GetLegendBorderSize ( ) const
inline

Definition at line 202 of file TStyle.h.

◆ GetLegendFillColor()

Color_t TStyle::GetLegendFillColor ( ) const
inline

Definition at line 203 of file TStyle.h.

◆ GetLegendFillStyle()

Style_t TStyle::GetLegendFillStyle ( ) const
inline

Definition at line 204 of file TStyle.h.

◆ GetLegendFont()

Style_t TStyle::GetLegendFont ( ) const
inline

Definition at line 205 of file TStyle.h.

◆ GetLegendTextSize()

Double_t TStyle::GetLegendTextSize ( ) const
inline

Definition at line 206 of file TStyle.h.

◆ GetLegoInnerR()

Float_t TStyle::GetLegoInnerR ( ) const
inline

Definition at line 240 of file TStyle.h.

◆ GetLineScalePS()

Float_t TStyle::GetLineScalePS ( ) const
inline

Definition at line 289 of file TStyle.h.

◆ GetLineStyleString()

const char * TStyle::GetLineStyleString ( Int_t  i = 1) const

Return line style string (used by PostScript).

See SetLineStyleString for more explanations

Definition at line 1166 of file TStyle.cxx.

◆ GetNdivisions()

Int_t TStyle::GetNdivisions ( Option_t axis = "X") const

Return number of divisions.

Definition at line 1077 of file TStyle.cxx.

◆ GetNumberContours()

Int_t TStyle::GetNumberContours ( ) const
inline

Definition at line 241 of file TStyle.h.

◆ GetNumberOfColors()

Int_t TStyle::GetNumberOfColors ( ) const

Return number of colors in the color palette.

Definition at line 1175 of file TStyle.cxx.

◆ GetOptDate()

Int_t TStyle::GetOptDate ( ) const
inline

Definition at line 242 of file TStyle.h.

◆ GetOptFile()

Int_t TStyle::GetOptFile ( ) const
inline

Definition at line 243 of file TStyle.h.

◆ GetOptFit()

Int_t TStyle::GetOptFit ( ) const
inline

Definition at line 244 of file TStyle.h.

◆ GetOptLogx()

Int_t TStyle::GetOptLogx ( ) const
inline

Definition at line 247 of file TStyle.h.

◆ GetOptLogy()

Int_t TStyle::GetOptLogy ( ) const
inline

Definition at line 248 of file TStyle.h.

◆ GetOptLogz()

Int_t TStyle::GetOptLogz ( ) const
inline

Definition at line 249 of file TStyle.h.

◆ GetOptStat()

Int_t TStyle::GetOptStat ( ) const
inline

Definition at line 245 of file TStyle.h.

◆ GetOptTitle()

Int_t TStyle::GetOptTitle ( ) const
inline

Definition at line 246 of file TStyle.h.

◆ GetOrthoCamera()

Bool_t TStyle::GetOrthoCamera ( ) const
inline

Definition at line 294 of file TStyle.h.

◆ GetPadBorderMode()

Int_t TStyle::GetPadBorderMode ( ) const
inline

Definition at line 210 of file TStyle.h.

◆ GetPadBorderSize()

Width_t TStyle::GetPadBorderSize ( ) const
inline

Definition at line 209 of file TStyle.h.

◆ GetPadBottomMargin()

Float_t TStyle::GetPadBottomMargin ( ) const
inline

Definition at line 211 of file TStyle.h.

◆ GetPadColor()

Color_t TStyle::GetPadColor ( ) const
inline

Definition at line 208 of file TStyle.h.

◆ GetPadGridX()

Bool_t TStyle::GetPadGridX ( ) const
inline

Definition at line 215 of file TStyle.h.

◆ GetPadGridY()

Bool_t TStyle::GetPadGridY ( ) const
inline

Definition at line 216 of file TStyle.h.

◆ GetPadLeftMargin()

Float_t TStyle::GetPadLeftMargin ( ) const
inline

Definition at line 213 of file TStyle.h.

◆ GetPadRightMargin()

Float_t TStyle::GetPadRightMargin ( ) const
inline

Definition at line 214 of file TStyle.h.

◆ GetPadTickX()

Int_t TStyle::GetPadTickX ( ) const
inline

Definition at line 217 of file TStyle.h.

◆ GetPadTickY()

Int_t TStyle::GetPadTickY ( ) const
inline

Definition at line 218 of file TStyle.h.

◆ GetPadTopMargin()

Float_t TStyle::GetPadTopMargin ( ) const
inline

Definition at line 212 of file TStyle.h.

◆ GetPaintTextFormat()

const char * TStyle::GetPaintTextFormat ( ) const
inline

Definition at line 250 of file TStyle.h.

◆ GetPaperSize()

void TStyle::GetPaperSize ( Float_t xsize,
Float_t ysize 
) const

Set paper size for PostScript output.

Definition at line 1183 of file TStyle.cxx.

◆ GetScreenFactor()

Float_t TStyle::GetScreenFactor ( ) const
inline

Definition at line 256 of file TStyle.h.

◆ GetShowEditor()

Int_t TStyle::GetShowEditor ( ) const
inline

Definition at line 253 of file TStyle.h.

◆ GetShowEventStatus()

Int_t TStyle::GetShowEventStatus ( ) const
inline

Definition at line 252 of file TStyle.h.

◆ GetShowToolBar()

Int_t TStyle::GetShowToolBar ( ) const
inline

Definition at line 254 of file TStyle.h.

◆ GetStatBorderSize()

Width_t TStyle::GetStatBorderSize ( ) const
inline

Definition at line 259 of file TStyle.h.

◆ GetStatColor()

Color_t TStyle::GetStatColor ( ) const
inline

Definition at line 257 of file TStyle.h.

◆ GetStatFont()

Style_t TStyle::GetStatFont ( ) const
inline

Definition at line 260 of file TStyle.h.

◆ GetStatFontSize()

Float_t TStyle::GetStatFontSize ( ) const
inline

Definition at line 261 of file TStyle.h.

◆ GetStatFormat()

const char * TStyle::GetStatFormat ( ) const
inline

Definition at line 263 of file TStyle.h.

◆ GetStatH()

Float_t TStyle::GetStatH ( ) const
inline

Definition at line 267 of file TStyle.h.

◆ GetStatStyle()

Style_t TStyle::GetStatStyle ( ) const
inline

Definition at line 262 of file TStyle.h.

◆ GetStatTextColor()

Color_t TStyle::GetStatTextColor ( ) const
inline

Definition at line 258 of file TStyle.h.

◆ GetStatW()

Float_t TStyle::GetStatW ( ) const
inline

Definition at line 266 of file TStyle.h.

◆ GetStatX()

Float_t TStyle::GetStatX ( ) const
inline

Definition at line 264 of file TStyle.h.

◆ GetStatY()

Float_t TStyle::GetStatY ( ) const
inline

Definition at line 265 of file TStyle.h.

◆ GetStripDecimals()

Int_t TStyle::GetStripDecimals ( ) const
inline

Definition at line 268 of file TStyle.h.

◆ GetTickLength()

Float_t TStyle::GetTickLength ( Option_t axis = "X") const

Return tick length.

Definition at line 1192 of file TStyle.cxx.

◆ GetTimeOffset()

Double_t TStyle::GetTimeOffset ( ) const
inline

Definition at line 269 of file TStyle.h.

◆ GetTitleAlign()

Int_t TStyle::GetTitleAlign ( ) const
inline

Definition at line 270 of file TStyle.h.

◆ GetTitleBorderSize()

Width_t TStyle::GetTitleBorderSize ( ) const
inline

Definition at line 275 of file TStyle.h.

◆ GetTitleColor()

Color_t TStyle::GetTitleColor ( Option_t axis = "X") const

Return title color.

Definition at line 1204 of file TStyle.cxx.

◆ GetTitleFillColor()

Color_t TStyle::GetTitleFillColor ( ) const
inline

Definition at line 271 of file TStyle.h.

◆ GetTitleFont()

Style_t TStyle::GetTitleFont ( Option_t axis = "X") const

Return title font.

Definition at line 1216 of file TStyle.cxx.

◆ GetTitleFontSize()

Float_t TStyle::GetTitleFontSize ( ) const
inline

Definition at line 274 of file TStyle.h.

◆ GetTitleH()

Float_t TStyle::GetTitleH ( ) const
inline

Definition at line 283 of file TStyle.h.

◆ GetTitleOffset()

Float_t TStyle::GetTitleOffset ( Option_t axis = "X") const

Return title offset.

Definition at line 1228 of file TStyle.cxx.

◆ GetTitlePS()

const char * TStyle::GetTitlePS ( ) const
inline

Definition at line 285 of file TStyle.h.

◆ GetTitleSize()

Float_t TStyle::GetTitleSize ( Option_t axis = "X") const

Return title size.

Definition at line 1240 of file TStyle.cxx.

◆ GetTitleStyle()

Style_t TStyle::GetTitleStyle ( ) const
inline

Definition at line 273 of file TStyle.h.

◆ GetTitleTextColor()

Color_t TStyle::GetTitleTextColor ( ) const
inline

Definition at line 272 of file TStyle.h.

◆ GetTitleW()

Float_t TStyle::GetTitleW ( ) const
inline

Definition at line 282 of file TStyle.h.

◆ GetTitleX()

Float_t TStyle::GetTitleX ( ) const
inline

Definition at line 280 of file TStyle.h.

◆ GetTitleXOffset()

Float_t TStyle::GetTitleXOffset ( ) const
inline

Definition at line 276 of file TStyle.h.

◆ GetTitleXSize()

Float_t TStyle::GetTitleXSize ( ) const
inline

Definition at line 277 of file TStyle.h.

◆ GetTitleY()

Float_t TStyle::GetTitleY ( ) const
inline

Definition at line 281 of file TStyle.h.

◆ GetTitleYOffset()

Float_t TStyle::GetTitleYOffset ( ) const
inline

Definition at line 278 of file TStyle.h.

◆ GetTitleYSize()

Float_t TStyle::GetTitleYSize ( ) const
inline

Definition at line 279 of file TStyle.h.

◆ GetViolinScaled()

Bool_t TStyle::GetViolinScaled ( ) const
inline

Definition at line 293 of file TStyle.h.

◆ IsA()

TClass * TStyle::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TNamed.

Definition at line 432 of file TStyle.h.

◆ IsReading()

Bool_t TStyle::IsReading ( ) const
inline

Definition at line 296 of file TStyle.h.

◆ operator=()

TStyle & TStyle::operator= ( const TStyle style)

Assignment operator.

Definition at line 497 of file TStyle.cxx.

◆ Paint()

void TStyle::Paint ( Option_t option = "")
overridevirtual

Copy this style to gStyle.

Reimplemented from TObject.

Definition at line 1252 of file TStyle.cxx.

◆ Reset()

void TStyle::Reset ( Option_t option = "")
virtual

Reset.

Definition at line 696 of file TStyle.cxx.

◆ SavePrimitive()

void TStyle::SavePrimitive ( std::ostream &  out,
Option_t = "" 
)
overridevirtual

Save a main frame widget as a C++ statement(s) on output stream out.

Reimplemented from TObject.

Definition at line 2027 of file TStyle.cxx.

◆ SaveSource()

void TStyle::SaveSource ( const char *  filename,
Option_t option = nullptr 
)

Save the current style in a C++ macro file.

Definition at line 1969 of file TStyle.cxx.

◆ SetAxisColor()

void TStyle::SetAxisColor ( Color_t  color = 1,
Option_t axis = "X" 
)

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

Definition at line 1323 of file TStyle.cxx.

◆ SetAxisMaxDigits()

void TStyle::SetAxisMaxDigits ( Int_t  maxd = 5)

Method set maximum number of digits permitted for the axis labels above which the notation with 10^N is used.

For example, to accept 6 digits number like 900000 on an axis call gStyle->SetAxisMaxDigits(6). The default value is 5. Warning: this function changes the max number of digits in all axes. If you only want to change the digits of the current TGaxis instance, use axis->SetNdivisions(N*1000000 + (axis->GetNdiv()%1000000)) instead of gStyle->SetAxisMaxDigits(N).

Definition at line 1880 of file TStyle.cxx.

◆ SetBarOffset()

void TStyle::SetBarOffset ( Float_t  baroff = 0.5)
inline

Definition at line 335 of file TStyle.h.

◆ SetBarWidth()

void TStyle::SetBarWidth ( Float_t  barwidth = 0.5)
inline

Definition at line 336 of file TStyle.h.

◆ SetCandleBoxRange()

void TStyle::SetCandleBoxRange ( Double_t  bRange = 0.5)

By setting box-range for candle plot, one can force the box of the candle-chart to cover that given fraction of the distribution.

Set bRange between 0 and 1. Default is 0.5 gStyle->SetCandleBoxRange(0.68) will set all candle-charts to cover 68% of the distribution by the box

Definition at line 1956 of file TStyle.cxx.

◆ SetCandleScaled()

void TStyle::SetCandleScaled ( Bool_t  on = kFALSE)
inline

Definition at line 425 of file TStyle.h.

◆ SetCandleWhiskerRange()

void TStyle::SetCandleWhiskerRange ( Double_t  wRange = 1.0)

By setting whisker-range for candle plot, one can force the whiskers to cover the fraction of the distribution.

Set wRange between 0 and 1. Default is 1 gStyle->SetCandleWhiskerRange(0.95) will set all candle-charts to cover 95% of the distribution with the whiskers. Can only be used with the standard-whisker definition

Definition at line 1939 of file TStyle.cxx.

◆ SetCanvasBorderMode()

void TStyle::SetCanvasBorderMode ( Int_t  mode = 1)
inline

Definition at line 345 of file TStyle.h.

◆ SetCanvasBorderSize()

void TStyle::SetCanvasBorderSize ( Width_t  size = 1)
inline

Definition at line 344 of file TStyle.h.

◆ SetCanvasColor()

void TStyle::SetCanvasColor ( Color_t  color = 19)
inline

Definition at line 343 of file TStyle.h.

◆ SetCanvasDefH()

void TStyle::SetCanvasDefH ( Int_t  h = 500)
inline

Definition at line 346 of file TStyle.h.

◆ SetCanvasDefW()

void TStyle::SetCanvasDefW ( Int_t  w = 700)
inline

Definition at line 347 of file TStyle.h.

◆ SetCanvasDefX()

void TStyle::SetCanvasDefX ( Int_t  topx = 10)
inline

Definition at line 348 of file TStyle.h.

◆ SetCanvasDefY()

void TStyle::SetCanvasDefY ( Int_t  topy = 10)
inline

Definition at line 349 of file TStyle.h.

◆ SetCanvasPreferGL()

void TStyle::SetCanvasPreferGL ( Bool_t  prefer = kTRUE)
inline

Definition at line 341 of file TStyle.h.

◆ SetCapLinePS()

void TStyle::SetCapLinePS ( Int_t  capline = 0)
inline

Set the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details.

Definition at line 307 of file TStyle.h.

◆ SetColorModelPS()

void TStyle::SetColorModelPS ( Int_t  c = 0)

Define the color model used by TPostScript and TPDF (RGB or CMYK).

CMY and CMYK models are subtractive color models unlike RGB which is additive. They are mainly used for printing purposes. CMY means Cyan Magenta Yellow. To convert RGB to CMY it is enough to do: C=1-R, M=1-G and Y=1-B. CMYK has one more component K (black). The conversion from RGB to CMYK is:

Double_t Black = TMath::Min(TMath::Min(1-Red,1-Green),1-Blue);
Double_t Cyan = (1-Red-Black)/(1-Black);
Double_t Magenta = (1-Green-Black)/(1-Black);
Double_t Yellow = (1-Blue-Black)/(1-Black);
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
Definition TMathBase.h:198

CMYK adds the black component which allows better quality for black printing. PostScript and PDF support the CMYK model.

Definition at line 1275 of file TStyle.cxx.

◆ SetDateX()

void TStyle::SetDateX ( Float_t  x = 0.01)
inline

Definition at line 337 of file TStyle.h.

◆ SetDateY()

void TStyle::SetDateY ( Float_t  y = 0.01)
inline

Definition at line 338 of file TStyle.h.

◆ SetDrawBorder()

void TStyle::SetDrawBorder ( Int_t  drawborder = 1)
inline

Definition at line 342 of file TStyle.h.

◆ SetEndErrorSize()

void TStyle::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).

The default value is 2 pixels. Set np=0 to remove these lines

Definition at line 1340 of file TStyle.cxx.

◆ SetErrorX()

void TStyle::SetErrorX ( Float_t  errorx = 0.5)
inline

Definition at line 340 of file TStyle.h.

◆ SetExponentOffset()

void TStyle::SetExponentOffset ( Float_t  xoff = 0.,
Float_t  yoff = 0.,
Option_t axis = "XY" 
)

Method set X and Y offset of the axis 10^n notation.

It applies on axis belonging to an histogram (TAxis). It has no effect on standalone TGaxis. It is in % of the pad size. It can be negative. axis specifies which axis ("x","y"), default = "x" if axis="xz" set the two axes

Definition at line 1836 of file TStyle.cxx.

◆ SetFitFormat()

void TStyle::SetFitFormat ( const char *  format = "5.4g")
inline

Definition at line 301 of file TStyle.h.

◆ SetFrameBorderMode()

void TStyle::SetFrameBorderMode ( Int_t  mode = 1)
inline

Definition at line 378 of file TStyle.h.

◆ SetFrameBorderSize()

void TStyle::SetFrameBorderSize ( Width_t  size = 1)
inline

Definition at line 377 of file TStyle.h.

◆ SetFrameFillColor()

void TStyle::SetFrameFillColor ( Color_t  color = 1)
inline

Definition at line 372 of file TStyle.h.

◆ SetFrameFillStyle()

void TStyle::SetFrameFillStyle ( Style_t  styl = 0)
inline

Definition at line 374 of file TStyle.h.

◆ SetFrameLineColor()

void TStyle::SetFrameLineColor ( Color_t  color = 1)
inline

Definition at line 373 of file TStyle.h.

◆ SetFrameLineStyle()

void TStyle::SetFrameLineStyle ( Style_t  styl = 0)
inline

Definition at line 375 of file TStyle.h.

◆ SetFrameLineWidth()

void TStyle::SetFrameLineWidth ( Width_t  width = 1)
inline

Definition at line 376 of file TStyle.h.

◆ SetFuncColor()

void TStyle::SetFuncColor ( Color_t  color = 1)
inline

Definition at line 367 of file TStyle.h.

◆ SetFuncStyle()

void TStyle::SetFuncStyle ( Style_t  style = 1)
inline

Definition at line 366 of file TStyle.h.

◆ SetFuncWidth()

void TStyle::SetFuncWidth ( Width_t  width = 4)
inline

Definition at line 368 of file TStyle.h.

◆ SetGridColor()

void TStyle::SetGridColor ( Color_t  color = 0)
inline

Definition at line 370 of file TStyle.h.

◆ SetGridStyle()

void TStyle::SetGridStyle ( Style_t  style = 3)
inline

Definition at line 369 of file TStyle.h.

◆ SetGridWidth()

void TStyle::SetGridWidth ( Width_t  width = 1)
inline

Definition at line 371 of file TStyle.h.

◆ SetHatchesLineWidth()

void TStyle::SetHatchesLineWidth ( Int_t  l)
inline

Definition at line 303 of file TStyle.h.

◆ SetHatchesSpacing()

void TStyle::SetHatchesSpacing ( Double_t  h)
inline

Definition at line 304 of file TStyle.h.

◆ SetHeaderPS()

void TStyle::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 immediately 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

Definition at line 1362 of file TStyle.cxx.

◆ SetHistFillColor()

void TStyle::SetHistFillColor ( Color_t  color = 1)
inline

Definition at line 379 of file TStyle.h.

◆ SetHistFillStyle()

void TStyle::SetHistFillStyle ( Style_t  styl = 0)
inline

Definition at line 381 of file TStyle.h.

◆ SetHistLineColor()

void TStyle::SetHistLineColor ( Color_t  color = 1)
inline

Definition at line 380 of file TStyle.h.

◆ SetHistLineStyle()

void TStyle::SetHistLineStyle ( Style_t  styl = 0)
inline

Definition at line 382 of file TStyle.h.

◆ SetHistLineWidth()

void TStyle::SetHistLineWidth ( Width_t  width = 1)
inline

Definition at line 383 of file TStyle.h.

◆ SetHistMinimumZero()

void TStyle::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.

If the minimum bin content is greater than 0 and TH1::SetMinimum has not been called. Otherwise the minimum is based on the minimum bin content.

Definition at line 1288 of file TStyle.cxx.

◆ SetHistTopMargin()

void TStyle::SetHistTopMargin ( Double_t  hmax = 0.05)
inline

Definition at line 385 of file TStyle.h.

◆ SetImageScaling()

void TStyle::SetImageScaling ( Float_t  s)
inline

Definition at line 387 of file TStyle.h.

◆ SetIsReading()

void TStyle::SetIsReading ( Bool_t  reading = kTRUE)

Sets the fIsReading member to reading (default=kTRUE).

fIsReading (used via gStyle->IsReading()) can be used in the functions myclass::UseCurrentStyle to read from the current style or write to the current style

Definition at line 1374 of file TStyle.cxx.

◆ SetJoinLinePS()

void TStyle::SetJoinLinePS ( Int_t  joinline = 0)
inline

Set the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details.

Definition at line 306 of file TStyle.h.

◆ SetLabelColor()

void TStyle::SetLabelColor ( Color_t  color = 1,
Option_t axis = "X" 
)

Set axis labels color.

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

Definition at line 1393 of file TStyle.cxx.

◆ SetLabelFont()

void TStyle::SetLabelFont ( Style_t  font = 62,
Option_t axis = "X" 
)

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

Definition at line 1413 of file TStyle.cxx.

◆ SetLabelOffset()

void TStyle::SetLabelOffset ( Float_t  offset = 0.005,
Option_t axis = "X" 
)

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

Definition at line 1429 of file TStyle.cxx.

◆ SetLabelSize()

void TStyle::SetLabelSize ( Float_t  size = 0.04,
Option_t axis = "X" 
)

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

Definition at line 1444 of file TStyle.cxx.

◆ SetLegendBorderSize()

void TStyle::SetLegendBorderSize ( Width_t  size = 4)
inline

Definition at line 350 of file TStyle.h.

◆ SetLegendFillColor()

void TStyle::SetLegendFillColor ( Color_t  color = 0)
inline

Definition at line 351 of file TStyle.h.

◆ SetLegendFillStyle()

void TStyle::SetLegendFillStyle ( Style_t  style = 1001)
inline

Definition at line 352 of file TStyle.h.

◆ SetLegendFont()

void TStyle::SetLegendFont ( Style_t  font = 62)
inline

Definition at line 353 of file TStyle.h.

◆ SetLegendTextSize()

void TStyle::SetLegendTextSize ( Double_t  size = 0.)
inline

Definition at line 354 of file TStyle.h.

◆ SetLegoInnerR()

void TStyle::SetLegoInnerR ( Float_t  rad = 0.5)
inline

Definition at line 316 of file TStyle.h.

◆ SetLineScalePS()

void TStyle::SetLineScalePS ( Float_t  scale = 3)
inline

Definition at line 308 of file TStyle.h.

◆ SetLineStyleString()

void TStyle::SetLineStyleString ( Int_t  i,
const char *  text 
)

Set line style string using the PostScript convention.

A line is a suite of segments, each segment is described by the number of pixels. The initial and alternating elements (second, fourth, and so on) are the dashes, and the others spaces between dashes.

Default fixed line styles are pre-defined as:

linestyle 1 "[]" solid
linestyle 2 "[12 12]" dashed
linestyle 3 "[4 8]" dotted
linestyle 4 "[12 16 4 16]" dash-dotted

For example the following lines define the line style 5 to 9.

gStyle->SetLineStyleString(5,"20 12 4 12");
gStyle->SetLineStyleString(6,"20 12 4 12 4 12 4 12");
gStyle->SetLineStyleString(8,"20 12 4 12 4 12");
void SetLineStyleString(Int_t i, const char *text)
Set line style string using the PostScript convention.
Definition TStyle.cxx:1483

Note:

  • Up to 30 different styles may be defined.
  • The opening and closing brackets may be omitted
  • It is recommended to use 4 as the smallest segment length and multiple of 4 for other lengths.
  • The line style 1 to 10 are predefined. 1 to 4 cannot be changed.

Definition at line 1483 of file TStyle.cxx.

◆ SetNdivisions()

void TStyle::SetNdivisions ( Int_t  n = 510,
Option_t axis = "X" 
)

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.
#define e(i)
Definition RSha256.hxx:103
const Int_t n
Definition legend1.C:16

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

Definition at line 1309 of file TStyle.cxx.

◆ SetNumberContours()

void TStyle::SetNumberContours ( Int_t  number = 20)

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

Definition at line 1500 of file TStyle.cxx.

◆ SetOptDate()

void TStyle::SetOptDate ( Int_t  optdate = 1)

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:

size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Option_t Option_t TPoint TPoint angle
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition TAttText.h:42
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
Definition TAttText.h:43
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition TAttText.h:44
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition TAttText.h:46
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition TAttText.h:47
TAttText * GetAttDate()
Definition TStyle.h:168

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.

Definition at line 1546 of file TStyle.cxx.

◆ SetOptFile()

void TStyle::SetOptFile ( Int_t  file = 1)
inline

Definition at line 327 of file TStyle.h.

◆ SetOptFit()

void TStyle::SetOptFit ( Int_t  mode = 1)

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:

  • p = 1; print Probability
  • c = 1; print Chisquare/Number of degrees of freedom
  • e = 1; print errors (if e=1, v must be 1)
  • v = 1; print name/values of parameters 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.

Notes:

  • never call SetOptFit(000111); but SetOptFit(111), 000111 will be taken as an octal number !!
  • gStyle->SetOptFit(1) is a shortcut allowing to set the most common case and is equivalent to gStyle->SetOptFit(111)
  • At ROOT startup the option fit is set to 0. So, to see the fit parameters on all plot resulting from a fit, a call to gStyle->SetOptFit() with a non null value should be done. One can put it in the rootlogon.C file to always have it.

see also SetOptStat below.

Definition at line 1593 of file TStyle.cxx.

◆ SetOptLogx()

void TStyle::SetOptLogx ( Int_t  logx = 1)
inline

Definition at line 329 of file TStyle.h.

◆ SetOptLogy()

void TStyle::SetOptLogy ( Int_t  logy = 1)
inline

Definition at line 330 of file TStyle.h.

◆ SetOptLogz()

void TStyle::SetOptLogz ( Int_t  logz = 1)
inline

Definition at line 331 of file TStyle.h.

◆ SetOptStat() [1/2]

void TStyle::SetOptStat ( Int_t  mode = 1)

The type of information printed in the histogram statistics box can be selected via the parameter mode.

The parameter mode can be = ksiourmen

  • k = 1; kurtosis printed
  • k = 2; kurtosis and kurtosis error printed
  • s = 1; skewness printed
  • s = 2; skewness and skewness error printed
  • i = 1; integral of bins printed
  • i = 2; integral of bins with option "width" printed
  • o = 1; number of overflows printed
  • u = 1; number of underflows printed
  • r = 1; rms printed
  • r = 2; rms and rms error printed
  • m = 1; mean value printed
  • m = 2; mean and mean error values printed
  • e = 1; number of entries printed
  • n = 1; name of histogram is 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.

Notes:

  • never call SetOptStat(000111); but SetOptStat(111), 000111 will be taken as an octal number !!
  • SetOptStat(1) is s shortcut allowing to set the most common case, and is taken as SetOptStat(1111) (for backward compatibility with older versions. If you want to print only the name of the histogram call SetOptStat(1000000001).
  • 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!

Definition at line 1640 of file TStyle.cxx.

◆ SetOptStat() [2/2]

void TStyle::SetOptStat ( Option_t stat)

The parameter mode can be any combination of kKsSiourRmMen.

  • k : kurtosis printed
  • K : kurtosis and kurtosis error printed
  • s : skewness printed
  • S : skewness and skewness error printed
  • i : integral of bins printed
  • I : integral of bins with option "width" printed
  • o : number of overflows printed
  • u : number of underflows printed
  • r : rms printed
  • R : rms and rms error printed
  • m : mean value printed
  • M : mean value mean error values printed
  • e : number of entries printed
  • n : name of histogram is 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

Definition at line 1676 of file TStyle.cxx.

◆ SetOptTitle()

void TStyle::SetOptTitle ( Int_t  tit = 1)
inline

Definition at line 334 of file TStyle.h.

◆ SetOrthoCamera()

void TStyle::SetOrthoCamera ( Bool_t  on = kTRUE)
inline

Definition at line 427 of file TStyle.h.

◆ SetPadBorderMode()

void TStyle::SetPadBorderMode ( Int_t  mode = 1)
inline

Definition at line 357 of file TStyle.h.

◆ SetPadBorderSize()

void TStyle::SetPadBorderSize ( Width_t  size = 1)
inline

Definition at line 356 of file TStyle.h.

◆ SetPadBottomMargin()

void TStyle::SetPadBottomMargin ( Float_t  margin = 0.1)
inline

Definition at line 358 of file TStyle.h.

◆ SetPadColor()

void TStyle::SetPadColor ( Color_t  color = 19)
inline

Definition at line 355 of file TStyle.h.

◆ SetPadGridX()

void TStyle::SetPadGridX ( Bool_t  gridx)
inline

Definition at line 362 of file TStyle.h.

◆ SetPadGridY()

void TStyle::SetPadGridY ( Bool_t  gridy)
inline

Definition at line 363 of file TStyle.h.

◆ SetPadLeftMargin()

void TStyle::SetPadLeftMargin ( Float_t  margin = 0.1)
inline

Definition at line 360 of file TStyle.h.

◆ SetPadRightMargin()

void TStyle::SetPadRightMargin ( Float_t  margin = 0.1)
inline

Definition at line 361 of file TStyle.h.

◆ SetPadTickX()

void TStyle::SetPadTickX ( Int_t  tickx)
inline

Definition at line 364 of file TStyle.h.

◆ SetPadTickY()

void TStyle::SetPadTickY ( Int_t  ticky)
inline

Definition at line 365 of file TStyle.h.

◆ SetPadTopMargin()

void TStyle::SetPadTopMargin ( Float_t  margin = 0.1)
inline

Definition at line 359 of file TStyle.h.

◆ SetPaintTextFormat()

void TStyle::SetPaintTextFormat ( const char *  format = "g")
inline

Definition at line 386 of file TStyle.h.

◆ SetPalette() [1/2]

void TStyle::SetPalette ( Int_t  ncolors = kBird,
Int_t colors = nullptr,
Float_t  alpha = 1. 
)

See TColor::SetPalette.

Definition at line 1888 of file TStyle.cxx.

◆ SetPalette() [2/2]

void TStyle::SetPalette ( TString  fileName,
Float_t  alpha = 1. 
)
See also
TColor::CreateColorTableFromFile, (which calls TColor::SetPalette)

Definition at line 1895 of file TStyle.cxx.

◆ SetPaperSize() [1/2]

void TStyle::SetPaperSize ( EPaperSize  size)

Set paper size for PostScript output.

Definition at line 1704 of file TStyle.cxx.

◆ SetPaperSize() [2/2]

void TStyle::SetPaperSize ( Float_t  xsize = 20,
Float_t  ysize = 26 
)

Set paper size for PostScript output.

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

Definition at line 1724 of file TStyle.cxx.

◆ SetScreenFactor()

void TStyle::SetScreenFactor ( Float_t  factor = 1)
inline

Definition at line 317 of file TStyle.h.

◆ SetStatBorderSize()

void TStyle::SetStatBorderSize ( Width_t  size = 2)
inline

Definition at line 393 of file TStyle.h.

◆ SetStatColor()

void TStyle::SetStatColor ( Color_t  color = 19)
inline

Definition at line 390 of file TStyle.h.

◆ SetStatFont()

void TStyle::SetStatFont ( Style_t  font = 62)
inline

Definition at line 394 of file TStyle.h.

◆ SetStatFontSize()

void TStyle::SetStatFontSize ( Float_t  size = 0)
inline

Definition at line 395 of file TStyle.h.

◆ SetStatFormat()

void TStyle::SetStatFormat ( const char *  format = "6.4g")
inline

Definition at line 396 of file TStyle.h.

◆ SetStatH()

void TStyle::SetStatH ( Float_t  h = 0.1)
inline

Definition at line 400 of file TStyle.h.

◆ SetStatStyle()

void TStyle::SetStatStyle ( Style_t  style = 1001)
inline

Definition at line 392 of file TStyle.h.

◆ SetStatTextColor()

void TStyle::SetStatTextColor ( Color_t  color = 1)
inline

Definition at line 391 of file TStyle.h.

◆ SetStatW()

void TStyle::SetStatW ( Float_t  w = 0.19)
inline

Definition at line 399 of file TStyle.h.

◆ SetStatX()

void TStyle::SetStatX ( Float_t  x = 0)
inline

Definition at line 397 of file TStyle.h.

◆ SetStatY()

void TStyle::SetStatY ( Float_t  y = 0)
inline

Definition at line 398 of file TStyle.h.

◆ SetStripDecimals()

void TStyle::SetStripDecimals ( Bool_t  strip = kTRUE)

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}

Definition at line 1926 of file TStyle.cxx.

◆ SetTickLength()

void TStyle::SetTickLength ( Float_t  length = 0.03,
Option_t axis = "X" 
)

Set the tick marks length for an axis.

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

Definition at line 1735 of file TStyle.cxx.

◆ SetTimeOffset()

void TStyle::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 beginning, in order to plot times correctly and conveniently. A convenient way to set the time offset is to use TDatime::Convert().

By default the time offset is set to 788918400 which corresponds to 01/01/1995. This allows to have valid dates until 2072. The standard UNIX time offset in 1970 allows only valid dates until 2030.

Definition at line 1913 of file TStyle.cxx.

◆ SetTitleAlign()

void TStyle::SetTitleAlign ( Int_t  a = 13)
inline

Definition at line 403 of file TStyle.h.

◆ SetTitleBorderSize()

void TStyle::SetTitleBorderSize ( Width_t  size = 2)
inline

Definition at line 408 of file TStyle.h.

◆ SetTitleColor()

void TStyle::SetTitleColor ( Color_t  color = 1,
Option_t axis = "X" 
)
  • 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

Definition at line 1754 of file TStyle.cxx.

◆ SetTitleFillColor()

void TStyle::SetTitleFillColor ( Color_t  color = 1)
inline

Definition at line 404 of file TStyle.h.

◆ SetTitleFont()

void TStyle::SetTitleFont ( Style_t  font = 62,
Option_t axis = "X" 
)
  • 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

Definition at line 1775 of file TStyle.cxx.

◆ SetTitleFontSize()

void TStyle::SetTitleFontSize ( Float_t  size = 0)
inline

Definition at line 407 of file TStyle.h.

◆ SetTitleH()

void TStyle::SetTitleH ( Float_t  h = 0)
inline

Definition at line 416 of file TStyle.h.

◆ SetTitleOffset()

void TStyle::SetTitleOffset ( Float_t  offset = 1,
Option_t axis = "X" 
)

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

Definition at line 1798 of file TStyle.cxx.

◆ SetTitlePS()

void TStyle::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.

Definition at line 1383 of file TStyle.cxx.

◆ SetTitleSize()

void TStyle::SetTitleSize ( Float_t  size = 0.02,
Option_t axis = "X" 
)
  • 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

Definition at line 1817 of file TStyle.cxx.

◆ SetTitleStyle()

void TStyle::SetTitleStyle ( Style_t  style = 1001)
inline

Definition at line 406 of file TStyle.h.

◆ SetTitleTextColor()

void TStyle::SetTitleTextColor ( Color_t  color = 1)
inline

Definition at line 405 of file TStyle.h.

◆ SetTitleW()

void TStyle::SetTitleW ( Float_t  w = 0)
inline

Definition at line 415 of file TStyle.h.

◆ SetTitleX()

void TStyle::SetTitleX ( Float_t  x = 0)
inline

Definition at line 413 of file TStyle.h.

◆ SetTitleXOffset()

void TStyle::SetTitleXOffset ( Float_t  offset = 1)
inline

Definition at line 409 of file TStyle.h.

◆ SetTitleXSize()

void TStyle::SetTitleXSize ( Float_t  size = 0.02)
inline

Definition at line 410 of file TStyle.h.

◆ SetTitleY()

void TStyle::SetTitleY ( Float_t  y = 0.985)
inline

Definition at line 414 of file TStyle.h.

◆ SetTitleYOffset()

void TStyle::SetTitleYOffset ( Float_t  offset = 1)
inline

Definition at line 411 of file TStyle.h.

◆ SetTitleYSize()

void TStyle::SetTitleYSize ( Float_t  size = 0.02)
inline

Definition at line 412 of file TStyle.h.

◆ SetViolinScaled()

void TStyle::SetViolinScaled ( Bool_t  on = kTRUE)
inline

Definition at line 426 of file TStyle.h.

◆ Streamer()

void TStyle::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TNamed.

◆ StreamerNVirtual()

void TStyle::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 432 of file TStyle.h.

◆ ToggleEditor()

void TStyle::ToggleEditor ( )
inline

Definition at line 418 of file TStyle.h.

◆ ToggleEventStatus()

void TStyle::ToggleEventStatus ( )
inline

Definition at line 417 of file TStyle.h.

◆ ToggleToolBar()

void TStyle::ToggleToolBar ( )
inline

Definition at line 419 of file TStyle.h.

Member Data Documentation

◆ fAttDate

TAttText TStyle::fAttDate
private

Canvas date attribute.

Definition at line 52 of file TStyle.h.

◆ fAxisMaxDigits

Int_t TStyle::fAxisMaxDigits
private

Number of digits above which the 10^N notation is used for axis.

Definition at line 149 of file TStyle.h.

◆ fBarOffset

Float_t TStyle::fBarOffset
private

Offset of bar for graphs.

Definition at line 36 of file TStyle.h.

◆ fBarWidth

Float_t TStyle::fBarWidth
private

Width of bar for graphs.

Definition at line 35 of file TStyle.h.

◆ fCandleBoxRange

Double_t TStyle::fCandleBoxRange
private

Candle plot, The fraction which is covered by the box (0 < x < 1), default 0.5.

Definition at line 142 of file TStyle.h.

◆ fCandleScaled

Bool_t TStyle::fCandleScaled
private

Candle plot, shall the box-width be scaled to each other by the integral of a box?

Definition at line 143 of file TStyle.h.

◆ fCandleWhiskerRange

Double_t TStyle::fCandleWhiskerRange
private

Candle plot, the fraction which is covered by the whiskers (0 < x < 1), default 1.

Definition at line 141 of file TStyle.h.

◆ fCanvasBorderMode

Int_t TStyle::fCanvasBorderMode
private

Canvas border mode.

Definition at line 87 of file TStyle.h.

◆ fCanvasBorderSize

Width_t TStyle::fCanvasBorderSize
private

Canvas border size.

Definition at line 86 of file TStyle.h.

◆ fCanvasColor

Color_t TStyle::fCanvasColor
private

Canvas color.

Definition at line 85 of file TStyle.h.

◆ fCanvasDefH

Int_t TStyle::fCanvasDefH
private

Default canvas height.

Definition at line 88 of file TStyle.h.

◆ fCanvasDefW

Int_t TStyle::fCanvasDefW
private

Default canvas width.

Definition at line 89 of file TStyle.h.

◆ fCanvasDefX

Int_t TStyle::fCanvasDefX
private

Default canvas top X position.

Definition at line 90 of file TStyle.h.

◆ fCanvasDefY

Int_t TStyle::fCanvasDefY
private

Default canvas top Y position.

Definition at line 91 of file TStyle.h.

◆ fCanvasPreferGL

Bool_t TStyle::fCanvasPreferGL
private

If true, rendering in canvas is with GL.

Definition at line 84 of file TStyle.h.

◆ fCapLinePS

Int_t TStyle::fCapLinePS
private

Determines the appearance of line caps on PostScript, PDF and SVG.

Definition at line 137 of file TStyle.h.

◆ fColorModelPS

Int_t TStyle::fColorModelPS
private

PostScript color model: 0 = RGB, 1 = CMYK.

Definition at line 37 of file TStyle.h.

◆ fDateX

Float_t TStyle::fDateX
private

X position of the date in the canvas (in NDC)

Definition at line 53 of file TStyle.h.

◆ fDateY

Float_t TStyle::fDateY
private

Y position of the date in the canvas (in NDC)

Definition at line 54 of file TStyle.h.

◆ fDrawBorder

Int_t TStyle::fDrawBorder
private

Flag to draw border(=1) or not (0)

Definition at line 38 of file TStyle.h.

◆ fEndErrorSize

Float_t TStyle::fEndErrorSize
private

Size of lines at the end of error bars.

Definition at line 55 of file TStyle.h.

◆ fErrorX

Float_t TStyle::fErrorX
private

Per cent of bin width for errors along X.

Definition at line 56 of file TStyle.h.

◆ fFitFormat

TString TStyle::fFitFormat
private

Printing format for fit parameters.

Definition at line 133 of file TStyle.h.

◆ fFrameBorderMode

Int_t TStyle::fFrameBorderMode
private

Pad frame border mode.

Definition at line 76 of file TStyle.h.

◆ fFrameBorderSize

Width_t TStyle::fFrameBorderSize
private

Pad frame border size.

Definition at line 75 of file TStyle.h.

◆ fFrameFillColor

Color_t TStyle::fFrameFillColor
private

Pad frame fill color.

Definition at line 70 of file TStyle.h.

◆ fFrameFillStyle

Style_t TStyle::fFrameFillStyle
private

Pad frame fill style.

Definition at line 72 of file TStyle.h.

◆ fFrameLineColor

Color_t TStyle::fFrameLineColor
private

Pad frame line color.

Definition at line 71 of file TStyle.h.

◆ fFrameLineStyle

Style_t TStyle::fFrameLineStyle
private

Pad frame line style.

Definition at line 73 of file TStyle.h.

◆ fFrameLineWidth

Width_t TStyle::fFrameLineWidth
private

Pad frame line width.

Definition at line 74 of file TStyle.h.

◆ fFuncColor

Color_t TStyle::fFuncColor
private

Function color.

Definition at line 57 of file TStyle.h.

◆ fFuncStyle

Style_t TStyle::fFuncStyle
private

Function style.

Definition at line 58 of file TStyle.h.

◆ fFuncWidth

Width_t TStyle::fFuncWidth
private

Function line width.

Definition at line 59 of file TStyle.h.

◆ fGridColor

Color_t TStyle::fGridColor
private

Grid line color (if 0 use axis line color)

Definition at line 60 of file TStyle.h.

◆ fGridStyle

Style_t TStyle::fGridStyle
private

Grid line style.

Definition at line 61 of file TStyle.h.

◆ fGridWidth

Width_t TStyle::fGridWidth
private

Grid line width.

Definition at line 62 of file TStyle.h.

◆ fHatchesLineWidth

Int_t TStyle::fHatchesLineWidth
private

Hatches line width for hatch styles > 3100.

Definition at line 68 of file TStyle.h.

◆ fHatchesSpacing

Double_t TStyle::fHatchesSpacing
private

Hatches spacing for hatch styles > 3100.

Definition at line 69 of file TStyle.h.

◆ fHeaderPS

TString TStyle::fHeaderPS
private

User defined additional Postscript header.

Definition at line 131 of file TStyle.h.

◆ fHistFillColor

Color_t TStyle::fHistFillColor
private

Histogram fill color.

Definition at line 77 of file TStyle.h.

◆ fHistFillStyle

Style_t TStyle::fHistFillStyle
private

Histogram fill style.

Definition at line 79 of file TStyle.h.

◆ fHistLineColor

Color_t TStyle::fHistLineColor
private

Histogram line color.

Definition at line 78 of file TStyle.h.

◆ fHistLineStyle

Style_t TStyle::fHistLineStyle
private

Histogram line style.

Definition at line 80 of file TStyle.h.

◆ fHistLineWidth

Width_t TStyle::fHistLineWidth
private

Histogram line width.

Definition at line 81 of file TStyle.h.

◆ fHistMinimumZero

Bool_t TStyle::fHistMinimumZero
private

True if default minimum is 0, false if minimum is automatic.

Definition at line 82 of file TStyle.h.

◆ fHistTopMargin

Double_t TStyle::fHistTopMargin
private

Margin between histogram's top and pad's top.

Definition at line 83 of file TStyle.h.

◆ fImageScaling

Float_t TStyle::fImageScaling
private

Image scaling to produce high definition bitmap images.

Definition at line 140 of file TStyle.h.

◆ fIsReading

Bool_t TStyle::fIsReading
private

! Set to FALSE when userclass::UseCurrentStyle is called by the style manager

Definition at line 139 of file TStyle.h.

◆ fJoinLinePS

Int_t TStyle::fJoinLinePS
private

Determines the appearance of joining lines on PostScript, PDF and SVG.

Definition at line 136 of file TStyle.h.

◆ fLegendBorderSize

Width_t TStyle::fLegendBorderSize
private

Legend box border size.

Definition at line 63 of file TStyle.h.

◆ fLegendFillColor

Color_t TStyle::fLegendFillColor
private

Legend fill color.

Definition at line 64 of file TStyle.h.

◆ fLegendFillStyle

Style_t TStyle::fLegendFillStyle
private

Legend fill style.

Definition at line 65 of file TStyle.h.

◆ fLegendFont

Style_t TStyle::fLegendFont
private

Legend font style.

Definition at line 66 of file TStyle.h.

◆ fLegendTextSize

Double_t TStyle::fLegendTextSize
private

Legend text size. If 0 the size is computed automatically.

Definition at line 67 of file TStyle.h.

◆ fLegoInnerR

Float_t TStyle::fLegoInnerR
private

Inner radius for cylindrical legos.

Definition at line 129 of file TStyle.h.

◆ fLineScalePS

Float_t TStyle::fLineScalePS
private

Line scale factor when drawing lines on Postscript.

Definition at line 135 of file TStyle.h.

◆ fLineStyle

TString TStyle::fLineStyle[30]
private

String describing line style i (for postScript)

Definition at line 130 of file TStyle.h.

◆ fNumberContours

Int_t TStyle::fNumberContours
private

Default number of contours for 2-d plots.

Definition at line 51 of file TStyle.h.

◆ fOptDate

Int_t TStyle::fOptDate
private

True if date option is selected.

Definition at line 42 of file TStyle.h.

◆ fOptFile

Int_t TStyle::fOptFile
private

True if option File is selected.

Definition at line 45 of file TStyle.h.

◆ fOptFit

Int_t TStyle::fOptFit
private

True if option Fit is selected.

Definition at line 46 of file TStyle.h.

◆ fOptLogx

Int_t TStyle::fOptLogx
private

True if log scale in X.

Definition at line 39 of file TStyle.h.

◆ fOptLogy

Int_t TStyle::fOptLogy
private

True if log scale in y.

Definition at line 40 of file TStyle.h.

◆ fOptLogz

Int_t TStyle::fOptLogz
private

True if log scale in z.

Definition at line 41 of file TStyle.h.

◆ fOptStat

Int_t TStyle::fOptStat
private

True if option Stat is selected.

Definition at line 43 of file TStyle.h.

◆ fOptTitle

Int_t TStyle::fOptTitle
private

True if option Title is selected.

Definition at line 44 of file TStyle.h.

◆ fOrthoCamera

Bool_t TStyle::fOrthoCamera
private

Use orthographic camera with web display.

Definition at line 150 of file TStyle.h.

◆ fPadBorderMode

Int_t TStyle::fPadBorderMode
private

Pad border mode.

Definition at line 94 of file TStyle.h.

◆ fPadBorderSize

Width_t TStyle::fPadBorderSize
private

Pad border size.

Definition at line 93 of file TStyle.h.

◆ fPadBottomMargin

Float_t TStyle::fPadBottomMargin
private

Pad bottom margin.

Definition at line 95 of file TStyle.h.

◆ fPadColor

Color_t TStyle::fPadColor
private

Pad color.

Definition at line 92 of file TStyle.h.

◆ fPadGridX

Bool_t TStyle::fPadGridX
private

True to get the grid along X.

Definition at line 99 of file TStyle.h.

◆ fPadGridY

Bool_t TStyle::fPadGridY
private

True to get the grid along Y.

Definition at line 100 of file TStyle.h.

◆ fPadLeftMargin

Float_t TStyle::fPadLeftMargin
private

Pad left margin.

Definition at line 97 of file TStyle.h.

◆ fPadRightMargin

Float_t TStyle::fPadRightMargin
private

Pad right margin.

Definition at line 98 of file TStyle.h.

◆ fPadTickX

Int_t TStyle::fPadTickX
private

True to set special pad ticks along X.

Definition at line 101 of file TStyle.h.

◆ fPadTickY

Int_t TStyle::fPadTickY
private

True to set special pad ticks along Y.

Definition at line 102 of file TStyle.h.

◆ fPadTopMargin

Float_t TStyle::fPadTopMargin
private

Pad top margin.

Definition at line 96 of file TStyle.h.

◆ fPaintTextFormat

TString TStyle::fPaintTextFormat
private

Printing format for TH2::PaintText.

Definition at line 134 of file TStyle.h.

◆ fPaperSizeX

Float_t TStyle::fPaperSizeX
private

PostScript paper size along X.

Definition at line 103 of file TStyle.h.

◆ fPaperSizeY

Float_t TStyle::fPaperSizeY
private

PostScript paper size along Y.

Definition at line 104 of file TStyle.h.

◆ fScreenFactor

Float_t TStyle::fScreenFactor
private

Multiplication factor for canvas size and position.

Definition at line 105 of file TStyle.h.

◆ fShowEditor

Int_t TStyle::fShowEditor
private

Show pad editor.

Definition at line 48 of file TStyle.h.

◆ fShowEventStatus

Int_t TStyle::fShowEventStatus
private

Show event status panel.

Definition at line 47 of file TStyle.h.

◆ fShowToolBar

Int_t TStyle::fShowToolBar
private

Show toolbar.

Definition at line 49 of file TStyle.h.

◆ fStatBorderSize

Width_t TStyle::fStatBorderSize
private

Border size of Stats PaveLabel.

Definition at line 108 of file TStyle.h.

◆ fStatColor

Color_t TStyle::fStatColor
private

Stat fill area color.

Definition at line 106 of file TStyle.h.

◆ fStatFont

Style_t TStyle::fStatFont
private

Font style of Stats PaveLabel.

Definition at line 109 of file TStyle.h.

◆ fStatFontSize

Float_t TStyle::fStatFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 110 of file TStyle.h.

◆ fStatFormat

TString TStyle::fStatFormat
private

Printing format for stats.

Definition at line 112 of file TStyle.h.

◆ fStatH

Float_t TStyle::fStatH
private

Height of stat box.

Definition at line 116 of file TStyle.h.

◆ fStatStyle

Style_t TStyle::fStatStyle
private

Fill area style of Stats PaveLabel.

Definition at line 111 of file TStyle.h.

◆ fStatTextColor

Color_t TStyle::fStatTextColor
private

Stat text color.

Definition at line 107 of file TStyle.h.

◆ fStatW

Float_t TStyle::fStatW
private

Width of stat box.

Definition at line 115 of file TStyle.h.

◆ fStatX

Float_t TStyle::fStatX
private

X position of top right corner of stat box.

Definition at line 113 of file TStyle.h.

◆ fStatY

Float_t TStyle::fStatY
private

Y position of top right corner of stat box.

Definition at line 114 of file TStyle.h.

◆ fStripDecimals

Bool_t TStyle::fStripDecimals
private

Strip decimals in axis labels.

Definition at line 117 of file TStyle.h.

◆ fTimeOffset

Double_t TStyle::fTimeOffset
private

Time offset to the beginning of an axis.

Definition at line 138 of file TStyle.h.

◆ fTitleAlign

Int_t TStyle::fTitleAlign
private

Title box alignment.

Definition at line 118 of file TStyle.h.

◆ fTitleBorderSize

Width_t TStyle::fTitleBorderSize
private

Border size of Title PavelLabel.

Definition at line 121 of file TStyle.h.

◆ fTitleColor

Color_t TStyle::fTitleColor
private

Title fill area color.

Definition at line 119 of file TStyle.h.

◆ fTitleFont

Style_t TStyle::fTitleFont
private

Font style of Title PaveLabel.

Definition at line 122 of file TStyle.h.

◆ fTitleFontSize

Float_t TStyle::fTitleFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 123 of file TStyle.h.

◆ fTitleH

Float_t TStyle::fTitleH
private

Height of title box.

Definition at line 128 of file TStyle.h.

◆ fTitlePS

TString TStyle::fTitlePS
private

User defined Postscript file title.

Definition at line 132 of file TStyle.h.

◆ fTitleStyle

Style_t TStyle::fTitleStyle
private

Fill area style of title PaveLabel.

Definition at line 124 of file TStyle.h.

◆ fTitleTextColor

Color_t TStyle::fTitleTextColor
private

Title text color.

Definition at line 120 of file TStyle.h.

◆ fTitleW

Float_t TStyle::fTitleW
private

Width of title box.

Definition at line 127 of file TStyle.h.

◆ fTitleX

Float_t TStyle::fTitleX
private

X position of top left corner of title box.

Definition at line 125 of file TStyle.h.

◆ fTitleY

Float_t TStyle::fTitleY
private

Y position of top left corner of title box.

Definition at line 126 of file TStyle.h.

◆ fViolinScaled

Bool_t TStyle::fViolinScaled
private

Violin plot, shall the violin or histos be scaled to each other by the maximum height?

Definition at line 144 of file TStyle.h.

◆ fXaxis

TAttAxis TStyle::fXaxis
private

X axis attributes.

Definition at line 32 of file TStyle.h.

◆ fXAxisExpXOffset

Float_t TStyle::fXAxisExpXOffset
private

X axis exponent label X offset.

Definition at line 145 of file TStyle.h.

◆ fXAxisExpYOffset

Float_t TStyle::fXAxisExpYOffset
private

X axis exponent label Y offset.

Definition at line 146 of file TStyle.h.

◆ fYaxis

TAttAxis TStyle::fYaxis
private

Y axis attributes.

Definition at line 33 of file TStyle.h.

◆ fYAxisExpXOffset

Float_t TStyle::fYAxisExpXOffset
private

Y axis exponent label X offset.

Definition at line 147 of file TStyle.h.

◆ fYAxisExpYOffset

Float_t TStyle::fYAxisExpYOffset
private

Y axis exponent label Y offset.

Definition at line 148 of file TStyle.h.

◆ fZaxis

TAttAxis TStyle::fZaxis
private

Z axis attributes.

Definition at line 34 of file TStyle.h.

Libraries for TStyle:

The documentation for this class was generated from the following files: