TStyle objects may be created to define special styles.
By default ROOT creates a default style that can be accessed via the gStyle pointer.
This class includes functions to set some of the following object attributes.
All objects that can be drawn in a pad inherit from one or more attribute classes like TAttLine, TAttFill, TAttText, TAttMarker. When the objects are created, their default attributes are taken from the current style. The current style is an object of the classTStyle and can be referenced via the global variable gStyle
(in TStyle.h).
ROOT provides two styles called "Default" and "Plain". The "Default" style is created simply by:
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.
You can set the current style with:
You can get a pointer to an existing style with:
You can create additional styles with:
In your rootlogon.C file, you can redefine the default parameters via statements like:
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:
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:
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:
Public Types | |
enum | EPaperSize { kA4 , kUSLetter } |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) } |
enum | EDeprecatedStatusBits { kObjInCanvas = BIT(3) } |
enum | EStatusBits { kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) , kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13) } |
Public Member Functions | |
TStyle () | |
Default constructor. | |
TStyle (const char *name, const char *title) | |
Create a new TStyle. | |
TStyle (const TStyle &style) | |
Copy constructor and assignment operator. | |
virtual | ~TStyle () |
Destructor. | |
Int_t | AxisChoice (Option_t *axis) const |
virtual void | Browse (TBrowser *b) |
Browse the style object. | |
virtual void | cd () |
Change current style. | |
virtual void | Copy (TObject &style) const |
Copy this style. | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Function used by the TStyle manager when drawing a canvas showing the current style. | |
TAttText * | GetAttDate () |
Color_t | GetAxisColor (Option_t *axis="X") const |
Return the axis color number in the axis. | |
Float_t | GetBarOffset () const |
Float_t | GetBarWidth () const |
Int_t | GetCanvasBorderMode () const |
Width_t | GetCanvasBorderSize () const |
Color_t | GetCanvasColor () const |
Int_t | GetCanvasDefH () const |
Int_t | GetCanvasDefW () const |
Int_t | GetCanvasDefX () const |
Int_t | GetCanvasDefY () const |
Bool_t | GetCanvasPreferGL () const |
Int_t | GetCapLinePS () const |
Returns the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details. | |
Int_t | GetColorModelPS () const |
Int_t | GetColorPalette (Int_t i) const |
Return color number i in current palette. | |
Float_t | GetDateX () const |
Float_t | GetDateY () const |
Int_t | GetDrawBorder () const |
Float_t | GetEndErrorSize () const |
Float_t | GetErrorX () const |
const char * | GetFitFormat () const |
Int_t | GetFrameBorderMode () const |
Width_t | GetFrameBorderSize () const |
Color_t | GetFrameFillColor () const |
Style_t | GetFrameFillStyle () const |
Color_t | GetFrameLineColor () const |
Style_t | GetFrameLineStyle () const |
Width_t | GetFrameLineWidth () const |
Color_t | GetFuncColor () const |
Style_t | GetFuncStyle () const |
Width_t | GetFuncWidth () const |
Color_t | GetGridColor () const |
Style_t | GetGridStyle () const |
Width_t | GetGridWidth () const |
Int_t | GetHatchesLineWidth () const |
Double_t | GetHatchesSpacing () const |
const char * | GetHeaderPS () const |
Color_t | GetHistFillColor () const |
Style_t | GetHistFillStyle () const |
Color_t | GetHistLineColor () const |
Style_t | GetHistLineStyle () const |
Width_t | GetHistLineWidth () const |
Bool_t | GetHistMinimumZero () const |
Double_t | GetHistTopMargin () const |
Float_t | GetImageScaling () const |
Int_t | GetJoinLinePS () const |
Returns the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for details. | |
Color_t | GetLabelColor (Option_t *axis="X") const |
Return the label color number in the axis. | |
Style_t | GetLabelFont (Option_t *axis="X") const |
Return label font. | |
Float_t | GetLabelOffset (Option_t *axis="X") const |
Return label offset. | |
Float_t | GetLabelSize (Option_t *axis="X") const |
Return label size. | |
Width_t | GetLegendBorderSize () const |
Color_t | GetLegendFillColor () const |
Style_t | GetLegendFont () const |
Double_t | GetLegendTextSize () const |
Float_t | GetLegoInnerR () const |
Float_t | GetLineScalePS () const |
const char * | GetLineStyleString (Int_t i=1) const |
Return line style string (used by PostScript). | |
Int_t | GetNdivisions (Option_t *axis="X") const |
Return number of divisions. | |
Int_t | GetNumberContours () const |
Int_t | GetNumberOfColors () const |
Return number of colors in the color palette. | |
Int_t | GetOptDate () const |
Int_t | GetOptFile () const |
Int_t | GetOptFit () const |
Int_t | GetOptLogx () const |
Int_t | GetOptLogy () const |
Int_t | GetOptLogz () const |
Int_t | GetOptStat () const |
Int_t | GetOptTitle () const |
Int_t | GetPadBorderMode () const |
Width_t | GetPadBorderSize () const |
Float_t | GetPadBottomMargin () const |
Color_t | GetPadColor () const |
Bool_t | GetPadGridX () const |
Bool_t | GetPadGridY () const |
Float_t | GetPadLeftMargin () const |
Float_t | GetPadRightMargin () const |
Int_t | GetPadTickX () const |
Int_t | GetPadTickY () const |
Float_t | GetPadTopMargin () const |
const char * | GetPaintTextFormat () const |
void | GetPaperSize (Float_t &xsize, Float_t &ysize) const |
Set paper size for PostScript output. | |
Float_t | GetScreenFactor () const |
Int_t | GetShowEditor () const |
Int_t | GetShowEventStatus () const |
Int_t | GetShowToolBar () const |
Width_t | GetStatBorderSize () const |
Color_t | GetStatColor () const |
Style_t | GetStatFont () const |
Float_t | GetStatFontSize () const |
const char * | GetStatFormat () const |
Float_t | GetStatH () const |
Style_t | GetStatStyle () const |
Color_t | GetStatTextColor () const |
Float_t | GetStatW () const |
Float_t | GetStatX () const |
Float_t | GetStatY () const |
Int_t | GetStripDecimals () const |
Float_t | GetTickLength (Option_t *axis="X") const |
Return tick length. | |
Double_t | GetTimeOffset () const |
Int_t | GetTitleAlign () |
Width_t | GetTitleBorderSize () const |
Color_t | GetTitleColor (Option_t *axis="X") const |
Return title color. | |
Color_t | GetTitleFillColor () const |
Style_t | GetTitleFont (Option_t *axis="X") const |
Return title font. | |
Float_t | GetTitleFontSize () const |
Float_t | GetTitleH () const |
Float_t | GetTitleOffset (Option_t *axis="X") const |
Return title offset. | |
const char * | GetTitlePS () const |
Float_t | GetTitleSize (Option_t *axis="X") const |
Return title size. | |
Style_t | GetTitleStyle () const |
Color_t | GetTitleTextColor () const |
Float_t | GetTitleW () const |
Float_t | GetTitleX () const |
Float_t | GetTitleXOffset () const |
Float_t | GetTitleXSize () const |
Float_t | GetTitleY () const |
Float_t | GetTitleYOffset () const |
Float_t | GetTitleYSize () const |
Bool_t | IsReading () const |
TStyle & | operator= (const TStyle &style) |
virtual void | Paint (Option_t *option="") |
Copy this style to gStyle. | |
virtual void | Reset (Option_t *option="") |
Reset. | |
void | SavePrimitive (std::ostream &out, Option_t *="") |
Save a main frame widget as a C++ statement(s) on output stream out. | |
void | SaveSource (const char *filename, Option_t *option=0) |
Save the current style in a C++ macro file. | |
void | SetAxisColor (Color_t color=1, Option_t *axis="X") |
Set color to draw the axis line and tick marks. | |
void | SetBarOffset (Float_t baroff=0.5) |
void | SetBarWidth (Float_t barwidth=0.5) |
void | SetCanvasBorderMode (Int_t mode=1) |
void | SetCanvasBorderSize (Width_t size=1) |
void | SetCanvasColor (Color_t color=19) |
void | SetCanvasDefH (Int_t h=500) |
void | SetCanvasDefW (Int_t w=700) |
void | SetCanvasDefX (Int_t topx=10) |
void | SetCanvasDefY (Int_t topy=10) |
void | SetCanvasPreferGL (Bool_t prefer=kTRUE) |
void | SetCapLinePS (Int_t capline=0) |
Set the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for details. | |
void | SetColorModelPS (Int_t c=0) |
Define the color model used by TPostScript and TPDF (RGB or CMYK). | |
void | SetDateX (Float_t x=0.01) |
void | SetDateY (Float_t y=0.01) |
void | SetDrawBorder (Int_t drawborder=1) |
void | SetEndErrorSize (Float_t np=2) |
Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors). | |
void | SetErrorX (Float_t errorx=0.5) |
void | 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 | SetLegendFont (Style_t font=62) |
void | SetLegendTextSize (Double_t size=0.) |
void | SetLegoInnerR (Float_t rad=0.5) |
void | SetLineScalePS (Float_t scale=3) |
void | SetLineStyleString (Int_t i, const char *text) |
Set line style string using the PostScript convention. | |
void | SetNdivisions (Int_t n=510, Option_t *axis="X") |
Set the number of divisions to draw an axis. | |
void | SetNumberContours (Int_t number=20) |
Set the default number of contour levels when drawing 2-d plots. | |
void | SetOptDate (Int_t datefl=1) |
If optdate is non null, the current date/time will be printed in the canvas. | |
void | SetOptFile (Int_t file=1) |
void | SetOptFit (Int_t fit=1) |
The type of information about fit parameters printed in the histogram statistics box can be selected via the parameter mode . | |
void | SetOptLogx (Int_t logx=1) |
void | SetOptLogy (Int_t logy=1) |
void | SetOptLogz (Int_t logz=1) |
void | SetOptStat (Int_t stat=1) |
The type of information printed in the histogram statistics box can be selected via the parameter mode. | |
void | SetOptStat (Option_t *stat) |
The parameter mode can be any combination of kKsSiourRmMen. | |
void | SetOptTitle (Int_t tit=1) |
void | SetPadBorderMode (Int_t mode=1) |
void | SetPadBorderSize (Width_t size=1) |
void | SetPadBottomMargin (Float_t margin=0.1) |
void | SetPadColor (Color_t color=19) |
void | SetPadGridX (Bool_t gridx) |
void | SetPadGridY (Bool_t gridy) |
void | SetPadLeftMargin (Float_t margin=0.1) |
void | SetPadRightMargin (Float_t margin=0.1) |
void | SetPadTickX (Int_t tickx) |
void | SetPadTickY (Int_t ticky) |
void | SetPadTopMargin (Float_t margin=0.1) |
void | SetPaintTextFormat (const char *format="g") |
void | SetPalette (Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.) |
See TColor::SetPalette. | |
void | SetPalette (TString fileName, Float_t alpha=1.) |
void | SetPaperSize (EPaperSize size) |
Set paper size for PostScript output. | |
void | SetPaperSize (Float_t xsize=20, Float_t ysize=26) |
Set paper size for PostScript output. | |
void | SetScreenFactor (Float_t factor=1) |
void | SetStatBorderSize (Width_t size=2) |
void | SetStatColor (Color_t color=19) |
void | SetStatFont (Style_t font=62) |
void | SetStatFontSize (Float_t size=0) |
void | SetStatFormat (const char *format="6.4g") |
void | SetStatH (Float_t h=0.1) |
void | SetStatStyle (Style_t style=1001) |
void | SetStatTextColor (Color_t color=1) |
void | SetStatW (Float_t w=0.19) |
void | SetStatX (Float_t x=0) |
void | SetStatY (Float_t y=0) |
void | SetStripDecimals (Bool_t strip=kTRUE) |
Set option to strip decimals when drawing axis labels. | |
void | SetTickLength (Float_t length=0.03, Option_t *axis="X") |
Set the tick marks length for an axis. | |
void | SetTimeOffset (Double_t toffset) |
Change the time offset for time plotting. | |
void | SetTitleAlign (Int_t a=13) |
void | SetTitleBorderSize (Width_t size=2) |
void | SetTitleColor (Color_t color=1, Option_t *axis="X") |
void | SetTitleFillColor (Color_t color=1) |
void | SetTitleFont (Style_t font=62, Option_t *axis="X") |
void | SetTitleFontSize (Float_t size=0) |
void | SetTitleH (Float_t h=0) |
void | SetTitleOffset (Float_t offset=1, Option_t *axis="X") |
Specify a parameter offset to control the distance between the axis and the axis title. | |
void | SetTitlePS (const char *pstitle) |
Define a string to be used in the %Title of the Postscript files. | |
void | SetTitleSize (Float_t size=0.02, Option_t *axis="X") |
void | SetTitleStyle (Style_t style=1001) |
void | SetTitleTextColor (Color_t color=1) |
void | SetTitleW (Float_t w=0) |
void | SetTitleX (Float_t x=0) |
void | SetTitleXOffset (Float_t offset=1) |
void | SetTitleXSize (Float_t size=0.02) |
void | SetTitleY (Float_t y=0.985) |
void | SetTitleYOffset (Float_t offset=1) |
void | SetTitleYSize (Float_t size=0.02) |
void | ToggleEditor () |
void | ToggleEventStatus () |
void | ToggleToolBar () |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
TNamed destructor. | |
virtual void | Clear (Option_t *option="") |
Set name and title to empty strings (""). | |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. | |
virtual Int_t | Compare (const TObject *obj) const |
Compare two TNamed objects. | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. | |
virtual const char * | GetName () const |
Returns name of object. | |
virtual const char * | GetTitle () const |
Returns title of object. | |
virtual ULong_t | Hash () const |
Return hash value for this object. | |
virtual Bool_t | IsSortable () const |
virtual void | ls (Option_t *option="") const |
List TNamed name and title. | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. | |
virtual void | Print (Option_t *option="") const |
Print TNamed name and title. | |
virtual void | SetName (const char *name) |
Set the name of the TNamed. | |
virtual void | SetNameTitle (const char *name, const char *title) |
Set all the TNamed parameters (name and title). | |
virtual void | SetTitle (const char *title="") |
Set the title of the TNamed. | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. | |
TObject (const TObject &object) | |
TObject copy ctor. | |
virtual | ~TObject () |
TObject destructor. | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. | |
virtual void | Delete (Option_t *option="") |
Delete this object. | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . | |
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=0) |
Execute method on this object with the given parameter string, e.g. | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
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 TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. | |
virtual const char * | GetIconName () const |
Returns mime type name of object. | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). | |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. | |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
IsDestructed. | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. | |
void | operator delete (void *ptr) |
Operator delete. | |
void | operator delete[] (void *ptr) |
Operator delete []. | |
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) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. | |
Public Member Functions inherited from TAttLine | |
TAttLine () | |
AttLine default constructor. | |
TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth) | |
AttLine normal constructor. | |
virtual | ~TAttLine () |
AttLine destructor. | |
void | Copy (TAttLine &attline) const |
Copy this line attributes to a new TAttLine. | |
Int_t | DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
Compute distance from point px,py to a line. | |
virtual Color_t | GetLineColor () const |
Return the line color. | |
virtual Style_t | GetLineStyle () const |
Return the line style. | |
virtual Width_t | GetLineWidth () const |
Return the line width. | |
virtual void | Modify () |
Change current line attributes if necessary. | |
virtual void | ResetAttLine (Option_t *option="") |
Reset this line attributes to default values. | |
virtual void | SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1) |
Save line attributes as C++ statement(s) on output stream out. | |
virtual void | SetLineAttributes () |
Invoke the DialogCanvas Line attributes. | |
virtual void | SetLineColor (Color_t lcolor) |
Set the line color. | |
virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. | |
virtual void | SetLineStyle (Style_t lstyle) |
Set the line style. | |
virtual void | SetLineWidth (Width_t lwidth) |
Set the line width. | |
Public Member Functions inherited from TAttFill | |
TAttFill () | |
AttFill default constructor. | |
TAttFill (Color_t fcolor, Style_t fstyle) | |
AttFill normal constructor. | |
virtual | ~TAttFill () |
AttFill destructor. | |
void | Copy (TAttFill &attfill) const |
Copy this fill attributes to a new TAttFill. | |
virtual Color_t | GetFillColor () const |
Return the fill area color. | |
virtual Style_t | GetFillStyle () const |
Return the fill area style. | |
virtual Bool_t | IsTransparent () const |
virtual void | Modify () |
Change current fill area attributes if necessary. | |
virtual void | ResetAttFill (Option_t *option="") |
Reset this fill attributes to default values. | |
virtual void | SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001) |
Save fill attributes as C++ statement(s) on output stream out. | |
virtual void | SetFillAttributes () |
Invoke the DialogCanvas Fill attributes. | |
virtual void | SetFillColor (Color_t fcolor) |
Set the fill area color. | |
virtual void | SetFillColorAlpha (Color_t fcolor, Float_t falpha) |
Set a transparent fill color. | |
virtual void | SetFillStyle (Style_t fstyle) |
Set the fill area style. | |
Public Member Functions inherited from TAttMarker | |
TAttMarker () | |
TAttMarker default constructor. | |
TAttMarker (Color_t color, Style_t style, Size_t msize) | |
TAttMarker normal constructor. | |
virtual | ~TAttMarker () |
TAttMarker destructor. | |
void | Copy (TAttMarker &attmarker) const |
Copy this marker attributes to a new TAttMarker. | |
virtual Color_t | GetMarkerColor () const |
Return the marker color. | |
virtual Size_t | GetMarkerSize () const |
Return the marker size. | |
virtual Style_t | GetMarkerStyle () const |
Return the marker style. | |
virtual void | Modify () |
Change current marker attributes if necessary. | |
virtual void | ResetAttMarker (Option_t *toption="") |
Reset this marker attributes to the default values. | |
virtual void | SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1) |
Save line attributes as C++ statement(s) on output stream out. | |
virtual void | SetMarkerAttributes () |
Invoke the DialogCanvas Marker attributes. | |
virtual void | SetMarkerColor (Color_t mcolor=1) |
Set the marker color. | |
virtual void | SetMarkerColorAlpha (Color_t mcolor, Float_t malpha) |
Set a transparent marker color. | |
virtual void | SetMarkerSize (Size_t msize=1) |
Set the marker size. | |
virtual void | SetMarkerStyle (Style_t mstyle=1) |
Set the marker style. | |
Public Member Functions inherited from TAttText | |
TAttText () | |
AttText default constructor. | |
TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) | |
AttText normal constructor. | |
virtual | ~TAttText () |
AttText destructor. | |
void | Copy (TAttText &atttext) const |
Copy this text attributes to a new TAttText. | |
virtual Short_t | GetTextAlign () const |
Return the text alignment. | |
virtual Float_t | GetTextAngle () const |
Return the text angle. | |
virtual Color_t | GetTextColor () const |
Return the text color. | |
virtual Font_t | GetTextFont () const |
Return the text font. | |
virtual Float_t | GetTextSize () const |
Return the text size. | |
virtual Float_t | GetTextSizePercent (Float_t size) |
Return the text in percent of the pad size. | |
virtual void | Modify () |
Change current text attributes if necessary. | |
virtual void | ResetAttText (Option_t *toption="") |
Reset this text attributes to default values. | |
virtual void | SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1) |
Save text attributes as C++ statement(s) on output stream out. | |
virtual void | SetTextAlign (Short_t align=11) |
Set the text alignment. | |
virtual void | SetTextAngle (Float_t tangle=0) |
Set the text angle. | |
virtual void | SetTextAttributes () |
Invoke the DialogCanvas Text attributes. | |
virtual void | SetTextColor (Color_t tcolor=1) |
Set the text color. | |
virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
Set a transparent marker color. | |
virtual void | SetTextFont (Font_t tfont=62) |
Set the text font. | |
virtual void | SetTextSize (Float_t tsize=1) |
Set the text size. | |
virtual void | SetTextSizePixels (Int_t npixels) |
Set the text size in pixel. | |
Static Public Member Functions | |
static void | BuildStyles () |
Create some standard styles. | |
Static Public Member Functions inherited from TObject | |
static Longptr_t | GetDtorOnly () |
Return destructor only flag. | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. | |
Static Public Member Functions inherited from TAttMarker | |
static Width_t | GetMarkerLineWidth (Style_t style) |
Internal helper function that returns the line width of the given marker style (0 = filled marker) | |
static Style_t | GetMarkerStyleBase (Style_t style) |
Internal helper function that returns the corresponding marker style with line width 1 for the given style. | |
Private Attributes | |
TAttText | fAttDate |
Canvas date attribute. | |
Float_t | fBarOffset |
Offset of bar for graphs. | |
Float_t | fBarWidth |
Width of bar for graphs. | |
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 | 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. | |
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. | |
TAttAxis | fXaxis |
X axis attributes. | |
TAttAxis | fYaxis |
Y axis attributes. | |
TAttAxis | fZaxis |
Z axis attributes. | |
Additional Inherited Members | |
Protected Types inherited from TObject | |
enum | { kOnlyPrepStep = BIT(3) } |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). | |
void | MakeZombie () |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from TAttLine | |
Color_t | fLineColor |
Line color. | |
Style_t | fLineStyle |
Line style. | |
Width_t | fLineWidth |
Line width. | |
Protected Attributes inherited from TAttFill | |
Color_t | fFillColor |
Fill area color. | |
Style_t | fFillStyle |
Fill area style. | |
Protected Attributes inherited from TAttMarker | |
Color_t | fMarkerColor |
Marker color. | |
Size_t | fMarkerSize |
Marker size. | |
Style_t | fMarkerStyle |
Marker style. | |
Protected Attributes inherited from TAttText | |
Short_t | fTextAlign |
Text alignment. | |
Float_t | fTextAngle |
Text angle. | |
Color_t | fTextColor |
Text color. | |
Font_t | fTextFont |
Text font. | |
Float_t | fTextSize |
Text size. | |
#include <TStyle.h>
enum TStyle::EPaperSize |
TStyle::TStyle | ( | ) |
Default constructor.
Definition at line 145 of file TStyle.cxx.
TStyle::TStyle | ( | const char * | name, |
const char * | title | ||
) |
Create a new TStyle.
The following names are reserved to create special styles
Classic
: Similar to 'Defaultstyle set in TStyle::Reset -
Plain: a black&white oriented style -
Bold -
Video -
Pub -
ModernUsed when ROOT starts -
ATLAS: style used by the ATLAS experiment -
BELLE2`: style used by the BELLE II experiment (see the definition of these styles below).Note a side-effect of calling gStyle->SetFillColor(0). This is nearly equivalent of selecting the "Plain" style.
Many graphics attributes may be set via the TStyle, see in particular
The current style is pointed by gStyle.
When calling myStyle->cd(), gStyle is set to myStyle.
One can also use gROOT to change the current style, e.g.
gROOT->SetStyle("Plain") will change the current style gStyle to the "Plain" style
See also TROOT::ForceStyle and TROOT::UseCurrentStyle
Definition at line 198 of file TStyle.cxx.
TStyle::TStyle | ( | const TStyle & | style | ) |
Copy constructor and assignment operator.
Definition at line 487 of file TStyle.cxx.
|
virtual |
Destructor.
Definition at line 477 of file TStyle.cxx.
|
static |
Create some standard styles.
Definition at line 509 of file TStyle.cxx.
|
virtual |
Change current style.
Definition at line 527 of file TStyle.cxx.
Function used by the TStyle manager when drawing a canvas showing the current style.
Reimplemented from TObject.
Definition at line 657 of file TStyle.cxx.
Return the axis color number in the axis.
Definition at line 1044 of file TStyle.cxx.
|
inline |
Returns the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap
for details.
Return color number i in current palette.
Definition at line 1056 of file TStyle.cxx.
|
inline |
Returns the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin
for details.
Return the label color number in the axis.
Definition at line 1064 of file TStyle.cxx.
Return label font.
Definition at line 1076 of file TStyle.cxx.
Return label offset.
Definition at line 1088 of file TStyle.cxx.
Return label size.
Definition at line 1100 of file TStyle.cxx.
const char * TStyle::GetLineStyleString | ( | Int_t | i = 1 | ) | const |
Return line style string (used by PostScript).
See SetLineStyleString for more explanations
Definition at line 1113 of file TStyle.cxx.
Return number of divisions.
Definition at line 1032 of file TStyle.cxx.
Int_t TStyle::GetNumberOfColors | ( | ) | const |
Return number of colors in the color palette.
Definition at line 1122 of file TStyle.cxx.
Set paper size for PostScript output.
Definition at line 1131 of file TStyle.cxx.
Return tick length.
Definition at line 1140 of file TStyle.cxx.
Return title color.
Definition at line 1152 of file TStyle.cxx.
Return title font.
Definition at line 1164 of file TStyle.cxx.
Return title offset.
Definition at line 1176 of file TStyle.cxx.
Return title size.
Definition at line 1188 of file TStyle.cxx.
Definition at line 492 of file TStyle.cxx.
Reset.
Definition at line 666 of file TStyle.cxx.
Save a main frame widget as a C++ statement(s) on output stream out.
Reimplemented from TObject.
Definition at line 1886 of file TStyle.cxx.
Save the current style in a C++ macro file.
Definition at line 1828 of file TStyle.cxx.
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 1271 of file TStyle.cxx.
Set the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap
for details.
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:
CMYK adds the black component which allows better quality for black printing. PostScript and PDF support the CMYK model.
Definition at line 1223 of file TStyle.cxx.
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 1288 of file TStyle.cxx.
|
inline |
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
the following header string will print the string "my annotation" at the bottom left corner of the page (outside the user area)
This information is used in TPostScript::Initialize
Definition at line 1310 of file TStyle.cxx.
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 1236 of file TStyle.cxx.
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 1322 of file TStyle.cxx.
Set the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin
for details.
Set axis labels color.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1341 of file TStyle.cxx.
Set font number used to draw axis labels.
Definition at line 1361 of file TStyle.cxx.
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 1377 of file TStyle.cxx.
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 1392 of file TStyle.cxx.
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:
For example the following lines define the line style 5 to 9.
Note:
Definition at line 1431 of file TStyle.cxx.
Set the number of divisions to draw an axis.
ndiv : Number of divisions.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1257 of file TStyle.cxx.
Set the default number of contour levels when drawing 2-d plots.
Definition at line 1448 of file TStyle.cxx.
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
examples:
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:
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 1494 of file TStyle.cxx.
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
:
gStyle->SetOptFit(1011);
print fit probability, parameter names/values and errors.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)
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 1541 of file TStyle.cxx.
The type of information printed in the histogram statistics box can be selected via the parameter mode.
The parameter mode can be = ksiourmen
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.
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)
.Definition at line 1589 of file TStyle.cxx.
The parameter mode can be any combination of kKsSiourRmMen.
Example: gStyle->SetOptStat("ne");
print only name of histogram and number of entries.
gStyle->SetOptStat("n")
print only the name of the histogramgStyle->SetOptStat("nemr")
is the default Definition at line 1626 of file TStyle.cxx.
|
inline |
See TColor::SetPalette.
Definition at line 1782 of file TStyle.cxx.
Definition at line 1789 of file TStyle.cxx.
void TStyle::SetPaperSize | ( | EPaperSize | size | ) |
Set paper size for PostScript output.
Definition at line 1654 of file TStyle.cxx.
Set paper size for PostScript output.
The paper size is specified in centimeters. Default is 20x26. See also TPad::Print
Definition at line 1674 of file TStyle.cxx.
|
inline |
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 1820 of file TStyle.cxx.
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 1685 of file TStyle.cxx.
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 1807 of file TStyle.cxx.
any other value of axis will set the pad title color
if axis="xyz" set all 3 axes
Definition at line 1704 of file TStyle.cxx.
any other value of axis will set the pad title font
if axis="xyz" set all 3 axes
Definition at line 1725 of file TStyle.cxx.
Specify a parameter offset to control the distance between the axis and the axis title.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1748 of file TStyle.cxx.
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 1331 of file TStyle.cxx.
any other value of axis will set the pad title size
if axis="xyz" set all 3 axes
Definition at line 1767 of file TStyle.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |