ROOT 6.18/05 Reference Guide |
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. More... | |
TStyle (const char *name, const char *title) | |
Create a new TStyle. More... | |
TStyle (const TStyle &style) | |
Copy constructor. More... | |
virtual | ~TStyle () |
Destructor. More... | |
Int_t | AxisChoice (Option_t *axis) const |
virtual void | Browse (TBrowser *b) |
Browse the style object. More... | |
virtual void | cd () |
Change current style. More... | |
virtual void | Copy (TObject &style) const |
Copy this style. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Function used by the TStyle manager when drawing a canvas showing the current style. More... | |
TAttText * | GetAttDate () |
Color_t | GetAxisColor (Option_t *axis="X") const |
Return the axis color number in the axis. More... | |
Float_t | GetBarOffset () const |
Float_t | GetBarWidth () const |
Int_t | GetCanvasBorderMode () const |
Width_t | GetCanvasBorderSize () const |
Color_t | GetCanvasColor () const |
Int_t | GetCanvasDefH () const |
Int_t | GetCanvasDefW () const |
Int_t | GetCanvasDefX () const |
Int_t | GetCanvasDefY () const |
Bool_t | GetCanvasPreferGL () const |
Int_t | GetColorModelPS () const |
Int_t | GetColorPalette (Int_t i) const |
Return color number i in current palette. More... | |
Float_t | GetDateX () const |
Float_t | GetDateY () const |
Int_t | GetDrawBorder () const |
Float_t | GetEndErrorSize () const |
Float_t | GetErrorX () const |
const char * | GetFitFormat () const |
Int_t | GetFrameBorderMode () const |
Width_t | GetFrameBorderSize () const |
Color_t | GetFrameFillColor () const |
Style_t | GetFrameFillStyle () const |
Color_t | GetFrameLineColor () const |
Style_t | GetFrameLineStyle () const |
Width_t | GetFrameLineWidth () const |
Color_t | GetFuncColor () const |
Style_t | GetFuncStyle () const |
Width_t | GetFuncWidth () const |
Color_t | GetGridColor () const |
Style_t | GetGridStyle () const |
Width_t | GetGridWidth () const |
Int_t | GetHatchesLineWidth () const |
Double_t | GetHatchesSpacing () const |
const char * | GetHeaderPS () const |
Color_t | GetHistFillColor () const |
Style_t | GetHistFillStyle () const |
Color_t | GetHistLineColor () const |
Style_t | GetHistLineStyle () const |
Width_t | GetHistLineWidth () const |
Bool_t | GetHistMinimumZero () const |
Double_t | GetHistTopMargin () const |
Float_t | GetImageScaling () const |
Int_t | GetJoinLinePS () const |
Color_t | GetLabelColor (Option_t *axis="X") const |
Return the label color number in the axis. More... | |
Style_t | GetLabelFont (Option_t *axis="X") const |
Return label font. More... | |
Float_t | GetLabelOffset (Option_t *axis="X") const |
Return label offset. More... | |
Float_t | GetLabelSize (Option_t *axis="X") const |
Return label size. More... | |
Width_t | GetLegendBorderSize () const |
Color_t | GetLegendFillColor () const |
Style_t | GetLegendFont () const |
Double_t | GetLegendTextSize () const |
Float_t | GetLegoInnerR () const |
Float_t | GetLineScalePS () const |
const char * | GetLineStyleString (Int_t i=1) const |
Return line style string (used by PostScript). More... | |
Int_t | GetNdivisions (Option_t *axis="X") const |
Return number of divisions. More... | |
Int_t | GetNumberContours () const |
Int_t | GetNumberOfColors () const |
Return number of colors in the color palette. More... | |
Int_t | GetOptDate () const |
Int_t | GetOptFile () const |
Int_t | GetOptFit () const |
Int_t | GetOptLogx () const |
Int_t | GetOptLogy () const |
Int_t | GetOptLogz () const |
Int_t | GetOptStat () const |
Int_t | GetOptTitle () const |
Int_t | GetPadBorderMode () const |
Width_t | GetPadBorderSize () const |
Float_t | GetPadBottomMargin () const |
Color_t | GetPadColor () const |
Bool_t | GetPadGridX () const |
Bool_t | GetPadGridY () const |
Float_t | GetPadLeftMargin () const |
Float_t | GetPadRightMargin () const |
Int_t | GetPadTickX () const |
Int_t | GetPadTickY () const |
Float_t | GetPadTopMargin () const |
const char * | GetPaintTextFormat () const |
void | GetPaperSize (Float_t &xsize, Float_t &ysize) const |
Set paper size for PostScript output. More... | |
Float_t | GetScreenFactor () const |
Int_t | GetShowEditor () const |
Int_t | GetShowEventStatus () const |
Int_t | GetShowToolBar () const |
Width_t | GetStatBorderSize () const |
Color_t | GetStatColor () const |
Style_t | GetStatFont () const |
Float_t | GetStatFontSize () const |
const char * | GetStatFormat () const |
Float_t | GetStatH () const |
Style_t | GetStatStyle () const |
Color_t | GetStatTextColor () const |
Float_t | GetStatW () const |
Float_t | GetStatX () const |
Float_t | GetStatY () const |
Int_t | GetStripDecimals () const |
Float_t | GetTickLength (Option_t *axis="X") const |
Return tick length. More... | |
Double_t | GetTimeOffset () const |
Int_t | GetTitleAlign () |
Width_t | GetTitleBorderSize () const |
Color_t | GetTitleColor (Option_t *axis="X") const |
Return title color. More... | |
Color_t | GetTitleFillColor () const |
Style_t | GetTitleFont (Option_t *axis="X") const |
Return title font. More... | |
Float_t | GetTitleFontSize () const |
Float_t | GetTitleH () const |
Float_t | GetTitleOffset (Option_t *axis="X") const |
Return title offset. More... | |
const char * | GetTitlePS () const |
Float_t | GetTitleSize (Option_t *axis="X") const |
Return title size. More... | |
Style_t | GetTitleStyle () const |
Color_t | GetTitleTextColor () const |
Float_t | GetTitleW () const |
Float_t | GetTitleX () const |
Float_t | GetTitleXOffset () const |
Float_t | GetTitleXSize () const |
Float_t | GetTitleY () const |
Float_t | GetTitleYOffset () const |
Float_t | GetTitleYSize () const |
Bool_t | IsReading () const |
virtual void | Paint (Option_t *option="") |
Show the options from the current style. More... | |
virtual void | Reset (Option_t *option="") |
Reset. More... | |
void | SavePrimitive (std::ostream &out, Option_t *="") |
Save a main frame widget as a C++ statement(s) on output stream out. More... | |
void | SaveSource (const char *filename, Option_t *option=0) |
Save the current style in a C++ macro file. More... | |
void | SetAxisColor (Color_t color=1, Option_t *axis="X") |
Set color to draw the axis line and tick marks. More... | |
void | SetBarOffset (Float_t baroff=0.5) |
void | SetBarWidth (Float_t barwidth=0.5) |
void | SetCanvasBorderMode (Int_t mode=1) |
void | SetCanvasBorderSize (Width_t size=1) |
void | SetCanvasColor (Color_t color=19) |
void | SetCanvasDefH (Int_t h=500) |
void | SetCanvasDefW (Int_t w=700) |
void | SetCanvasDefX (Int_t topx=10) |
void | SetCanvasDefY (Int_t topy=10) |
void | SetCanvasPreferGL (Bool_t prefer=kTRUE) |
void | SetColorModelPS (Int_t c=0) |
Define the color model used by TPostScript and TPDF (RGB or CMYK). More... | |
void | SetDateX (Float_t x=0.01) |
void | SetDateY (Float_t y=0.01) |
void | SetDrawBorder (Int_t drawborder=1) |
void | SetEndErrorSize (Float_t np=2) |
Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors). More... | |
void | SetErrorX (Float_t errorx=0.5) |
void | SetFitFormat (const char *format="5.4g") |
void | SetFrameBorderMode (Int_t mode=1) |
void | SetFrameBorderSize (Width_t size=1) |
void | SetFrameFillColor (Color_t color=1) |
void | SetFrameFillStyle (Style_t styl=0) |
void | SetFrameLineColor (Color_t color=1) |
void | SetFrameLineStyle (Style_t styl=0) |
void | SetFrameLineWidth (Width_t width=1) |
void | SetFuncColor (Color_t color=1) |
void | SetFuncStyle (Style_t style=1) |
void | SetFuncWidth (Width_t width=4) |
void | SetGridColor (Color_t color=0) |
void | SetGridStyle (Style_t style=3) |
void | SetGridWidth (Width_t width=1) |
void | SetHatchesLineWidth (Int_t l) |
void | SetHatchesSpacing (Double_t h) |
void | SetHeaderPS (const char *header) |
Define a string to be inserted in the Postscript header. More... | |
void | SetHistFillColor (Color_t color=1) |
void | SetHistFillStyle (Style_t styl=0) |
void | SetHistLineColor (Color_t color=1) |
void | SetHistLineStyle (Style_t styl=0) |
void | SetHistLineWidth (Width_t width=1) |
void | SetHistMinimumZero (Bool_t zero=kTRUE) |
If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms is set to 0. More... | |
void | SetHistTopMargin (Double_t hmax=0.05) |
void | SetImageScaling (Float_t s) |
void | SetIsReading (Bool_t reading=kTRUE) |
Sets the fIsReading member to reading (default=kTRUE). More... | |
void | SetJoinLinePS (Int_t joinline=0) |
void | SetLabelColor (Color_t color=1, Option_t *axis="X") |
Set axis labels color. More... | |
void | SetLabelFont (Style_t font=62, Option_t *axis="X") |
Set font number used to draw axis labels. More... | |
void | SetLabelOffset (Float_t offset=0.005, Option_t *axis="X") |
Set offset between axis and axis labels. More... | |
void | SetLabelSize (Float_t size=0.04, Option_t *axis="X") |
Set size of axis labels. More... | |
void | SetLegendBorderSize (Width_t size=4) |
void | SetLegendFillColor (Color_t color=0) |
void | SetLegendFont (Style_t font=62) |
void | SetLegendTextSize (Double_t size=0.) |
void | SetLegoInnerR (Float_t rad=0.5) |
void | SetLineScalePS (Float_t scale=3) |
void | SetLineStyleString (Int_t i, const char *text) |
Set line style string using the PostScript convention. More... | |
void | SetNdivisions (Int_t n=510, Option_t *axis="X") |
Set the number of divisions to draw an axis. More... | |
void | SetNumberContours (Int_t number=20) |
Set the default number of contour levels when drawing 2-d plots. More... | |
void | SetOptDate (Int_t datefl=1) |
If optdate is non null, the current date/time will be printed in the canvas. More... | |
void | SetOptFile (Int_t file=1) |
void | SetOptFit (Int_t fit=1) |
The type of information about fit parameters printed in the histogram statistics box can be selected via the parameter mode . More... | |
void | SetOptLogx (Int_t logx=1) |
void | SetOptLogy (Int_t logy=1) |
void | SetOptLogz (Int_t logz=1) |
void | SetOptStat (Int_t stat=1) |
The type of information printed in the histogram statistics box can be selected via the parameter mode. More... | |
void | SetOptStat (Option_t *stat) |
The parameter mode can be any combination of kKsSiourRmMen. More... | |
void | SetOptTitle (Int_t tit=1) |
void | SetPadBorderMode (Int_t mode=1) |
void | SetPadBorderSize (Width_t size=1) |
void | SetPadBottomMargin (Float_t margin=0.1) |
void | SetPadColor (Color_t color=19) |
void | SetPadGridX (Bool_t gridx) |
void | SetPadGridY (Bool_t gridy) |
void | SetPadLeftMargin (Float_t margin=0.1) |
void | SetPadRightMargin (Float_t margin=0.1) |
void | SetPadTickX (Int_t tickx) |
void | SetPadTickY (Int_t ticky) |
void | SetPadTopMargin (Float_t margin=0.1) |
void | SetPaintTextFormat (const char *format="g") |
void | SetPalette (Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.) |
See TColor::SetPalette. More... | |
void | SetPaperSize (EPaperSize size) |
Set paper size for PostScript output. More... | |
void | SetPaperSize (Float_t xsize=20, Float_t ysize=26) |
Set paper size for PostScript output. More... | |
void | SetScreenFactor (Float_t factor=1) |
void | SetStatBorderSize (Width_t size=2) |
void | SetStatColor (Color_t color=19) |
void | SetStatFont (Style_t font=62) |
void | SetStatFontSize (Float_t size=0) |
void | SetStatFormat (const char *format="6.4g") |
void | SetStatH (Float_t h=0.1) |
void | SetStatStyle (Style_t style=1001) |
void | SetStatTextColor (Color_t color=1) |
void | SetStatW (Float_t w=0.19) |
void | SetStatX (Float_t x=0) |
void | SetStatY (Float_t y=0) |
void | SetStripDecimals (Bool_t strip=kTRUE) |
Set option to strip decimals when drawing axis labels. More... | |
void | SetTickLength (Float_t length=0.03, Option_t *axis="X") |
Set the tick marks length for an axis. More... | |
void | SetTimeOffset (Double_t toffset) |
Change the time offset for time plotting. More... | |
void | SetTitleAlign (Int_t a=13) |
void | SetTitleBorderSize (Width_t size=2) |
void | SetTitleColor (Color_t color=1, Option_t *axis="X") |
void | SetTitleFillColor (Color_t color=1) |
void | SetTitleFont (Style_t font=62, Option_t *axis="X") |
void | SetTitleFontSize (Float_t size=0) |
void | SetTitleH (Float_t h=0) |
void | SetTitleOffset (Float_t offset=1, Option_t *axis="X") |
Specify a parameter offset to control the distance between the axis and the axis title. More... | |
void | SetTitlePS (const char *pstitle) |
Define a string to be used in the %Title of the Postscript files. More... | |
void | SetTitleSize (Float_t size=0.02, Option_t *axis="X") |
void | SetTitleStyle (Style_t style=1001) |
void | SetTitleTextColor (Color_t color=1) |
void | SetTitleW (Float_t w=0) |
void | SetTitleX (Float_t x=0) |
void | SetTitleXOffset (Float_t offset=1) |
void | SetTitleXSize (Float_t size=0.02) |
void | SetTitleY (Float_t y=0.985) |
void | SetTitleYOffset (Float_t offset=1) |
void | SetTitleYSize (Float_t size=0.02) |
void | ToggleEditor () |
void | ToggleEventStatus () |
void | ToggleToolBar () |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. More... | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
TNamed destructor. More... | |
virtual void | Clear (Option_t *option="") |
Set name and title to empty strings (""). More... | |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare two TNamed objects. More... | |
virtual void | Copy (TObject &named) const |
Copy this to obj. More... | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | IsSortable () const |
virtual void | ls (Option_t *option="") const |
List TNamed name and title. More... | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. More... | |
virtual void | Print (Option_t *option="") const |
Print TNamed name and title. More... | |
virtual void | SetName (const char *name) |
Set the name of the TNamed. More... | |
virtual void | SetNameTitle (const char *name, const char *title) |
Set all the TNamed parameters (name and title). More... | |
virtual void | SetTitle (const char *title="") |
Set the title of the TNamed. More... | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
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. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual void | Print (Option_t *option="") const |
This method must be overridden when a class wants to print itself. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Public Member Functions inherited from TAttLine | |
TAttLine () | |
AttLine default constructor. More... | |
TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth) | |
AttLine normal constructor. More... | |
virtual | ~TAttLine () |
AttLine destructor. More... | |
void | Copy (TAttLine &attline) const |
Copy this line attributes to a new TAttLine. More... | |
Int_t | DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
Compute distance from point px,py to a line. More... | |
virtual Color_t | GetLineColor () const |
Return the line color. More... | |
virtual Style_t | GetLineStyle () const |
Return the line style. More... | |
virtual Width_t | GetLineWidth () const |
Return the line width. More... | |
virtual void | Modify () |
Change current line attributes if necessary. More... | |
virtual void | ResetAttLine (Option_t *option="") |
Reset this line attributes to default values. More... | |
virtual void | SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1) |
Save line attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetLineAttributes () |
Invoke the DialogCanvas Line attributes. More... | |
virtual void | SetLineColor (Color_t lcolor) |
Set the line color. More... | |
virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. More... | |
virtual void | SetLineStyle (Style_t lstyle) |
Set the line style. More... | |
virtual void | SetLineWidth (Width_t lwidth) |
Set the line width. More... | |
Public Member Functions inherited from TAttFill | |
TAttFill () | |
AttFill default constructor. More... | |
TAttFill (Color_t fcolor, Style_t fstyle) | |
AttFill normal constructor. More... | |
virtual | ~TAttFill () |
AttFill destructor. More... | |
void | Copy (TAttFill &attfill) const |
Copy this fill attributes to a new TAttFill. More... | |
virtual Color_t | GetFillColor () const |
Return the fill area color. More... | |
virtual Style_t | GetFillStyle () const |
Return the fill area style. More... | |
virtual Bool_t | IsTransparent () const |
virtual void | Modify () |
Change current fill area attributes if necessary. More... | |
virtual void | ResetAttFill (Option_t *option="") |
Reset this fill attributes to default values. More... | |
virtual void | SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001) |
Save fill attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetFillAttributes () |
Invoke the DialogCanvas Fill attributes. More... | |
virtual void | SetFillColor (Color_t fcolor) |
Set the fill area color. More... | |
virtual void | SetFillColorAlpha (Color_t fcolor, Float_t falpha) |
Set a transparent fill color. More... | |
virtual void | SetFillStyle (Style_t fstyle) |
Set the fill area style. More... | |
Public Member Functions inherited from TAttMarker | |
TAttMarker () | |
TAttMarker default constructor. More... | |
TAttMarker (Color_t color, Style_t style, Size_t msize) | |
TAttMarker normal constructor. More... | |
virtual | ~TAttMarker () |
TAttMarker destructor. More... | |
void | Copy (TAttMarker &attmarker) const |
Copy this marker attributes to a new TAttMarker. More... | |
virtual Color_t | GetMarkerColor () const |
Return the marker color. More... | |
virtual Size_t | GetMarkerSize () const |
Return the marker size. More... | |
virtual Style_t | GetMarkerStyle () const |
Return the marker style. More... | |
virtual void | Modify () |
Change current marker attributes if necessary. More... | |
virtual void | ResetAttMarker (Option_t *toption="") |
Reset this marker attributes to the default values. More... | |
virtual void | SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1) |
Save line attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetMarkerAttributes () |
Invoke the DialogCanvas Marker attributes. More... | |
virtual void | SetMarkerColor (Color_t mcolor=1) |
Set the marker color. More... | |
virtual void | SetMarkerColorAlpha (Color_t mcolor, Float_t malpha) |
Set a transparent marker color. More... | |
virtual void | SetMarkerSize (Size_t msize=1) |
Set the marker size. More... | |
virtual void | SetMarkerStyle (Style_t mstyle=1) |
Set the marker style. More... | |
Public Member Functions inherited from TAttText | |
TAttText () | |
AttText default constructor. More... | |
TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) | |
AttText normal constructor. More... | |
virtual | ~TAttText () |
AttText destructor. More... | |
void | Copy (TAttText &atttext) const |
Copy this text attributes to a new TAttText. More... | |
virtual Short_t | GetTextAlign () const |
Return the text alignment. More... | |
virtual Float_t | GetTextAngle () const |
Return the text angle. More... | |
virtual Color_t | GetTextColor () const |
Return the text color. More... | |
virtual Font_t | GetTextFont () const |
Return the text font. More... | |
virtual Float_t | GetTextSize () const |
Return the text size. More... | |
virtual void | Modify () |
Change current text attributes if necessary. More... | |
virtual void | ResetAttText (Option_t *toption="") |
Reset this text attributes to default values. More... | |
virtual void | SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1) |
Save text attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetTextAlign (Short_t align=11) |
Set the text alignment. More... | |
virtual void | SetTextAngle (Float_t tangle=0) |
Set the text angle. More... | |
virtual void | SetTextAttributes () |
Invoke the DialogCanvas Text attributes. More... | |
virtual void | SetTextColor (Color_t tcolor=1) |
Set the text color. More... | |
virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
Set a transparent marker color. More... | |
virtual void | SetTextFont (Font_t tfont=62) |
Set the text font. More... | |
virtual void | SetTextSize (Float_t tsize=1) |
Set the text size. More... | |
virtual void | SetTextSizePixels (Int_t npixels) |
Set the text size in pixels. More... | |
Static Public Member Functions | |
static void | BuildStyles () |
Create some standard styles. More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Private Attributes | |
TAttText | fAttDate |
Canvas date attribute. More... | |
Float_t | fBarOffset |
Offset of bar for graphs. More... | |
Float_t | fBarWidth |
Width of bar for graphs. More... | |
Int_t | fCanvasBorderMode |
Canvas border mode. More... | |
Width_t | fCanvasBorderSize |
Canvas border size. More... | |
Color_t | fCanvasColor |
Canvas color. More... | |
Int_t | fCanvasDefH |
Default canvas height. More... | |
Int_t | fCanvasDefW |
Default canvas width. More... | |
Int_t | fCanvasDefX |
Default canvas top X position. More... | |
Int_t | fCanvasDefY |
Default canvas top Y position. More... | |
Bool_t | fCanvasPreferGL |
If true, rendering in canvas is with GL. More... | |
Int_t | fColorModelPS |
PostScript color model: 0 = RGB, 1 = CMYK. More... | |
Float_t | fDateX |
X position of the date in the canvas (in NDC) More... | |
Float_t | fDateY |
Y position of the date in the canvas (in NDC) More... | |
Int_t | fDrawBorder |
Flag to draw border(=1) or not (0) More... | |
Float_t | fEndErrorSize |
Size of lines at the end of error bars. More... | |
Float_t | fErrorX |
Per cent of bin width for errors along X. More... | |
TString | fFitFormat |
Printing format for fit parameters. More... | |
Int_t | fFrameBorderMode |
Pad frame border mode. More... | |
Width_t | fFrameBorderSize |
Pad frame border size. More... | |
Color_t | fFrameFillColor |
Pad frame fill color. More... | |
Style_t | fFrameFillStyle |
Pad frame fill style. More... | |
Color_t | fFrameLineColor |
Pad frame line color. More... | |
Style_t | fFrameLineStyle |
Pad frame line style. More... | |
Width_t | fFrameLineWidth |
Pad frame line width. More... | |
Color_t | fFuncColor |
Function color. More... | |
Style_t | fFuncStyle |
Function style. More... | |
Width_t | fFuncWidth |
Function line width. More... | |
Color_t | fGridColor |
Grid line color (if 0 use axis line color) More... | |
Style_t | fGridStyle |
Grid line style. More... | |
Width_t | fGridWidth |
Grid line width. More... | |
Int_t | fHatchesLineWidth |
Hatches line width for hatch styles > 3100. More... | |
Double_t | fHatchesSpacing |
Hatches spacing for hatch styles > 3100. More... | |
TString | fHeaderPS |
User defined additional Postscript header. More... | |
Color_t | fHistFillColor |
Histogram fill color. More... | |
Style_t | fHistFillStyle |
Histogram fill style. More... | |
Color_t | fHistLineColor |
Histogram line color. More... | |
Style_t | fHistLineStyle |
Histogram line style. More... | |
Width_t | fHistLineWidth |
Histogram line width. More... | |
Bool_t | fHistMinimumZero |
True if default minimum is 0, false if minimum is automatic. More... | |
Double_t | fHistTopMargin |
Margin between histogram's top and pad's top. More... | |
Float_t | fImageScaling |
Image scaling to produce high definition bitmap images. More... | |
Bool_t | fIsReading |
! Set to FALSE when userclass::UseCurrentStyle is called by the style manager More... | |
Int_t | fJoinLinePS |
Determines the appearance of joining lines on PostScript. More... | |
Width_t | fLegendBorderSize |
Legend box border size. More... | |
Color_t | fLegendFillColor |
Legend fill color. More... | |
Style_t | fLegendFont |
Legend font style. More... | |
Double_t | fLegendTextSize |
Legend text size. If 0 the size is computed automatically. More... | |
Float_t | fLegoInnerR |
Inner radius for cylindrical legos. More... | |
Float_t | fLineScalePS |
Line scale factor when drawing lines on Postscript. More... | |
TString | fLineStyle [30] |
String describing line style i (for postScript) More... | |
Int_t | fNumberContours |
Default number of contours for 2-d plots. More... | |
Int_t | fOptDate |
True if date option is selected. More... | |
Int_t | fOptFile |
True if option File is selected. More... | |
Int_t | fOptFit |
True if option Fit is selected. More... | |
Int_t | fOptLogx |
True if log scale in X. More... | |
Int_t | fOptLogy |
True if log scale in y. More... | |
Int_t | fOptLogz |
True if log scale in z. More... | |
Int_t | fOptStat |
True if option Stat is selected. More... | |
Int_t | fOptTitle |
True if option Title is selected. More... | |
Int_t | fPadBorderMode |
Pad border mode. More... | |
Width_t | fPadBorderSize |
Pad border size. More... | |
Float_t | fPadBottomMargin |
Pad bottom margin. More... | |
Color_t | fPadColor |
Pad color. More... | |
Bool_t | fPadGridX |
True to get the grid along X. More... | |
Bool_t | fPadGridY |
True to get the grid along Y. More... | |
Float_t | fPadLeftMargin |
Pad left margin. More... | |
Float_t | fPadRightMargin |
Pad right margin. More... | |
Int_t | fPadTickX |
True to set special pad ticks along X. More... | |
Int_t | fPadTickY |
True to set special pad ticks along Y. More... | |
Float_t | fPadTopMargin |
Pad top margin. More... | |
TString | fPaintTextFormat |
Printing format for TH2::PaintText. More... | |
Float_t | fPaperSizeX |
PostScript paper size along X. More... | |
Float_t | fPaperSizeY |
PostScript paper size along Y. More... | |
Float_t | fScreenFactor |
Multiplication factor for canvas size and position. More... | |
Int_t | fShowEditor |
Show pad editor. More... | |
Int_t | fShowEventStatus |
Show event status panel. More... | |
Int_t | fShowToolBar |
Show toolbar. More... | |
Width_t | fStatBorderSize |
Border size of Stats PaveLabel. More... | |
Color_t | fStatColor |
Stat fill area color. More... | |
Style_t | fStatFont |
Font style of Stats PaveLabel. More... | |
Float_t | fStatFontSize |
Font size in pixels for fonts with precision type 3. More... | |
TString | fStatFormat |
Printing format for stats. More... | |
Float_t | fStatH |
Height of stat box. More... | |
Style_t | fStatStyle |
Fill area style of Stats PaveLabel. More... | |
Color_t | fStatTextColor |
Stat text color. More... | |
Float_t | fStatW |
Width of stat box. More... | |
Float_t | fStatX |
X position of top right corner of stat box. More... | |
Float_t | fStatY |
Y position of top right corner of stat box. More... | |
Bool_t | fStripDecimals |
Strip decimals in axis labels. More... | |
Double_t | fTimeOffset |
Time offset to the beginning of an axis. More... | |
Int_t | fTitleAlign |
Title box alignment. More... | |
Width_t | fTitleBorderSize |
Border size of Title PavelLabel. More... | |
Color_t | fTitleColor |
Title fill area color. More... | |
Style_t | fTitleFont |
Font style of Title PaveLabel. More... | |
Float_t | fTitleFontSize |
Font size in pixels for fonts with precision type 3. More... | |
Float_t | fTitleH |
Height of title box. More... | |
TString | fTitlePS |
User defined Postscript file title. More... | |
Style_t | fTitleStyle |
Fill area style of title PaveLabel. More... | |
Color_t | fTitleTextColor |
Title text color. More... | |
Float_t | fTitleW |
Width of title box. More... | |
Float_t | fTitleX |
X position of top left corner of title box. More... | |
Float_t | fTitleY |
Y position of top left corner of title box. More... | |
TAttAxis | fXaxis |
X axis attributes. More... | |
TAttAxis | fYaxis |
Y axis attributes. More... | |
TAttAxis | fZaxis |
Z axis attributes. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
void | MakeZombie () |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from TAttLine | |
Color_t | fLineColor |
Line color. More... | |
Style_t | fLineStyle |
Line style. More... | |
Width_t | fLineWidth |
Line width. More... | |
Protected Attributes inherited from TAttFill | |
Color_t | fFillColor |
Fill area color. More... | |
Style_t | fFillStyle |
Fill area style. More... | |
Protected Attributes inherited from TAttMarker | |
Color_t | fMarkerColor |
Marker color. More... | |
Size_t | fMarkerSize |
Marker size. More... | |
Style_t | fMarkerStyle |
Marker style. More... | |
Protected Attributes inherited from TAttText | |
Short_t | fTextAlign |
Text alignment. More... | |
Float_t | fTextAngle |
Text angle. More... | |
Color_t | fTextColor |
Text color. More... | |
Font_t | fTextFont |
Text font. More... | |
Float_t | fTextSize |
Text size. More... | |
#include <TStyle.h>
enum TStyle::EPaperSize |
TStyle::TStyle | ( | ) |
Default constructor.
Definition at line 142 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
: the default style set in TStyle::ResetPlain
: a black&white oriented styleBold
Video
Pub
Modern
ATLAS
: style used by the ATLAS experiment (see the definition of these styles below).Note a side-effect of calling gStyle->SetFillColor(0). This is nearly equivalent of selecting the "Plain" style.
Many graphics attributes may be set via the TStyle, see in particular
The current style is pointed by gStyle.
When calling myStyle->cd(), gStyle is set to myStyle.
One can also use gROOT to change the current style, e.g.
gROOT->SetStyle("Plain") will change the current style gStyle to the "Plain" style
See also TROOT::ForceStyle and TROOT::UseCurrentStyle
Definition at line 194 of file TStyle.cxx.
TStyle::TStyle | ( | const TStyle & | style | ) |
Copy constructor.
Definition at line 405 of file TStyle.cxx.
|
virtual |
Destructor.
Definition at line 395 of file TStyle.cxx.
|
static |
Create some standard styles.
Definition at line 421 of file TStyle.cxx.
|
virtual |
Change current style.
Definition at line 438 of file TStyle.cxx.
Function used by the TStyle manager when drawing a canvas showing the current style.
Reimplemented from TObject.
Definition at line 567 of file TStyle.cxx.
Return the axis color number in the axis.
Definition at line 901 of file TStyle.cxx.
Return color number i in current palette.
Definition at line 913 of file TStyle.cxx.
Return the label color number in the axis.
Definition at line 921 of file TStyle.cxx.
Return label font.
Definition at line 933 of file TStyle.cxx.
Return label offset.
Definition at line 945 of file TStyle.cxx.
Return label size.
Definition at line 957 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 970 of file TStyle.cxx.
Return number of divisions.
Definition at line 889 of file TStyle.cxx.
Int_t TStyle::GetNumberOfColors | ( | ) | const |
Return number of colors in the color palette.
Definition at line 979 of file TStyle.cxx.
Set paper size for PostScript output.
Definition at line 988 of file TStyle.cxx.
Return tick length.
Definition at line 997 of file TStyle.cxx.
Return title color.
Definition at line 1009 of file TStyle.cxx.
Return title font.
Definition at line 1021 of file TStyle.cxx.
Return title offset.
Definition at line 1033 of file TStyle.cxx.
Return title size.
Definition at line 1045 of file TStyle.cxx.
Show the options from the current style.
Reimplemented from TObject.
Definition at line 1057 of file TStyle.cxx.
Reset.
Definition at line 576 of file TStyle.cxx.
Save a main frame widget as a C++ statement(s) on output stream out.
Reimplemented from TObject.
Definition at line 1734 of file TStyle.cxx.
Save the current style in a C++ macro file.
Definition at line 1676 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 1129 of file TStyle.cxx.
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 1081 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 1146 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 1168 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 1094 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 1180 of file TStyle.cxx.
Set axis labels color.
axis specifies which axis ("x","y","z"), default = "x" if axis="xyz" set all 3 axes
Definition at line 1199 of file TStyle.cxx.
Set font number used to draw axis labels.
Definition at line 1219 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 1235 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 1250 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 1289 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 1115 of file TStyle.cxx.
Set the default number of contour levels when drawing 2-d plots.
Definition at line 1306 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 1352 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.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 1396 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(1111)
, 0001111 will be taken as an octal number !!SetOptStat(1)
is s shortcut allowing to set the most common case, and is taken as SetOptStat(1111)
(for backward compatibility with older versions. If you want to print only the name of the histogram call SetOptStat(1000000001)
.Definition at line 1444 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 1481 of file TStyle.cxx.
|
inline |
See TColor::SetPalette.
Definition at line 1637 of file TStyle.cxx.
void TStyle::SetPaperSize | ( | EPaperSize | size | ) |
Set paper size for PostScript output.
Definition at line 1509 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 1529 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 1668 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 1540 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 1655 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 1559 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 1580 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 1603 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 1189 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 1622 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 |