31 #ifndef ROOT_TAttMarker 162 a -= (a >=
'x') ?
'x' :
'X';
163 return (a > 2) ? 0 : (
Int_t)(a+1);
Color_t fFuncColor
Function color.
Int_t GetColorModelPS() const
Style_t GetFrameLineStyle() const
Style_t GetLegendFont() const
Int_t fOptFit
True if option Fit is selected.
Width_t fFuncWidth
Function line width.
Float_t fLineScalePS
Line scale factor when drawing lines on Postscript.
Int_t GetShowEventStatus() const
Float_t GetLineScalePS() const
TString fTitlePS
User defined Postscript file title.
Color_t GetStatColor() const
Float_t fPadRightMargin
Pad right margin.
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
void SetBarWidth(Float_t barwidth=0.5)
Color_t fLegendFillColor
Legend fill color.
Color_t GetLabelColor(Option_t *axis="X") const
Return the label color number in the axis.
Float_t fTitleH
Height of title box.
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 SetPadGridX(Bool_t gridx)
TString fFitFormat
Printing format for fit parameters.
TString fLineStyle[30]
String describing line style i (for postScript)
void SetPadLeftMargin(Float_t margin=0.1)
Int_t GetShowEditor() const
Float_t GetPadLeftMargin() const
Int_t fOptStat
True if option Stat is selected.
void SetTitleY(Float_t y=0.985)
Bool_t fHistMinimumZero
True if default minimum is 0, false if minimum is automatic.
Float_t GetLabelSize(Option_t *axis="X") const
Return label size.
Float_t fTitleW
Width of title box.
void SetTitleXSize(Float_t size=0.02)
void SetStatColor(Color_t color=19)
void SetFrameBorderMode(Int_t mode=1)
Color_t GetTitleTextColor() const
Int_t GetNumberContours() const
Style_t GetGridStyle() const
void SetStatH(Float_t h=0.1)
void SetOptFile(Int_t file=1)
Style_t fFrameLineStyle
Pad frame line style.
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
Int_t fFrameBorderMode
Pad frame border mode.
Color_t GetAxisColor(Option_t *axis="X") const
Return the axis color number in the axis.
Width_t fFrameBorderSize
Pad frame border size.
void SetStatStyle(Style_t style=1001)
Int_t fHatchesLineWidth
Hatches line width for hatch styles > 3100.
TAttAxis fZaxis
Z axis attributes.
void SetDateY(Float_t y=0.01)
Int_t GetShowToolBar() const
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
Double_t GetHistTopMargin() const
void SetTitleW(Float_t w=0)
R__EXTERN TStyle * gStyle
void SetHistLineWidth(Width_t width=1)
Color_t fStatColor
Stat fill area color.
Int_t fPadBorderMode
Pad border mode.
Int_t fCanvasDefX
Default canvas top X position.
void SetGridStyle(Style_t style=3)
Float_t fStatY
Y position of top right corner of stat box.
Bool_t GetPadGridY() const
Color_t GetLegendFillColor() const
void GetPaperSize(Float_t &xsize, Float_t &ysize) const
Set paper size for PostScript output.
void SaveSource(const char *filename, Option_t *option=0)
Save the current style in a C++ macro file.
TAttAxis fYaxis
Y axis attributes.
void SetFrameLineWidth(Width_t width=1)
TStyle()
Default constructor.
Float_t GetTitleXOffset() const
Style_t fTitleStyle
Fill area style of title PaveLabel.
Float_t GetEndErrorSize() const
Int_t GetPadTickY() const
Width_t fPadBorderSize
Pad border size.
Float_t fTitleFontSize
Font size in pixels for fonts with precision type 3.
void SetStatX(Float_t x=0)
void SetStatBorderSize(Width_t size=2)
void SetTitleFont(Style_t font=62, Option_t *axis="X")
void SetBarOffset(Float_t baroff=0.5)
Float_t GetTitleYOffset() const
Float_t fDateY
Y position of the date in the canvas (in NDC)
Width_t GetLegendBorderSize() const
void SetStatY(Float_t y=0)
Color_t GetFrameLineColor() const
void SetFrameLineStyle(Style_t styl=0)
Width_t fTitleBorderSize
Border size of Title PavelLabel.
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
Float_t GetScreenFactor() const
static std::string format(double x, double y, int digits, int width)
Float_t GetTitleY() const
Int_t fCanvasDefH
Default canvas height.
Manages histogram axis attributes.
Color_t GetFrameFillColor() const
void SetPadBottomMargin(Float_t margin=0.1)
const char * GetFitFormat() const
Style_t fFrameFillStyle
Pad frame fill style.
Int_t GetCanvasDefW() const
Width_t fFrameLineWidth
Pad frame line width.
void SetCanvasDefH(Int_t h=500)
Style_t fTitleFont
Font style of Title PaveLabel.
void SetLineStyleString(Int_t i, const char *text)
Set line style string using the PostScript convention.
void SetTitlePS(const char *pstitle)
Define a string to be used in the %Title of the Postscript files.
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
Float_t fPaperSizeY
PostScript paper size along Y.
Width_t GetFuncWidth() const
void SetPadBorderSize(Width_t size=1)
Double_t GetLegendTextSize() const
Int_t GetHatchesLineWidth() const
Int_t GetCanvasDefX() const
Int_t fOptLogy
True if log scale in y.
Color_t GetGridColor() const
Int_t fOptLogx
True if log scale in X.
Width_t GetHistLineWidth() const
Int_t GetCanvasBorderMode() const
void SetCanvasColor(Color_t color=19)
Double_t GetHatchesSpacing() const
void SetNdivisions(Int_t n=510, Option_t *axis="X")
Set the number of divisions to draw an axis.
virtual void cd()
Change current style.
void SetOptLogz(Int_t logz=1)
TString fPaintTextFormat
Printing format for TH2::PaintText.
Int_t fPadTickX
True to set special pad ticks along X.
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
void SetTitleYSize(Float_t size=0.02)
void SetTitleAlign(Int_t a=13)
void SetNumberContours(Int_t number=20)
Set the default number of contour levels when drawing 2-d plots.
void SetTitleBorderSize(Width_t size=2)
void SetLegendBorderSize(Width_t size=4)
Double_t fHistTopMargin
Margin between histogram's top and pad's top.
Fill Area Attributes class.
void SetFrameFillColor(Color_t color=1)
void SetLabelColor(Color_t color=1, Option_t *axis="X")
Set axis labels color.
Float_t GetTitleFontSize() const
#define ClassDef(name, id)
Bool_t GetPadGridX() const
void SetHistFillColor(Color_t color=1)
Int_t GetPadTickX() const
The TNamed class is the base class for all named ROOT classes.
Width_t fHistLineWidth
Histogram line width.
Int_t fCanvasDefW
Default canvas width.
void SetTitleX(Float_t x=0)
Bool_t fStripDecimals
Strip decimals in axis labels.
Float_t fPadTopMargin
Pad top margin.
void SetCanvasBorderSize(Width_t size=1)
void SetPadTickX(Int_t tickx)
Float_t fDateX
X position of the date in the canvas (in NDC)
Style_t fLegendFont
Legend font style.
Style_t GetHistFillStyle() const
Float_t GetTitleX() const
void SetTitleTextColor(Color_t color=1)
Int_t fOptDate
True if date option is selected.
void SetHeaderPS(const char *header)
Define a string to be inserted in the Postscript header The string in header will be added to the Pos...
Style_t fStatStyle
Fill area style of Stats PaveLabel.
Int_t fColorModelPS
PostScript color model: 0 = RGB, 1 = CMYK.
Double_t fLegendTextSize
Legend text size. If 0 the size is computed automatically.
Int_t GetFrameBorderMode() const
void SetTitleYOffset(Float_t offset=1)
Float_t GetBarWidth() const
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
Width_t fStatBorderSize
Border size of Stats PaveLabel.
Int_t fDrawBorder
Flag to draw border(=1) or not (0)
Style_t GetStatStyle() const
Float_t fStatH
Height of stat box.
Style_t fHistLineStyle
Histogram line style.
Color_t fStatTextColor
Stat text color.
Color_t fTitleTextColor
Title text color.
void SetCanvasDefY(Int_t topy=10)
Width_t GetFrameBorderSize() const
void SetTitleColor(Color_t color=1, Option_t *axis="X")
void SetFuncStyle(Style_t style=1)
Style_t fFuncStyle
Function style.
void SetStatFont(Style_t font=62)
Int_t fCanvasBorderMode
Canvas border mode.
void SetOptLogx(Int_t logx=1)
void SetGridColor(Color_t color=0)
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
TStyle objects may be created to define special styles.
Float_t fTitleX
X position of top left corner of title box.
Float_t GetErrorX() const
const char * GetPaintTextFormat() const
void SetGridWidth(Width_t width=1)
Using a TBrowser one can browse all ROOT objects.
Float_t GetLegoInnerR() const
void SetPadBorderMode(Int_t mode=1)
void SetCanvasBorderMode(Int_t mode=1)
Color_t fFrameLineColor
Pad frame line color.
TAttText fAttDate
Canvas date attribute.
void SetHistFillStyle(Style_t styl=0)
Width_t fGridWidth
Grid line width.
Float_t GetTitleH() const
Float_t fBarWidth
Width of bar for graphs.
Color_t fTitleColor
Title fill area color.
void SetPadColor(Color_t color=19)
Int_t GetPadBorderMode() const
Style_t GetStatFont() const
void SetFrameLineColor(Color_t color=1)
Float_t GetTitleYSize() const
const char * GetLineStyleString(Int_t i=1) const
Return line style string (used by PostScript).
void SetOptDate(Int_t datefl=1)
If optdate is non null, the current date/time will be printed in the canvas.
void SetTitleStyle(Style_t style=1001)
void SetIsReading(Bool_t reading=kTRUE)
Sets the fIsReading member to reading (default=kTRUE) fIsReading (used via gStyle->IsReading()) can b...
Float_t GetPadBottomMargin() const
Width_t GetCanvasBorderSize() const
void SetScreenFactor(Float_t factor=1)
Float_t GetPadRightMargin() const
Bool_t GetHistMinimumZero() const
TString fHeaderPS
User defined additional Postscript header.
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
const char * GetTitlePS() const
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Function used by the TStyle manager when drawing a canvas showing the current style.
void SetStatTextColor(Color_t color=1)
Style_t GetFrameFillStyle() const
virtual void Paint(Option_t *option="")
Show the options from the current style if (TClass::GetClass("TStyleManager")) gSystem->Load("libGed"...
virtual void Copy(TObject &style) const
Copy this style.
Int_t fShowEventStatus
Show event status panel.
Float_t fErrorX
Per cent of bin width for errors along X.
void SetTickLength(Float_t length=0.03, Option_t *axis="X")
Set the tick marks length for an axis.
virtual ~TStyle()
Destructor.
Double_t fHatchesSpacing
Hatches spacing for hatch styles > 3100.
void SetStatW(Float_t w=0.19)
void SetFuncWidth(Width_t width=4)
void SavePrimitive(std::ostream &out, Option_t *="")
Save a main frame widget as a C++ statement(s) on output stream out.
Color_t fCanvasColor
Canvas color.
void SetColorModelPS(Int_t c=0)
Define the color model used by TPostScript and TPDF (RGB or CMYK).
void SetHistTopMargin(Double_t hmax=0.05)
Float_t fScreenFactor
Multiplication factor for canvas size and position.
Bool_t fIsReading
! Set to FALSE when userclass::UseCurrentStyle is called by the style manager
Bool_t fPadGridX
True to get the grid along X.
Int_t fNumberContours
Default number of contours for 2-d plots.
void SetHistMinimumZero(Bool_t zero=kTRUE)
If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms is set to 0 if the mini...
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
void SetTitleH(Float_t h=0)
const char * GetHeaderPS() const
void SetDateX(Float_t x=0.01)
void SetFrameFillStyle(Style_t styl=0)
Color_t GetTitleFillColor() const
void SetTitleFontSize(Float_t size=0)
Int_t GetJoinLinePS() const
Float_t GetTitleOffset(Option_t *axis="X") const
Return title offset.
TAttAxis fXaxis
X axis attributes.
Float_t fTitleY
Y position of top left corner of title box.
Width_t fLegendBorderSize
Legend box border size.
Float_t fEndErrorSize
Size of lines at the end of error bars.
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis labels.
Width_t GetTitleBorderSize() const
Float_t GetTitleW() const
Color_t GetTitleColor(Option_t *axis="X") const
Return title color.
Color_t GetHistFillColor() const
void SetJoinLinePS(Int_t joinline=0)
static void BuildStyles()
Create some standard styles.
void SetHatchesLineWidth(Int_t l)
Bool_t fPadGridY
True to get the grid along Y.
void SetDrawBorder(Int_t drawborder=1)
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 SetHistLineStyle(Style_t styl=0)
Int_t fOptLogz
True if log scale in z.
Color_t GetHistLineColor() const
Int_t fOptTitle
True if option Title is selected.
Int_t GetDrawBorder() const
Float_t GetPadTopMargin() const
Int_t AxisChoice(Option_t *axis) const
Float_t fPaperSizeX
PostScript paper size along X.
virtual void Reset(Option_t *option="")
Reset.
void SetLineScalePS(Float_t scale=3)
Float_t fPadLeftMargin
Pad left margin.
Float_t fBarOffset
Offset of bar for graphs.
Float_t fStatFontSize
Font size in pixels for fonts with precision type 3.
Style_t fHistFillStyle
Histogram fill style.
Width_t GetStatBorderSize() const
virtual void Browse(TBrowser *b)
Browse the style object.
Int_t GetCanvasDefH() const
Int_t fShowEditor
Show pad editor.
void SetLegoInnerR(Float_t rad=0.5)
Color_t fHistFillColor
Histogram fill color.
Width_t GetPadBorderSize() const
Color_t fFrameFillColor
Pad frame fill color.
void SetPadTopMargin(Float_t margin=0.1)
Style_t fGridStyle
Grid line style.
Color_t fPadColor
Pad color.
void SetPaperSize(EPaperSize size)
Set paper size for PostScript output.
Mother of all ROOT objects.
Int_t fJoinLinePS
Determines the appearance of joining lines on PostScript.
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Set size of axis labels.
Width_t GetFrameLineWidth() const
Float_t GetStatFontSize() const
void SetTitleXOffset(Float_t offset=1)
void SetStatFontSize(Float_t size=0)
Float_t GetTitleSize(Option_t *axis="X") const
Return title size.
Style_t GetHistLineStyle() const
Int_t fOptFile
True if option File is selected.
void SetLegendFont(Style_t font=62)
Int_t fTitleAlign
Title box alignment.
Int_t fShowToolBar
Show toolbar.
Float_t GetTickLength(Option_t *axis="X") const
Return tick length.
Style_t GetFuncStyle() const
void SetHatchesSpacing(Double_t h)
void SetTitleFillColor(Color_t color=1)
Color_t fGridColor
Grid line color (if 0 use axis line color)
Short_t Max(Short_t a, Short_t b)
Width_t fCanvasBorderSize
Canvas border size.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void SetOptLogy(Int_t logy=1)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
void SetOptTitle(Int_t tit=1)
TString fStatFormat
Printing format for stats.
Color_t GetFuncColor() const
Color_t GetCanvasColor() const
void SetPadTickY(Int_t ticky)
Float_t GetBarOffset() const
Style_t GetTitleStyle() const
void SetStatFormat(const char *format="6.4g")
Int_t GetCanvasDefY() const
Double_t fTimeOffset
Time offset to the beginning of an axis.
Width_t GetGridWidth() const
void SetPaintTextFormat(const char *format="g")
Bool_t fCanvasPreferGL
If true, rendering in canvas is with GL.
void SetFitFormat(const char *format="5.4g")
Color_t GetStatTextColor() const
Int_t GetNdivisions(Option_t *axis="X") const
Return number of divisions.
void SetLegendFillColor(Color_t color=0)
Bool_t GetCanvasPreferGL() const
void SetPadRightMargin(Float_t margin=0.1)
Color_t fHistLineColor
Histogram line color.
void SetErrorX(Float_t errorx=0.5)
void SetPadGridY(Bool_t gridy)
void SetHistLineColor(Color_t color=1)
Int_t GetStripDecimals() const
Float_t fStatW
Width of stat box.
Float_t fPadBottomMargin
Pad bottom margin.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
Float_t fStatX
X position of top right corner of stat box.
Int_t fCanvasDefY
Default canvas top Y position.
void SetFuncColor(Color_t color=1)
Style_t fStatFont
Font style of Stats PaveLabel.
Float_t fLegoInnerR
Inner radius for cylindrical legos.
void SetCanvasDefW(Int_t w=700)
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
void SetCanvasDefX(Int_t topx=10)
const char * GetStatFormat() const
void SetFrameBorderSize(Width_t size=1)
Int_t GetOptTitle() const
Color_t GetPadColor() const
const char * Data() const
Int_t fPadTickY
True to set special pad ticks along Y.
Double_t GetTimeOffset() const
void SetLegendTextSize(Double_t size=0.)
Float_t GetTitleXSize() const