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

TStyle objects may be created to define special styles.

By default ROOT creates a default style that can be accessed via the gStyle pointer.

This class includes functions to set some of the following object attributes.

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

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

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

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

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

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
externTStyle * gStyle
Definition TStyle.h:442
virtual void cd()
Change current style.
Definition TStyle.cxx:542

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

gStyle->SetStatX(0.7);
gStyle->SetStatW(0.2);
gStyle->SetLabelOffset(1.2);
gStyle->SetLabelFont(72);

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

gROOT->ForceStyle();

before reading the objects from the file.

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

canvas->UseCurrentStyle();

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

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

Definition at line 29 of file TStyle.h.

Public Types

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

Public Member Functions

 TStyle ()
 Default constructor.
 TStyle (const char *name, const char *title)
 Create a new TStyle.
 TStyle (const TStyle &style)
 Copy constructor.
virtual ~TStyle ()
 Destructor.
void AbstractMethod (const char *method) const
 Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
Int_t AxisChoice (Option_t *axis) const
void Browse (TBrowser *b) override
 Browse the style object.
virtual void cd ()
 Change current style.
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
void Copy (TAttFill &attfill) const
void Copy (TAttLine &attline) const
void Copy (TAttMarker &attmarker) const
void Copy (TAttText &atttext) const
void Copy (TObject &style) const override
 Copy this style.
virtual void Delete (Option_t *option="")
 Delete this object.
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 Function used by the TStyle manager when drawing a canvas showing the current style.
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
virtual void Dump () const
 Dump contents of object on stdout.
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
TAttTextGetAttDate ()
Color_t GetAxisColor (Option_t *axis="X") const
 Return the axis color number in the axis.
Int_t GetAxisMaxDigits () const
 Method returns maximum number of digits permitted for the axis labels above which the notation with 10^N is used.
Float_t GetBarOffset () const
Float_t GetBarWidth () const
Double_t GetCandleBoxRange () const
Int_t GetCandleCircleLineWidth () const
Int_t GetCandleCrossLineWidth () const
Bool_t GetCandleScaled () const
Double_t GetCandleWhiskerRange () const
Int_t GetCanvasBorderMode () const
Width_t GetCanvasBorderSize () const
Color_t GetCanvasColor () const
Int_t GetCanvasDefH () const
Int_t GetCanvasDefW () const
Int_t GetCanvasDefX () const
Int_t GetCanvasDefY () const
Bool_t GetCanvasPreferGL () const
Int_t GetCapLinePS () const
 Returns the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details.
Int_t GetColorModelPS () const
Int_t GetColorPalette (Int_t i) const
 Return color number i in current palette.
Float_t GetDateX () const
Float_t GetDateY () const
Int_t GetDrawBorder () const
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
Float_t GetEndErrorSize () const
Float_t GetErrorX () const
void GetExponentOffset (Float_t &xoff, Float_t &yoff, Option_t *axis="X") const
 Method returns X and Y offset of the axis 10^n notation.
virtual Color_t GetFillColor () const
 Return the fill area color.
virtual Style_t GetFillStyle () const
 Return the fill area style.
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
virtual const char * GetIconName () const
 Returns mime type name of object.
Float_t GetImageScaling () const
Int_t GetJoinLinePS () const
 Returns the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details.
Color_t GetLabelColor (Option_t *axis="X") const
 Return the label color number in the axis.
Style_t GetLabelFont (Option_t *axis="X") const
 Return label font.
Float_t GetLabelOffset (Option_t *axis="X") const
 Return label offset.
Float_t GetLabelSize (Option_t *axis="X") const
 Return label size.
Width_t GetLegendBorderSize () const
Color_t GetLegendFillColor () const
Style_t GetLegendFillStyle () const
Style_t GetLegendFont () const
Double_t GetLegendTextSize () const
Float_t GetLegoInnerR () const
virtual Color_t GetLineColor () const
 Return the line color.
Float_t GetLineScalePS () const
virtual Style_t GetLineStyle () const
 Return the line style.
const char * GetLineStyleString (Int_t i=1) const
 Return line style string (used by PostScript).
virtual Width_t GetLineWidth () const
 Return the line width.
virtual Color_t GetMarkerColor () const
 Return the marker color.
virtual Size_t GetMarkerSize () const
 Return the marker size.
virtual Style_t GetMarkerStyle () const
 Return the marker style.
const char * GetName () const override
 Returns name of object.
Int_t GetNdivisions (Option_t *axis="X") const
 Return number of divisions.
Int_t GetNumberContours () const
Int_t GetNumberOfColors () const
 Return number of colors in the color palette.
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
Int_t GetOptDate () const
Int_t GetOptFile () const
Int_t GetOptFit () const
virtual Option_tGetOption () const
Int_t GetOptLogx () const
Int_t GetOptLogy () const
Int_t GetOptLogz () const
Int_t GetOptStat () const
Int_t GetOptTitle () const
Bool_t GetOrthoCamera () const
Int_t GetPadBorderMode () const
Width_t GetPadBorderSize () const
Float_t GetPadBottomMargin () const
Color_t GetPadColor () const
Bool_t GetPadGridX () const
Bool_t GetPadGridY () const
Float_t GetPadLeftMargin () const
Float_t GetPadRightMargin () const
Int_t GetPadTickX () const
Int_t GetPadTickY () const
Float_t GetPadTopMargin () const
const char * GetPaintTextFormat () const
void GetPaperSize (Float_t &xsize, Float_t &ysize) const
 Set paper size for PostScript output.
Float_t GetScreenFactor () const
Int_t GetShowEditor () const
Int_t GetShowEventStatus () const
Int_t GetShowToolBar () const
Width_t GetStatBorderSize () const
Color_t GetStatColor () const
Style_t GetStatFont () const
Float_t GetStatFontSize () const
const char * GetStatFormat () const
Float_t GetStatH () const
Style_t GetStatStyle () const
Color_t GetStatTextColor () const
Float_t GetStatW () const
Float_t GetStatX () const
Float_t GetStatY () const
Int_t GetStripDecimals () const
virtual Short_t GetTextAlign () const
 Return the text alignment.
virtual Float_t GetTextAngle () const
 Return the text angle.
virtual Color_t GetTextColor () const
 Return the text color.
virtual Font_t GetTextFont () const
 Return the text font.
virtual Float_t GetTextSize () const
 Return the text size.
virtual Float_t GetTextSizePercent (Float_t size)
 Return the text in percent of the pad size.
virtual Float_t GetTextSizePixels (TVirtualPad &pad) const
 Return the text size in pixels for specified pad.
virtual Float_t GetTextSizeRelative (TVirtualPad &pad) const
 Return the text size in relative units.
Float_t GetTickLength (Option_t *axis="X") const
 Return tick length.
Double_t GetTimeOffset () const
const char * GetTitle () const override
 Returns title of object.
Int_t GetTitleAlign () const
Width_t GetTitleBorderSize () const
Color_t GetTitleColor (Option_t *axis="X") const
 Return title color.
Color_t GetTitleFillColor () const
Style_t GetTitleFont (Option_t *axis="X") const
 Return title font.
Float_t GetTitleFontSize () const
Float_t GetTitleH () const
Float_t GetTitleOffset (Option_t *axis="X") const
 Return title offset.
const char * GetTitlePS () const
Float_t GetTitleSize (Option_t *axis="X") const
 Return title size.
Style_t GetTitleStyle () const
Color_t GetTitleTextColor () const
Float_t GetTitleW () const
Float_t GetTitleX () const
Float_t GetTitleXOffset () const
Float_t GetTitleXSize () const
Float_t GetTitleY () const
Float_t GetTitleYOffset () const
Float_t GetTitleYSize () const
virtual UInt_t GetUniqueID () const
 Return the unique object id.
Bool_t GetViolinScaled () const
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
ULong_t Hash () const override
 Return hash value for this object.
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
void InvertBit (UInt_t f)
TClassIsA () const override
Bool_t IsDestructed () const
 IsDestructed.
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Bool_t IsOnHeap () const
Bool_t IsReading () const
Bool_t IsSortable () const override
virtual Bool_t IsTransparent () const
Bool_t IsZombie () const
void ls (Option_t *option="") const override
 List TNamed name and title.
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
virtual void Modify ()
virtual void Modify ()
virtual void Modify ()
virtual void Modify ()
virtual void ModifyOn (TVirtualPad &pad)
virtual void ModifyOn (TVirtualPad &pad)
virtual void ModifyOn (TVirtualPad &pad)
virtual void ModifyOn (TVirtualPad &pad)
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
void operator delete (void *, size_t)
 Operator delete for sized deallocation.
void operator delete (void *ptr)
 Operator delete.
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
void operator delete[] (void *, size_t)
 Operator delete [] for sized deallocation.
void operator delete[] (void *ptr)
 Operator delete [].
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TStyleoperator= (const TStyle &style)
 Assignment operator.
void Paint (Option_t *option="") override
 Copy this style to gStyle.
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
void Print (Option_t *option="") const override
 Print TNamed name and title.
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
virtual void Reset (Option_t *option="")
 Reset.
virtual void ResetAttFill (Option_t *option="")
virtual void ResetAttLine (Option_t *option="")
virtual void ResetAttMarker (Option_t *toption="")
virtual void ResetAttText (Option_t *toption="")
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
void SavePrimitive (std::ostream &out, Option_t *="") override
 Save primitive as a C++ statement(s) on output stream out.
void SaveSource (const char *filename, Option_t *option=nullptr)
 Save the current style in a C++ macro file.
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)
void SetAxisColor (Color_t color=1, Option_t *axis="X")
 Set color to draw the axis line and tick marks.
void SetAxisMaxDigits (Int_t maxd=5)
 Method set maximum number of digits permitted for the axis labels above which the notation with 10^N is used.
void SetBarOffset (Float_t baroff=0.5)
void SetBarWidth (Float_t barwidth=0.5)
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
void SetCandleBoxRange (Double_t bRange=0.5)
 By setting box-range for candle plot, one can force the box of the candle-chart to cover that given fraction of the distribution.
void SetCandleCircleLineWidth (Int_t CircleLineWidth=1)
 Set the line width of the circle marker of a candle plot ([1,5]).
void SetCandleCrossLineWidth (Int_t CrossLineWidth=1)
 Set the line width of the cross marker of a candle plot ([1,5]).
void SetCandleScaled (Bool_t on=kFALSE)
void SetCandleWhiskerRange (Double_t wRange=1.0)
 By setting whisker-range for candle plot, one can force the whiskers to cover the fraction of the distribution.
void SetCanvasBorderMode (Int_t mode=1)
void SetCanvasBorderSize (Width_t size=1)
void SetCanvasColor (Color_t color=19)
void SetCanvasDefH (Int_t h=500)
void SetCanvasDefW (Int_t w=700)
void SetCanvasDefX (Int_t topx=10)
void SetCanvasDefY (Int_t topy=10)
void SetCanvasPreferGL (Bool_t prefer=kTRUE)
void SetCapLinePS (Int_t capline=0)
 Set the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details.
void SetColorModelPS (Int_t c=0)
 Define the color model used by TPostScript and TPDF (RGB or CMYK).
void SetDateX (Float_t x=0.01)
void SetDateY (Float_t y=0.01)
void SetDrawBorder (Int_t drawborder=1)
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
void SetEndErrorSize (Float_t np=2)
 Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors).
void SetErrorX (Float_t errorx=0.5)
void SetExponentOffset (Float_t xoff=0., Float_t yoff=0., Option_t *axis="XY")
 Method set X and Y offset of the axis 10^n notation.
virtual void SetFillAttributes ()
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color.
void SetFillColor (TColorNumber)
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
virtual void SetFillStyle (Style_t fstyle)
 Set the fill area style.
void SetFitFormat (const char *format="5.4g")
void SetFrameBorderMode (Int_t mode=1)
void SetFrameBorderSize (Width_t size=1)
void SetFrameFillColor (Color_t color=1)
void SetFrameFillStyle (Style_t styl=0)
void SetFrameLineColor (Color_t color=1)
void SetFrameLineStyle (Style_t styl=0)
void SetFrameLineWidth (Width_t width=1)
void SetFuncColor (Color_t color=1)
void SetFuncStyle (Style_t style=1)
void SetFuncWidth (Width_t width=4)
void SetGridColor (Color_t color=0)
void SetGridStyle (Style_t style=3)
void SetGridWidth (Width_t width=1)
void SetHatchesLineWidth (Int_t l)
void SetHatchesSpacing (Double_t h)
void SetHeaderPS (const char *header)
 Define a string to be inserted in the Postscript header.
void SetHistFillColor (Color_t color=1)
void SetHistFillStyle (Style_t styl=0)
void SetHistLineColor (Color_t color=1)
void SetHistLineStyle (Style_t styl=0)
void SetHistLineWidth (Width_t width=1)
void SetHistMinimumZero (Bool_t zero=kTRUE)
 If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms is set to 0.
void SetHistTopMargin (Double_t hmax=0.05)
void SetImageScaling (Float_t s)
void SetIsReading (Bool_t reading=kTRUE)
 Sets the fIsReading member to reading (default=kTRUE).
void SetJoinLinePS (Int_t joinline=0)
 Set the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details.
void SetLabelColor (Color_t color=1, Option_t *axis="X")
 Set axis labels color.
void SetLabelFont (Style_t font=62, Option_t *axis="X")
 Set font number used to draw axis labels.
void SetLabelOffset (Float_t offset=0.005, Option_t *axis="X")
 Set offset between axis and axis labels.
void SetLabelSize (Float_t size=0.04, Option_t *axis="X")
 Set size of axis labels.
void SetLegendBorderSize (Width_t size=4)
void SetLegendFillColor (Color_t color=0)
void SetLegendFillStyle (Style_t style=1001)
void SetLegendFont (Style_t font=62)
void SetLegendTextSize (Double_t size=0.)
void SetLegoInnerR (Float_t rad=0.5)
virtual void SetLineAttributes ()
virtual void SetLineColor (Color_t lcolor)
 Set the line color.
void SetLineColor (TColorNumber lcolor)
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
void SetLineScalePS (Float_t scale=3)
virtual void SetLineStyle (Style_t lstyle)
 Set the line style.
void SetLineStyleString (Int_t i, const char *text)
 Set line style string using the PostScript convention.
virtual void SetLineWidth (Width_t lwidth)
 Set the line width.
virtual void SetMarkerAttributes ()
virtual void SetMarkerColor (Color_t mcolor=1)
 Set the marker color.
void SetMarkerColor (TColorNumber lcolor)
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
virtual void SetMarkerSize (Size_t msize=1)
 Set the marker size.
virtual void SetMarkerStyle (Style_t mstyle=1)
 Set the marker style.
virtual void SetName (const char *name)
 Set the name of the TNamed.
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
void SetNdivisions (Int_t n=510, Option_t *axis="X")
 Set the number of divisions to draw an axis.
void SetNumberContours (Int_t number=20)
 Set the default number of contour levels when drawing 2-d plots.
void SetOptDate (Int_t datefl=1)
 If optdate is non null, the current date/time will be printed in the canvas.
void SetOptFile (Int_t file=1)
void SetOptFit (Int_t fit=1)
 The type of information about fit parameters printed in the histogram statistics box can be selected via the parameter mode.
void SetOptLogx (Int_t logx=1)
void SetOptLogy (Int_t logy=1)
void SetOptLogz (Int_t logz=1)
void SetOptStat (Int_t stat=1)
 The type of information printed in the histogram statistics box can be selected via the parameter mode.
void SetOptStat (Option_t *stat)
 The parameter mode can be any combination of kKsSiourRmMen.
void SetOptTitle (Int_t tit=1)
void SetOrthoCamera (Bool_t on=kTRUE)
void SetPadBorderMode (Int_t mode=1)
void SetPadBorderSize (Width_t size=1)
void SetPadBottomMargin (Float_t margin=0.1)
void SetPadColor (Color_t color=19)
void SetPadGridX (Bool_t gridx)
void SetPadGridY (Bool_t gridy)
void SetPadLeftMargin (Float_t margin=0.1)
void SetPadRightMargin (Float_t margin=0.1)
void SetPadTickX (Int_t tickx)
void SetPadTickY (Int_t ticky)
void SetPadTopMargin (Float_t margin=0.1)
void SetPaintTextFormat (const char *format="g")
void SetPalette (Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
 See TColor::SetPalette.
void SetPalette (TString fileName, Float_t alpha=1.)
void SetPaperSize (EPaperSize size)
 Set paper size for PostScript output.
void SetPaperSize (Float_t xsize=20, Float_t ysize=26)
 Set paper size for PostScript output.
void SetScreenFactor (Float_t factor=1)
void SetStatBorderSize (Width_t size=2)
void SetStatColor (Color_t color=19)
void SetStatFont (Style_t font=62)
void SetStatFontSize (Float_t size=0)
void SetStatFormat (const char *format="6.4g")
void SetStatH (Float_t h=0.1)
void SetStatStyle (Style_t style=1001)
void SetStatTextColor (Color_t color=1)
void SetStatW (Float_t w=0.19)
void SetStatX (Float_t x=0)
void SetStatY (Float_t y=0)
void SetStripDecimals (Bool_t strip=kTRUE)
 Set option to strip decimals when drawing axis labels.
virtual void SetTextAlign (Short_t align=11)
 Set the text alignment.
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle.
virtual void SetTextAttributes ()
virtual void SetTextColor (Color_t tcolor=1)
 Set the text color.
void SetTextColor (TColorNumber lcolor)
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
virtual void SetTextFont (Font_t tfont=62)
 Set the text font.
virtual void SetTextSize (Float_t tsize=1)
 Set the text size.
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixel.
void SetTickLength (Float_t length=0.03, Option_t *axis="X")
 Set the tick marks length for an axis.
void SetTimeOffset (Double_t toffset)
 Change the time offset for time plotting.
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
void SetTitleAlign (Int_t a=13)
void SetTitleBorderSize (Width_t size=2)
void SetTitleColor (Color_t color=1, Option_t *axis="X")
void SetTitleFillColor (Color_t color=1)
void SetTitleFont (Style_t font=62, Option_t *axis="X")
void SetTitleFontSize (Float_t size=0)
void SetTitleH (Float_t h=0)
void SetTitleOffset (Float_t offset=1, Option_t *axis="X")
 Specify a parameter offset to control the distance between the axis and the axis title.
void SetTitlePS (const char *pstitle)
 Define a string to be used in the %Title of the Postscript files.
void SetTitleSize (Float_t size=0.02, Option_t *axis="X")
void SetTitleStyle (Style_t style=1001)
void SetTitleTextColor (Color_t color=1)
void SetTitleW (Float_t w=0)
void SetTitleX (Float_t x=0)
void SetTitleXOffset (Float_t offset=1)
void SetTitleXSize (Float_t size=0.02)
void SetTitleY (Float_t y=0.985)
void SetTitleYOffset (Float_t offset=1)
void SetTitleYSize (Float_t size=0.02)
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
void SetViolinScaled (Bool_t on=kTRUE)
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
void Streamer (TBuffer &) override
 Stream an object of class TObject.
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
void ToggleEditor ()
void ToggleEventStatus ()
void ToggleToolBar ()
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.

Static Public Member Functions

static void BuildStyles ()
 Create some standard styles.
static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
static Width_t GetMarkerLineWidth (Style_t style)
static Style_t GetMarkerStyleBase (Style_t style)
static Bool_t GetObjectStat ()
 Get status of object stat flag.
static void SetDtorOnly (void *obj)
 Set destructor only flag.
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.

Protected Types

enum  { kOnlyPrepStep = (1ULL << (3)) }

Protected Member Functions

virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
void MakeZombie ()
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
 Save object name and title into the output stream "out".

Static Protected Member Functions

static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.

Protected Attributes

Color_t fFillColor
 Fill area color.
Style_t fFillStyle
 Fill area style.
Color_t fLineColor
 Line color.
Width_t fLineWidth
 Line width.
Color_t fMarkerColor
 Marker color.
Size_t fMarkerSize
 Marker size.
Style_t fMarkerStyle
 Marker style.
TString fName
Short_t fTextAlign
 Text alignment.
Float_t fTextAngle
 Text angle.
Color_t fTextColor
 Text color.
Font_t fTextFont
 Text font.
Float_t fTextSize
 Text size.
TString fTitle

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.

Private Attributes

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

Static Private Attributes

static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable

#include <TStyle.h>

Inheritance diagram for TStyle:
TNamed TAttLine TAttFill TAttMarker TAttText TObject

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EPaperSize

Enumerator
kA4 
kUSLetter 

Definition at line 155 of file TStyle.h.

◆ EStatusBits

enum TObject::EStatusBits
inherited
Enumerator
kCanDelete 

if object in a list can be deleted

kMustCleanup 

if object destructor must call RecursiveRemove()

kIsReferenced 

if object is referenced by a TRef or TRefArray

kHasUUID 

if object has a TUUID (its fUniqueID=UUIDNumber)

kCannotPick 

if object in a pad cannot be picked

kNoContextMenu 

if object does not want context menu

kInvalidObject 

if object ctor succeeded but object should not be used

Definition at line 70 of file TObject.h.

Constructor & Destructor Documentation

◆ TStyle() [1/3]

TStyle::TStyle ( )

Default constructor.

Definition at line 144 of file TStyle.cxx.

◆ TStyle() [2/3]

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

Create a new TStyle.

The following names are reserved to create special styles:

  • Classic: Similar to Default style set in TStyle::Reset
  • Plain: a black&white oriented style
  • Bold
  • Video
  • Pub
  • Modern: Used when ROOT starts
  • ATLAS: style used by the ATLAS experiment
  • BELLE2: style used by the BELLE II experiment (see the definition of these styles below).

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

Many graphics attributes may be set via the TStyle, see in particular

  • TStyle::SetNdivisions
  • TStyle::SetAxisColor
  • TStyle::SetHeaderPS
  • TStyle::SetTitlePS
  • TStyle::SetLabelColor
  • TStyle::SetLabelFont
  • TStyle::SetLabelOffset
  • TStyle::SetLabelSize
  • TStyle::SetOptDate
  • TStyle::SetLineStyleString
  • TStyle::SetOptFit
  • TStyle::SetOptStat
  • TStyle::SetPaperSize
  • TStyle::SetTickLength
  • TStyle::SetTitleOffset
  • TStyle::SetTitleSize
  • TStyle::SetPalette
  • TStyle::SetTimeOffset
  • TStyle::SetStripDecimals

The current style is pointed by gStyle.

When calling myStyle->cd(), gStyle is set to myStyle.

One can also use gROOT to change the current style, 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 198 of file TStyle.cxx.

◆ TStyle() [3/3]

TStyle::TStyle ( const TStyle & style)

Copy constructor.

Definition at line 488 of file TStyle.cxx.

◆ ~TStyle()

TStyle::~TStyle ( )
virtual

Destructor.

Definition at line 478 of file TStyle.cxx.

Member Function Documentation

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ AxisChoice()

Int_t TStyle::AxisChoice ( Option_t * axis) const

Definition at line 506 of file TStyle.cxx.

◆ Browse()

void TStyle::Browse ( TBrowser * b)
overridevirtual

Browse the style object.

Reimplemented from TObject.

Definition at line 516 of file TStyle.cxx.

◆ BuildStyles()

void TStyle::BuildStyles ( )
static

Create some standard styles.

Definition at line 524 of file TStyle.cxx.

◆ cd()

void TStyle::cd ( )
virtual

Change current style.

Definition at line 542 of file TStyle.cxx.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 438 of file TStyle.h.

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ Clear()

void TNamed::Clear ( Option_t * option = "")
overridevirtualinherited

Set name and title to empty strings ("").

Reimplemented from TObject.

Reimplemented in TPrincipal, TProcessID, TStreamerInfo, TTask, TVirtualFitter, and TVirtualStreamerInfo.

Definition at line 63 of file TNamed.cxx.

◆ Clone()

TObject * TNamed::Clone ( const char * newname = "") const
overridevirtualinherited

Make a clone of an object using the Streamer facility.

If newname is specified, this will be the name of the new object.

Reimplemented from TObject.

Reimplemented in TStreamerInfo, and TTreeIndex.

Definition at line 73 of file TNamed.cxx.

◆ Compare()

Int_t TNamed::Compare ( const TObject * obj) const
overridevirtualinherited

Compare two TNamed objects.

Returns 0 when equal, -1 when this is smaller and +1 when bigger (like strcmp).

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 84 of file TNamed.cxx.

◆ Copy() [1/5]

void TAttFill::Copy ( TAttFill & attfill) const
inherited

◆ Copy() [2/5]

void TAttLine::Copy ( TAttLine & attline) const
inherited

◆ Copy() [3/5]

void TAttMarker::Copy ( TAttMarker & attmarker) const
inherited

◆ Copy() [4/5]

void TAttText::Copy ( TAttText & atttext) const
inherited

◆ Copy() [5/5]

void TStyle::Copy ( TObject & style) const
overridevirtual

Copy this style.

Reimplemented from TNamed.

Definition at line 550 of file TStyle.cxx.

◆ DeclFileName()

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

Definition at line 438 of file TStyle.h.

◆ Delete()

void TObject::Delete ( Option_t * option = "")
virtualinherited

◆ DistancetoLine()

Int_t TAttLine::DistancetoLine ( Int_t px,
Int_t py,
Double_t xp1,
Double_t yp1,
Double_t xp2,
Double_t yp2 )
inherited

◆ DistancetoPrimitive()

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

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

Reimplemented from TObject.

Definition at line 686 of file TStyle.cxx.

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TThread, and TTreeViewer.

Definition at line 1059 of file TObject.cxx.

◆ Draw()

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object belongs.

If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 308 of file TObject.cxx.

◆ DrawClone()

TObject * TObject::DrawClone ( Option_t * option = "") const
virtualinherited

Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).

If pad was not selected - gPad will be used.

Note
For histograms, use the more specialised TH1::DrawCopy().

Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 319 of file TObject.cxx.

◆ Dump()

void TObject::Dump ( ) const
virtualinherited

Dump contents of object on stdout.

Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed

The following output is the Dump of a TArrow object:

fAngle 0 Arrow opening angle (degrees)
fArrowSize 0.2 Arrow Size
fOption.*fData
fX1 0.1 X of 1st point
fY1 0.15 Y of 1st point
fX2 0.67 X of 2nd point
fY2 0.83 Y of 2nd point
fUniqueID 0 object unique identifier
fBits 50331648 bit field status word
fFillColor 19 fill area color
fFillStyle 1001 fill area style
#define X(type, name)
Style_t fFillStyle
Fill area style.
Definition TAttFill.h:25
Color_t fFillColor
Fill area color.
Definition TAttFill.h:24
Width_t fLineWidth
Line width.
Definition TAttLine.h:26
Color_t fLineColor
Line color.
Definition TAttLine.h:24
UInt_t fUniqueID
object unique identifier
Definition TObject.h:46
UInt_t fBits
bit field status word
Definition TObject.h:47
TString fLineStyle[30]
String describing line style i (for postScript).
Definition TStyle.h:130
TLine * line

Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.

Definition at line 367 of file TObject.cxx.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28
const Int_t n
Definition legend1.C:16

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FillBuffer()

void TNamed::FillBuffer ( char *& buffer)
virtualinherited

Encode TNamed into output buffer.

Reimplemented in TDirectoryFile, TFile, TKey, TKeySQL, TKeyXML, TSQLFile, and TXMLFile.

Definition at line 103 of file TNamed.cxx.

◆ FindObject() [1/2]

TObject * TObject::FindObject ( const char * name) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object by name inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 425 of file TObject.cxx.

◆ FindObject() [2/2]

TObject * TObject::FindObject ( const TObject * obj) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 435 of file TObject.cxx.

◆ GetAttDate()

TAttText * TStyle::GetAttDate ( )
inline

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

◆ GetAxisMaxDigits()

Int_t TStyle::GetAxisMaxDigits ( ) const

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

See SetAxisMaxDigits for more details

Definition at line 1158 of file TStyle.cxx.

◆ GetBarOffset()

Float_t TStyle::GetBarOffset ( ) const
inline

Definition at line 184 of file TStyle.h.

◆ GetBarWidth()

Float_t TStyle::GetBarWidth ( ) const
inline

Definition at line 185 of file TStyle.h.

◆ GetCandleBoxRange()

Double_t TStyle::GetCandleBoxRange ( ) const
inline

Definition at line 293 of file TStyle.h.

◆ GetCandleCircleLineWidth()

Int_t TStyle::GetCandleCircleLineWidth ( ) const
inline

Definition at line 296 of file TStyle.h.

◆ GetCandleCrossLineWidth()

Int_t TStyle::GetCandleCrossLineWidth ( ) const
inline

Definition at line 297 of file TStyle.h.

◆ GetCandleScaled()

Bool_t TStyle::GetCandleScaled ( ) const
inline

Definition at line 294 of file TStyle.h.

◆ GetCandleWhiskerRange()

Double_t TStyle::GetCandleWhiskerRange ( ) const
inline

Definition at line 292 of file TStyle.h.

◆ GetCanvasBorderMode()

Int_t TStyle::GetCanvasBorderMode ( ) const
inline

Definition at line 192 of file TStyle.h.

◆ GetCanvasBorderSize()

Width_t TStyle::GetCanvasBorderSize ( ) const
inline

Definition at line 191 of file TStyle.h.

◆ GetCanvasColor()

Color_t TStyle::GetCanvasColor ( ) const
inline

Definition at line 190 of file TStyle.h.

◆ GetCanvasDefH()

Int_t TStyle::GetCanvasDefH ( ) const
inline

Definition at line 193 of file TStyle.h.

◆ GetCanvasDefW()

Int_t TStyle::GetCanvasDefW ( ) const
inline

Definition at line 194 of file TStyle.h.

◆ GetCanvasDefX()

Int_t TStyle::GetCanvasDefX ( ) const
inline

Definition at line 195 of file TStyle.h.

◆ GetCanvasDefY()

Int_t TStyle::GetCanvasDefY ( ) const
inline

Definition at line 196 of file TStyle.h.

◆ GetCanvasPreferGL()

Bool_t TStyle::GetCanvasPreferGL ( ) const
inline

Definition at line 189 of file TStyle.h.

◆ GetCapLinePS()

Int_t TStyle::GetCapLinePS ( ) const
inline

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

Definition at line 290 of file TStyle.h.

◆ GetColorModelPS()

Int_t TStyle::GetColorModelPS ( ) const
inline

Definition at line 198 of file TStyle.h.

◆ GetColorPalette()

Int_t TStyle::GetColorPalette ( Int_t i) const

Return color number i in current palette.

Definition at line 1102 of file TStyle.cxx.

◆ GetDateX()

Float_t TStyle::GetDateX ( ) const
inline

Definition at line 199 of file TStyle.h.

◆ GetDateY()

Float_t TStyle::GetDateY ( ) const
inline

Definition at line 200 of file TStyle.h.

◆ GetDrawBorder()

Int_t TStyle::GetDrawBorder ( ) const
inline

Definition at line 186 of file TStyle.h.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetEndErrorSize()

Float_t TStyle::GetEndErrorSize ( ) const
inline

Definition at line 187 of file TStyle.h.

◆ GetErrorX()

Float_t TStyle::GetErrorX ( ) const
inline

Definition at line 188 of file TStyle.h.

◆ GetExponentOffset()

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

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

It applies on axis belonging to an histogram (TAxis)

Definition at line 1856 of file TStyle.cxx.

◆ GetFillColor()

virtual Color_t TAttFill::GetFillColor ( ) const
inlinevirtualinherited

Return the fill area color.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 32 of file TAttFill.h.

◆ GetFillStyle()

virtual Style_t TAttFill::GetFillStyle ( ) const
inlinevirtualinherited

Return the fill area style.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 33 of file TAttFill.h.

◆ GetFitFormat()

const char * TStyle::GetFitFormat ( ) const
inline

Definition at line 201 of file TStyle.h.

◆ GetFrameBorderMode()

Int_t TStyle::GetFrameBorderMode ( ) const
inline

Definition at line 233 of file TStyle.h.

◆ GetFrameBorderSize()

Width_t TStyle::GetFrameBorderSize ( ) const
inline

Definition at line 232 of file TStyle.h.

◆ GetFrameFillColor()

Color_t TStyle::GetFrameFillColor ( ) const
inline

Definition at line 227 of file TStyle.h.

◆ GetFrameFillStyle()

Style_t TStyle::GetFrameFillStyle ( ) const
inline

Definition at line 229 of file TStyle.h.

◆ GetFrameLineColor()

Color_t TStyle::GetFrameLineColor ( ) const
inline

Definition at line 228 of file TStyle.h.

◆ GetFrameLineStyle()

Style_t TStyle::GetFrameLineStyle ( ) const
inline

Definition at line 230 of file TStyle.h.

◆ GetFrameLineWidth()

Width_t TStyle::GetFrameLineWidth ( ) const
inline

Definition at line 231 of file TStyle.h.

◆ GetFuncColor()

Color_t TStyle::GetFuncColor ( ) const
inline

Definition at line 221 of file TStyle.h.

◆ GetFuncStyle()

Style_t TStyle::GetFuncStyle ( ) const
inline

Definition at line 222 of file TStyle.h.

◆ GetFuncWidth()

Width_t TStyle::GetFuncWidth ( ) const
inline

Definition at line 223 of file TStyle.h.

◆ GetGridColor()

Color_t TStyle::GetGridColor ( ) const
inline

Definition at line 224 of file TStyle.h.

◆ GetGridStyle()

Style_t TStyle::GetGridStyle ( ) const
inline

Definition at line 225 of file TStyle.h.

◆ GetGridWidth()

Width_t TStyle::GetGridWidth ( ) const
inline

Definition at line 226 of file TStyle.h.

◆ GetHatchesLineWidth()

Int_t TStyle::GetHatchesLineWidth ( ) const
inline

Definition at line 202 of file TStyle.h.

◆ GetHatchesSpacing()

Double_t TStyle::GetHatchesSpacing ( ) const
inline

Definition at line 203 of file TStyle.h.

◆ GetHeaderPS()

const char * TStyle::GetHeaderPS ( ) const
inline

Definition at line 286 of file TStyle.h.

◆ GetHistFillColor()

Color_t TStyle::GetHistFillColor ( ) const
inline

Definition at line 234 of file TStyle.h.

◆ GetHistFillStyle()

Style_t TStyle::GetHistFillStyle ( ) const
inline

Definition at line 236 of file TStyle.h.

◆ GetHistLineColor()

Color_t TStyle::GetHistLineColor ( ) const
inline

Definition at line 235 of file TStyle.h.

◆ GetHistLineStyle()

Style_t TStyle::GetHistLineStyle ( ) const
inline

Definition at line 237 of file TStyle.h.

◆ GetHistLineWidth()

Width_t TStyle::GetHistLineWidth ( ) const
inline

Definition at line 238 of file TStyle.h.

◆ GetHistMinimumZero()

Bool_t TStyle::GetHistMinimumZero ( ) const
inline

Definition at line 239 of file TStyle.h.

◆ GetHistTopMargin()

Double_t TStyle::GetHistTopMargin ( ) const
inline

Definition at line 240 of file TStyle.h.

◆ GetIconName()

const char * TObject::GetIconName ( ) const
virtualinherited

Returns mime type name of object.

Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.

Definition at line 472 of file TObject.cxx.

◆ GetImageScaling()

Float_t TStyle::GetImageScaling ( ) const
inline

Definition at line 241 of file TStyle.h.

◆ GetJoinLinePS()

Int_t TStyle::GetJoinLinePS ( ) const
inline

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

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

◆ GetLabelFont()

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

Return label font.

Definition at line 1122 of file TStyle.cxx.

◆ GetLabelOffset()

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

Return label offset.

Definition at line 1134 of file TStyle.cxx.

◆ GetLabelSize()

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

Return label size.

Definition at line 1146 of file TStyle.cxx.

◆ GetLegendBorderSize()

Width_t TStyle::GetLegendBorderSize ( ) const
inline

Definition at line 204 of file TStyle.h.

◆ GetLegendFillColor()

Color_t TStyle::GetLegendFillColor ( ) const
inline

Definition at line 205 of file TStyle.h.

◆ GetLegendFillStyle()

Style_t TStyle::GetLegendFillStyle ( ) const
inline

Definition at line 206 of file TStyle.h.

◆ GetLegendFont()

Style_t TStyle::GetLegendFont ( ) const
inline

Definition at line 207 of file TStyle.h.

◆ GetLegendTextSize()

Double_t TStyle::GetLegendTextSize ( ) const
inline

Definition at line 208 of file TStyle.h.

◆ GetLegoInnerR()

Float_t TStyle::GetLegoInnerR ( ) const
inline

Definition at line 242 of file TStyle.h.

◆ GetLineColor()

virtual Color_t TAttLine::GetLineColor ( ) const
inlinevirtualinherited

Return the line color.

Reimplemented in TGraphMultiErrors, and TGWin32VirtualXProxy.

Definition at line 36 of file TAttLine.h.

◆ GetLineScalePS()

Float_t TStyle::GetLineScalePS ( ) const
inline

Definition at line 291 of file TStyle.h.

◆ GetLineStyle()

virtual Style_t TAttLine::GetLineStyle ( ) const
inlinevirtualinherited

Return the line style.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 37 of file TAttLine.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 1167 of file TStyle.cxx.

◆ GetLineWidth()

virtual Width_t TAttLine::GetLineWidth ( ) const
inlinevirtualinherited

Return the line width.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 38 of file TAttLine.h.

◆ GetMarkerColor()

virtual Color_t TAttMarker::GetMarkerColor ( ) const
inlinevirtualinherited

Return the marker color.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 33 of file TAttMarker.h.

◆ GetMarkerLineWidth()

Width_t TAttMarker::GetMarkerLineWidth ( Style_t style)
staticinherited

◆ GetMarkerSize()

virtual Size_t TAttMarker::GetMarkerSize ( ) const
inlinevirtualinherited

Return the marker size.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 35 of file TAttMarker.h.

◆ GetMarkerStyle()

virtual Style_t TAttMarker::GetMarkerStyle ( ) const
inlinevirtualinherited

Return the marker style.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 34 of file TAttMarker.h.

◆ GetMarkerStyleBase()

Style_t TAttMarker::GetMarkerStyleBase ( Style_t style)
staticinherited

◆ GetName()

const char * TNamed::GetName ( ) const
inlineoverridevirtualinherited

Returns name of object.

This default method returns the class name. Classes that give objects a name should override this method.

Reimplemented from TObject.

Definition at line 49 of file TNamed.h.

◆ GetNdivisions()

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

Return number of divisions.

Definition at line 1078 of file TStyle.cxx.

◆ GetNumberContours()

Int_t TStyle::GetNumberContours ( ) const
inline

Definition at line 243 of file TStyle.h.

◆ GetNumberOfColors()

Int_t TStyle::GetNumberOfColors ( ) const

Return number of colors in the color palette.

Definition at line 1176 of file TStyle.cxx.

◆ GetObjectInfo()

char * TObject::GetObjectInfo ( Int_t px,
Int_t py ) const
virtualinherited

Returns string containing info about the object at position (px,py).

This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).

Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.

Definition at line 491 of file TObject.cxx.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ GetOptDate()

Int_t TStyle::GetOptDate ( ) const
inline

Definition at line 244 of file TStyle.h.

◆ GetOptFile()

Int_t TStyle::GetOptFile ( ) const
inline

Definition at line 245 of file TStyle.h.

◆ GetOptFit()

Int_t TStyle::GetOptFit ( ) const
inline

Definition at line 246 of file TStyle.h.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ GetOptLogx()

Int_t TStyle::GetOptLogx ( ) const
inline

Definition at line 249 of file TStyle.h.

◆ GetOptLogy()

Int_t TStyle::GetOptLogy ( ) const
inline

Definition at line 250 of file TStyle.h.

◆ GetOptLogz()

Int_t TStyle::GetOptLogz ( ) const
inline

Definition at line 251 of file TStyle.h.

◆ GetOptStat()

Int_t TStyle::GetOptStat ( ) const
inline

Definition at line 247 of file TStyle.h.

◆ GetOptTitle()

Int_t TStyle::GetOptTitle ( ) const
inline

Definition at line 248 of file TStyle.h.

◆ GetOrthoCamera()

Bool_t TStyle::GetOrthoCamera ( ) const
inline

Definition at line 298 of file TStyle.h.

◆ GetPadBorderMode()

Int_t TStyle::GetPadBorderMode ( ) const
inline

Definition at line 212 of file TStyle.h.

◆ GetPadBorderSize()

Width_t TStyle::GetPadBorderSize ( ) const
inline

Definition at line 211 of file TStyle.h.

◆ GetPadBottomMargin()

Float_t TStyle::GetPadBottomMargin ( ) const
inline

Definition at line 213 of file TStyle.h.

◆ GetPadColor()

Color_t TStyle::GetPadColor ( ) const
inline

Definition at line 210 of file TStyle.h.

◆ GetPadGridX()

Bool_t TStyle::GetPadGridX ( ) const
inline

Definition at line 217 of file TStyle.h.

◆ GetPadGridY()

Bool_t TStyle::GetPadGridY ( ) const
inline

Definition at line 218 of file TStyle.h.

◆ GetPadLeftMargin()

Float_t TStyle::GetPadLeftMargin ( ) const
inline

Definition at line 215 of file TStyle.h.

◆ GetPadRightMargin()

Float_t TStyle::GetPadRightMargin ( ) const
inline

Definition at line 216 of file TStyle.h.

◆ GetPadTickX()

Int_t TStyle::GetPadTickX ( ) const
inline

Definition at line 219 of file TStyle.h.

◆ GetPadTickY()

Int_t TStyle::GetPadTickY ( ) const
inline

Definition at line 220 of file TStyle.h.

◆ GetPadTopMargin()

Float_t TStyle::GetPadTopMargin ( ) const
inline

Definition at line 214 of file TStyle.h.

◆ GetPaintTextFormat()

const char * TStyle::GetPaintTextFormat ( ) const
inline

Definition at line 252 of file TStyle.h.

◆ GetPaperSize()

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

Set paper size for PostScript output.

Definition at line 1184 of file TStyle.cxx.

◆ GetScreenFactor()

Float_t TStyle::GetScreenFactor ( ) const
inline

Definition at line 258 of file TStyle.h.

◆ GetShowEditor()

Int_t TStyle::GetShowEditor ( ) const
inline

Definition at line 255 of file TStyle.h.

◆ GetShowEventStatus()

Int_t TStyle::GetShowEventStatus ( ) const
inline

Definition at line 254 of file TStyle.h.

◆ GetShowToolBar()

Int_t TStyle::GetShowToolBar ( ) const
inline

Definition at line 256 of file TStyle.h.

◆ GetStatBorderSize()

Width_t TStyle::GetStatBorderSize ( ) const
inline

Definition at line 261 of file TStyle.h.

◆ GetStatColor()

Color_t TStyle::GetStatColor ( ) const
inline

Definition at line 259 of file TStyle.h.

◆ GetStatFont()

Style_t TStyle::GetStatFont ( ) const
inline

Definition at line 262 of file TStyle.h.

◆ GetStatFontSize()

Float_t TStyle::GetStatFontSize ( ) const
inline

Definition at line 263 of file TStyle.h.

◆ GetStatFormat()

const char * TStyle::GetStatFormat ( ) const
inline

Definition at line 265 of file TStyle.h.

◆ GetStatH()

Float_t TStyle::GetStatH ( ) const
inline

Definition at line 269 of file TStyle.h.

◆ GetStatStyle()

Style_t TStyle::GetStatStyle ( ) const
inline

Definition at line 264 of file TStyle.h.

◆ GetStatTextColor()

Color_t TStyle::GetStatTextColor ( ) const
inline

Definition at line 260 of file TStyle.h.

◆ GetStatW()

Float_t TStyle::GetStatW ( ) const
inline

Definition at line 268 of file TStyle.h.

◆ GetStatX()

Float_t TStyle::GetStatX ( ) const
inline

Definition at line 266 of file TStyle.h.

◆ GetStatY()

Float_t TStyle::GetStatY ( ) const
inline

Definition at line 267 of file TStyle.h.

◆ GetStripDecimals()

Int_t TStyle::GetStripDecimals ( ) const
inline

Definition at line 270 of file TStyle.h.

◆ GetTextAlign()

virtual Short_t TAttText::GetTextAlign ( ) const
inlinevirtualinherited

Return the text alignment.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 35 of file TAttText.h.

◆ GetTextAngle()

virtual Float_t TAttText::GetTextAngle ( ) const
inlinevirtualinherited

Return the text angle.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 36 of file TAttText.h.

◆ GetTextColor()

virtual Color_t TAttText::GetTextColor ( ) const
inlinevirtualinherited

Return the text color.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 37 of file TAttText.h.

◆ GetTextFont()

virtual Font_t TAttText::GetTextFont ( ) const
inlinevirtualinherited

Return the text font.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 38 of file TAttText.h.

◆ GetTextSize()

virtual Float_t TAttText::GetTextSize ( ) const
inlinevirtualinherited

Return the text size.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 39 of file TAttText.h.

◆ GetTextSizePercent()

virtual Float_t TAttText::GetTextSizePercent ( Float_t size)
virtualinherited

Return the text in percent of the pad size.

◆ GetTextSizePixels()

virtual Float_t TAttText::GetTextSizePixels ( TVirtualPad & pad) const
virtualinherited

Return the text size in pixels for specified pad.

◆ GetTextSizeRelative()

virtual Float_t TAttText::GetTextSizeRelative ( TVirtualPad & pad) const
virtualinherited

Return the text size in relative units.

◆ GetTickLength()

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

Return tick length.

Definition at line 1193 of file TStyle.cxx.

◆ GetTimeOffset()

Double_t TStyle::GetTimeOffset ( ) const
inline

Definition at line 271 of file TStyle.h.

◆ GetTitle()

const char * TNamed::GetTitle ( ) const
inlineoverridevirtualinherited

Returns title of object.

This default method returns the class title (i.e. description). Classes that give objects a title should override this method.

Reimplemented from TObject.

Definition at line 50 of file TNamed.h.

◆ GetTitleAlign()

Int_t TStyle::GetTitleAlign ( ) const
inline

Definition at line 272 of file TStyle.h.

◆ GetTitleBorderSize()

Width_t TStyle::GetTitleBorderSize ( ) const
inline

Definition at line 277 of file TStyle.h.

◆ GetTitleColor()

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

Return title color.

Definition at line 1205 of file TStyle.cxx.

◆ GetTitleFillColor()

Color_t TStyle::GetTitleFillColor ( ) const
inline

Definition at line 273 of file TStyle.h.

◆ GetTitleFont()

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

Return title font.

Definition at line 1217 of file TStyle.cxx.

◆ GetTitleFontSize()

Float_t TStyle::GetTitleFontSize ( ) const
inline

Definition at line 276 of file TStyle.h.

◆ GetTitleH()

Float_t TStyle::GetTitleH ( ) const
inline

Definition at line 285 of file TStyle.h.

◆ GetTitleOffset()

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

Return title offset.

Definition at line 1229 of file TStyle.cxx.

◆ GetTitlePS()

const char * TStyle::GetTitlePS ( ) const
inline

Definition at line 287 of file TStyle.h.

◆ GetTitleSize()

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

Return title size.

Definition at line 1241 of file TStyle.cxx.

◆ GetTitleStyle()

Style_t TStyle::GetTitleStyle ( ) const
inline

Definition at line 275 of file TStyle.h.

◆ GetTitleTextColor()

Color_t TStyle::GetTitleTextColor ( ) const
inline

Definition at line 274 of file TStyle.h.

◆ GetTitleW()

Float_t TStyle::GetTitleW ( ) const
inline

Definition at line 284 of file TStyle.h.

◆ GetTitleX()

Float_t TStyle::GetTitleX ( ) const
inline

Definition at line 282 of file TStyle.h.

◆ GetTitleXOffset()

Float_t TStyle::GetTitleXOffset ( ) const
inline

Definition at line 278 of file TStyle.h.

◆ GetTitleXSize()

Float_t TStyle::GetTitleXSize ( ) const
inline

Definition at line 279 of file TStyle.h.

◆ GetTitleY()

Float_t TStyle::GetTitleY ( ) const
inline

Definition at line 283 of file TStyle.h.

◆ GetTitleYOffset()

Float_t TStyle::GetTitleYOffset ( ) const
inline

Definition at line 280 of file TStyle.h.

◆ GetTitleYSize()

Float_t TStyle::GetTitleYSize ( ) const
inline

Definition at line 281 of file TStyle.h.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ GetViolinScaled()

Bool_t TStyle::GetViolinScaled ( ) const
inline

Definition at line 295 of file TStyle.h.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ Hash()

ULong_t TNamed::Hash ( ) const
inlineoverridevirtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like

Error in <ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove>: The class SomeName overrides
TObject::Hash but does not call TROOT::RecursiveRemove in its destructor.
ULong_t Hash() const override
Return hash value for this object.
Definition TNamed.h:51
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition TObject.cxx:1098
TObject()
TObject constructor.
Definition TObject.h:259
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented from TObject.

Definition at line 51 of file TNamed.h.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

Dump contents of this object in a graphics canvas.

Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.

Definition at line 570 of file TObject.cxx.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ IsA()

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

Reimplemented from TNamed.

Definition at line 438 of file TStyle.h.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsEqual()

Bool_t TObject::IsEqual ( const TObject * obj) const
virtualinherited

Default equal comparison (objects are equal if they have the same address in memory).

More complicated classes might want to override this function.

Reimplemented in TGObject, TObjString, TPair, and TQCommand.

Definition at line 589 of file TObject.cxx.

◆ IsFolder()

◆ IsOnHeap()

Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ IsReading()

Bool_t TStyle::IsReading ( ) const
inline

Definition at line 300 of file TStyle.h.

◆ IsSortable()

Bool_t TNamed::IsSortable ( ) const
inlineoverridevirtualinherited

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 52 of file TNamed.h.

◆ IsTransparent()

Bool_t TAttFill::IsTransparent ( ) const
inlinevirtualinherited

Reimplemented in TGWin32VirtualXProxy.

Definition at line 49 of file TAttFill.h.

◆ IsZombie()

Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ ls()

void TNamed::ls ( Option_t * option = "") const
overridevirtualinherited

List TNamed name and title.

Reimplemented from TObject.

Reimplemented in ROOT::Experimental::XRooFit::xRooBrowser, TNode, TROOT, TStreamerBase, TStreamerElement, TStreamerInfo, TStreamerSTL, TTask, TText, and TVirtualStreamerInfo.

Definition at line 112 of file TNamed.cxx.

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

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).

Definition at line 1160 of file TObject.cxx.

◆ Modify() [1/4]

virtual void TAttFill::Modify ( )
virtualinherited

◆ Modify() [2/4]

virtual void TAttLine::Modify ( )
virtualinherited

◆ Modify() [3/4]

virtual void TAttMarker::Modify ( )
virtualinherited

◆ Modify() [4/4]

virtual void TAttText::Modify ( )
virtualinherited

◆ ModifyOn() [1/4]

virtual void TAttFill::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [2/4]

virtual void TAttLine::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [3/4]

virtual void TAttMarker::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [4/4]

virtual void TAttText::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ Notify()

Bool_t TObject::Notify ( )
virtualinherited

This method must be overridden to handle object notification (the base implementation is no-op).

Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.

For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.

Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.

Definition at line 618 of file TObject.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ operator=()

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

Assignment operator.

Definition at line 496 of file TStyle.cxx.

◆ Paint()

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

Copy this style to gStyle.

Reimplemented from TObject.

Definition at line 1253 of file TStyle.cxx.

◆ Pop()

void TObject::Pop ( )
virtualinherited

Pop on object drawn in a pad to the top of the display list.

I.e. it will be drawn last and on top of all other primitives.

Reimplemented in TFrame, TPad, and TVirtualPad.

Definition at line 640 of file TObject.cxx.

◆ Print()

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.

Definition at line 673 of file TObject.cxx.

◆ RecursiveRemove()

◆ Reset()

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

Reset.

Definition at line 695 of file TStyle.cxx.

◆ ResetAttFill()

virtual void TAttFill::ResetAttFill ( Option_t * option = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttLine()

virtual void TAttLine::ResetAttLine ( Option_t * option = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttMarker()

virtual void TAttMarker::ResetAttMarker ( Option_t * toption = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttText()

virtual void TAttText::ResetAttText ( Option_t * toption = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ SaveAs()

void TObject::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
virtualinherited

Save this object in the file specified by filename.

  • if "filename" contains ".root" the object is saved in filename as root binary file.
  • if "filename" contains ".xml" the object is saved in filename as a xml ascii file.
  • if "filename" contains ".cc" the object is saved in filename as C code independent from ROOT. The code is generated via SavePrimitive(). Specific code should be implemented in each object to handle this option. Like in TF1::SavePrimitive().
  • otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.

    The function is available via the object context menu.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.

Definition at line 708 of file TObject.cxx.

◆ SaveFillAttributes()

virtual void TAttFill::SaveFillAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1001 )
virtualinherited

◆ SaveLineAttributes()

virtual void TAttLine::SaveLineAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1,
Int_t widdef = 1 )
virtualinherited

◆ SaveMarkerAttributes()

virtual void TAttMarker::SaveMarkerAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1,
Int_t sizdef = 1 )
virtualinherited

◆ SavePrimitive()

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

Save primitive as a C++ statement(s) on output stream out.

Reimplemented from TObject.

Definition at line 2042 of file TStyle.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveNameTitle()

void TNamed::SavePrimitiveNameTitle ( std::ostream & out,
const char * variable_name )
protectedinherited

Save object name and title into the output stream "out".

Definition at line 135 of file TNamed.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ SaveSource()

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

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

Definition at line 1997 of file TStyle.cxx.

◆ SaveTextAttributes()

virtual void TAttText::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 )
virtualinherited

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

◆ SetAxisMaxDigits()

void TStyle::SetAxisMaxDigits ( Int_t maxd = 5)

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

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

Definition at line 1881 of file TStyle.cxx.

◆ SetBarOffset()

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

Definition at line 339 of file TStyle.h.

◆ SetBarWidth()

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

Definition at line 340 of file TStyle.h.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ SetCandleBoxRange()

void TStyle::SetCandleBoxRange ( Double_t bRange = 0.5)

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

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

Definition at line 1957 of file TStyle.cxx.

◆ SetCandleCircleLineWidth()

void TStyle::SetCandleCircleLineWidth ( Int_t CircleLineWidth = 1)

Set the line width of the circle marker of a candle plot ([1,5]).

Definition at line 1970 of file TStyle.cxx.

◆ SetCandleCrossLineWidth()

void TStyle::SetCandleCrossLineWidth ( Int_t CrossLineWidth = 1)

Set the line width of the cross marker of a candle plot ([1,5]).

Definition at line 1983 of file TStyle.cxx.

◆ SetCandleScaled()

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

Definition at line 429 of file TStyle.h.

◆ SetCandleWhiskerRange()

void TStyle::SetCandleWhiskerRange ( Double_t wRange = 1.0)

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

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

Definition at line 1940 of file TStyle.cxx.

◆ SetCanvasBorderMode()

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

Definition at line 349 of file TStyle.h.

◆ SetCanvasBorderSize()

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

Definition at line 348 of file TStyle.h.

◆ SetCanvasColor()

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

Definition at line 347 of file TStyle.h.

◆ SetCanvasDefH()

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

Definition at line 350 of file TStyle.h.

◆ SetCanvasDefW()

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

Definition at line 351 of file TStyle.h.

◆ SetCanvasDefX()

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

Definition at line 352 of file TStyle.h.

◆ SetCanvasDefY()

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

Definition at line 353 of file TStyle.h.

◆ SetCanvasPreferGL()

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

Definition at line 345 of file TStyle.h.

◆ SetCapLinePS()

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

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

Definition at line 311 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
Double 8 bytes.
Definition RtypesCore.h:73
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
Definition TMathBase.h:197

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

  • c = 0 means TPostScript and TPDF will use RGB color model (default)
  • c = 1 means TPostScript and TPDF will use CMYK color model

Definition at line 1276 of file TStyle.cxx.

◆ SetDateX()

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

Definition at line 341 of file TStyle.h.

◆ SetDateY()

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

Definition at line 342 of file TStyle.h.

◆ SetDrawBorder()

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

Definition at line 346 of file TStyle.h.

◆ SetDrawOption()

void TObject::SetDrawOption ( Option_t * option = "")
virtualinherited

Set drawing option for object.

This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().

Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.

Definition at line 871 of file TObject.cxx.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

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

◆ SetErrorX()

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

Definition at line 344 of file TStyle.h.

◆ SetExponentOffset()

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

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

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

Definition at line 1837 of file TStyle.cxx.

◆ SetFillAttributes()

virtual void TAttFill::SetFillAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetFillColor() [1/2]

virtual void TAttFill::SetFillColor ( Color_t fcolor)
inlinevirtualinherited

Set the fill area color.

Reimplemented in TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSpider, TSVG, TTeXDump, and TVirtualX.

Definition at line 40 of file TAttFill.h.

◆ SetFillColor() [2/2]

void TAttFill::SetFillColor ( TColorNumber )
inherited

◆ SetFillColorAlpha()

virtual void TAttFill::SetFillColorAlpha ( Color_t fcolor,
Float_t falpha )
virtualinherited

Reimplemented in TGraphMultiErrors.

◆ SetFillStyle()

virtual void TAttFill::SetFillStyle ( Style_t fstyle)
inlinevirtualinherited

Set the fill area style.

Reimplemented in TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TPad, TSpider, and TVirtualX.

Definition at line 42 of file TAttFill.h.

◆ SetFitFormat()

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

Definition at line 305 of file TStyle.h.

◆ SetFrameBorderMode()

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

Definition at line 382 of file TStyle.h.

◆ SetFrameBorderSize()

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

Definition at line 381 of file TStyle.h.

◆ SetFrameFillColor()

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

Definition at line 376 of file TStyle.h.

◆ SetFrameFillStyle()

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

Definition at line 378 of file TStyle.h.

◆ SetFrameLineColor()

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

Definition at line 377 of file TStyle.h.

◆ SetFrameLineStyle()

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

Definition at line 379 of file TStyle.h.

◆ SetFrameLineWidth()

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

Definition at line 380 of file TStyle.h.

◆ SetFuncColor()

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

Definition at line 371 of file TStyle.h.

◆ SetFuncStyle()

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

Definition at line 370 of file TStyle.h.

◆ SetFuncWidth()

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

Definition at line 372 of file TStyle.h.

◆ SetGridColor()

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

Definition at line 374 of file TStyle.h.

◆ SetGridStyle()

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

Definition at line 373 of file TStyle.h.

◆ SetGridWidth()

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

Definition at line 375 of file TStyle.h.

◆ SetHatchesLineWidth()

void TStyle::SetHatchesLineWidth ( Int_t l)
inline

Definition at line 307 of file TStyle.h.

◆ SetHatchesSpacing()

void TStyle::SetHatchesSpacing ( Double_t h)
inline

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

◆ SetHistFillColor()

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

Definition at line 383 of file TStyle.h.

◆ SetHistFillStyle()

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

Definition at line 385 of file TStyle.h.

◆ SetHistLineColor()

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

Definition at line 384 of file TStyle.h.

◆ SetHistLineStyle()

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

Definition at line 386 of file TStyle.h.

◆ SetHistLineWidth()

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

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

◆ SetHistTopMargin()

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

Definition at line 389 of file TStyle.h.

◆ SetImageScaling()

void TStyle::SetImageScaling ( Float_t s)
inline

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

◆ SetJoinLinePS()

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

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

Definition at line 310 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 1394 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 1414 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 1430 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 1445 of file TStyle.cxx.

◆ SetLegendBorderSize()

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

Definition at line 354 of file TStyle.h.

◆ SetLegendFillColor()

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

Definition at line 355 of file TStyle.h.

◆ SetLegendFillStyle()

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

Definition at line 356 of file TStyle.h.

◆ SetLegendFont()

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

Definition at line 357 of file TStyle.h.

◆ SetLegendTextSize()

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

Definition at line 358 of file TStyle.h.

◆ SetLegoInnerR()

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

Definition at line 320 of file TStyle.h.

◆ SetLineAttributes()

virtual void TAttLine::SetLineAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetLineColor() [1/2]

◆ SetLineColor() [2/2]

void TAttLine::SetLineColor ( TColorNumber lcolor)
inherited

◆ SetLineColorAlpha()

virtual void TAttLine::SetLineColorAlpha ( Color_t lcolor,
Float_t lalpha )
virtualinherited

Reimplemented in TGraphMultiErrors.

◆ SetLineScalePS()

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

Definition at line 312 of file TStyle.h.

◆ SetLineStyle()

virtual void TAttLine::SetLineStyle ( Style_t lstyle)
inlinevirtualinherited

◆ 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(7,"20 20");
gStyle->SetLineStyleString(8,"20 12 4 12 4 12");
gStyle->SetLineStyleString(9,"80 20");

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

◆ SetLineWidth()

virtual void TAttLine::SetLineWidth ( Width_t lwidth)
inlinevirtualinherited

◆ SetMarkerAttributes()

virtual void TAttMarker::SetMarkerAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetMarkerColor() [1/2]

virtual void TAttMarker::SetMarkerColor ( Color_t mcolor = 1)
inlinevirtualinherited

◆ SetMarkerColor() [2/2]

void TAttMarker::SetMarkerColor ( TColorNumber lcolor)
inherited

◆ SetMarkerColorAlpha()

virtual void TAttMarker::SetMarkerColorAlpha ( Color_t mcolor,
Float_t malpha )
virtualinherited

◆ SetMarkerSize()

virtual void TAttMarker::SetMarkerSize ( Size_t msize = 1)
inlinevirtualinherited

Set the marker size.

Note that the marker styles number 1 6 and 7 (the dots), cannot be scaled. They are meant to be very fast to draw and are always drawn with the same number of pixels; therefore this method does not apply on them.

Reimplemented in ROOT::Experimental::REvePointSet, ROOT::Experimental::REvePointSetArray, ROOT::Experimental::REveTrackList, TEvePointSet, TEvePointSetArray, TEveTrackList, TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TTeXDump, and TVirtualX.

Definition at line 48 of file TAttMarker.h.

◆ SetMarkerStyle()

virtual void TAttMarker::SetMarkerStyle ( Style_t mstyle = 1)
inlinevirtualinherited

◆ SetName()

void TNamed::SetName ( const char * name)
virtualinherited

Set the name of the TNamed.

WARNING: if the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, ROOT::Experimental::XRooFit::xRooNode, TChain, TColor, TDirectory, TEfficiency, TEventList, TEveScene, TFormula, TGraph2D, TGraph, TH1, TNode, TRotMatrix, TShape, TSystemDirectory, TSystemFile, and TTree.

Definition at line 149 of file TNamed.cxx.

◆ SetNameTitle()

void TNamed::SetNameTitle ( const char * name,
const char * title )
virtualinherited

Set all the TNamed parameters (name and title).

WARNING: if the name is changed and the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, TContextMenu, TGraph2D, TGraph, TH1, and TNode.

Definition at line 163 of file TNamed.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

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

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

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.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()->SetTextFont(font=62);
gStyle->GetAttDate()->SetTextSize(size=0.025);
gStyle->GetAttDate()->SetTextAngle(angle=0);
gStyle->GetAttDate()->SetTextAlign(align=11);
gStyle->GetAttDate()->SetTextColor(color=1);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix

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

◆ SetOptFile()

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

Definition at line 331 of file TStyle.h.

◆ SetOptFit()

void TStyle::SetOptFit ( Int_t mode = 1)

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

The parameter mode can be = pcev:

  • p = 1; print Probability
  • c = 1; print Chisquare/Number of degrees of freedom
  • e = 1; print errors (if e=1, v must be 1)
  • v = 1; print name/values of parameters Example: gStyle->SetOptFit(1011); print fit probability, parameter names/values and errors.
  • When "v"=1 is specified, only the non-fixed parameters are shown.
  • When "v"=2 all parameters are shown.

Notes:

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

see also SetOptStat below.

Definition at line 1594 of file TStyle.cxx.

◆ SetOptLogx()

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

Definition at line 333 of file TStyle.h.

◆ SetOptLogy()

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

Definition at line 334 of file TStyle.h.

◆ SetOptLogz()

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

Definition at line 335 of file TStyle.h.

◆ SetOptStat() [1/2]

void TStyle::SetOptStat ( Int_t mode = 1)

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

The parameter mode can be = ksiourmen

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

Example: gStyle->SetOptStat(11); print only name of histogram and number of entries. gStyle->SetOptStat(1101); displays the name of histogram, mean value and RMS.

Notes:

  • never call SetOptStat(000111); but SetOptStat(111), 000111 will be taken as an octal number !!
  • SetOptStat(1) is s shortcut allowing to set the most common case, and is taken as SetOptStat(1111) (for backward compatibility with older versions. If you want to print only the name of the histogram call SetOptStat(1000000001).
  • that in case of 2-D histograms, when selecting just underflow (10000) or overflow (100000), the stats box will show all combinations of underflow/overflows and not just one single number!

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

◆ SetOptTitle()

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

Definition at line 338 of file TStyle.h.

◆ SetOrthoCamera()

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

Definition at line 433 of file TStyle.h.

◆ SetPadBorderMode()

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

Definition at line 361 of file TStyle.h.

◆ SetPadBorderSize()

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

Definition at line 360 of file TStyle.h.

◆ SetPadBottomMargin()

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

Definition at line 362 of file TStyle.h.

◆ SetPadColor()

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

Definition at line 359 of file TStyle.h.

◆ SetPadGridX()

void TStyle::SetPadGridX ( Bool_t gridx)
inline

Definition at line 366 of file TStyle.h.

◆ SetPadGridY()

void TStyle::SetPadGridY ( Bool_t gridy)
inline

Definition at line 367 of file TStyle.h.

◆ SetPadLeftMargin()

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

Definition at line 364 of file TStyle.h.

◆ SetPadRightMargin()

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

Definition at line 365 of file TStyle.h.

◆ SetPadTickX()

void TStyle::SetPadTickX ( Int_t tickx)
inline

Definition at line 368 of file TStyle.h.

◆ SetPadTickY()

void TStyle::SetPadTickY ( Int_t ticky)
inline

Definition at line 369 of file TStyle.h.

◆ SetPadTopMargin()

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

Definition at line 363 of file TStyle.h.

◆ SetPaintTextFormat()

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

Definition at line 390 of file TStyle.h.

◆ SetPalette() [1/2]

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

See TColor::SetPalette.

Definition at line 1889 of file TStyle.cxx.

◆ SetPalette() [2/2]

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

Definition at line 1896 of file TStyle.cxx.

◆ SetPaperSize() [1/2]

void TStyle::SetPaperSize ( EPaperSize size)

Set paper size for PostScript output.

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

◆ SetScreenFactor()

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

Definition at line 321 of file TStyle.h.

◆ SetStatBorderSize()

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

Definition at line 397 of file TStyle.h.

◆ SetStatColor()

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

Definition at line 394 of file TStyle.h.

◆ SetStatFont()

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

Definition at line 398 of file TStyle.h.

◆ SetStatFontSize()

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

Definition at line 399 of file TStyle.h.

◆ SetStatFormat()

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

Definition at line 400 of file TStyle.h.

◆ SetStatH()

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

Definition at line 404 of file TStyle.h.

◆ SetStatStyle()

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

Definition at line 396 of file TStyle.h.

◆ SetStatTextColor()

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

Definition at line 395 of file TStyle.h.

◆ SetStatW()

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

Definition at line 403 of file TStyle.h.

◆ SetStatX()

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

Definition at line 401 of file TStyle.h.

◆ SetStatY()

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

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

◆ SetTextAlign()

virtual void TAttText::SetTextAlign ( Short_t align = 11)
inlinevirtualinherited

Set the text alignment.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.

Definition at line 48 of file TAttText.h.

◆ SetTextAngle()

virtual void TAttText::SetTextAngle ( Float_t tangle = 0)
inlinevirtualinherited

Set the text angle.

Reimplemented in TGraphNode, and TGWin32VirtualXProxy.

Definition at line 49 of file TAttText.h.

◆ SetTextAttributes()

virtual void TAttText::SetTextAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetTextColor() [1/2]

virtual void TAttText::SetTextColor ( Color_t tcolor = 1)
inlinevirtualinherited

Set the text color.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSVG, TTeXDump, and TVirtualX.

Definition at line 50 of file TAttText.h.

◆ SetTextColor() [2/2]

void TAttText::SetTextColor ( TColorNumber lcolor)
inherited

◆ SetTextColorAlpha()

virtual void TAttText::SetTextColorAlpha ( Color_t tcolor,
Float_t talpha )
virtualinherited

◆ SetTextFont()

virtual void TAttText::SetTextFont ( Font_t tfont = 62)
inlinevirtualinherited

Set the text font.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.

Definition at line 52 of file TAttText.h.

◆ SetTextSize()

virtual void TAttText::SetTextSize ( Float_t tsize = 1)
inlinevirtualinherited

Set the text size.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.

Definition at line 53 of file TAttText.h.

◆ SetTextSizePixels()

virtual void TAttText::SetTextSizePixels ( Int_t npixels)
virtualinherited

Set the text size in pixel.

Reimplemented in TGWin32VirtualXProxy.

◆ 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 1736 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 1914 of file TStyle.cxx.

◆ SetTitle()

void TNamed::SetTitle ( const char * title = "")
virtualinherited

◆ SetTitleAlign()

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

Definition at line 407 of file TStyle.h.

◆ SetTitleBorderSize()

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

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

◆ SetTitleFillColor()

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

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

◆ SetTitleFontSize()

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

Definition at line 411 of file TStyle.h.

◆ SetTitleH()

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

Definition at line 420 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 1799 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 1384 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 1818 of file TStyle.cxx.

◆ SetTitleStyle()

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

Definition at line 410 of file TStyle.h.

◆ SetTitleTextColor()

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

Definition at line 409 of file TStyle.h.

◆ SetTitleW()

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

Definition at line 419 of file TStyle.h.

◆ SetTitleX()

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

Definition at line 417 of file TStyle.h.

◆ SetTitleXOffset()

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

Definition at line 413 of file TStyle.h.

◆ SetTitleXSize()

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

Definition at line 414 of file TStyle.h.

◆ SetTitleY()

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

Definition at line 418 of file TStyle.h.

◆ SetTitleYOffset()

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

Definition at line 415 of file TStyle.h.

◆ SetTitleYSize()

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

Definition at line 416 of file TStyle.h.

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ SetViolinScaled()

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

Definition at line 430 of file TStyle.h.

◆ Sizeof()

Int_t TNamed::Sizeof ( ) const
virtualinherited

Return size of the TNamed part of the TObject.

Reimplemented in TDirectory, TDirectoryFile, TFile, TKey, TSQLFile, and TXMLFile.

Definition at line 182 of file TNamed.cxx.

◆ Streamer()

void TStyle::Streamer ( TBuffer & R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TNamed.

◆ StreamerNVirtual()

void TStyle::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 438 of file TStyle.h.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ TestBit()

Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ ToggleEditor()

void TStyle::ToggleEditor ( )
inline

Definition at line 422 of file TStyle.h.

◆ ToggleEventStatus()

void TStyle::ToggleEventStatus ( )
inline

Definition at line 421 of file TStyle.h.

◆ ToggleToolBar()

void TStyle::ToggleToolBar ( )
inline

Definition at line 423 of file TStyle.h.

◆ UseCurrentStyle()

void TObject::UseCurrentStyle ( )
virtualinherited

Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.

Reimplemented in TAxis3D, TCanvas, TFrame, TGraph, TH1, TPad, TPaveStats, TPaveText, and TTree.

Definition at line 909 of file TObject.cxx.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ Write() [1/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
virtualinherited

Write this object to the current directory.

For more see the const version of this method.

Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 989 of file TObject.cxx.

◆ Write() [2/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
virtualinherited

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 964 of file TObject.cxx.

Member Data Documentation

◆ fAttDate

TAttText TStyle::fAttDate
private

Canvas date attribute.

Definition at line 52 of file TStyle.h.

◆ fAxisMaxDigits

Int_t TStyle::fAxisMaxDigits
private

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

Definition at line 151 of file TStyle.h.

◆ fBarOffset

Float_t TStyle::fBarOffset
private

Offset of bar for graphs.

Definition at line 36 of file TStyle.h.

◆ fBarWidth

Float_t TStyle::fBarWidth
private

Width of bar for graphs.

Definition at line 35 of file TStyle.h.

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fCandleBoxRange

Double_t TStyle::fCandleBoxRange
private

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

Definition at line 142 of file TStyle.h.

◆ fCandleCircleLineWidth

Int_t TStyle::fCandleCircleLineWidth
private

Line width of the circle marker of a candle plot ([1,5]).

Definition at line 145 of file TStyle.h.

◆ fCandleCrossLineWidth

Int_t TStyle::fCandleCrossLineWidth
private

Line width of the cross marker of a candle plot ([1,5]).

Definition at line 146 of file TStyle.h.

◆ fCandleScaled

Bool_t TStyle::fCandleScaled
private

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

Definition at line 143 of file TStyle.h.

◆ fCandleWhiskerRange

Double_t TStyle::fCandleWhiskerRange
private

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

Definition at line 141 of file TStyle.h.

◆ fCanvasBorderMode

Int_t TStyle::fCanvasBorderMode
private

Canvas border mode.

Definition at line 87 of file TStyle.h.

◆ fCanvasBorderSize

Width_t TStyle::fCanvasBorderSize
private

Canvas border size.

Definition at line 86 of file TStyle.h.

◆ fCanvasColor

Color_t TStyle::fCanvasColor
private

Canvas color.

Definition at line 85 of file TStyle.h.

◆ fCanvasDefH

Int_t TStyle::fCanvasDefH
private

Default canvas height.

Definition at line 88 of file TStyle.h.

◆ fCanvasDefW

Int_t TStyle::fCanvasDefW
private

Default canvas width.

Definition at line 89 of file TStyle.h.

◆ fCanvasDefX

Int_t TStyle::fCanvasDefX
private

Default canvas top X position.

Definition at line 90 of file TStyle.h.

◆ fCanvasDefY

Int_t TStyle::fCanvasDefY
private

Default canvas top Y position.

Definition at line 91 of file TStyle.h.

◆ fCanvasPreferGL

Bool_t TStyle::fCanvasPreferGL
private

If true, rendering in canvas is with GL.

Definition at line 84 of file TStyle.h.

◆ fCapLinePS

Int_t TStyle::fCapLinePS
private

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

Definition at line 137 of file TStyle.h.

◆ fColorModelPS

Int_t TStyle::fColorModelPS
private

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

Definition at line 37 of file TStyle.h.

◆ fDateX

Float_t TStyle::fDateX
private

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

Definition at line 53 of file TStyle.h.

◆ fDateY

Float_t TStyle::fDateY
private

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

Definition at line 54 of file TStyle.h.

◆ fDrawBorder

Int_t TStyle::fDrawBorder
private

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

Definition at line 38 of file TStyle.h.

◆ fEndErrorSize

Float_t TStyle::fEndErrorSize
private

Size of lines at the end of error bars.

Definition at line 55 of file TStyle.h.

◆ fErrorX

Float_t TStyle::fErrorX
private

Per cent of bin width for errors along X.

Definition at line 56 of file TStyle.h.

◆ fFillColor

Color_t TAttFill::fFillColor
protectedinherited

Fill area color.

Definition at line 24 of file TAttFill.h.

◆ fFillStyle

Style_t TAttFill::fFillStyle
protectedinherited

Fill area style.

Definition at line 25 of file TAttFill.h.

◆ fFitFormat

TString TStyle::fFitFormat
private

Printing format for fit parameters.

Definition at line 133 of file TStyle.h.

◆ fFrameBorderMode

Int_t TStyle::fFrameBorderMode
private

Pad frame border mode.

Definition at line 76 of file TStyle.h.

◆ fFrameBorderSize

Width_t TStyle::fFrameBorderSize
private

Pad frame border size.

Definition at line 75 of file TStyle.h.

◆ fFrameFillColor

Color_t TStyle::fFrameFillColor
private

Pad frame fill color.

Definition at line 70 of file TStyle.h.

◆ fFrameFillStyle

Style_t TStyle::fFrameFillStyle
private

Pad frame fill style.

Definition at line 72 of file TStyle.h.

◆ fFrameLineColor

Color_t TStyle::fFrameLineColor
private

Pad frame line color.

Definition at line 71 of file TStyle.h.

◆ fFrameLineStyle

Style_t TStyle::fFrameLineStyle
private

Pad frame line style.

Definition at line 73 of file TStyle.h.

◆ fFrameLineWidth

Width_t TStyle::fFrameLineWidth
private

Pad frame line width.

Definition at line 74 of file TStyle.h.

◆ fFuncColor

Color_t TStyle::fFuncColor
private

Function color.

Definition at line 57 of file TStyle.h.

◆ fFuncStyle

Style_t TStyle::fFuncStyle
private

Function style.

Definition at line 58 of file TStyle.h.

◆ fFuncWidth

Width_t TStyle::fFuncWidth
private

Function line width.

Definition at line 59 of file TStyle.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fGridColor

Color_t TStyle::fGridColor
private

Grid line color (if 0 use axis line color).

Definition at line 60 of file TStyle.h.

◆ fGridStyle

Style_t TStyle::fGridStyle
private

Grid line style.

Definition at line 61 of file TStyle.h.

◆ fGridWidth

Width_t TStyle::fGridWidth
private

Grid line width.

Definition at line 62 of file TStyle.h.

◆ fHatchesLineWidth

Int_t TStyle::fHatchesLineWidth
private

Hatches line width for hatch styles > 3100.

Definition at line 68 of file TStyle.h.

◆ fHatchesSpacing

Double_t TStyle::fHatchesSpacing
private

Hatches spacing for hatch styles > 3100.

Definition at line 69 of file TStyle.h.

◆ fHeaderPS

TString TStyle::fHeaderPS
private

User defined additional Postscript header.

Definition at line 131 of file TStyle.h.

◆ fHistFillColor

Color_t TStyle::fHistFillColor
private

Histogram fill color.

Definition at line 77 of file TStyle.h.

◆ fHistFillStyle

Style_t TStyle::fHistFillStyle
private

Histogram fill style.

Definition at line 79 of file TStyle.h.

◆ fHistLineColor

Color_t TStyle::fHistLineColor
private

Histogram line color.

Definition at line 78 of file TStyle.h.

◆ fHistLineStyle

Style_t TStyle::fHistLineStyle
private

Histogram line style.

Definition at line 80 of file TStyle.h.

◆ fHistLineWidth

Width_t TStyle::fHistLineWidth
private

Histogram line width.

Definition at line 81 of file TStyle.h.

◆ fHistMinimumZero

Bool_t TStyle::fHistMinimumZero
private

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

Definition at line 82 of file TStyle.h.

◆ fHistTopMargin

Double_t TStyle::fHistTopMargin
private

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

Definition at line 83 of file TStyle.h.

◆ fImageScaling

Float_t TStyle::fImageScaling
private

Image scaling to produce high definition bitmap images.

Definition at line 140 of file TStyle.h.

◆ fIsReading

Bool_t TStyle::fIsReading
private

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

Definition at line 139 of file TStyle.h.

◆ fJoinLinePS

Int_t TStyle::fJoinLinePS
private

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

Definition at line 136 of file TStyle.h.

◆ fLegendBorderSize

Width_t TStyle::fLegendBorderSize
private

Legend box border size.

Definition at line 63 of file TStyle.h.

◆ fLegendFillColor

Color_t TStyle::fLegendFillColor
private

Legend fill color.

Definition at line 64 of file TStyle.h.

◆ fLegendFillStyle

Style_t TStyle::fLegendFillStyle
private

Legend fill style.

Definition at line 65 of file TStyle.h.

◆ fLegendFont

Style_t TStyle::fLegendFont
private

Legend font style.

Definition at line 66 of file TStyle.h.

◆ fLegendTextSize

Double_t TStyle::fLegendTextSize
private

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

Definition at line 67 of file TStyle.h.

◆ fLegoInnerR

Float_t TStyle::fLegoInnerR
private

Inner radius for cylindrical legos.

Definition at line 129 of file TStyle.h.

◆ fLineColor

Color_t TAttLine::fLineColor
protectedinherited

Line color.

Definition at line 24 of file TAttLine.h.

◆ fLineScalePS

Float_t TStyle::fLineScalePS
private

Line scale factor when drawing lines on Postscript.

Definition at line 135 of file TStyle.h.

◆ fLineStyle

TString TStyle::fLineStyle[30]
private

String describing line style i (for postScript).

Definition at line 130 of file TStyle.h.

◆ fLineWidth

Width_t TAttLine::fLineWidth
protectedinherited

Line width.

Definition at line 26 of file TAttLine.h.

◆ fMarkerColor

Color_t TAttMarker::fMarkerColor
protectedinherited

Marker color.

Definition at line 24 of file TAttMarker.h.

◆ fMarkerSize

Size_t TAttMarker::fMarkerSize
protectedinherited

Marker size.

Definition at line 26 of file TAttMarker.h.

◆ fMarkerStyle

Style_t TAttMarker::fMarkerStyle
protectedinherited

Marker style.

Definition at line 25 of file TAttMarker.h.

◆ fName

TString TNamed::fName
protectedinherited

Definition at line 32 of file TNamed.h.

◆ fNumberContours

Int_t TStyle::fNumberContours
private

Default number of contours for 2-d plots.

Definition at line 51 of file TStyle.h.

◆ fOptDate

Int_t TStyle::fOptDate
private

True if date option is selected.

Definition at line 42 of file TStyle.h.

◆ fOptFile

Int_t TStyle::fOptFile
private

True if option File is selected.

Definition at line 45 of file TStyle.h.

◆ fOptFit

Int_t TStyle::fOptFit
private

True if option Fit is selected.

Definition at line 46 of file TStyle.h.

◆ fOptLogx

Int_t TStyle::fOptLogx
private

True if log scale in X.

Definition at line 39 of file TStyle.h.

◆ fOptLogy

Int_t TStyle::fOptLogy
private

True if log scale in y.

Definition at line 40 of file TStyle.h.

◆ fOptLogz

Int_t TStyle::fOptLogz
private

True if log scale in z.

Definition at line 41 of file TStyle.h.

◆ fOptStat

Int_t TStyle::fOptStat
private

True if option Stat is selected.

Definition at line 43 of file TStyle.h.

◆ fOptTitle

Int_t TStyle::fOptTitle
private

True if option Title is selected.

Definition at line 44 of file TStyle.h.

◆ fOrthoCamera

Bool_t TStyle::fOrthoCamera
private

Use orthographic camera with web display.

Definition at line 152 of file TStyle.h.

◆ fPadBorderMode

Int_t TStyle::fPadBorderMode
private

Pad border mode.

Definition at line 94 of file TStyle.h.

◆ fPadBorderSize

Width_t TStyle::fPadBorderSize
private

Pad border size.

Definition at line 93 of file TStyle.h.

◆ fPadBottomMargin

Float_t TStyle::fPadBottomMargin
private

Pad bottom margin.

Definition at line 95 of file TStyle.h.

◆ fPadColor

Color_t TStyle::fPadColor
private

Pad color.

Definition at line 92 of file TStyle.h.

◆ fPadGridX

Bool_t TStyle::fPadGridX
private

True to get the grid along X.

Definition at line 99 of file TStyle.h.

◆ fPadGridY

Bool_t TStyle::fPadGridY
private

True to get the grid along Y.

Definition at line 100 of file TStyle.h.

◆ fPadLeftMargin

Float_t TStyle::fPadLeftMargin
private

Pad left margin.

Definition at line 97 of file TStyle.h.

◆ fPadRightMargin

Float_t TStyle::fPadRightMargin
private

Pad right margin.

Definition at line 98 of file TStyle.h.

◆ fPadTickX

Int_t TStyle::fPadTickX
private

True to set special pad ticks along X.

Definition at line 101 of file TStyle.h.

◆ fPadTickY

Int_t TStyle::fPadTickY
private

True to set special pad ticks along Y.

Definition at line 102 of file TStyle.h.

◆ fPadTopMargin

Float_t TStyle::fPadTopMargin
private

Pad top margin.

Definition at line 96 of file TStyle.h.

◆ fPaintTextFormat

TString TStyle::fPaintTextFormat
private

Printing format for TH2::PaintText.

Definition at line 134 of file TStyle.h.

◆ fPaperSizeX

Float_t TStyle::fPaperSizeX
private

PostScript paper size along X.

Definition at line 103 of file TStyle.h.

◆ fPaperSizeY

Float_t TStyle::fPaperSizeY
private

PostScript paper size along Y.

Definition at line 104 of file TStyle.h.

◆ fScreenFactor

Float_t TStyle::fScreenFactor
private

Multiplication factor for canvas size and position.

Definition at line 105 of file TStyle.h.

◆ fShowEditor

Int_t TStyle::fShowEditor
private

Show pad editor.

Definition at line 48 of file TStyle.h.

◆ fShowEventStatus

Int_t TStyle::fShowEventStatus
private

Show event status panel.

Definition at line 47 of file TStyle.h.

◆ fShowToolBar

Int_t TStyle::fShowToolBar
private

Show toolbar.

Definition at line 49 of file TStyle.h.

◆ fStatBorderSize

Width_t TStyle::fStatBorderSize
private

Border size of Stats PaveLabel.

Definition at line 108 of file TStyle.h.

◆ fStatColor

Color_t TStyle::fStatColor
private

Stat fill area color.

Definition at line 106 of file TStyle.h.

◆ fStatFont

Style_t TStyle::fStatFont
private

Font style of Stats PaveLabel.

Definition at line 109 of file TStyle.h.

◆ fStatFontSize

Float_t TStyle::fStatFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 110 of file TStyle.h.

◆ fStatFormat

TString TStyle::fStatFormat
private

Printing format for stats.

Definition at line 112 of file TStyle.h.

◆ fStatH

Float_t TStyle::fStatH
private

Height of stat box.

Definition at line 116 of file TStyle.h.

◆ fStatStyle

Style_t TStyle::fStatStyle
private

Fill area style of Stats PaveLabel.

Definition at line 111 of file TStyle.h.

◆ fStatTextColor

Color_t TStyle::fStatTextColor
private

Stat text color.

Definition at line 107 of file TStyle.h.

◆ fStatW

Float_t TStyle::fStatW
private

Width of stat box.

Definition at line 115 of file TStyle.h.

◆ fStatX

Float_t TStyle::fStatX
private

X position of top right corner of stat box.

Definition at line 113 of file TStyle.h.

◆ fStatY

Float_t TStyle::fStatY
private

Y position of top right corner of stat box.

Definition at line 114 of file TStyle.h.

◆ fStripDecimals

Bool_t TStyle::fStripDecimals
private

Strip decimals in axis labels.

Definition at line 117 of file TStyle.h.

◆ fTextAlign

Short_t TAttText::fTextAlign
protectedinherited

Text alignment.

Definition at line 26 of file TAttText.h.

◆ fTextAngle

Float_t TAttText::fTextAngle
protectedinherited

Text angle.

Definition at line 24 of file TAttText.h.

◆ fTextColor

Color_t TAttText::fTextColor
protectedinherited

Text color.

Definition at line 27 of file TAttText.h.

◆ fTextFont

Font_t TAttText::fTextFont
protectedinherited

Text font.

Definition at line 28 of file TAttText.h.

◆ fTextSize

Float_t TAttText::fTextSize
protectedinherited

Text size.

Definition at line 25 of file TAttText.h.

◆ fTimeOffset

Double_t TStyle::fTimeOffset
private

Time offset to the beginning of an axis.

Definition at line 138 of file TStyle.h.

◆ fTitle

TString TNamed::fTitle
protectedinherited

Definition at line 33 of file TNamed.h.

◆ fTitleAlign

Int_t TStyle::fTitleAlign
private

Title box alignment.

Definition at line 118 of file TStyle.h.

◆ fTitleBorderSize

Width_t TStyle::fTitleBorderSize
private

Border size of Title PavelLabel.

Definition at line 121 of file TStyle.h.

◆ fTitleColor

Color_t TStyle::fTitleColor
private

Title fill area color.

Definition at line 119 of file TStyle.h.

◆ fTitleFont

Style_t TStyle::fTitleFont
private

Font style of Title PaveLabel.

Definition at line 122 of file TStyle.h.

◆ fTitleFontSize

Float_t TStyle::fTitleFontSize
private

Font size in pixels for fonts with precision type 3.

Definition at line 123 of file TStyle.h.

◆ fTitleH

Float_t TStyle::fTitleH
private

Height of title box.

Definition at line 128 of file TStyle.h.

◆ fTitlePS

TString TStyle::fTitlePS
private

User defined Postscript file title.

Definition at line 132 of file TStyle.h.

◆ fTitleStyle

Style_t TStyle::fTitleStyle
private

Fill area style of title PaveLabel.

Definition at line 124 of file TStyle.h.

◆ fTitleTextColor

Color_t TStyle::fTitleTextColor
private

Title text color.

Definition at line 120 of file TStyle.h.

◆ fTitleW

Float_t TStyle::fTitleW
private

Width of title box.

Definition at line 127 of file TStyle.h.

◆ fTitleX

Float_t TStyle::fTitleX
private

X position of top left corner of title box.

Definition at line 125 of file TStyle.h.

◆ fTitleY

Float_t TStyle::fTitleY
private

Y position of top left corner of title box.

Definition at line 126 of file TStyle.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.

◆ fViolinScaled

Bool_t TStyle::fViolinScaled
private

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

Definition at line 144 of file TStyle.h.

◆ fXaxis

TAttAxis TStyle::fXaxis
private

X axis attributes.

Definition at line 32 of file TStyle.h.

◆ fXAxisExpXOffset

Float_t TStyle::fXAxisExpXOffset
private

X axis exponent label X offset.

Definition at line 147 of file TStyle.h.

◆ fXAxisExpYOffset

Float_t TStyle::fXAxisExpYOffset
private

X axis exponent label Y offset.

Definition at line 148 of file TStyle.h.

◆ fYaxis

TAttAxis TStyle::fYaxis
private

Y axis attributes.

Definition at line 33 of file TStyle.h.

◆ fYAxisExpXOffset

Float_t TStyle::fYAxisExpXOffset
private

Y axis exponent label X offset.

Definition at line 149 of file TStyle.h.

◆ fYAxisExpYOffset

Float_t TStyle::fYAxisExpYOffset
private

Y axis exponent label Y offset.

Definition at line 150 of file TStyle.h.

◆ fZaxis

TAttAxis TStyle::fZaxis
private

Z axis attributes.

Definition at line 34 of file TStyle.h.


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