Logo ROOT   6.18/05
Reference Guide
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members

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.

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:142

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:414

You can get a pointer to an existing style with:

auto style = gROOT->GetStyle(style_name);
TCanvas * style()
Definition: style.C:1

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:406
TStyle objects may be created to define special styles.
Definition: TStyle.h:27
virtual void cd()
Change current style.
Definition: TStyle.cxx:438

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

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

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:

Definition at line 27 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 = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 

Public Member Functions

 TStyle ()
 Default constructor. More...
 
 TStyle (const char *name, const char *title)
 Create a new TStyle. More...
 
 TStyle (const TStyle &style)
 Copy constructor. More...
 
virtual ~TStyle ()
 Destructor. More...
 
Int_t AxisChoice (Option_t *axis) const
 
virtual void Browse (TBrowser *b)
 Browse the style object. More...
 
virtual void cd ()
 Change current style. More...
 
virtual void Copy (TObject &style) const
 Copy this style. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Function used by the TStyle manager when drawing a canvas showing the current style. More...
 
TAttTextGetAttDate ()
 
Color_t GetAxisColor (Option_t *axis="X") const
 Return the axis color number in the axis. More...
 
Float_t GetBarOffset () const
 
Float_t GetBarWidth () const
 
Int_t GetCanvasBorderMode () const
 
Width_t GetCanvasBorderSize () const
 
Color_t GetCanvasColor () const
 
Int_t GetCanvasDefH () const
 
Int_t GetCanvasDefW () const
 
Int_t GetCanvasDefX () const
 
Int_t GetCanvasDefY () const
 
Bool_t GetCanvasPreferGL () const
 
Int_t GetColorModelPS () const
 
Int_t GetColorPalette (Int_t i) const
 Return color number i in current palette. More...
 
Float_t GetDateX () const
 
Float_t GetDateY () const
 
Int_t GetDrawBorder () const
 
Float_t GetEndErrorSize () const
 
Float_t GetErrorX () const
 
const char * GetFitFormat () const
 
Int_t GetFrameBorderMode () const
 
Width_t GetFrameBorderSize () const
 
Color_t GetFrameFillColor () const
 
Style_t GetFrameFillStyle () const
 
Color_t GetFrameLineColor () const
 
Style_t GetFrameLineStyle () const
 
Width_t GetFrameLineWidth () const
 
Color_t GetFuncColor () const
 
Style_t GetFuncStyle () const
 
Width_t GetFuncWidth () const
 
Color_t GetGridColor () const
 
Style_t GetGridStyle () const
 
Width_t GetGridWidth () const
 
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
 
Color_t GetLabelColor (Option_t *axis="X") const
 Return the label color number in the axis. More...
 
Style_t GetLabelFont (Option_t *axis="X") const
 Return label font. More...
 
Float_t GetLabelOffset (Option_t *axis="X") const
 Return label offset. More...
 
Float_t GetLabelSize (Option_t *axis="X") const
 Return label size. More...
 
Width_t GetLegendBorderSize () const
 
Color_t GetLegendFillColor () 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). More...
 
Int_t GetNdivisions (Option_t *axis="X") const
 Return number of divisions. More...
 
Int_t GetNumberContours () const
 
Int_t GetNumberOfColors () const
 Return number of colors in the color palette. More...
 
Int_t GetOptDate () const
 
Int_t GetOptFile () const
 
Int_t GetOptFit () const
 
Int_t GetOptLogx () const
 
Int_t GetOptLogy () const
 
Int_t GetOptLogz () const
 
Int_t GetOptStat () const
 
Int_t GetOptTitle () const
 
Int_t GetPadBorderMode () const
 
Width_t GetPadBorderSize () const
 
Float_t GetPadBottomMargin () const
 
Color_t GetPadColor () const
 
Bool_t GetPadGridX () const
 
Bool_t GetPadGridY () const
 
Float_t GetPadLeftMargin () const
 
Float_t GetPadRightMargin () const
 
Int_t GetPadTickX () const
 
Int_t GetPadTickY () const
 
Float_t GetPadTopMargin () const
 
const char * GetPaintTextFormat () const
 
void GetPaperSize (Float_t &xsize, Float_t &ysize) const
 Set paper size for PostScript output. More...
 
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. More...
 
Double_t GetTimeOffset () const
 
Int_t GetTitleAlign ()
 
Width_t GetTitleBorderSize () const
 
Color_t GetTitleColor (Option_t *axis="X") const
 Return title color. More...
 
Color_t GetTitleFillColor () const
 
Style_t GetTitleFont (Option_t *axis="X") const
 Return title font. More...
 
Float_t GetTitleFontSize () const
 
Float_t GetTitleH () const
 
Float_t GetTitleOffset (Option_t *axis="X") const
 Return title offset. More...
 
const char * GetTitlePS () const
 
Float_t GetTitleSize (Option_t *axis="X") const
 Return title size. More...
 
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 IsReading () const
 
virtual void Paint (Option_t *option="")
 Show the options from the current style. More...
 
virtual void Reset (Option_t *option="")
 Reset. More...
 
void SavePrimitive (std::ostream &out, Option_t *="")
 Save a main frame widget as a C++ statement(s) on output stream out. More...
 
void SaveSource (const char *filename, Option_t *option=0)
 Save the current style in a C++ macro file. More...
 
void SetAxisColor (Color_t color=1, Option_t *axis="X")
 Set color to draw the axis line and tick marks. More...
 
void SetBarOffset (Float_t baroff=0.5)
 
void SetBarWidth (Float_t barwidth=0.5)
 
void SetCanvasBorderMode (Int_t mode=1)
 
void SetCanvasBorderSize (Width_t size=1)
 
void SetCanvasColor (Color_t color=19)
 
void SetCanvasDefH (Int_t h=500)
 
void SetCanvasDefW (Int_t w=700)
 
void SetCanvasDefX (Int_t topx=10)
 
void SetCanvasDefY (Int_t topy=10)
 
void SetCanvasPreferGL (Bool_t prefer=kTRUE)
 
void SetColorModelPS (Int_t c=0)
 Define the color model used by TPostScript and TPDF (RGB or CMYK). More...
 
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). More...
 
void SetErrorX (Float_t errorx=0.5)
 
void SetFitFormat (const char *format="5.4g")
 
void SetFrameBorderMode (Int_t mode=1)
 
void SetFrameBorderSize (Width_t size=1)
 
void SetFrameFillColor (Color_t color=1)
 
void SetFrameFillStyle (Style_t styl=0)
 
void SetFrameLineColor (Color_t color=1)
 
void SetFrameLineStyle (Style_t styl=0)
 
void SetFrameLineWidth (Width_t width=1)
 
void SetFuncColor (Color_t color=1)
 
void SetFuncStyle (Style_t style=1)
 
void SetFuncWidth (Width_t width=4)
 
void SetGridColor (Color_t color=0)
 
void SetGridStyle (Style_t style=3)
 
void SetGridWidth (Width_t width=1)
 
void SetHatchesLineWidth (Int_t l)
 
void SetHatchesSpacing (Double_t h)
 
void SetHeaderPS (const char *header)
 Define a string to be inserted in the Postscript header. More...
 
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. More...
 
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). More...
 
void SetJoinLinePS (Int_t joinline=0)
 
void SetLabelColor (Color_t color=1, Option_t *axis="X")
 Set axis labels color. More...
 
void SetLabelFont (Style_t font=62, Option_t *axis="X")
 Set font number used to draw axis labels. More...
 
void SetLabelOffset (Float_t offset=0.005, Option_t *axis="X")
 Set offset between axis and axis labels. More...
 
void SetLabelSize (Float_t size=0.04, Option_t *axis="X")
 Set size of axis labels. More...
 
void SetLegendBorderSize (Width_t size=4)
 
void SetLegendFillColor (Color_t color=0)
 
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. More...
 
void SetNdivisions (Int_t n=510, Option_t *axis="X")
 Set the number of divisions to draw an axis. More...
 
void SetNumberContours (Int_t number=20)
 Set the default number of contour levels when drawing 2-d plots. More...
 
void SetOptDate (Int_t datefl=1)
 If optdate is non null, the current date/time will be printed in the canvas. More...
 
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. More...
 
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. More...
 
void SetOptStat (Option_t *stat)
 The parameter mode can be any combination of kKsSiourRmMen. More...
 
void SetOptTitle (Int_t tit=1)
 
void SetPadBorderMode (Int_t mode=1)
 
void SetPadBorderSize (Width_t size=1)
 
void SetPadBottomMargin (Float_t margin=0.1)
 
void SetPadColor (Color_t color=19)
 
void SetPadGridX (Bool_t gridx)
 
void SetPadGridY (Bool_t gridy)
 
void SetPadLeftMargin (Float_t margin=0.1)
 
void SetPadRightMargin (Float_t margin=0.1)
 
void SetPadTickX (Int_t tickx)
 
void SetPadTickY (Int_t ticky)
 
void SetPadTopMargin (Float_t margin=0.1)
 
void SetPaintTextFormat (const char *format="g")
 
void SetPalette (Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
 See TColor::SetPalette. More...
 
void SetPaperSize (EPaperSize size)
 Set paper size for PostScript output. More...
 
void SetPaperSize (Float_t xsize=20, Float_t ysize=26)
 Set paper size for PostScript output. More...
 
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. More...
 
void SetTickLength (Float_t length=0.03, Option_t *axis="X")
 Set the tick marks length for an axis. More...
 
void SetTimeOffset (Double_t toffset)
 Change the time offset for time plotting. More...
 
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. More...
 
void SetTitlePS (const char *pstitle)
 Define a string to be used in the %Title of the Postscript files. More...
 
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 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. More...
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor. More...
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual void SetName (const char *name)
 Set the name of the TNamed. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
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. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
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. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
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). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
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. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor. More...
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor. More...
 
virtual ~TAttLine ()
 AttLine destructor. More...
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine. More...
 
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. More...
 
virtual Color_t GetLineColor () const
 Return the line color. More...
 
virtual Style_t GetLineStyle () const
 Return the line style. More...
 
virtual Width_t GetLineWidth () const
 Return the line width. More...
 
virtual void Modify ()
 Change current line attributes if necessary. More...
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values. More...
 
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. More...
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes. More...
 
virtual void SetLineColor (Color_t lcolor)
 Set the line color. More...
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color. More...
 
virtual void SetLineStyle (Style_t lstyle)
 Set the line style. More...
 
virtual void SetLineWidth (Width_t lwidth)
 Set the line width. More...
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor. More...
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor. More...
 
virtual ~TAttFill ()
 AttFill destructor. More...
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill. More...
 
virtual Color_t GetFillColor () const
 Return the fill area color. More...
 
virtual Style_t GetFillStyle () const
 Return the fill area style. More...
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary. More...
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values. More...
 
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. More...
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes. More...
 
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color. More...
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color. More...
 
virtual void SetFillStyle (Style_t fstyle)
 Set the fill area style. More...
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 TAttMarker default constructor. More...
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 TAttMarker normal constructor. More...
 
virtual ~TAttMarker ()
 TAttMarker destructor. More...
 
void Copy (TAttMarker &attmarker) const
 Copy this marker attributes to a new TAttMarker. More...
 
virtual Color_t GetMarkerColor () const
 Return the marker color. More...
 
virtual Size_t GetMarkerSize () const
 Return the marker size. More...
 
virtual Style_t GetMarkerStyle () const
 Return the marker style. More...
 
virtual void Modify ()
 Change current marker attributes if necessary. More...
 
virtual void ResetAttMarker (Option_t *toption="")
 Reset this marker attributes to the default values. More...
 
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. More...
 
virtual void SetMarkerAttributes ()
 Invoke the DialogCanvas Marker attributes. More...
 
virtual void SetMarkerColor (Color_t mcolor=1)
 Set the marker color. More...
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 Set a transparent marker color. More...
 
virtual void SetMarkerSize (Size_t msize=1)
 Set the marker size. More...
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 Set the marker style. More...
 
- Public Member Functions inherited from TAttText
 TAttText ()
 AttText default constructor. More...
 
 TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
 AttText normal constructor. More...
 
virtual ~TAttText ()
 AttText destructor. More...
 
void Copy (TAttText &atttext) const
 Copy this text attributes to a new TAttText. More...
 
virtual Short_t GetTextAlign () const
 Return the text alignment. More...
 
virtual Float_t GetTextAngle () const
 Return the text angle. More...
 
virtual Color_t GetTextColor () const
 Return the text color. More...
 
virtual Font_t GetTextFont () const
 Return the text font. More...
 
virtual Float_t GetTextSize () const
 Return the text size. More...
 
virtual void Modify ()
 Change current text attributes if necessary. More...
 
virtual void ResetAttText (Option_t *toption="")
 Reset this text attributes to default values. More...
 
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. More...
 
virtual void SetTextAlign (Short_t align=11)
 Set the text alignment. More...
 
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle. More...
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes. More...
 
virtual void SetTextColor (Color_t tcolor=1)
 Set the text color. More...
 
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
 Set a transparent marker color. More...
 
virtual void SetTextFont (Font_t tfont=62)
 Set the text font. More...
 
virtual void SetTextSize (Float_t tsize=1)
 Set the text size. More...
 
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixels. More...
 

Static Public Member Functions

static void BuildStyles ()
 Create some standard styles. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Private Attributes

TAttText fAttDate
 Canvas date attribute. More...
 
Float_t fBarOffset
 Offset of bar for graphs. More...
 
Float_t fBarWidth
 Width of bar for graphs. More...
 
Int_t fCanvasBorderMode
 Canvas border mode. More...
 
Width_t fCanvasBorderSize
 Canvas border size. More...
 
Color_t fCanvasColor
 Canvas color. More...
 
Int_t fCanvasDefH
 Default canvas height. More...
 
Int_t fCanvasDefW
 Default canvas width. More...
 
Int_t fCanvasDefX
 Default canvas top X position. More...
 
Int_t fCanvasDefY
 Default canvas top Y position. More...
 
Bool_t fCanvasPreferGL
 If true, rendering in canvas is with GL. More...
 
Int_t fColorModelPS
 PostScript color model: 0 = RGB, 1 = CMYK. More...
 
Float_t fDateX
 X position of the date in the canvas (in NDC) More...
 
Float_t fDateY
 Y position of the date in the canvas (in NDC) More...
 
Int_t fDrawBorder
 Flag to draw border(=1) or not (0) More...
 
Float_t fEndErrorSize
 Size of lines at the end of error bars. More...
 
Float_t fErrorX
 Per cent of bin width for errors along X. More...
 
TString fFitFormat
 Printing format for fit parameters. More...
 
Int_t fFrameBorderMode
 Pad frame border mode. More...
 
Width_t fFrameBorderSize
 Pad frame border size. More...
 
Color_t fFrameFillColor
 Pad frame fill color. More...
 
Style_t fFrameFillStyle
 Pad frame fill style. More...
 
Color_t fFrameLineColor
 Pad frame line color. More...
 
Style_t fFrameLineStyle
 Pad frame line style. More...
 
Width_t fFrameLineWidth
 Pad frame line width. More...
 
Color_t fFuncColor
 Function color. More...
 
Style_t fFuncStyle
 Function style. More...
 
Width_t fFuncWidth
 Function line width. More...
 
Color_t fGridColor
 Grid line color (if 0 use axis line color) More...
 
Style_t fGridStyle
 Grid line style. More...
 
Width_t fGridWidth
 Grid line width. More...
 
Int_t fHatchesLineWidth
 Hatches line width for hatch styles > 3100. More...
 
Double_t fHatchesSpacing
 Hatches spacing for hatch styles > 3100. More...
 
TString fHeaderPS
 User defined additional Postscript header. More...
 
Color_t fHistFillColor
 Histogram fill color. More...
 
Style_t fHistFillStyle
 Histogram fill style. More...
 
Color_t fHistLineColor
 Histogram line color. More...
 
Style_t fHistLineStyle
 Histogram line style. More...
 
Width_t fHistLineWidth
 Histogram line width. More...
 
Bool_t fHistMinimumZero
 True if default minimum is 0, false if minimum is automatic. More...
 
Double_t fHistTopMargin
 Margin between histogram's top and pad's top. More...
 
Float_t fImageScaling
 Image scaling to produce high definition bitmap images. More...
 
Bool_t fIsReading
 ! Set to FALSE when userclass::UseCurrentStyle is called by the style manager More...
 
Int_t fJoinLinePS
 Determines the appearance of joining lines on PostScript. More...
 
Width_t fLegendBorderSize
 Legend box border size. More...
 
Color_t fLegendFillColor
 Legend fill color. More...
 
Style_t fLegendFont
 Legend font style. More...
 
Double_t fLegendTextSize
 Legend text size. If 0 the size is computed automatically. More...
 
Float_t fLegoInnerR
 Inner radius for cylindrical legos. More...
 
Float_t fLineScalePS
 Line scale factor when drawing lines on Postscript. More...
 
TString fLineStyle [30]
 String describing line style i (for postScript) More...
 
Int_t fNumberContours
 Default number of contours for 2-d plots. More...
 
Int_t fOptDate
 True if date option is selected. More...
 
Int_t fOptFile
 True if option File is selected. More...
 
Int_t fOptFit
 True if option Fit is selected. More...
 
Int_t fOptLogx
 True if log scale in X. More...
 
Int_t fOptLogy
 True if log scale in y. More...
 
Int_t fOptLogz
 True if log scale in z. More...
 
Int_t fOptStat
 True if option Stat is selected. More...
 
Int_t fOptTitle
 True if option Title is selected. More...
 
Int_t fPadBorderMode
 Pad border mode. More...
 
Width_t fPadBorderSize
 Pad border size. More...
 
Float_t fPadBottomMargin
 Pad bottom margin. More...
 
Color_t fPadColor
 Pad color. More...
 
Bool_t fPadGridX
 True to get the grid along X. More...
 
Bool_t fPadGridY
 True to get the grid along Y. More...
 
Float_t fPadLeftMargin
 Pad left margin. More...
 
Float_t fPadRightMargin
 Pad right margin. More...
 
Int_t fPadTickX
 True to set special pad ticks along X. More...
 
Int_t fPadTickY
 True to set special pad ticks along Y. More...
 
Float_t fPadTopMargin
 Pad top margin. More...
 
TString fPaintTextFormat
 Printing format for TH2::PaintText. More...
 
Float_t fPaperSizeX
 PostScript paper size along X. More...
 
Float_t fPaperSizeY
 PostScript paper size along Y. More...
 
Float_t fScreenFactor
 Multiplication factor for canvas size and position. More...
 
Int_t fShowEditor
 Show pad editor. More...
 
Int_t fShowEventStatus
 Show event status panel. More...
 
Int_t fShowToolBar
 Show toolbar. More...
 
Width_t fStatBorderSize
 Border size of Stats PaveLabel. More...
 
Color_t fStatColor
 Stat fill area color. More...
 
Style_t fStatFont
 Font style of Stats PaveLabel. More...
 
Float_t fStatFontSize
 Font size in pixels for fonts with precision type 3. More...
 
TString fStatFormat
 Printing format for stats. More...
 
Float_t fStatH
 Height of stat box. More...
 
Style_t fStatStyle
 Fill area style of Stats PaveLabel. More...
 
Color_t fStatTextColor
 Stat text color. More...
 
Float_t fStatW
 Width of stat box. More...
 
Float_t fStatX
 X position of top right corner of stat box. More...
 
Float_t fStatY
 Y position of top right corner of stat box. More...
 
Bool_t fStripDecimals
 Strip decimals in axis labels. More...
 
Double_t fTimeOffset
 Time offset to the beginning of an axis. More...
 
Int_t fTitleAlign
 Title box alignment. More...
 
Width_t fTitleBorderSize
 Border size of Title PavelLabel. More...
 
Color_t fTitleColor
 Title fill area color. More...
 
Style_t fTitleFont
 Font style of Title PaveLabel. More...
 
Float_t fTitleFontSize
 Font size in pixels for fonts with precision type 3. More...
 
Float_t fTitleH
 Height of title box. More...
 
TString fTitlePS
 User defined Postscript file title. More...
 
Style_t fTitleStyle
 Fill area style of title PaveLabel. More...
 
Color_t fTitleTextColor
 Title text color. More...
 
Float_t fTitleW
 Width of title box. More...
 
Float_t fTitleX
 X position of top left corner of title box. More...
 
Float_t fTitleY
 Y position of top left corner of title box. More...
 
TAttAxis fXaxis
 X axis attributes. More...
 
TAttAxis fYaxis
 Y axis attributes. More...
 
TAttAxis fZaxis
 Z axis attributes. More...
 

Additional Inherited Members

- 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). More...
 
void MakeZombie ()
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color. More...
 
Style_t fLineStyle
 Line style. More...
 
Width_t fLineWidth
 Line width. More...
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color. More...
 
Style_t fFillStyle
 Fill area style. More...
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 Marker color. More...
 
Size_t fMarkerSize
 Marker size. More...
 
Style_t fMarkerStyle
 Marker style. More...
 
- Protected Attributes inherited from TAttText
Short_t fTextAlign
 Text alignment. More...
 
Float_t fTextAngle
 Text angle. More...
 
Color_t fTextColor
 Text color. More...
 
Font_t fTextFont
 Text font. More...
 
Float_t fTextSize
 Text size. More...
 

#include <TStyle.h>

Inheritance diagram for TStyle:
[legend]

Member Enumeration Documentation

◆ EPaperSize

Enumerator
kA4 
kUSLetter 

Definition at line 139 of file TStyle.h.

Constructor & Destructor Documentation

◆ TStyle() [1/3]

TStyle::TStyle ( )

Default constructor.

Definition at line 142 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: the default style set in TStyle::Reset
  • Plain: a black&white oriented style
  • Bold
  • Video
  • Pub
  • Modern
  • ATLAS: style used by the ATLAS 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 194 of file TStyle.cxx.

◆ TStyle() [3/3]

TStyle::TStyle ( const TStyle style)

Copy constructor.

Definition at line 405 of file TStyle.cxx.

◆ ~TStyle()

TStyle::~TStyle ( )
virtual

Destructor.

Definition at line 395 of file TStyle.cxx.

Member Function Documentation

◆ AxisChoice()

Int_t TStyle::AxisChoice ( Option_t axis) const
inline

Definition at line 145 of file TStyle.h.

◆ Browse()

void TStyle::Browse ( TBrowser b)
virtual

Browse the style object.

Reimplemented from TObject.

Definition at line 413 of file TStyle.cxx.

◆ BuildStyles()

void TStyle::BuildStyles ( )
static

Create some standard styles.

Definition at line 421 of file TStyle.cxx.

◆ cd()

void TStyle::cd ( )
virtual

Change current style.

Definition at line 438 of file TStyle.cxx.

◆ Copy()

void TStyle::Copy ( TObject style) const
virtual

Copy this style.

Reimplemented from TNamed.

Definition at line 446 of file TStyle.cxx.

◆ DistancetoPrimitive()

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

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

Reimplemented from TObject.

Definition at line 567 of file TStyle.cxx.

◆ GetAttDate()

TAttText * TStyle::GetAttDate ( )
inline

Definition at line 158 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 901 of file TStyle.cxx.

◆ GetBarOffset()

Float_t TStyle::GetBarOffset ( ) const
inline

Definition at line 170 of file TStyle.h.

◆ GetBarWidth()

Float_t TStyle::GetBarWidth ( ) const
inline

Definition at line 171 of file TStyle.h.

◆ GetCanvasBorderMode()

Int_t TStyle::GetCanvasBorderMode ( ) const
inline

Definition at line 178 of file TStyle.h.

◆ GetCanvasBorderSize()

Width_t TStyle::GetCanvasBorderSize ( ) const
inline

Definition at line 177 of file TStyle.h.

◆ GetCanvasColor()

Color_t TStyle::GetCanvasColor ( ) const
inline

Definition at line 176 of file TStyle.h.

◆ GetCanvasDefH()

Int_t TStyle::GetCanvasDefH ( ) const
inline

Definition at line 179 of file TStyle.h.

◆ GetCanvasDefW()

Int_t TStyle::GetCanvasDefW ( ) const
inline

Definition at line 180 of file TStyle.h.

◆ GetCanvasDefX()

Int_t TStyle::GetCanvasDefX ( ) const
inline

Definition at line 181 of file TStyle.h.

◆ GetCanvasDefY()

Int_t TStyle::GetCanvasDefY ( ) const
inline

Definition at line 182 of file TStyle.h.

◆ GetCanvasPreferGL()

Bool_t TStyle::GetCanvasPreferGL ( ) const
inline

Definition at line 175 of file TStyle.h.

◆ GetColorModelPS()

Int_t TStyle::GetColorModelPS ( ) const
inline

Definition at line 184 of file TStyle.h.

◆ GetColorPalette()

Int_t TStyle::GetColorPalette ( Int_t  i) const

Return color number i in current palette.

Definition at line 913 of file TStyle.cxx.

◆ GetDateX()

Float_t TStyle::GetDateX ( ) const
inline

Definition at line 185 of file TStyle.h.

◆ GetDateY()

Float_t TStyle::GetDateY ( ) const
inline

Definition at line 186 of file TStyle.h.

◆ GetDrawBorder()

Int_t TStyle::GetDrawBorder ( ) const
inline

Definition at line 172 of file TStyle.h.

◆ GetEndErrorSize()

Float_t TStyle::GetEndErrorSize ( ) const
inline

Definition at line 173 of file TStyle.h.

◆ GetErrorX()

Float_t TStyle::GetErrorX ( ) const
inline

Definition at line 174 of file TStyle.h.

◆ GetFitFormat()

const char * TStyle::GetFitFormat ( ) const
inline

Definition at line 187 of file TStyle.h.

◆ GetFrameBorderMode()

Int_t TStyle::GetFrameBorderMode ( ) const
inline

Definition at line 218 of file TStyle.h.

◆ GetFrameBorderSize()

Width_t TStyle::GetFrameBorderSize ( ) const
inline

Definition at line 217 of file TStyle.h.

◆ GetFrameFillColor()

Color_t TStyle::GetFrameFillColor ( ) const
inline

Definition at line 212 of file TStyle.h.

◆ GetFrameFillStyle()

Style_t TStyle::GetFrameFillStyle ( ) const
inline

Definition at line 214 of file TStyle.h.

◆ GetFrameLineColor()

Color_t TStyle::GetFrameLineColor ( ) const
inline

Definition at line 213 of file TStyle.h.

◆ GetFrameLineStyle()

Style_t TStyle::GetFrameLineStyle ( ) const
inline

Definition at line 215 of file TStyle.h.

◆ GetFrameLineWidth()

Width_t TStyle::GetFrameLineWidth ( ) const
inline

Definition at line 216 of file TStyle.h.

◆ GetFuncColor()

Color_t TStyle::GetFuncColor ( ) const
inline

Definition at line 206 of file TStyle.h.

◆ GetFuncStyle()

Style_t TStyle::GetFuncStyle ( ) const
inline

Definition at line 207 of file TStyle.h.

◆ GetFuncWidth()

Width_t TStyle::GetFuncWidth ( ) const
inline

Definition at line 208 of file TStyle.h.

◆ GetGridColor()

Color_t TStyle::GetGridColor ( ) const
inline

Definition at line 209 of file TStyle.h.

◆ GetGridStyle()

Style_t TStyle::GetGridStyle ( ) const
inline

Definition at line 210 of file TStyle.h.

◆ GetGridWidth()

Width_t TStyle::GetGridWidth ( ) const
inline

Definition at line 211 of file TStyle.h.

◆ GetHatchesLineWidth()

Int_t TStyle::GetHatchesLineWidth ( ) const
inline

Definition at line 188 of file TStyle.h.

◆ GetHatchesSpacing()

Double_t TStyle::GetHatchesSpacing ( ) const
inline

Definition at line 189 of file TStyle.h.

◆ GetHeaderPS()

const char * TStyle::GetHeaderPS ( ) const
inline

Definition at line 271 of file TStyle.h.

◆ GetHistFillColor()

Color_t TStyle::GetHistFillColor ( ) const
inline

Definition at line 219 of file TStyle.h.

◆ GetHistFillStyle()

Style_t TStyle::GetHistFillStyle ( ) const
inline

Definition at line 221 of file TStyle.h.

◆ GetHistLineColor()

Color_t TStyle::GetHistLineColor ( ) const
inline

Definition at line 220 of file TStyle.h.

◆ GetHistLineStyle()

Style_t TStyle::GetHistLineStyle ( ) const
inline

Definition at line 222 of file TStyle.h.

◆ GetHistLineWidth()

Width_t TStyle::GetHistLineWidth ( ) const
inline

Definition at line 223 of file TStyle.h.

◆ GetHistMinimumZero()

Bool_t TStyle::GetHistMinimumZero ( ) const
inline

Definition at line 224 of file TStyle.h.

◆ GetHistTopMargin()

Double_t TStyle::GetHistTopMargin ( ) const
inline

Definition at line 225 of file TStyle.h.

◆ GetImageScaling()

Float_t TStyle::GetImageScaling ( ) const
inline

Definition at line 226 of file TStyle.h.

◆ GetJoinLinePS()

Int_t TStyle::GetJoinLinePS ( ) const
inline

Definition at line 274 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 921 of file TStyle.cxx.

◆ GetLabelFont()

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

Return label font.

Definition at line 933 of file TStyle.cxx.

◆ GetLabelOffset()

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

Return label offset.

Definition at line 945 of file TStyle.cxx.

◆ GetLabelSize()

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

Return label size.

Definition at line 957 of file TStyle.cxx.

◆ GetLegendBorderSize()

Width_t TStyle::GetLegendBorderSize ( ) const
inline

Definition at line 190 of file TStyle.h.

◆ GetLegendFillColor()

Color_t TStyle::GetLegendFillColor ( ) const
inline

Definition at line 191 of file TStyle.h.

◆ GetLegendFont()

Style_t TStyle::GetLegendFont ( ) const
inline

Definition at line 192 of file TStyle.h.

◆ GetLegendTextSize()

Double_t TStyle::GetLegendTextSize ( ) const
inline

Definition at line 193 of file TStyle.h.

◆ GetLegoInnerR()

Float_t TStyle::GetLegoInnerR ( ) const
inline

Definition at line 227 of file TStyle.h.

◆ GetLineScalePS()

Float_t TStyle::GetLineScalePS ( ) const
inline

Definition at line 275 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 970 of file TStyle.cxx.

◆ GetNdivisions()

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

Return number of divisions.

Definition at line 889 of file TStyle.cxx.

◆ GetNumberContours()

Int_t TStyle::GetNumberContours ( ) const
inline

Definition at line 228 of file TStyle.h.

◆ GetNumberOfColors()

Int_t TStyle::GetNumberOfColors ( ) const

Return number of colors in the color palette.

Definition at line 979 of file TStyle.cxx.

◆ GetOptDate()

Int_t TStyle::GetOptDate ( ) const
inline

Definition at line 229 of file TStyle.h.

◆ GetOptFile()

Int_t TStyle::GetOptFile ( ) const
inline

Definition at line 230 of file TStyle.h.

◆ GetOptFit()

Int_t TStyle::GetOptFit ( ) const
inline

Definition at line 231 of file TStyle.h.

◆ GetOptLogx()

Int_t TStyle::GetOptLogx ( ) const
inline

Definition at line 234 of file TStyle.h.

◆ GetOptLogy()

Int_t TStyle::GetOptLogy ( ) const
inline

Definition at line 235 of file TStyle.h.

◆ GetOptLogz()

Int_t TStyle::GetOptLogz ( ) const
inline

Definition at line 236 of file TStyle.h.

◆ GetOptStat()

Int_t TStyle::GetOptStat ( ) const
inline

Definition at line 232 of file TStyle.h.

◆ GetOptTitle()

Int_t TStyle::GetOptTitle ( ) const
inline

Definition at line 233 of file TStyle.h.

◆ GetPadBorderMode()

Int_t TStyle::GetPadBorderMode ( ) const
inline

Definition at line 197 of file TStyle.h.

◆ GetPadBorderSize()

Width_t TStyle::GetPadBorderSize ( ) const
inline

Definition at line 196 of file TStyle.h.

◆ GetPadBottomMargin()

Float_t TStyle::GetPadBottomMargin ( ) const
inline

Definition at line 198 of file TStyle.h.

◆ GetPadColor()

Color_t TStyle::GetPadColor ( ) const
inline

Definition at line 195 of file TStyle.h.

◆ GetPadGridX()

Bool_t TStyle::GetPadGridX ( ) const
inline

Definition at line 202 of file TStyle.h.

◆ GetPadGridY()

Bool_t TStyle::GetPadGridY ( ) const
inline

Definition at line 203 of file TStyle.h.

◆ GetPadLeftMargin()

Float_t TStyle::GetPadLeftMargin ( ) const
inline

Definition at line 200 of file TStyle.h.

◆ GetPadRightMargin()

Float_t TStyle::GetPadRightMargin ( ) const
inline

Definition at line 201 of file TStyle.h.

◆ GetPadTickX()

Int_t TStyle::GetPadTickX ( ) const
inline

Definition at line 204 of file TStyle.h.

◆ GetPadTickY()

Int_t TStyle::GetPadTickY ( ) const
inline

Definition at line 205 of file TStyle.h.

◆ GetPadTopMargin()

Float_t TStyle::GetPadTopMargin ( ) const
inline

Definition at line 199 of file TStyle.h.

◆ GetPaintTextFormat()

const char * TStyle::GetPaintTextFormat ( ) const
inline

Definition at line 237 of file TStyle.h.

◆ GetPaperSize()

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

Set paper size for PostScript output.

Definition at line 988 of file TStyle.cxx.

◆ GetScreenFactor()

Float_t TStyle::GetScreenFactor ( ) const
inline

Definition at line 243 of file TStyle.h.

◆ GetShowEditor()

Int_t TStyle::GetShowEditor ( ) const
inline

Definition at line 240 of file TStyle.h.

◆ GetShowEventStatus()

Int_t TStyle::GetShowEventStatus ( ) const
inline

Definition at line 239 of file TStyle.h.

◆ GetShowToolBar()

Int_t TStyle::GetShowToolBar ( ) const
inline

Definition at line 241 of file TStyle.h.

◆ GetStatBorderSize()

Width_t TStyle::GetStatBorderSize ( ) const
inline

Definition at line 246 of file TStyle.h.

◆ GetStatColor()

Color_t TStyle::GetStatColor ( ) const
inline

Definition at line 244 of file TStyle.h.

◆ GetStatFont()

Style_t TStyle::GetStatFont ( ) const
inline

Definition at line 247 of file TStyle.h.

◆ GetStatFontSize()

Float_t TStyle::GetStatFontSize ( ) const
inline

Definition at line 248 of file TStyle.h.

◆ GetStatFormat()

const char * TStyle::GetStatFormat ( ) const
inline

Definition at line 250 of file TStyle.h.

◆ GetStatH()

Float_t TStyle::GetStatH ( ) const
inline

Definition at line 254 of file TStyle.h.

◆ GetStatStyle()

Style_t TStyle::GetStatStyle ( ) const
inline

Definition at line 249 of file TStyle.h.

◆ GetStatTextColor()

Color_t TStyle::GetStatTextColor ( ) const
inline

Definition at line 245 of file TStyle.h.

◆ GetStatW()

Float_t TStyle::GetStatW ( ) const
inline

Definition at line 253 of file TStyle.h.

◆ GetStatX()

Float_t TStyle::GetStatX ( ) const
inline

Definition at line 251 of file TStyle.h.

◆ GetStatY()

Float_t TStyle::GetStatY ( ) const
inline

Definition at line 252 of file TStyle.h.

◆ GetStripDecimals()

Int_t TStyle::GetStripDecimals ( ) const
inline

Definition at line 255 of file TStyle.h.

◆ GetTickLength()

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

Return tick length.

Definition at line 997 of file TStyle.cxx.

◆ GetTimeOffset()

Double_t TStyle::GetTimeOffset ( ) const
inline

Definition at line 256 of file TStyle.h.

◆ GetTitleAlign()

Int_t TStyle::GetTitleAlign ( )
inline

Definition at line 257 of file TStyle.h.

◆ GetTitleBorderSize()

Width_t TStyle::GetTitleBorderSize ( ) const
inline

Definition at line 262 of file TStyle.h.

◆ GetTitleColor()

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

Return title color.

Definition at line 1009 of file TStyle.cxx.

◆ GetTitleFillColor()

Color_t TStyle::GetTitleFillColor ( ) const
inline

Definition at line 258 of file TStyle.h.

◆ GetTitleFont()

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

Return title font.

Definition at line 1021 of file TStyle.cxx.

◆ GetTitleFontSize()

Float_t TStyle::GetTitleFontSize ( ) const
inline

Definition at line 261 of file TStyle.h.

◆ GetTitleH()

Float_t TStyle::GetTitleH ( ) const
inline

Definition at line 270 of file TStyle.h.

◆ GetTitleOffset()

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

Return title offset.

Definition at line 1033 of file TStyle.cxx.

◆ GetTitlePS()

const char * TStyle::GetTitlePS ( ) const
inline

Definition at line 272 of file TStyle.h.

◆ GetTitleSize()

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

Return title size.

Definition at line 1045 of file TStyle.cxx.

◆ GetTitleStyle()

Style_t TStyle::GetTitleStyle ( ) const
inline

Definition at line 260 of file TStyle.h.

◆ GetTitleTextColor()

Color_t TStyle::GetTitleTextColor ( ) const
inline

Definition at line 259 of file TStyle.h.

◆ GetTitleW()

Float_t TStyle::GetTitleW ( ) const
inline

Definition at line 269 of file TStyle.h.

◆ GetTitleX()

Float_t TStyle::GetTitleX ( ) const
inline

Definition at line 267 of file TStyle.h.

◆ GetTitleXOffset()

Float_t TStyle::GetTitleXOffset ( ) const
inline

Definition at line 263 of file TStyle.h.

◆ GetTitleXSize()

Float_t TStyle::GetTitleXSize ( ) const
inline

Definition at line 264 of file TStyle.h.

◆ GetTitleY()

Float_t TStyle::GetTitleY ( ) const
inline

Definition at line 268 of file TStyle.h.

◆ GetTitleYOffset()

Float_t TStyle::GetTitleYOffset ( ) const
inline

Definition at line 265 of file TStyle.h.

◆ GetTitleYSize()

Float_t TStyle::GetTitleYSize ( ) const
inline

Definition at line 266 of file TStyle.h.

◆ IsReading()

Bool_t TStyle::IsReading ( ) const
inline

Definition at line 277 of file TStyle.h.

◆ Paint()

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

Show the options from the current style.

Reimplemented from TObject.

Definition at line 1057 of file TStyle.cxx.

◆ Reset()

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

Reset.

Definition at line 576 of file TStyle.cxx.

◆ SavePrimitive()

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

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

Reimplemented from TObject.

Definition at line 1734 of file TStyle.cxx.

◆ SaveSource()

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

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

Definition at line 1676 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 1129 of file TStyle.cxx.

◆ SetBarOffset()

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

Definition at line 313 of file TStyle.h.

◆ SetBarWidth()

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

Definition at line 314 of file TStyle.h.

◆ SetCanvasBorderMode()

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

Definition at line 323 of file TStyle.h.

◆ SetCanvasBorderSize()

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

Definition at line 322 of file TStyle.h.

◆ SetCanvasColor()

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

Definition at line 321 of file TStyle.h.

◆ SetCanvasDefH()

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

Definition at line 324 of file TStyle.h.

◆ SetCanvasDefW()

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

Definition at line 325 of file TStyle.h.

◆ SetCanvasDefX()

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

Definition at line 326 of file TStyle.h.

◆ SetCanvasDefY()

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

Definition at line 327 of file TStyle.h.

◆ SetCanvasPreferGL()

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

Definition at line 319 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);
double Double_t
Definition: RtypesCore.h:55
Short_t Min(Short_t a, Short_t b)
Definition: TMathBase.h:180

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

Definition at line 1081 of file TStyle.cxx.

◆ SetDateX()

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

Definition at line 315 of file TStyle.h.

◆ SetDateY()

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

Definition at line 316 of file TStyle.h.

◆ SetDrawBorder()

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

Definition at line 320 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 1146 of file TStyle.cxx.

◆ SetErrorX()

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

Definition at line 318 of file TStyle.h.

◆ SetFitFormat()

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

Definition at line 282 of file TStyle.h.

◆ SetFrameBorderMode()

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

Definition at line 355 of file TStyle.h.

◆ SetFrameBorderSize()

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

Definition at line 354 of file TStyle.h.

◆ SetFrameFillColor()

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

Definition at line 349 of file TStyle.h.

◆ SetFrameFillStyle()

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

Definition at line 351 of file TStyle.h.

◆ SetFrameLineColor()

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

Definition at line 350 of file TStyle.h.

◆ SetFrameLineStyle()

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

Definition at line 352 of file TStyle.h.

◆ SetFrameLineWidth()

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

Definition at line 353 of file TStyle.h.

◆ SetFuncColor()

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

Definition at line 344 of file TStyle.h.

◆ SetFuncStyle()

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

Definition at line 343 of file TStyle.h.

◆ SetFuncWidth()

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

Definition at line 345 of file TStyle.h.

◆ SetGridColor()

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

Definition at line 347 of file TStyle.h.

◆ SetGridStyle()

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

Definition at line 346 of file TStyle.h.

◆ SetGridWidth()

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

Definition at line 348 of file TStyle.h.

◆ SetHatchesLineWidth()

void TStyle::SetHatchesLineWidth ( Int_t  l)
inline

Definition at line 284 of file TStyle.h.

◆ SetHatchesSpacing()

void TStyle::SetHatchesSpacing ( Double_t  h)
inline

Definition at line 285 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 1168 of file TStyle.cxx.

◆ SetHistFillColor()

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

Definition at line 356 of file TStyle.h.

◆ SetHistFillStyle()

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

Definition at line 358 of file TStyle.h.

◆ SetHistLineColor()

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

Definition at line 357 of file TStyle.h.

◆ SetHistLineStyle()

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

Definition at line 359 of file TStyle.h.

◆ SetHistLineWidth()

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

Definition at line 360 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 1094 of file TStyle.cxx.

◆ SetHistTopMargin()

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

Definition at line 362 of file TStyle.h.

◆ SetImageScaling()

void TStyle::SetImageScaling ( Float_t  s)
inline

Definition at line 364 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 1180 of file TStyle.cxx.

◆ SetJoinLinePS()

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

Definition at line 287 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 1199 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 1219 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 1235 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 1250 of file TStyle.cxx.

◆ SetLegendBorderSize()

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

Definition at line 328 of file TStyle.h.

◆ SetLegendFillColor()

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

Definition at line 329 of file TStyle.h.

◆ SetLegendFont()

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

Definition at line 330 of file TStyle.h.

◆ SetLegendTextSize()

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

Definition at line 331 of file TStyle.h.

◆ SetLegoInnerR()

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

Definition at line 296 of file TStyle.h.

◆ SetLineScalePS()

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

Definition at line 288 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:1289

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 1289 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
#define mark(osub)
Definition: triangle.c:1206

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

Definition at line 1115 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 1306 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:

gStyle->GetAttDate()->SetTextSize(size=0.025);
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition: TAttText.h:41
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
Definition: TAttText.h:42
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition: TAttText.h:43
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition: TAttText.h:45
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition: TAttText.h:46
TAttText * GetAttDate()
Definition: TStyle.h:158

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 1352 of file TStyle.cxx.

◆ SetOptFile()

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

Definition at line 305 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:

  • 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 1396 of file TStyle.cxx.

◆ SetOptLogx()

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

Definition at line 307 of file TStyle.h.

◆ SetOptLogy()

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

Definition at line 308 of file TStyle.h.

◆ SetOptLogz()

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

Definition at line 309 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(1111), 0001111 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 1444 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 1481 of file TStyle.cxx.

◆ SetOptTitle()

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

Definition at line 312 of file TStyle.h.

◆ SetPadBorderMode()

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

Definition at line 334 of file TStyle.h.

◆ SetPadBorderSize()

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

Definition at line 333 of file TStyle.h.

◆ SetPadBottomMargin()

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

Definition at line 335 of file TStyle.h.

◆ SetPadColor()

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

Definition at line 332 of file TStyle.h.

◆ SetPadGridX()

void TStyle::SetPadGridX ( Bool_t  gridx)
inline

Definition at line 339 of file TStyle.h.

◆ SetPadGridY()

void TStyle::SetPadGridY ( Bool_t  gridy)
inline

Definition at line 340 of file TStyle.h.

◆ SetPadLeftMargin()

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

Definition at line 337 of file TStyle.h.

◆ SetPadRightMargin()

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

Definition at line 338 of file TStyle.h.

◆ SetPadTickX()

void TStyle::SetPadTickX ( Int_t  tickx)
inline

Definition at line 341 of file TStyle.h.

◆ SetPadTickY()

void TStyle::SetPadTickY ( Int_t  ticky)
inline

Definition at line 342 of file TStyle.h.

◆ SetPadTopMargin()

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

Definition at line 336 of file TStyle.h.

◆ SetPaintTextFormat()

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

Definition at line 363 of file TStyle.h.

◆ SetPalette()

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

See TColor::SetPalette.

Definition at line 1637 of file TStyle.cxx.

◆ SetPaperSize() [1/2]

void TStyle::SetPaperSize ( EPaperSize  size)

Set paper size for PostScript output.

Definition at line 1509 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 1529 of file TStyle.cxx.

◆ SetScreenFactor()

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

Definition at line 297 of file TStyle.h.

◆ SetStatBorderSize()

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

Definition at line 370 of file TStyle.h.

◆ SetStatColor()

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

Definition at line 367 of file TStyle.h.

◆ SetStatFont()

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

Definition at line 371 of file TStyle.h.

◆ SetStatFontSize()

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

Definition at line 372 of file TStyle.h.

◆ SetStatFormat()

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

Definition at line 373 of file TStyle.h.

◆ SetStatH()

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

Definition at line 377 of file TStyle.h.

◆ SetStatStyle()

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

Definition at line 369 of file TStyle.h.

◆ SetStatTextColor()

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

Definition at line 368 of file TStyle.h.

◆ SetStatW()

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

Definition at line 376 of file TStyle.h.

◆ SetStatX()

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

Definition at line 374 of file TStyle.h.

◆ SetStatY()

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

Definition at line 375 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 1668 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 1540 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 1655 of file TStyle.cxx.

◆ SetTitleAlign()

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

Definition at line 380 of file TStyle.h.

◆ SetTitleBorderSize()

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

Definition at line 385 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 1559 of file TStyle.cxx.

◆ SetTitleFillColor()

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

Definition at line 381 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 1580 of file TStyle.cxx.

◆ SetTitleFontSize()

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

Definition at line 384 of file TStyle.h.

◆ SetTitleH()

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

Definition at line 393 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 1603 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 1189 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 1622 of file TStyle.cxx.

◆ SetTitleStyle()

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

Definition at line 383 of file TStyle.h.

◆ SetTitleTextColor()

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

Definition at line 382 of file TStyle.h.

◆ SetTitleW()

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

Definition at line 392 of file TStyle.h.

◆ SetTitleX()

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

Definition at line 390 of file TStyle.h.

◆ SetTitleXOffset()

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

Definition at line 386 of file TStyle.h.

◆ SetTitleXSize()

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

Definition at line 387 of file TStyle.h.

◆ SetTitleY()

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

Definition at line 391 of file TStyle.h.

◆ SetTitleYOffset()

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

Definition at line 388 of file TStyle.h.

◆ SetTitleYSize()

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

Definition at line 389 of file TStyle.h.

◆ ToggleEditor()

void TStyle::ToggleEditor ( )
inline

Definition at line 395 of file TStyle.h.

◆ ToggleEventStatus()

void TStyle::ToggleEventStatus ( )
inline

Definition at line 394 of file TStyle.h.

◆ ToggleToolBar()

void TStyle::ToggleToolBar ( )
inline

Definition at line 396 of file TStyle.h.

Member Data Documentation

◆ fAttDate

TAttText TStyle::fAttDate
private

Canvas date attribute.

Definition at line 50 of file TStyle.h.

◆ fBarOffset

Float_t TStyle::fBarOffset
private

Offset of bar for graphs.

Definition at line 34 of file TStyle.h.

◆ fBarWidth

Float_t TStyle::fBarWidth
private

Width of bar for graphs.

Definition at line 33 of file TStyle.h.

◆ fCanvasBorderMode

Int_t TStyle::fCanvasBorderMode
private

Canvas border mode.

Definition at line 84 of file TStyle.h.

◆ fCanvasBorderSize

Width_t TStyle::fCanvasBorderSize
private

Canvas border size.

Definition at line 83 of file TStyle.h.

◆ fCanvasColor

Color_t TStyle::fCanvasColor
private

Canvas color.

Definition at line 82 of file TStyle.h.

◆ fCanvasDefH

Int_t TStyle::fCanvasDefH
private

Default canvas height.

Definition at line 85 of file TStyle.h.

◆ fCanvasDefW

Int_t TStyle::fCanvasDefW
private

Default canvas width.

Definition at line 86 of file TStyle.h.

◆ fCanvasDefX

Int_t TStyle::fCanvasDefX
private

Default canvas top X position.

Definition at line 87 of file TStyle.h.

◆ fCanvasDefY

Int_t TStyle::fCanvasDefY
private

Default canvas top Y position.

Definition at line 88 of file TStyle.h.

◆ fCanvasPreferGL

Bool_t TStyle::fCanvasPreferGL
private

If true, rendering in canvas is with GL.

Definition at line 81 of file TStyle.h.

◆ fColorModelPS

Int_t TStyle::fColorModelPS
private

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

Definition at line 35 of file TStyle.h.

◆ fDateX

Float_t TStyle::fDateX
private

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

Definition at line 51 of file TStyle.h.

◆ fDateY

Float_t TStyle::fDateY
private

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

Definition at line 52 of file TStyle.h.

◆ fDrawBorder

Int_t TStyle::fDrawBorder
private

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

Definition at line 36 of file TStyle.h.

◆ fEndErrorSize

Float_t TStyle::fEndErrorSize
private

Size of lines at the end of error bars.

Definition at line 53 of file TStyle.h.

◆ fErrorX

Float_t TStyle::fErrorX
private

Per cent of bin width for errors along X.

Definition at line 54 of file TStyle.h.

◆ fFitFormat

TString TStyle::fFitFormat
private

Printing format for fit parameters.

Definition at line 130 of file TStyle.h.

◆ fFrameBorderMode

Int_t TStyle::fFrameBorderMode
private

Pad frame border mode.

Definition at line 73 of file TStyle.h.

◆ fFrameBorderSize

Width_t TStyle::fFrameBorderSize
private

Pad frame border size.

Definition at line 72 of file TStyle.h.

◆ fFrameFillColor

Color_t TStyle::fFrameFillColor
private

Pad frame fill color.

Definition at line 67 of file TStyle.h.

◆ fFrameFillStyle

Style_t TStyle::fFrameFillStyle
private

Pad frame fill style.

Definition at line 69 of file TStyle.h.

◆ fFrameLineColor

Color_t TStyle::fFrameLineColor
private

Pad frame line color.

Definition at line 68 of file TStyle.h.

◆ fFrameLineStyle

Style_t TStyle::fFrameLineStyle
private

Pad frame line style.

Definition at line 70 of file TStyle.h.

◆ fFrameLineWidth

Width_t TStyle::fFrameLineWidth
private

Pad frame line width.

Definition at line 71 of file TStyle.h.

◆ fFuncColor

Color_t TStyle::fFuncColor
private

Function color.

Definition at line 55 of file TStyle.h.

◆ fFuncStyle

Style_t TStyle::fFuncStyle
private

Function style.

Definition at line 56 of file TStyle.h.

◆ fFuncWidth

Width_t TStyle::fFuncWidth
private

Function line width.

Definition at line 57 of file TStyle.h.

◆ fGridColor

Color_t TStyle::fGridColor
private

Grid line color (if 0 use axis line color)

Definition at line 58 of file TStyle.h.

◆ fGridStyle

Style_t TStyle::fGridStyle
private

Grid line style.

Definition at line 59 of file TStyle.h.

◆ fGridWidth

Width_t TStyle::fGridWidth
private

Grid line width.

Definition at line 60 of file TStyle.h.

◆ fHatchesLineWidth

Int_t TStyle::fHatchesLineWidth
private

Hatches line width for hatch styles > 3100.

Definition at line 65 of file TStyle.h.

◆ fHatchesSpacing

Double_t TStyle::fHatchesSpacing
private

Hatches spacing for hatch styles > 3100.

Definition at line 66 of file TStyle.h.

◆ fHeaderPS

TString TStyle::fHeaderPS
private

User defined additional Postscript header.

Definition at line 128 of file TStyle.h.

◆ fHistFillColor

Color_t TStyle::fHistFillColor
private

Histogram fill color.

Definition at line 74 of file TStyle.h.

◆ fHistFillStyle

Style_t TStyle::fHistFillStyle
private

Histogram fill style.

Definition at line 76 of file TStyle.h.

◆ fHistLineColor

Color_t TStyle::fHistLineColor
private

Histogram line color.

Definition at line 75 of file TStyle.h.

◆ fHistLineStyle

Style_t TStyle::fHistLineStyle
private

Histogram line style.

Definition at line 77 of file TStyle.h.

◆ fHistLineWidth

Width_t TStyle::fHistLineWidth
private

Histogram line width.

Definition at line 78 of file TStyle.h.

◆ fHistMinimumZero

Bool_t TStyle::fHistMinimumZero
private

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

Definition at line 79 of file TStyle.h.

◆ fHistTopMargin

Double_t TStyle::fHistTopMargin
private

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

Definition at line 80 of file TStyle.h.

◆ fImageScaling

Float_t TStyle::fImageScaling
private

Image scaling to produce high definition bitmap images.

Definition at line 136 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 135 of file TStyle.h.

◆ fJoinLinePS

Int_t TStyle::fJoinLinePS
private

Determines the appearance of joining lines on PostScript.

Definition at line 133 of file TStyle.h.

◆ fLegendBorderSize

Width_t TStyle::fLegendBorderSize
private

Legend box border size.

Definition at line 61 of file TStyle.h.

◆ fLegendFillColor

Color_t TStyle::fLegendFillColor
private

Legend fill color.

Definition at line 62 of file TStyle.h.

◆ fLegendFont

Style_t TStyle::fLegendFont
private

Legend font style.

Definition at line 63 of file TStyle.h.

◆ fLegendTextSize

Double_t TStyle::fLegendTextSize
private

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

Definition at line 64 of file TStyle.h.

◆ fLegoInnerR

Float_t TStyle::fLegoInnerR
private

Inner radius for cylindrical legos.

Definition at line 126 of file TStyle.h.

◆ fLineScalePS

Float_t TStyle::fLineScalePS
private

Line scale factor when drawing lines on Postscript.

Definition at line 132 of file TStyle.h.

◆ fLineStyle

TString TStyle::fLineStyle[30]
private

String describing line style i (for postScript)

Definition at line 127 of file TStyle.h.

◆ fNumberContours

Int_t TStyle::fNumberContours
private

Default number of contours for 2-d plots.

Definition at line 49 of file TStyle.h.

◆ fOptDate

Int_t TStyle::fOptDate
private

True if date option is selected.

Definition at line 40 of file TStyle.h.

◆ fOptFile

Int_t TStyle::fOptFile
private

True if option File is selected.

Definition at line 43 of file TStyle.h.

◆ fOptFit

Int_t TStyle::fOptFit
private

True if option Fit is selected.

Definition at line 44 of file TStyle.h.

◆ fOptLogx

Int_t TStyle::fOptLogx
private

True if log scale in X.

Definition at line 37 of file TStyle.h.

◆ fOptLogy

Int_t TStyle::fOptLogy
private

True if log scale in y.

Definition at line 38 of file TStyle.h.

◆ fOptLogz

Int_t TStyle::fOptLogz
private

True if log scale in z.

Definition at line 39 of file TStyle.h.

◆ fOptStat

Int_t TStyle::fOptStat
private

True if option Stat is selected.

Definition at line 41 of file TStyle.h.

◆ fOptTitle

Int_t TStyle::fOptTitle
private

True if option Title is selected.

Definition at line 42 of file TStyle.h.

◆ fPadBorderMode

Int_t TStyle::fPadBorderMode
private

Pad border mode.

Definition at line 91 of file TStyle.h.

◆ fPadBorderSize

Width_t TStyle::fPadBorderSize
private

Pad border size.

Definition at line 90 of file TStyle.h.

◆ fPadBottomMargin

Float_t TStyle::fPadBottomMargin
private

Pad bottom margin.

Definition at line 92 of file TStyle.h.

◆ fPadColor

Color_t TStyle::fPadColor
private

Pad color.

Definition at line 89 of file TStyle.h.

◆ fPadGridX

Bool_t TStyle::fPadGridX
private

True to get the grid along X.

Definition at line 96 of file TStyle.h.

◆ fPadGridY

Bool_t TStyle::fPadGridY
private

True to get the grid along Y.

Definition at line 97 of file TStyle.h.

◆ fPadLeftMargin

Float_t TStyle::fPadLeftMargin
private

Pad left margin.

Definition at line 94 of file TStyle.h.

◆ fPadRightMargin

Float_t TStyle::fPadRightMargin
private

Pad right margin.

Definition at line 95 of file TStyle.h.

◆ fPadTickX

Int_t TStyle::fPadTickX
private

True to set special pad ticks along X.

Definition at line 98 of file TStyle.h.

◆ fPadTickY

Int_t TStyle::fPadTickY
private

True to set special pad ticks along Y.

Definition at line 99 of file TStyle.h.

◆ fPadTopMargin

Float_t TStyle::fPadTopMargin
private

Pad top margin.

Definition at line 93 of file TStyle.h.

◆ fPaintTextFormat

TString TStyle::fPaintTextFormat
private

Printing format for TH2::PaintText.

Definition at line 131 of file TStyle.h.

◆ fPaperSizeX

Float_t TStyle::fPaperSizeX
private

PostScript paper size along X.

Definition at line 100 of file TStyle.h.

◆ fPaperSizeY

Float_t TStyle::fPaperSizeY
private

PostScript paper size along Y.

Definition at line 101 of file TStyle.h.

◆ fScreenFactor

Float_t TStyle::fScreenFactor
private

Multiplication factor for canvas size and position.

Definition at line 102 of file TStyle.h.

◆ fShowEditor

Int_t TStyle::fShowEditor
private

Show pad editor.

Definition at line 46 of file TStyle.h.

◆ fShowEventStatus

Int_t TStyle::fShowEventStatus
private

Show event status panel.

Definition at line 45 of file TStyle.h.

◆ fShowToolBar

Int_t TStyle::fShowToolBar
private

Show toolbar.

Definition at line 47 of file TStyle.h.

◆ fStatBorderSize

Width_t TStyle::fStatBorderSize
private

Border size of Stats PaveLabel.

Definition at line 105 of file TStyle.h.

◆ fStatColor

Color_t TStyle::fStatColor
private

Stat fill area color.

Definition at line 103 of file TStyle.h.

◆ fStatFont

Style_t TStyle::fStatFont
private

Font style of Stats PaveLabel.

Definition at line 106 of file TStyle.h.

◆ fStatFontSize

Float_t TStyle::fStatFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 107 of file TStyle.h.

◆ fStatFormat

TString TStyle::fStatFormat
private

Printing format for stats.

Definition at line 109 of file TStyle.h.

◆ fStatH

Float_t TStyle::fStatH
private

Height of stat box.

Definition at line 113 of file TStyle.h.

◆ fStatStyle

Style_t TStyle::fStatStyle
private

Fill area style of Stats PaveLabel.

Definition at line 108 of file TStyle.h.

◆ fStatTextColor

Color_t TStyle::fStatTextColor
private

Stat text color.

Definition at line 104 of file TStyle.h.

◆ fStatW

Float_t TStyle::fStatW
private

Width of stat box.

Definition at line 112 of file TStyle.h.

◆ fStatX

Float_t TStyle::fStatX
private

X position of top right corner of stat box.

Definition at line 110 of file TStyle.h.

◆ fStatY

Float_t TStyle::fStatY
private

Y position of top right corner of stat box.

Definition at line 111 of file TStyle.h.

◆ fStripDecimals

Bool_t TStyle::fStripDecimals
private

Strip decimals in axis labels.

Definition at line 114 of file TStyle.h.

◆ fTimeOffset

Double_t TStyle::fTimeOffset
private

Time offset to the beginning of an axis.

Definition at line 134 of file TStyle.h.

◆ fTitleAlign

Int_t TStyle::fTitleAlign
private

Title box alignment.

Definition at line 115 of file TStyle.h.

◆ fTitleBorderSize

Width_t TStyle::fTitleBorderSize
private

Border size of Title PavelLabel.

Definition at line 118 of file TStyle.h.

◆ fTitleColor

Color_t TStyle::fTitleColor
private

Title fill area color.

Definition at line 116 of file TStyle.h.

◆ fTitleFont

Style_t TStyle::fTitleFont
private

Font style of Title PaveLabel.

Definition at line 119 of file TStyle.h.

◆ fTitleFontSize

Float_t TStyle::fTitleFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 120 of file TStyle.h.

◆ fTitleH

Float_t TStyle::fTitleH
private

Height of title box.

Definition at line 125 of file TStyle.h.

◆ fTitlePS

TString TStyle::fTitlePS
private

User defined Postscript file title.

Definition at line 129 of file TStyle.h.

◆ fTitleStyle

Style_t TStyle::fTitleStyle
private

Fill area style of title PaveLabel.

Definition at line 121 of file TStyle.h.

◆ fTitleTextColor

Color_t TStyle::fTitleTextColor
private

Title text color.

Definition at line 117 of file TStyle.h.

◆ fTitleW

Float_t TStyle::fTitleW
private

Width of title box.

Definition at line 124 of file TStyle.h.

◆ fTitleX

Float_t TStyle::fTitleX
private

X position of top left corner of title box.

Definition at line 122 of file TStyle.h.

◆ fTitleY

Float_t TStyle::fTitleY
private

Y position of top left corner of title box.

Definition at line 123 of file TStyle.h.

◆ fXaxis

TAttAxis TStyle::fXaxis
private

X axis attributes.

Definition at line 30 of file TStyle.h.

◆ fYaxis

TAttAxis TStyle::fYaxis
private

Y axis attributes.

Definition at line 31 of file TStyle.h.

◆ fZaxis

TAttAxis TStyle::fZaxis
private

Z axis attributes.

Definition at line 32 of file TStyle.h.

Libraries for TStyle:
[legend]

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