ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
TStyle Class Reference

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.

Definition at line 52 of file TStyle.h.

Public Types

enum  EPaperSize { kA4, kUSLetter }
 Set to FALSE when userclass::UseCurrentStyle is called by the style manager. More...
 
- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 

Public Member Functions

 TStyle ()
 
 TStyle (const char *name, const char *title)
 Create a new TStyle. More...
 
 TStyle (const TStyle &style)
 Copy constructor. More...
 
virtual ~TStyle ()
 Destructor. More...
 
Int_t AxisChoice (Option_t *axis) const
 
virtual void Browse (TBrowser *b)
 Browse the style object. More...
 
virtual void Copy (TObject &style) const
 Copy this style. More...
 
virtual void cd ()
 Change current style. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Function used by the TStyle manager when drawing a canvas showing the current style. More...
 
Int_t GetNdivisions (Option_t *axis="X") const
 Return number of divisions. More...
 
TAttTextGetAttDate ()
 
Color_t GetAxisColor (Option_t *axis="X") const
 Return the axis color number in the axis. More...
 
Color_t GetLabelColor (Option_t *axis="X") const
 Return the label color number in the axis. More...
 
Style_t GetLabelFont (Option_t *axis="X") const
 Return label font. More...
 
Float_t GetLabelOffset (Option_t *axis="X") const
 Return label offset. More...
 
Float_t GetLabelSize (Option_t *axis="X") const
 Return label size. More...
 
Color_t GetTitleColor (Option_t *axis="X") const
 Return title color. More...
 
Style_t GetTitleFont (Option_t *axis="X") const
 Return title font. More...
 
Float_t GetTitleOffset (Option_t *axis="X") const
 Return title offset. More...
 
Float_t GetTitleSize (Option_t *axis="X") const
 Return title size. More...
 
Float_t GetTickLength (Option_t *axis="X") const
 Return tick length. More...
 
Float_t GetBarOffset () const
 
Float_t GetBarWidth () const
 
Int_t GetDrawBorder () const
 
Float_t GetEndErrorSize () const
 
Float_t GetErrorX () const
 
Bool_t GetCanvasPreferGL () const
 
Color_t GetCanvasColor () const
 
Width_t GetCanvasBorderSize () const
 
Int_t GetCanvasBorderMode () const
 
Int_t GetCanvasDefH () const
 
Int_t GetCanvasDefW () const
 
Int_t GetCanvasDefX () const
 
Int_t GetCanvasDefY () const
 
Int_t GetColorPalette (Int_t i) const
 Return color number i in current palette. More...
 
Int_t GetColorModelPS () const
 
Float_t GetDateX () const
 
Float_t GetDateY () const
 
const char * GetFitFormat () const
 
Int_t GetHatchesLineWidth () const
 
Double_t GetHatchesSpacing () const
 
Width_t GetLegendBorderSize () const
 
Color_t GetLegendFillColor () const
 
Style_t GetLegendFont () const
 
Double_t GetLegendTextSize () const
 
Int_t GetNumberOfColors () const
 Return number of colors in the color palette. More...
 
Color_t GetPadColor () const
 
Width_t GetPadBorderSize () const
 
Int_t GetPadBorderMode () const
 
Float_t GetPadBottomMargin () const
 
Float_t GetPadTopMargin () const
 
Float_t GetPadLeftMargin () const
 
Float_t GetPadRightMargin () const
 
Bool_t GetPadGridX () const
 
Bool_t GetPadGridY () const
 
Int_t GetPadTickX () const
 
Int_t GetPadTickY () const
 
Color_t GetFuncColor () const
 
Style_t GetFuncStyle () const
 
Width_t GetFuncWidth () const
 
Color_t GetGridColor () const
 
Style_t GetGridStyle () const
 
Width_t GetGridWidth () const
 
Color_t GetFrameFillColor () const
 
Color_t GetFrameLineColor () const
 
Style_t GetFrameFillStyle () const
 
Style_t GetFrameLineStyle () const
 
Width_t GetFrameLineWidth () const
 
Width_t GetFrameBorderSize () const
 
Int_t GetFrameBorderMode () const
 
Color_t GetHistFillColor () const
 
Color_t GetHistLineColor () const
 
Style_t GetHistFillStyle () const
 
Style_t GetHistLineStyle () const
 
Width_t GetHistLineWidth () const
 
Bool_t GetHistMinimumZero () const
 
Double_t GetHistTopMargin () const
 
Float_t GetLegoInnerR () const
 
Int_t GetNumberContours () const
 
Int_t GetOptDate () const
 
Int_t GetOptFile () const
 
Int_t GetOptFit () const
 
Int_t GetOptStat () const
 
Int_t GetOptTitle () const
 
Int_t GetOptLogx () const
 
Int_t GetOptLogy () const
 
Int_t GetOptLogz () const
 
const char * GetPaintTextFormat () const
 
void GetPaperSize (Float_t &xsize, Float_t &ysize) const
 Set paper size for PostScript output. More...
 
Int_t GetShowEventStatus () const
 
Int_t GetShowEditor () const
 
Int_t GetShowToolBar () const
 
Float_t GetScreenFactor () const
 
Color_t GetStatColor () const
 
Color_t GetStatTextColor () const
 
Width_t GetStatBorderSize () const
 
Style_t GetStatFont () const
 
Float_t GetStatFontSize () const
 
Style_t GetStatStyle () const
 
const char * GetStatFormat () const
 
Float_t GetStatX () const
 
Float_t GetStatY () const
 
Float_t GetStatW () const
 
Float_t GetStatH () const
 
Int_t GetStripDecimals () const
 
Double_t GetTimeOffset () const
 
Int_t GetTitleAlign ()
 
Color_t GetTitleFillColor () const
 
Color_t GetTitleTextColor () const
 
Style_t GetTitleStyle () const
 
Float_t GetTitleFontSize () const
 
Width_t GetTitleBorderSize () const
 
Float_t GetTitleXOffset () const
 
Float_t GetTitleXSize () const
 
Float_t GetTitleYOffset () const
 
Float_t GetTitleYSize () const
 
Float_t GetTitleX () const
 
Float_t GetTitleY () const
 
Float_t GetTitleW () const
 
Float_t GetTitleH () const
 
const char * GetHeaderPS () const
 
const char * GetTitlePS () const
 
const char * GetLineStyleString (Int_t i=1) const
 Return line style string (used by PostScript). More...
 
Float_t GetLineScalePS () const
 
Bool_t IsReading () const
 
virtual void Paint (Option_t *option="")
 Show the options from the current style if (TClass::GetClass("TStyleManager")) gSystem->Load("libGed");. More...
 
virtual void Reset (Option_t *option="")
 Reset. More...
 
void SetColorModelPS (Int_t c=0)
 Define the color model used by TPostScript and TPDF (RGB or CMYK). More...
 
void SetFitFormat (const char *format="5.4g")
 
void SetHeaderPS (const char *header)
 Define a string to be inserted in the Postscript header The string in header will be added to the Postscript file 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. More...

 
void SetHatchesLineWidth (Int_t l)
 
void SetHatchesSpacing (Double_t h)
 
void SetTitlePS (const char *pstitle)
 Define a string to be used in the %Title of the Postscript files. More...
 
void SetLineScalePS (Float_t scale=3)
 
void SetLineStyleString (Int_t i, const char *text)
 Set line style string using the PostScript convention. More...
 
void SetNdivisions (Int_t n=510, Option_t *axis="X")
 Set the number of divisions to draw an axis. More...
 
void SetAxisColor (Color_t color=1, Option_t *axis="X")
 Set color to draw the axis line and tick marks. More...
 
void SetLabelColor (Color_t color=1, Option_t *axis="X")
 Set axis labels color. More...
 
void SetLabelFont (Style_t font=62, Option_t *axis="X")
 Set font number used to draw axis labels. More...
 
void SetLabelOffset (Float_t offset=0.005, Option_t *axis="X")
 Set offset between axis and axis labels. More...
 
void SetLabelSize (Float_t size=0.04, Option_t *axis="X")
 Set size of axis labels. More...
 
void SetLegoInnerR (Float_t rad=0.5)
 
void SetScreenFactor (Float_t factor=1)
 
void SetTickLength (Float_t length=0.03, Option_t *axis="X")
 Set the tick marks length for an axis. More...
 
void SetTitleColor (Color_t color=1, Option_t *axis="X")
 
void SetTitleFont (Style_t font=62, Option_t *axis="X")
 
void SetTitleOffset (Float_t offset=1, Option_t *axis="X")
 Specify a parameter offset to control the distance between the axis and the axis title. More...
 
void SetTitleSize (Float_t size=0.02, Option_t *axis="X")
 
void SetNumberContours (Int_t number=20)
 Set the default number of contour levels when drawing 2-d plots. More...
 
void SetOptDate (Int_t datefl=1)
 If optdate is non null, the current date/time will be printed in the canvas. More...
 
void SetOptFile (Int_t file=1)
 
void SetOptFit (Int_t fit=1)
 The type of information about fit parameters printed in the histogram statistics box can be selected via the parameter mode. More...
 
void SetOptLogx (Int_t logx=1)
 
void SetOptLogy (Int_t logy=1)
 
void SetOptLogz (Int_t logz=1)
 
void SetOptStat (Int_t stat=1)
 The type of information printed in the histogram statistics box can be selected via the parameter mode. More...
 
void SetOptStat (Option_t *stat)
 The parameter mode can be any combination of kKsSiourRmMen. More...
 
void SetOptTitle (Int_t tit=1)
 
void SetBarOffset (Float_t baroff=0.5)
 
void SetBarWidth (Float_t barwidth=0.5)
 
void SetDateX (Float_t x=0.01)
 
void SetDateY (Float_t y=0.01)
 
void SetEndErrorSize (Float_t np=2)
 Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors). More...
 
void SetErrorX (Float_t errorx=0.5)
 
void SetCanvasPreferGL (Bool_t prefer=kTRUE)
 
void SetDrawBorder (Int_t drawborder=1)
 
void SetCanvasColor (Color_t color=19)
 
void SetCanvasBorderSize (Width_t size=1)
 
void SetCanvasBorderMode (Int_t mode=1)
 
void SetCanvasDefH (Int_t h=500)
 
void SetCanvasDefW (Int_t w=700)
 
void SetCanvasDefX (Int_t topx=10)
 
void SetCanvasDefY (Int_t topy=10)
 
void SetLegendBorderSize (Width_t size=4)
 
void SetLegendFillColor (Color_t color=0)
 
void SetLegendFont (Style_t font=62)
 
void SetLegendTextSize (Double_t size=0.)
 
void SetPadColor (Color_t color=19)
 
void SetPadBorderSize (Width_t size=1)
 
void SetPadBorderMode (Int_t mode=1)
 
void SetPadBottomMargin (Float_t margin=0.1)
 
void SetPadTopMargin (Float_t margin=0.1)
 
void SetPadLeftMargin (Float_t margin=0.1)
 
void SetPadRightMargin (Float_t margin=0.1)
 
void SetPadGridX (Bool_t gridx)
 
void SetPadGridY (Bool_t gridy)
 
void SetPadTickX (Int_t tickx)
 
void SetPadTickY (Int_t ticky)
 
void SetFuncStyle (Style_t style=1)
 
void SetFuncColor (Color_t color=1)
 
void SetFuncWidth (Width_t width=4)
 
void SetGridStyle (Style_t style=3)
 
void SetGridColor (Color_t color=0)
 
void SetGridWidth (Width_t width=1)
 
void SetFrameFillColor (Color_t color=1)
 
void SetFrameLineColor (Color_t color=1)
 
void SetFrameFillStyle (Style_t styl=0)
 
void SetFrameLineStyle (Style_t styl=0)
 
void SetFrameLineWidth (Width_t width=1)
 
void SetFrameBorderSize (Width_t size=1)
 
void SetFrameBorderMode (Int_t mode=1)
 
void SetHistFillColor (Color_t color=1)
 
void SetHistLineColor (Color_t color=1)
 
void SetHistFillStyle (Style_t styl=0)
 
void SetHistLineStyle (Style_t styl=0)
 
void SetHistLineWidth (Width_t width=1)
 
void 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. More...
 
void SetHistTopMargin (Double_t hmax=0.05)
 
void SetPaintTextFormat (const char *format="g")
 
void SetPaperSize (EPaperSize size)
 Set paper size for PostScript output. More...
 
void SetPaperSize (Float_t xsize=20, Float_t ysize=26)
 Set paper size for PostScript output. More...
 
void SetStatColor (Color_t color=19)
 
void SetStatTextColor (Color_t color=1)
 
void SetStatStyle (Style_t style=1001)
 
void SetStatBorderSize (Width_t size=2)
 
void SetStatFont (Style_t font=62)
 
void SetStatFontSize (Float_t size=0)
 
void SetStatFormat (const char *format="6.4g")
 
void SetStatX (Float_t x=0)
 
void SetStatY (Float_t y=0)
 
void SetStatW (Float_t w=0.19)
 
void SetStatH (Float_t h=0.1)
 
void SetStripDecimals (Bool_t strip=kTRUE)
 Set option to strip decimals when drawing axis labels. More...
 
void SetTimeOffset (Double_t toffset)
 Change the time offset for time plotting. More...
 
void SetTitleAlign (Int_t a=13)
 
void SetTitleFillColor (Color_t color=1)
 
void SetTitleTextColor (Color_t color=1)
 
void SetTitleStyle (Style_t style=1001)
 
void SetTitleFontSize (Float_t size=0)
 
void SetTitleBorderSize (Width_t size=2)
 
void SetTitleXOffset (Float_t offset=1)
 
void SetTitleXSize (Float_t size=0.02)
 
void SetTitleYOffset (Float_t offset=1)
 
void SetTitleYSize (Float_t size=0.02)
 
void SetTitleX (Float_t x=0)
 
void SetTitleY (Float_t y=0.985)
 
void SetTitleW (Float_t w=0)
 
void SetTitleH (Float_t h=0)
 
void ToggleEventStatus ()
 
void ToggleEditor ()
 
void ToggleToolBar ()
 
void 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. More...
 
void SetPalette (Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
 See TColor::SetPalette. More...
 
void SavePrimitive (std::ostream &out, Option_t *="")
 Save a main frame widget as a C++ statement(s) on output stream out. More...
 
void SaveSource (const char *filename, Option_t *option=0)
 Save the current style in a C++ macro file. More...
 
 ClassDef (TStyle, 16)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void SetName (const char *name)
 Change (i.e. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Change (i.e. set) the title of the TNamed. More...
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor. More...
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor. More...
 
virtual ~TAttLine ()
 AttLine destructor. More...
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine. More...
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line. More...
 
virtual Color_t GetLineColor () const
 
virtual Style_t GetLineStyle () const
 
virtual Width_t GetLineWidth () const
 
virtual void Modify ()
 Change current line attributes if necessary. More...
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values. More...
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out. More...
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes. More...
 
virtual void SetLineColor (Color_t lcolor)
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color. More...
 
virtual void SetLineStyle (Style_t lstyle)
 
virtual void SetLineWidth (Width_t lwidth)
 
 ClassDef (TAttLine, 2)
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor. More...
 
virtual ~TAttFill ()
 AttFill destructor. More...
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill. More...
 
virtual Color_t GetFillColor () const
 
virtual Style_t GetFillStyle () const
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary. More...
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values. More...
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 Save fill attributes as C++ statement(s) on output stream out. More...
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes. More...
 
virtual void SetFillColor (Color_t fcolor)
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color. More...
 
virtual void SetFillStyle (Style_t fstyle)
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 TAttMarker normal constructor. More...
 
virtual ~TAttMarker ()
 TAttMarker destructor. More...
 
void Copy (TAttMarker &attmarker) const
 Copy this marker attributes to a new TAttMarker. More...
 
virtual Color_t GetMarkerColor () const
 
virtual Style_t GetMarkerStyle () const
 
virtual Size_t GetMarkerSize () const
 
virtual void Modify ()
 Change current marker attributes if necessary. More...
 
virtual void ResetAttMarker (Option_t *toption="")
 Reset this marker attributes to the default values. More...
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 Save line attributes as C++ statement(s) on output stream out. More...
 
virtual void SetMarkerAttributes ()
 Invoke the DialogCanvas Marker attributes. More...
 
virtual void SetMarkerColor (Color_t mcolor=1)
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 Set a transparent marker color. More...
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 
virtual void SetMarkerSize (Size_t msize=1)
 
 ClassDef (TAttMarker, 2)
 
- Public Member Functions inherited from TAttText
 TAttText ()
 
 TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
 AttText normal constructor. More...
 
virtual ~TAttText ()
 AttText destructor. More...
 
void Copy (TAttText &atttext) const
 Copy this text attributes to a new TAttText. More...
 
virtual Short_t GetTextAlign () const
 
virtual Float_t GetTextAngle () const
 
virtual Color_t GetTextColor () const
 
virtual Font_t GetTextFont () const
 
virtual Float_t GetTextSize () const
 
virtual void Modify ()
 Change current text attributes if necessary. More...
 
virtual void ResetAttText (Option_t *toption="")
 Reset this text attributes to default values. More...
 
virtual void SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
 Save text attributes as C++ statement(s) on output stream out. More...
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes. More...
 
virtual void SetTextAlign (Short_t align=11)
 
virtual void SetTextAngle (Float_t tangle=0)
 
virtual void SetTextColor (Color_t tcolor=1)
 
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
 Set a transparent marker color. More...
 
virtual void SetTextFont (Font_t tfont=62)
 
virtual void SetTextSize (Float_t tsize=1)
 
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixels. More...
 

Static Public Member Functions

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

Private Attributes

TAttAxis fXaxis
 
TAttAxis fYaxis
 
TAttAxis fZaxis
 
Float_t fBarWidth
 
Float_t fBarOffset
 
Int_t fColorModelPS
 
Int_t fDrawBorder
 
Int_t fOptLogx
 
Int_t fOptLogy
 
Int_t fOptLogz
 
Int_t fOptDate
 
Int_t fOptStat
 
Int_t fOptTitle
 
Int_t fOptFile
 
Int_t fOptFit
 
Int_t fShowEventStatus
 
Int_t fShowEditor
 
Int_t fShowToolBar
 
Int_t fNumberContours
 
TAttText fAttDate
 
Float_t fDateX
 
Float_t fDateY
 
Float_t fEndErrorSize
 
Float_t fErrorX
 
Color_t fFuncColor
 
Style_t fFuncStyle
 
Width_t fFuncWidth
 
Color_t fGridColor
 
Style_t fGridStyle
 
Width_t fGridWidth
 
Width_t fLegendBorderSize
 
Color_t fLegendFillColor
 
Style_t fLegendFont
 
Double_t fLegendTextSize
 
Int_t fHatchesLineWidth
 
Double_t fHatchesSpacing
 
Color_t fFrameFillColor
 
Color_t fFrameLineColor
 
Style_t fFrameFillStyle
 
Style_t fFrameLineStyle
 
Width_t fFrameLineWidth
 
Width_t fFrameBorderSize
 
Int_t fFrameBorderMode
 
Color_t fHistFillColor
 
Color_t fHistLineColor
 
Style_t fHistFillStyle
 
Style_t fHistLineStyle
 
Width_t fHistLineWidth
 
Bool_t fHistMinimumZero
 
Double_t fHistTopMargin
 
Bool_t fCanvasPreferGL
 
Color_t fCanvasColor
 
Width_t fCanvasBorderSize
 
Int_t fCanvasBorderMode
 
Int_t fCanvasDefH
 
Int_t fCanvasDefW
 
Int_t fCanvasDefX
 
Int_t fCanvasDefY
 
Color_t fPadColor
 
Width_t fPadBorderSize
 
Int_t fPadBorderMode
 
Float_t fPadBottomMargin
 
Float_t fPadTopMargin
 
Float_t fPadLeftMargin
 
Float_t fPadRightMargin
 
Bool_t fPadGridX
 
Bool_t fPadGridY
 
Int_t fPadTickX
 
Int_t fPadTickY
 
Float_t fPaperSizeX
 
Float_t fPaperSizeY
 
Float_t fScreenFactor
 
Color_t fStatColor
 
Color_t fStatTextColor
 
Width_t fStatBorderSize
 
Style_t fStatFont
 
Float_t fStatFontSize
 
Style_t fStatStyle
 
TString fStatFormat
 
Float_t fStatX
 
Float_t fStatY
 
Float_t fStatW
 
Float_t fStatH
 
Bool_t fStripDecimals
 
Int_t fTitleAlign
 
Color_t fTitleColor
 
Color_t fTitleTextColor
 
Width_t fTitleBorderSize
 
Style_t fTitleFont
 
Float_t fTitleFontSize
 
Style_t fTitleStyle
 
Float_t fTitleX
 
Float_t fTitleY
 
Float_t fTitleW
 
Float_t fTitleH
 
Float_t fLegoInnerR
 
TString fLineStyle [30]
 
TString fHeaderPS
 
TString fTitlePS
 
TString fFitFormat
 
TString fPaintTextFormat
 
Float_t fLineScalePS
 
Double_t fTimeOffset
 
Bool_t fIsReading
 

Additional Inherited Members

- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 
Style_t fLineStyle
 
Width_t fLineWidth
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 
Style_t fFillStyle
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 
Style_t fMarkerStyle
 
Size_t fMarkerSize
 
- Protected Attributes inherited from TAttText
Float_t fTextAngle
 
Float_t fTextSize
 
Short_t fTextAlign
 
Color_t fTextColor
 
Font_t fTextFont
 

#include <TStyle.h>

+ Inheritance diagram for TStyle:
+ Collaboration diagram for TStyle:

Member Enumeration Documentation

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

Enumerator
kA4 
kUSLetter 

Definition at line 161 of file TStyle.h.

Constructor & Destructor Documentation

TStyle::TStyle ( )

Referenced by BuildStyles().

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

Create a new TStyle.

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

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

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

The current style is pointed by gStyle.

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

One can also use gROOT to change the current style, e.g.

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

See also TROOT::ForceStyle and TROOT::UseCurrentStyle

Definition at line 103 of file TStyle.cxx.

TStyle::TStyle ( const TStyle style)

Copy constructor.

Definition at line 271 of file TStyle.cxx.

TStyle::~TStyle ( )
virtual

Destructor.

Definition at line 261 of file TStyle.cxx.

Member Function Documentation

Int_t TStyle::AxisChoice ( Option_t axis) const
inline
void TStyle::Browse ( TBrowser b)
virtual

Browse the style object.

Reimplemented from TObject.

Definition at line 279 of file TStyle.cxx.

void TStyle::BuildStyles ( )
static

Create some standard styles.

Definition at line 287 of file TStyle.cxx.

Referenced by TROOT::TROOT().

void TStyle::cd ( )
virtual

Change current style.

Definition at line 303 of file TStyle.cxx.

Referenced by Browse(), and TROOT::SetStyle().

TStyle::ClassDef ( TStyle  ,
16   
)
void TStyle::Copy ( TObject style) const
virtual

Copy this style.

Reimplemented from TNamed.

Definition at line 311 of file TStyle.cxx.

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

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

Reimplemented from TObject.

Definition at line 430 of file TStyle.cxx.

TAttText* TStyle::GetAttDate ( )
inline
Color_t TStyle::GetAxisColor ( Option_t axis = "X") const

Return the axis color number in the axis.

Definition at line 718 of file TStyle.cxx.

Referenced by TStyleManager::ModApplyOnXYZ(), TGraphPainter::PaintGrapHist(), TAttAxis::ResetAttAxis(), SavePrimitive(), and TStyleManager::UpdateEditor().

Float_t TStyle::GetBarOffset ( ) const
inline
Float_t TStyle::GetBarWidth ( ) const
inline
Int_t TStyle::GetCanvasBorderMode ( ) const
inline
Width_t TStyle::GetCanvasBorderSize ( ) const
inline
Color_t TStyle::GetCanvasColor ( ) const
inline
Int_t TStyle::GetCanvasDefH ( ) const
inline
Int_t TStyle::GetCanvasDefW ( ) const
inline

Definition at line 202 of file TStyle.h.

Referenced by TCanvas::Constructor(), SavePrimitive(), and TStyleManager::UpdateEditor().

Int_t TStyle::GetCanvasDefX ( ) const
inline

Definition at line 203 of file TStyle.h.

Referenced by TCanvas::Constructor(), SavePrimitive(), and TStyleManager::UpdateEditor().

Int_t TStyle::GetCanvasDefY ( ) const
inline

Definition at line 204 of file TStyle.h.

Referenced by TCanvas::Constructor(), SavePrimitive(), and TStyleManager::UpdateEditor().

Bool_t TStyle::GetCanvasPreferGL ( ) const
inline
Int_t TStyle::GetColorModelPS ( ) const
inline
Int_t TStyle::GetColorPalette ( Int_t  i) const
Float_t TStyle::GetDateX ( ) const
inline

Definition at line 207 of file TStyle.h.

Referenced by TPad::PaintDate(), SavePrimitive(), and TStyleManager::UpdateEditor().

Float_t TStyle::GetDateY ( ) const
inline

Definition at line 208 of file TStyle.h.

Referenced by TPad::PaintDate(), SavePrimitive(), and TStyleManager::UpdateEditor().

Int_t TStyle::GetDrawBorder ( ) const
inline
Float_t TStyle::GetEndErrorSize ( ) const
inline
Float_t TStyle::GetErrorX ( ) const
inline
const char* TStyle::GetFitFormat ( ) const
inline
Int_t TStyle::GetFrameBorderMode ( ) const
inline
Width_t TStyle::GetFrameBorderSize ( ) const
inline
Color_t TStyle::GetFrameFillColor ( ) const
inline
Style_t TStyle::GetFrameFillStyle ( ) const
inline
Color_t TStyle::GetFrameLineColor ( ) const
inline
Style_t TStyle::GetFrameLineStyle ( ) const
inline
Width_t TStyle::GetFrameLineWidth ( ) const
inline
Color_t TStyle::GetFuncColor ( ) const
inline

Definition at line 228 of file TStyle.h.

Referenced by TF1::DoInitialize(), SavePrimitive(), and TStyleManager::UpdateEditor().

Style_t TStyle::GetFuncStyle ( ) const
inline

Definition at line 229 of file TStyle.h.

Referenced by TF1::DoInitialize(), SavePrimitive(), and TStyleManager::UpdateEditor().

Width_t TStyle::GetFuncWidth ( ) const
inline

Definition at line 230 of file TStyle.h.

Referenced by TF1::DoInitialize(), SavePrimitive(), and TStyleManager::UpdateEditor().

Color_t TStyle::GetGridColor ( ) const
inline

Definition at line 231 of file TStyle.h.

Referenced by TGaxis::PaintAxis(), SavePrimitive(), and TStyleManager::UpdateEditor().

Style_t TStyle::GetGridStyle ( ) const
inline

Definition at line 232 of file TStyle.h.

Referenced by TGaxis::PaintAxis(), SavePrimitive(), and TStyleManager::UpdateEditor().

Width_t TStyle::GetGridWidth ( ) const
inline

Definition at line 233 of file TStyle.h.

Referenced by TGaxis::PaintAxis(), SavePrimitive(), and TStyleManager::UpdateEditor().

Int_t TStyle::GetHatchesLineWidth ( ) const
inline
Double_t TStyle::GetHatchesSpacing ( ) const
inline
const char* TStyle::GetHeaderPS ( ) const
inline
Color_t TStyle::GetHistFillColor ( ) const
inline
Style_t TStyle::GetHistFillStyle ( ) const
inline
Color_t TStyle::GetHistLineColor ( ) const
inline
Style_t TStyle::GetHistLineStyle ( ) const
inline
Width_t TStyle::GetHistLineWidth ( ) const
inline
Bool_t TStyle::GetHistMinimumZero ( ) const
inline
Double_t TStyle::GetHistTopMargin ( ) const
inline
Color_t TStyle::GetLabelColor ( Option_t axis = "X") const

Return the label color number in the axis.

Definition at line 738 of file TStyle.cxx.

Referenced by TStyleManager::ModApplyOnXYZ(), TGraphPainter::PaintGrapHist(), TAttAxis::ResetAttAxis(), SavePrimitive(), and TStyleManager::UpdateEditor().

Style_t TStyle::GetLabelFont ( Option_t axis = "X") const
Float_t TStyle::GetLabelOffset ( Option_t axis = "X") const
Float_t TStyle::GetLabelSize ( Option_t axis = "X") const
Width_t TStyle::GetLegendBorderSize ( ) const
inline

Definition at line 212 of file TStyle.h.

Referenced by SavePrimitive(), TLegend::TLegend(), and TStyleManager::UpdateEditor().

Color_t TStyle::GetLegendFillColor ( ) const
inline

Definition at line 213 of file TStyle.h.

Referenced by SavePrimitive(), and TLegend::TLegend().

Style_t TStyle::GetLegendFont ( ) const
inline

Definition at line 214 of file TStyle.h.

Referenced by SavePrimitive(), and TLegend::TLegend().

Double_t TStyle::GetLegendTextSize ( ) const
inline

Definition at line 215 of file TStyle.h.

Referenced by TLegend::PaintPrimitives(), and SavePrimitive().

Float_t TStyle::GetLegoInnerR ( ) const
inline
Float_t TStyle::GetLineScalePS ( ) const
inline
const char * TStyle::GetLineStyleString ( Int_t  i = 1) const

Return line style string (used by PostScript).

See SetLineStyleString for more explanations

Definition at line 787 of file TStyle.cxx.

Referenced by TImageDump::DrawPS(), TSVG::DrawPS(), ROOT::Quartz::SetLineStyle(), TPDF::SetLineStyle(), TPostScript::SetLineStyle(), TGX11::SetLineStyle(), and TGWin32::UpdateLineStyle().

Int_t TStyle::GetNdivisions ( Option_t axis = "X") const
Int_t TStyle::GetNumberContours ( ) const
inline
Int_t TStyle::GetNumberOfColors ( ) const
Int_t TStyle::GetOptDate ( ) const
inline
Int_t TStyle::GetOptFile ( ) const
inline

Definition at line 251 of file TStyle.h.

Int_t TStyle::GetOptFit ( ) const
inline
Int_t TStyle::GetOptLogx ( ) const
inline
Int_t TStyle::GetOptLogy ( ) const
inline
Int_t TStyle::GetOptLogz ( ) const
inline
Int_t TStyle::GetOptStat ( ) const
inline
Int_t TStyle::GetOptTitle ( ) const
inline
Int_t TStyle::GetPadBorderMode ( ) const
inline
Width_t TStyle::GetPadBorderSize ( ) const
inline
Float_t TStyle::GetPadBottomMargin ( ) const
inline
Color_t TStyle::GetPadColor ( ) const
inline
Bool_t TStyle::GetPadGridX ( ) const
inline
Bool_t TStyle::GetPadGridY ( ) const
inline
Float_t TStyle::GetPadLeftMargin ( ) const
inline
Float_t TStyle::GetPadRightMargin ( ) const
inline
Int_t TStyle::GetPadTickX ( ) const
inline
Int_t TStyle::GetPadTickY ( ) const
inline
Float_t TStyle::GetPadTopMargin ( ) const
inline
const char* TStyle::GetPaintTextFormat ( ) const
inline
void TStyle::GetPaperSize ( Float_t xsize,
Float_t ysize 
) const

Set paper size for PostScript output.

Definition at line 805 of file TStyle.cxx.

Referenced by TStyleManager::ModPaperSizePredef(), TSVG::Open(), TTeXDump::Open(), TPDF::Open(), TPostScript::Open(), and TStyleManager::UpdateEditor().

Float_t TStyle::GetScreenFactor ( ) const
inline
Int_t TStyle::GetShowEditor ( ) const
inline

Definition at line 261 of file TStyle.h.

Int_t TStyle::GetShowEventStatus ( ) const
inline

Definition at line 260 of file TStyle.h.

Int_t TStyle::GetShowToolBar ( ) const
inline

Definition at line 262 of file TStyle.h.

Width_t TStyle::GetStatBorderSize ( ) const
inline
Color_t TStyle::GetStatColor ( ) const
inline
Style_t TStyle::GetStatFont ( ) const
inline
Float_t TStyle::GetStatFontSize ( ) const
inline
const char* TStyle::GetStatFormat ( ) const
inline
Float_t TStyle::GetStatH ( ) const
inline
Style_t TStyle::GetStatStyle ( ) const
inline
Color_t TStyle::GetStatTextColor ( ) const
inline
Float_t TStyle::GetStatW ( ) const
inline
Float_t TStyle::GetStatX ( ) const
inline
Float_t TStyle::GetStatY ( ) const
inline
Int_t TStyle::GetStripDecimals ( ) const
inline

Definition at line 276 of file TStyle.h.

Referenced by TGaxis::PaintAxis(), SavePrimitive(), and TStyleManager::UpdateEditor().

Float_t TStyle::GetTickLength ( Option_t axis = "X") const
Double_t TStyle::GetTimeOffset ( ) const
inline
Int_t TStyle::GetTitleAlign ( )
inline
Width_t TStyle::GetTitleBorderSize ( ) const
inline
Color_t TStyle::GetTitleColor ( Option_t axis = "X") const

Return title color.

Definition at line 826 of file TStyle.cxx.

Referenced by TStyleManager::ModApplyOnXYZ(), TAttAxis::ResetAttAxis(), SavePrimitive(), and TStyleManager::UpdateEditor().

Color_t TStyle::GetTitleFillColor ( ) const
inline
Style_t TStyle::GetTitleFont ( Option_t axis = "X") const
Float_t TStyle::GetTitleFontSize ( ) const
inline
Float_t TStyle::GetTitleH ( ) const
inline
Float_t TStyle::GetTitleOffset ( Option_t axis = "X") const
const char* TStyle::GetTitlePS ( ) const
inline

Definition at line 293 of file TStyle.h.

Referenced by TPostScript::Initialize(), SavePrimitive(), and TStyleManager::UpdateEditor().

Float_t TStyle::GetTitleSize ( Option_t axis = "X") const
Style_t TStyle::GetTitleStyle ( ) const
inline
Color_t TStyle::GetTitleTextColor ( ) const
inline
Float_t TStyle::GetTitleW ( ) const
inline
Float_t TStyle::GetTitleX ( ) const
inline
Float_t TStyle::GetTitleXOffset ( ) const
inline

Definition at line 284 of file TStyle.h.

Float_t TStyle::GetTitleXSize ( ) const
inline

Definition at line 285 of file TStyle.h.

Float_t TStyle::GetTitleY ( ) const
inline
Float_t TStyle::GetTitleYOffset ( ) const
inline

Definition at line 286 of file TStyle.h.

Float_t TStyle::GetTitleYSize ( ) const
inline

Definition at line 287 of file TStyle.h.

Bool_t TStyle::IsReading ( ) const
inline
void TStyle::Paint ( Option_t option = "")
virtual

Show the options from the current style if (TClass::GetClass("TStyleManager")) gSystem->Load("libGed");.

Reimplemented from TObject.

Definition at line 875 of file TStyle.cxx.

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

Reset.

Definition at line 439 of file TStyle.cxx.

Referenced by TStyleManager::DoImportMacro(), and TStyle().

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

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

Reimplemented from TObject.

Definition at line 1542 of file TStyle.cxx.

Referenced by SaveSource().

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

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

Definition at line 1484 of file TStyle.cxx.

Referenced by TStyleManager::DoExport(), and TStyleManager::DoImportCanvas().

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

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXAxisColor(), TStyleManager::ModYAxisColor(), TStyleManager::ModZAxisColor(), and TAxis3D::UseCurrentStyle().

void TStyle::SetBarOffset ( Float_t  baroff = 0.5)
inline
void TStyle::SetBarWidth ( Float_t  barwidth = 0.5)
inline
void TStyle::SetCanvasBorderMode ( Int_t  mode = 1)
inline
void TStyle::SetCanvasBorderSize ( Width_t  size = 1)
inline

Definition at line 340 of file TStyle.h.

Referenced by TStyleManager::ModCanvasBorderSize(), and TCanvas::UseCurrentStyle().

void TStyle::SetCanvasColor ( Color_t  color = 19)
inline
void TStyle::SetCanvasDefH ( Int_t  h = 500)
inline

Definition at line 342 of file TStyle.h.

Referenced by TStyleManager::ModCanvasDefH().

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

Definition at line 343 of file TStyle.h.

Referenced by TStyleManager::ModCanvasDefW().

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

Definition at line 344 of file TStyle.h.

Referenced by TStyleManager::ModCanvasDefX().

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

Definition at line 345 of file TStyle.h.

Referenced by TStyleManager::ModCanvasDefY().

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

Definition at line 337 of file TStyle.h.

Referenced by ClassImp(), and TTreePlayer::DrawSelect().

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

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

Definition at line 899 of file TStyle.cxx.

Referenced by TStyleManager::ModColorModelPS(), and Reset().

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

Definition at line 333 of file TStyle.h.

Referenced by TStyleManager::ModDateX(), Reset(), and SetOptDate().

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

Definition at line 334 of file TStyle.h.

Referenced by TStyleManager::ModDateY(), Reset(), and SetOptDate().

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

Definition at line 338 of file TStyle.h.

Referenced by TStyleManager::ModDrawBorder(), and TGraphPainter::PaintGrapHist().

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

Referenced by TStyleManager::ModEndErrorSize().

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

Definition at line 336 of file TStyle.h.

Referenced by TStyleManager::ModErrorX(), testGausFit(), and testPolyFit().

void TStyle::SetFitFormat ( const char *  format = "5.4g")
inline
void TStyle::SetFrameBorderMode ( Int_t  mode = 1)
inline
void TStyle::SetFrameBorderSize ( Width_t  size = 1)
inline

Definition at line 372 of file TStyle.h.

Referenced by TStyleManager::ModFrameBorderSize(), and TFrame::UseCurrentStyle().

void TStyle::SetFrameFillColor ( Color_t  color = 1)
inline
void TStyle::SetFrameFillStyle ( Style_t  styl = 0)
inline
void TStyle::SetFrameLineColor ( Color_t  color = 1)
inline

Definition at line 368 of file TStyle.h.

Referenced by TStyleManager::ModFrameLineColor(), and TFrame::UseCurrentStyle().

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

Definition at line 370 of file TStyle.h.

Referenced by TStyleManager::ModFrameLineStyle(), and TFrame::UseCurrentStyle().

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

Definition at line 371 of file TStyle.h.

Referenced by TStyleManager::ModFrameLineWidth(), Reset(), TStyle(), and TFrame::UseCurrentStyle().

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

Definition at line 362 of file TStyle.h.

Referenced by TStyleManager::ModFuncColor(), Reset(), and TStyle().

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

Definition at line 361 of file TStyle.h.

Referenced by TStyleManager::ModFuncStyle().

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

Definition at line 363 of file TStyle.h.

Referenced by TStyleManager::ModFuncWidth(), Reset(), and TStyle().

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

Definition at line 365 of file TStyle.h.

Referenced by TStyleManager::ModGridColor().

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

Definition at line 364 of file TStyle.h.

Referenced by TStyleManager::ModGridStyle().

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

Definition at line 366 of file TStyle.h.

Referenced by TStyleManager::ModGridWidth().

void TStyle::SetHatchesLineWidth ( Int_t  l)
inline

Definition at line 303 of file TStyle.h.

Referenced by fillpatterns(), and TStyleManager::ModHatchesLineWidth().

void TStyle::SetHatchesSpacing ( Double_t  h)
inline

Definition at line 304 of file TStyle.h.

Referenced by fillpatterns(), and TStyleManager::ModHatchesSpacing().

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

Referenced by TStyleManager::ModHeaderPS().

void TStyle::SetHistFillColor ( Color_t  color = 1)
inline
void TStyle::SetHistFillStyle ( Style_t  styl = 0)
inline
void TStyle::SetHistLineColor ( Color_t  color = 1)
inline
void TStyle::SetHistLineStyle ( Style_t  styl = 0)
inline
void TStyle::SetHistLineWidth ( Width_t  width = 1)
inline
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 910 of file TStyle.cxx.

Referenced by TStyleManager::ModHistMinimumZero().

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

Definition at line 380 of file TStyle.h.

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

Referenced by TStyleDialog::DoOK().

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

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXLabelColor(), TStyleManager::ModYLabelColor(), TStyleManager::ModZLabelColor(), Reset(), TStyle(), and TAxis3D::UseCurrentStyle().

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

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXLabelFont(), TStyleManager::ModXLabelSizeInPixels(), TStyleManager::ModYLabelFont(), TStyleManager::ModYLabelSizeInPixels(), TStyleManager::ModZLabelFont(), TStyleManager::ModZLabelSizeInPixels(), Reset(), TStyle(), and TAxis3D::UseCurrentStyle().

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

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXLabelOffset(), TStyleManager::ModYLabelOffset(), TStyleManager::ModZLabelOffset(), Reset(), TStyle(), and TAxis3D::UseCurrentStyle().

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

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXLabelSize(), TStyleManager::ModXLabelSizeInPixels(), TStyleManager::ModYLabelSize(), TStyleManager::ModYLabelSizeInPixels(), TStyleManager::ModZLabelSize(), TStyleManager::ModZLabelSizeInPixels(), Reset(), TStyle(), and TAxis3D::UseCurrentStyle().

void TStyle::SetLegendBorderSize ( Width_t  size = 4)
inline
void TStyle::SetLegendFillColor ( Color_t  color = 0)
inline

Definition at line 347 of file TStyle.h.

Referenced by Reset(), and TStyle().

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

Definition at line 348 of file TStyle.h.

Referenced by Reset(), and TStyle().

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

Definition at line 349 of file TStyle.h.

Referenced by Reset(), and TStyle().

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

Definition at line 314 of file TStyle.h.

Referenced by TStyleManager::ModLegoInnerR().

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

Definition at line 306 of file TStyle.h.

Referenced by TStyleManager::ModLineScalePS(), and Reset().

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

Set line style string using the PostScript convention.

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

Default fixed line styles are pre-defined as:

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

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

gStyle->SetLineStyleString(5,"20 12 4 12");
gStyle->SetLineStyleString(6,"20 12 4 12 4 12 4 12");
gStyle->SetLineStyleString(8,"20 12 4 12 4 12");
base_linestyle.png

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

Referenced by TMVA::StatDialogMVAEffs::DrawHistograms(), Reset(), TParallelCoord::SetDotsSpacing(), and TMVA::TMVAGlob::SetTMVAStyle().

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.

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

Definition at line 931 of file TStyle.cxx.

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXNdivisions(), TStyleManager::ModYNdivisions(), TStyleManager::ModZNdivisions(), and TAxis3D::UseCurrentStyle().

void TStyle::SetNumberContours ( Int_t  number = 20)

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

Definition at line 1119 of file TStyle.cxx.

Referenced by TMVA::deviations(), TStyleManager::ModNumberContours(), and TMVA::Plot().

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:

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

Referenced by TStyleManager::ModOptDateBool(), and TStyleManager::ModOptDateFormat().

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

Definition at line 323 of file TStyle.h.

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 (default = 0111)

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

Note: gStyle->SetOptFit(1) means "default value", so it is equivalent to gStyle->SetOptFit(111)

see also SetOptStat below.

Definition at line 1204 of file TStyle.cxx.

Referenced by TStyleManager::ModOptFit(), piRandom(), TRootCanvas::ProcessMessage(), TPaveStats::SaveStyle(), TMVA::TMVAGlob::SetTMVAStyle(), testGraphFit(), unuranDistr(), and TPaveStats::UseCurrentStyle().

void TStyle::SetOptLogx ( Int_t  logx = 1)
inline
void TStyle::SetOptLogy ( Int_t  logy = 1)
inline
void TStyle::SetOptLogz ( Int_t  logz = 1)
inline

Definition at line 327 of file TStyle.h.

Referenced by TStyleManager::ModOptLogz(), and TPad::UseCurrentStyle().

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 (default = 000001111)

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

WARNING: never call SetOptStat(000111); but SetOptStat(1111), 0001111 will be taken as an octal number !!

WARNING: SetOptStat(1) is taken as SetOptStat(1111) (for back compatibility with older versions. If you want to print only the name of the histogram call SetOptStat(1000000001).

NOTE that in case of 2-D histograms, when selecting just underflow (10000) or overflow (100000), the stats box will show all combinations of underflow/overflows and not just one single number!

Definition at line 1252 of file TStyle.cxx.

Referenced by TGeoChecker::CheckBoundaryErrors(), ClassImp(), RooStats::HybridPlot::Draw(), DrawData(), TStatsFeedback::Feedback(), TProofPerfAnalysis::FileDist(), GAMinTutorial(), TMVA::TMVAGlob::Initialize(), TStyleManager::ModOptStat(), TEveDigitSetEditor::PlotHisto(), TRootCanvas::ProcessMessage(), Reset(), TPaveStats::SaveStyle(), SetOptStat(), TMVA::TMVAGlob::SetTMVAStyle(), TMemStatShow::Show(), TStyle(), TPaveStats::UseCurrentStyle(), TH1::UseCurrentStyle(), and TProofPerfAnalysis::WorkerActivity().

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

void TStyle::SetOptTitle ( Int_t  tit = 1)
inline
void TStyle::SetPadBorderMode ( Int_t  mode = 1)
inline
void TStyle::SetPadBorderSize ( Width_t  size = 1)
inline

Definition at line 351 of file TStyle.h.

Referenced by TStyleManager::ModPadBorderSize(), and TPad::UseCurrentStyle().

void TStyle::SetPadBottomMargin ( Float_t  margin = 0.1)
inline
void TStyle::SetPadColor ( Color_t  color = 19)
inline
void TStyle::SetPadGridX ( Bool_t  gridx)
inline

Definition at line 357 of file TStyle.h.

Referenced by TStyleManager::ModPadGridX(), and TPad::UseCurrentStyle().

void TStyle::SetPadGridY ( Bool_t  gridy)
inline

Definition at line 358 of file TStyle.h.

Referenced by TStyleManager::ModPadGridY(), and TPad::UseCurrentStyle().

void TStyle::SetPadLeftMargin ( Float_t  margin = 0.1)
inline
void TStyle::SetPadRightMargin ( Float_t  margin = 0.1)
inline
void TStyle::SetPadTickX ( Int_t  tickx)
inline
void TStyle::SetPadTickY ( Int_t  ticky)
inline
void TStyle::SetPadTopMargin ( Float_t  margin = 0.1)
inline
void TStyle::SetPaintTextFormat ( const char *  format = "g")
inline
void TStyle::SetPalette ( Int_t  ncolors = kBird,
Int_t colors = 0,
Float_t  alpha = 1. 
)
void TStyle::SetPaperSize ( EPaperSize  size)
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 1337 of file TStyle.cxx.

void TStyle::SetScreenFactor ( Float_t  factor = 1)
inline
void TStyle::SetStatBorderSize ( Width_t  size = 2)
inline
void TStyle::SetStatColor ( Color_t  color = 19)
inline
void TStyle::SetStatFont ( Style_t  font = 62)
inline
void TStyle::SetStatFontSize ( Float_t  size = 0)
inline
void TStyle::SetStatFormat ( const char *  format = "6.4g")
inline
void TStyle::SetStatH ( Float_t  h = 0.1)
inline

Definition at line 394 of file TStyle.h.

Referenced by TStyleManager::ModStatH(), and TPaveStats::UseCurrentStyle().

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

Definition at line 386 of file TStyle.h.

Referenced by TStyleManager::ModStatStyle(), and TPaveStats::UseCurrentStyle().

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

Definition at line 385 of file TStyle.h.

Referenced by TStyleManager::ModStatTextColor(), and TPaveStats::UseCurrentStyle().

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

Definition at line 393 of file TStyle.h.

Referenced by TStyleManager::ModStatW(), and TPaveStats::UseCurrentStyle().

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

Definition at line 391 of file TStyle.h.

Referenced by TStyleManager::ModStatX(), and TPaveStats::UseCurrentStyle().

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

Definition at line 392 of file TStyle.h.

Referenced by TStyleManager::ModStatY(), Reset(), TStyle(), and TPaveStats::UseCurrentStyle().

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

Referenced by TAxisEditor::DoDecimal(), and TStyleManager::ModStripDecimals().

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

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXTickLength(), TStyleManager::ModYTickLength(), TStyleManager::ModZTickLength(), and TAxis3D::UseCurrentStyle().

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

Referenced by TStyleManager::ModTimeOffset().

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

Definition at line 397 of file TStyle.h.

Referenced by TStyleManager::ModTitleAlign(), Reset(), and TStyle().

void TStyle::SetTitleBorderSize ( Width_t  size = 2)
inline
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 1367 of file TStyle.cxx.

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXTitleColor(), TStyleManager::ModYTitleColor(), TStyleManager::ModZTitleColor(), and TAxis3D::UseCurrentStyle().

void TStyle::SetTitleFillColor ( Color_t  color = 1)
inline
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 1388 of file TStyle.cxx.

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModTitleFont(), TStyleManager::ModTitleFontSizeInPixels(), TStyleManager::ModXTitleFont(), TStyleManager::ModXTitleSizeInPixels(), TStyleManager::ModYTitleFont(), TStyleManager::ModYTitleSizeInPixels(), TStyleManager::ModZTitleFont(), TStyleManager::ModZTitleSizeInPixels(), Reset(), TStyle(), TAxis3D::UseCurrentStyle(), and TPad::UseCurrentStyle().

void TStyle::SetTitleFontSize ( Float_t  size = 0)
inline
void TStyle::SetTitleH ( Float_t  h = 0)
inline
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 1411 of file TStyle.cxx.

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXTitleOffset(), TStyleManager::ModYTitleOffset(), TStyleManager::ModZTitleOffset(), Reset(), SetTitleXOffset(), SetTitleYOffset(), TStyle(), and TAxis3D::UseCurrentStyle().

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

Referenced by TStyleManager::ModTitlePS().

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

Referenced by TStyleManager::ModApplyOnXYZ(), TStyleManager::ModXTitleSize(), TStyleManager::ModXTitleSizeInPixels(), TStyleManager::ModYTitleSize(), TStyleManager::ModYTitleSizeInPixels(), TStyleManager::ModZTitleSize(), TStyleManager::ModZTitleSizeInPixels(), Reset(), SetTitleXSize(), SetTitleYSize(), TStyle(), and TAxis3D::UseCurrentStyle().

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

Definition at line 400 of file TStyle.h.

Referenced by TStyleManager::ModTitleStyle(), Reset(), and TStyle().

void TStyle::SetTitleTextColor ( Color_t  color = 1)
inline
void TStyle::SetTitleW ( Float_t  w = 0)
inline

Definition at line 409 of file TStyle.h.

Referenced by TStyleManager::ModTitleW(), and TMVA::mvaweights().

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

Definition at line 407 of file TStyle.h.

Referenced by TStyleManager::ModTitleX(), Reset(), and TStyle().

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

Definition at line 403 of file TStyle.h.

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

Definition at line 404 of file TStyle.h.

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

Definition at line 408 of file TStyle.h.

Referenced by TStyleManager::ModTitleY().

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

Definition at line 405 of file TStyle.h.

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

Definition at line 406 of file TStyle.h.

void TStyle::ToggleEditor ( )
inline

Definition at line 412 of file TStyle.h.

void TStyle::ToggleEventStatus ( )
inline

Definition at line 411 of file TStyle.h.

void TStyle::ToggleToolBar ( )
inline

Definition at line 413 of file TStyle.h.

Member Data Documentation

TAttText TStyle::fAttDate
private

Definition at line 75 of file TStyle.h.

Referenced by Copy(), GetAttDate(), Reset(), and SetOptDate().

Float_t TStyle::fBarOffset
private

Definition at line 59 of file TStyle.h.

Referenced by Copy(), GetBarOffset(), and Reset().

Float_t TStyle::fBarWidth
private

Definition at line 58 of file TStyle.h.

Referenced by Copy(), GetBarWidth(), and Reset().

Int_t TStyle::fCanvasBorderMode
private

Definition at line 109 of file TStyle.h.

Referenced by Copy(), GetCanvasBorderMode(), and Reset().

Width_t TStyle::fCanvasBorderSize
private

Definition at line 108 of file TStyle.h.

Referenced by Copy(), GetCanvasBorderSize(), and Reset().

Color_t TStyle::fCanvasColor
private

Definition at line 107 of file TStyle.h.

Referenced by Copy(), GetCanvasColor(), and Reset().

Int_t TStyle::fCanvasDefH
private

Definition at line 110 of file TStyle.h.

Referenced by Copy(), GetCanvasDefH(), and Reset().

Int_t TStyle::fCanvasDefW
private

Definition at line 111 of file TStyle.h.

Referenced by Copy(), GetCanvasDefW(), and Reset().

Int_t TStyle::fCanvasDefX
private

Definition at line 112 of file TStyle.h.

Referenced by Copy(), GetCanvasDefX(), and Reset().

Int_t TStyle::fCanvasDefY
private

Definition at line 113 of file TStyle.h.

Referenced by Copy(), GetCanvasDefY(), and Reset().

Bool_t TStyle::fCanvasPreferGL
private

Definition at line 106 of file TStyle.h.

Referenced by Copy(), GetCanvasPreferGL(), and Reset().

Int_t TStyle::fColorModelPS
private

Definition at line 60 of file TStyle.h.

Referenced by Copy(), GetColorModelPS(), and SetColorModelPS().

Float_t TStyle::fDateX
private

Definition at line 76 of file TStyle.h.

Referenced by Copy(), and GetDateX().

Float_t TStyle::fDateY
private

Definition at line 77 of file TStyle.h.

Referenced by Copy(), and GetDateY().

Int_t TStyle::fDrawBorder
private

Definition at line 61 of file TStyle.h.

Referenced by Copy(), GetDrawBorder(), and Reset().

Float_t TStyle::fEndErrorSize
private

Definition at line 78 of file TStyle.h.

Referenced by Copy(), GetEndErrorSize(), Reset(), and SetEndErrorSize().

Float_t TStyle::fErrorX
private

Definition at line 79 of file TStyle.h.

Referenced by Copy(), GetErrorX(), and Reset().

TString TStyle::fFitFormat
private

Definition at line 155 of file TStyle.h.

Referenced by Copy().

Int_t TStyle::fFrameBorderMode
private

Definition at line 98 of file TStyle.h.

Referenced by Copy(), GetFrameBorderMode(), and Reset().

Width_t TStyle::fFrameBorderSize
private

Definition at line 97 of file TStyle.h.

Referenced by Copy(), GetFrameBorderSize(), and Reset().

Color_t TStyle::fFrameFillColor
private

Definition at line 92 of file TStyle.h.

Referenced by Copy(), GetFrameFillColor(), and Reset().

Style_t TStyle::fFrameFillStyle
private

Definition at line 94 of file TStyle.h.

Referenced by Copy(), GetFrameFillStyle(), and Reset().

Color_t TStyle::fFrameLineColor
private

Definition at line 93 of file TStyle.h.

Referenced by Copy(), GetFrameLineColor(), and Reset().

Style_t TStyle::fFrameLineStyle
private

Definition at line 95 of file TStyle.h.

Referenced by Copy(), GetFrameLineStyle(), and Reset().

Width_t TStyle::fFrameLineWidth
private

Definition at line 96 of file TStyle.h.

Referenced by Copy(), GetFrameLineWidth(), and Reset().

Color_t TStyle::fFuncColor
private

Definition at line 80 of file TStyle.h.

Referenced by Copy(), GetFuncColor(), and Reset().

Style_t TStyle::fFuncStyle
private

Definition at line 81 of file TStyle.h.

Referenced by Copy(), GetFuncStyle(), and Reset().

Width_t TStyle::fFuncWidth
private

Definition at line 82 of file TStyle.h.

Referenced by Copy(), GetFuncWidth(), and Reset().

Color_t TStyle::fGridColor
private

Definition at line 83 of file TStyle.h.

Referenced by Copy(), GetGridColor(), and Reset().

Style_t TStyle::fGridStyle
private

Definition at line 84 of file TStyle.h.

Referenced by Copy(), GetGridStyle(), and Reset().

Width_t TStyle::fGridWidth
private

Definition at line 85 of file TStyle.h.

Referenced by Copy(), GetGridWidth(), and Reset().

Int_t TStyle::fHatchesLineWidth
private

Definition at line 90 of file TStyle.h.

Referenced by Copy(), GetHatchesLineWidth(), and Reset().

Double_t TStyle::fHatchesSpacing
private

Definition at line 91 of file TStyle.h.

Referenced by Copy(), GetHatchesSpacing(), and Reset().

TString TStyle::fHeaderPS
private

Definition at line 153 of file TStyle.h.

Referenced by Copy(), Reset(), and SetHeaderPS().

Color_t TStyle::fHistFillColor
private

Definition at line 99 of file TStyle.h.

Referenced by Copy(), GetHistFillColor(), and Reset().

Style_t TStyle::fHistFillStyle
private

Definition at line 101 of file TStyle.h.

Referenced by Copy(), GetHistFillStyle(), and Reset().

Color_t TStyle::fHistLineColor
private

Definition at line 100 of file TStyle.h.

Referenced by Copy(), GetHistLineColor(), and Reset().

Style_t TStyle::fHistLineStyle
private

Definition at line 102 of file TStyle.h.

Referenced by Copy(), GetHistLineStyle(), and Reset().

Width_t TStyle::fHistLineWidth
private

Definition at line 103 of file TStyle.h.

Referenced by Copy(), GetHistLineWidth(), and Reset().

Bool_t TStyle::fHistMinimumZero
private

Definition at line 104 of file TStyle.h.

Referenced by Copy(), GetHistMinimumZero(), Reset(), and SetHistMinimumZero().

Double_t TStyle::fHistTopMargin
private

Definition at line 105 of file TStyle.h.

Referenced by Copy(), GetHistTopMargin(), and Reset().

Bool_t TStyle::fIsReading
private

Definition at line 159 of file TStyle.h.

Referenced by Copy(), IsReading(), Reset(), and SetIsReading().

Width_t TStyle::fLegendBorderSize
private

Definition at line 86 of file TStyle.h.

Referenced by Copy(), GetLegendBorderSize(), and Reset().

Color_t TStyle::fLegendFillColor
private

Definition at line 87 of file TStyle.h.

Referenced by Copy(), GetLegendFillColor(), and Reset().

Style_t TStyle::fLegendFont
private

Definition at line 88 of file TStyle.h.

Referenced by Copy(), GetLegendFont(), and Reset().

Double_t TStyle::fLegendTextSize
private

Definition at line 89 of file TStyle.h.

Referenced by Copy(), GetLegendTextSize(), and Reset().

Float_t TStyle::fLegoInnerR
private

Definition at line 151 of file TStyle.h.

Referenced by Copy(), GetLegoInnerR(), and Reset().

Float_t TStyle::fLineScalePS
private

Definition at line 157 of file TStyle.h.

Referenced by Copy(), and GetLineScalePS().

TString TStyle::fLineStyle[30]
private

Definition at line 152 of file TStyle.h.

Referenced by Copy(), GetLineStyleString(), SavePrimitive(), and SetLineStyleString().

Int_t TStyle::fNumberContours
private

Definition at line 74 of file TStyle.h.

Referenced by Copy(), GetNumberContours(), Reset(), and SetNumberContours().

Int_t TStyle::fOptDate
private

Definition at line 65 of file TStyle.h.

Referenced by Copy(), GetOptDate(), Reset(), and SetOptDate().

Int_t TStyle::fOptFile
private

Definition at line 68 of file TStyle.h.

Referenced by GetOptFile(), and Reset().

Int_t TStyle::fOptFit
private

Definition at line 69 of file TStyle.h.

Referenced by Copy(), GetOptFit(), Reset(), and SetOptFit().

Int_t TStyle::fOptLogx
private

Definition at line 62 of file TStyle.h.

Referenced by Copy(), GetOptLogx(), and Reset().

Int_t TStyle::fOptLogy
private

Definition at line 63 of file TStyle.h.

Referenced by Copy(), GetOptLogy(), and Reset().

Int_t TStyle::fOptLogz
private

Definition at line 64 of file TStyle.h.

Referenced by Copy(), GetOptLogz(), and Reset().

Int_t TStyle::fOptStat
private

Definition at line 66 of file TStyle.h.

Referenced by Copy(), GetOptStat(), Reset(), and SetOptStat().

Int_t TStyle::fOptTitle
private

Definition at line 67 of file TStyle.h.

Referenced by Copy(), GetOptTitle(), and Reset().

Int_t TStyle::fPadBorderMode
private

Definition at line 116 of file TStyle.h.

Referenced by Copy(), GetPadBorderMode(), and Reset().

Width_t TStyle::fPadBorderSize
private

Definition at line 115 of file TStyle.h.

Referenced by Copy(), GetPadBorderSize(), and Reset().

Float_t TStyle::fPadBottomMargin
private

Definition at line 117 of file TStyle.h.

Referenced by Copy(), GetPadBottomMargin(), and Reset().

Color_t TStyle::fPadColor
private

Definition at line 114 of file TStyle.h.

Referenced by Copy(), GetPadColor(), and Reset().

Bool_t TStyle::fPadGridX
private

Definition at line 121 of file TStyle.h.

Referenced by Copy(), GetPadGridX(), and Reset().

Bool_t TStyle::fPadGridY
private

Definition at line 122 of file TStyle.h.

Referenced by Copy(), GetPadGridY(), and Reset().

Float_t TStyle::fPadLeftMargin
private

Definition at line 119 of file TStyle.h.

Referenced by Copy(), GetPadLeftMargin(), and Reset().

Float_t TStyle::fPadRightMargin
private

Definition at line 120 of file TStyle.h.

Referenced by Copy(), GetPadRightMargin(), and Reset().

Int_t TStyle::fPadTickX
private

Definition at line 123 of file TStyle.h.

Referenced by Copy(), GetPadTickX(), and Reset().

Int_t TStyle::fPadTickY
private

Definition at line 124 of file TStyle.h.

Referenced by Copy(), GetPadTickY(), and Reset().

Float_t TStyle::fPadTopMargin
private

Definition at line 118 of file TStyle.h.

Referenced by Copy(), GetPadTopMargin(), and Reset().

TString TStyle::fPaintTextFormat
private

Definition at line 156 of file TStyle.h.

Referenced by Copy().

Float_t TStyle::fPaperSizeX
private

Definition at line 125 of file TStyle.h.

Referenced by Copy(), GetPaperSize(), SavePrimitive(), and SetPaperSize().

Float_t TStyle::fPaperSizeY
private

Definition at line 126 of file TStyle.h.

Referenced by Copy(), GetPaperSize(), SavePrimitive(), and SetPaperSize().

Float_t TStyle::fScreenFactor
private

Definition at line 127 of file TStyle.h.

Referenced by Copy(), GetScreenFactor(), and Reset().

Int_t TStyle::fShowEditor
private

Definition at line 71 of file TStyle.h.

Referenced by Copy(), GetShowEditor(), and Reset().

Int_t TStyle::fShowEventStatus
private

Definition at line 70 of file TStyle.h.

Referenced by Copy(), GetShowEventStatus(), and Reset().

Int_t TStyle::fShowToolBar
private

Definition at line 72 of file TStyle.h.

Referenced by Copy(), GetShowToolBar(), and Reset().

Width_t TStyle::fStatBorderSize
private

Definition at line 130 of file TStyle.h.

Referenced by Copy(), GetStatBorderSize(), and Reset().

Color_t TStyle::fStatColor
private

Definition at line 128 of file TStyle.h.

Referenced by Copy(), GetStatColor(), and Reset().

Style_t TStyle::fStatFont
private

Definition at line 131 of file TStyle.h.

Referenced by Copy(), GetStatFont(), and Reset().

Float_t TStyle::fStatFontSize
private

Definition at line 132 of file TStyle.h.

Referenced by Copy(), GetStatFontSize(), and Reset().

TString TStyle::fStatFormat
private

Definition at line 134 of file TStyle.h.

Referenced by Copy().

Float_t TStyle::fStatH
private

Definition at line 138 of file TStyle.h.

Referenced by Copy(), GetStatH(), and Reset().

Style_t TStyle::fStatStyle
private

Definition at line 133 of file TStyle.h.

Referenced by Copy(), GetStatStyle(), and Reset().

Color_t TStyle::fStatTextColor
private

Definition at line 129 of file TStyle.h.

Referenced by Copy(), GetStatTextColor(), and Reset().

Float_t TStyle::fStatW
private

Definition at line 137 of file TStyle.h.

Referenced by Copy(), GetStatW(), and Reset().

Float_t TStyle::fStatX
private

Definition at line 135 of file TStyle.h.

Referenced by Copy(), GetStatX(), and Reset().

Float_t TStyle::fStatY
private

Definition at line 136 of file TStyle.h.

Referenced by Copy(), GetStatY(), and Reset().

Bool_t TStyle::fStripDecimals
private

Definition at line 139 of file TStyle.h.

Referenced by Copy(), GetStripDecimals(), Reset(), and SetStripDecimals().

Double_t TStyle::fTimeOffset
private

Definition at line 158 of file TStyle.h.

Referenced by Copy(), GetTimeOffset(), Reset(), and SetTimeOffset().

Int_t TStyle::fTitleAlign
private

Definition at line 140 of file TStyle.h.

Referenced by Copy(), GetTitleAlign(), and Reset().

Width_t TStyle::fTitleBorderSize
private

Definition at line 143 of file TStyle.h.

Referenced by Copy(), GetTitleBorderSize(), and Reset().

Color_t TStyle::fTitleColor
private

Definition at line 141 of file TStyle.h.

Referenced by Copy(), GetTitleFillColor(), Reset(), and SetTitleColor().

Style_t TStyle::fTitleFont
private

Definition at line 144 of file TStyle.h.

Referenced by Copy(), GetTitleFont(), Reset(), and SetTitleFont().

Float_t TStyle::fTitleFontSize
private

Definition at line 145 of file TStyle.h.

Referenced by Copy(), GetTitleFontSize(), GetTitleSize(), Reset(), and SetTitleSize().

Float_t TStyle::fTitleH
private

Definition at line 150 of file TStyle.h.

Referenced by Copy(), GetTitleH(), and Reset().

TString TStyle::fTitlePS
private

Definition at line 154 of file TStyle.h.

Referenced by Copy(), Reset(), and SetTitlePS().

Style_t TStyle::fTitleStyle
private

Definition at line 146 of file TStyle.h.

Referenced by Copy(), GetTitleStyle(), and Reset().

Color_t TStyle::fTitleTextColor
private

Definition at line 142 of file TStyle.h.

Referenced by Copy(), GetTitleColor(), GetTitleTextColor(), and Reset().

Float_t TStyle::fTitleW
private

Definition at line 149 of file TStyle.h.

Referenced by Copy(), GetTitleW(), and Reset().

Float_t TStyle::fTitleX
private

Definition at line 147 of file TStyle.h.

Referenced by Copy(), GetTitleX(), and Reset().

Float_t TStyle::fTitleY
private

Definition at line 148 of file TStyle.h.

Referenced by Copy(), GetTitleY(), and Reset().

TAttAxis TStyle::fXaxis
private
TAttAxis TStyle::fYaxis
private
TAttAxis TStyle::fZaxis
private

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