Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TStyle.h
Go to the documentation of this file.
1// @(#)root/base:$Id: 5214d7dc2746ceb518366bc6c4f4068b652d5241 $
2// Author: Rene Brun 12/12/94
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TStyle
13#define ROOT_TStyle
14
15#include "TNamed.h"
16#include "TAttLine.h"
17#include "TAttFill.h"
18#include "TAttMarker.h"
19#include "TAttText.h"
20#include "TAttAxis.h"
21#include "TColor.h"
22
23#ifndef R__LESS_INCLUDES
24#include "TArrayI.h"
25#endif
26
27class TBrowser;
28
29class TStyle : public TNamed, public TAttLine, public TAttFill, public TAttMarker, public TAttText {
30
31private:
32 TAttAxis fXaxis; ///< X axis attributes
33 TAttAxis fYaxis; ///< Y axis attributes
34 TAttAxis fZaxis; ///< Z axis attributes
35 Float_t fBarWidth; ///< Width of bar for graphs
36 Float_t fBarOffset; ///< Offset of bar for graphs
37 Int_t fColorModelPS; ///< PostScript color model: 0 = RGB, 1 = CMYK
38 Int_t fDrawBorder; ///< Flag to draw border(=1) or not (0)
39 Int_t fOptLogx; ///< True if log scale in X
40 Int_t fOptLogy; ///< True if log scale in y
41 Int_t fOptLogz; ///< True if log scale in z
42 Int_t fOptDate; ///< True if date option is selected
43 Int_t fOptStat; ///< True if option Stat is selected
44 Int_t fOptTitle; ///< True if option Title is selected
45 Int_t fOptFile; ///< True if option File is selected
46 Int_t fOptFit; ///< True if option Fit is selected
47 Int_t fShowEventStatus; ///< Show event status panel
48 Int_t fShowEditor; ///< Show pad editor
49 Int_t fShowToolBar; ///< Show toolbar
50
51 Int_t fNumberContours; ///< Default number of contours for 2-d plots
52 TAttText fAttDate; ///< Canvas date attribute
53 Float_t fDateX; ///< X position of the date in the canvas (in NDC)
54 Float_t fDateY; ///< Y position of the date in the canvas (in NDC)
55 Float_t fEndErrorSize; ///< Size of lines at the end of error bars
56 Float_t fErrorX; ///< Per cent of bin width for errors along X
57 Color_t fFuncColor; ///< Function color
58 Style_t fFuncStyle; ///< Function style
59 Width_t fFuncWidth; ///< Function line width
60 Color_t fGridColor; ///< Grid line color (if 0 use axis line color)
61 Style_t fGridStyle; ///< Grid line style
62 Width_t fGridWidth; ///< Grid line width
63 Width_t fLegendBorderSize; ///< Legend box border size
64 Color_t fLegendFillColor; ///< Legend fill color
65 Style_t fLegendFillStyle; ///< Legend fill style
66 Style_t fLegendFont; ///< Legend font style
67 Double_t fLegendTextSize; ///< Legend text size. If 0 the size is computed automatically
68 Int_t fHatchesLineWidth; ///< Hatches line width for hatch styles > 3100
69 Double_t fHatchesSpacing; ///< Hatches spacing for hatch styles > 3100
70 Color_t fFrameFillColor; ///< Pad frame fill color
71 Color_t fFrameLineColor; ///< Pad frame line color
72 Style_t fFrameFillStyle; ///< Pad frame fill style
73 Style_t fFrameLineStyle; ///< Pad frame line style
74 Width_t fFrameLineWidth; ///< Pad frame line width
75 Width_t fFrameBorderSize; ///< Pad frame border size
76 Int_t fFrameBorderMode; ///< Pad frame border mode
77 Color_t fHistFillColor; ///< Histogram fill color
78 Color_t fHistLineColor; ///< Histogram line color
79 Style_t fHistFillStyle; ///< Histogram fill style
80 Style_t fHistLineStyle; ///< Histogram line style
81 Width_t fHistLineWidth; ///< Histogram line width
82 Bool_t fHistMinimumZero; ///< True if default minimum is 0, false if minimum is automatic
83 Double_t fHistTopMargin; ///< Margin between histogram's top and pad's top
84 Bool_t fCanvasPreferGL; ///< If true, rendering in canvas is with GL
85 Color_t fCanvasColor; ///< Canvas color
86 Width_t fCanvasBorderSize; ///< Canvas border size
87 Int_t fCanvasBorderMode; ///< Canvas border mode
88 Int_t fCanvasDefH; ///< Default canvas height
89 Int_t fCanvasDefW; ///< Default canvas width
90 Int_t fCanvasDefX; ///< Default canvas top X position
91 Int_t fCanvasDefY; ///< Default canvas top Y position
92 Color_t fPadColor; ///< Pad color
93 Width_t fPadBorderSize; ///< Pad border size
94 Int_t fPadBorderMode; ///< Pad border mode
95 Float_t fPadBottomMargin; ///< Pad bottom margin
96 Float_t fPadTopMargin; ///< Pad top margin
97 Float_t fPadLeftMargin; ///< Pad left margin
98 Float_t fPadRightMargin; ///< Pad right margin
99 Bool_t fPadGridX; ///< True to get the grid along X
100 Bool_t fPadGridY; ///< True to get the grid along Y
101 Int_t fPadTickX; ///< True to set special pad ticks along X
102 Int_t fPadTickY; ///< True to set special pad ticks along Y
103 Float_t fPaperSizeX; ///< PostScript paper size along X
104 Float_t fPaperSizeY; ///< PostScript paper size along Y
105 Float_t fScreenFactor; ///< Multiplication factor for canvas size and position
106 Color_t fStatColor; ///< Stat fill area color
107 Color_t fStatTextColor; ///< Stat text color
108 Width_t fStatBorderSize; ///< Border size of Stats PaveLabel
109 Style_t fStatFont; ///< Font style of Stats PaveLabel
110 Float_t fStatFontSize; ///< Font size in pixels for fonts with precision type 3
111 Style_t fStatStyle; ///< Fill area style of Stats PaveLabel
112 TString fStatFormat; ///< Printing format for stats
113 Float_t fStatX; ///< X position of top right corner of stat box
114 Float_t fStatY; ///< Y position of top right corner of stat box
115 Float_t fStatW; ///< Width of stat box
116 Float_t fStatH; ///< Height of stat box
117 Bool_t fStripDecimals; ///< Strip decimals in axis labels
118 Int_t fTitleAlign; ///< Title box alignment
119 Color_t fTitleColor; ///< Title fill area color
120 Color_t fTitleTextColor; ///< Title text color
121 Width_t fTitleBorderSize; ///< Border size of Title PavelLabel
122 Style_t fTitleFont; ///< Font style of Title PaveLabel
123 Float_t fTitleFontSize; ///< Font size in pixels for fonts with precision type 3
124 Style_t fTitleStyle; ///< Fill area style of title PaveLabel
125 Float_t fTitleX; ///< X position of top left corner of title box
126 Float_t fTitleY; ///< Y position of top left corner of title box
127 Float_t fTitleW; ///< Width of title box
128 Float_t fTitleH; ///< Height of title box
129 Float_t fLegoInnerR; ///< Inner radius for cylindrical legos
130 TString fLineStyle[30]; ///< String describing line style i (for postScript)
131 TString fHeaderPS; ///< User defined additional Postscript header
132 TString fTitlePS; ///< User defined Postscript file title
133 TString fFitFormat; ///< Printing format for fit parameters
134 TString fPaintTextFormat; ///< Printing format for TH2::PaintText
135 Float_t fLineScalePS; ///< Line scale factor when drawing lines on Postscript
136 Int_t fJoinLinePS; ///< Determines the appearance of joining lines on PostScript, PDF and SVG
137 Int_t fCapLinePS; ///< Determines the appearance of line caps on PostScript, PDF and SVG
138 Double_t fTimeOffset; ///< Time offset to the beginning of an axis
139 Bool_t fIsReading; ///<! Set to FALSE when userclass::UseCurrentStyle is called by the style manager
140 Float_t fImageScaling; ///< Image scaling to produce high definition bitmap images
141 Double_t fCandleWhiskerRange;///< Candle plot, the fraction which is covered by the whiskers (0 < x < 1), default 1
142 Double_t fCandleBoxRange; ///< Candle plot, The fraction which is covered by the box (0 < x < 1), default 0.5
143 Bool_t fCandleScaled; ///< Candle plot, shall the box-width be scaled to each other by the integral of a box?
144 Bool_t fViolinScaled; ///< Violin plot, shall the violin or histos be scaled to each other by the maximum height?
145 Float_t fXAxisExpXOffset; ///< X axis exponent label X offset
146 Float_t fXAxisExpYOffset; ///< X axis exponent label Y offset
147 Float_t fYAxisExpXOffset; ///< Y axis exponent label X offset
148 Float_t fYAxisExpYOffset; ///< Y axis exponent label Y offset
149 Int_t fAxisMaxDigits; ///< Number of digits above which the 10^N notation is used for axis
150 Bool_t fOrthoCamera; ///< Use orthographic camera with web display
151
152public:
154
155 TStyle();
156 TStyle(const char *name, const char *title);
157 TStyle(const TStyle &style);
158 TStyle& operator=(const TStyle& style);
159 virtual ~TStyle();
160 Int_t AxisChoice(Option_t *axis) const;
161 void Browse(TBrowser *b) override;
162 static void BuildStyles();
163 void Copy(TObject &style) const override;
164 virtual void cd();
165
166 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
167 Int_t GetNdivisions(Option_t *axis="X") const;
169 Color_t GetAxisColor(Option_t *axis="X") const;
170 Color_t GetLabelColor(Option_t *axis="X") const;
171 Style_t GetLabelFont(Option_t *axis="X") const;
172 Float_t GetLabelOffset(Option_t *axis="X") const;
173 Float_t GetLabelSize(Option_t *axis="X") const;
174 Color_t GetTitleColor(Option_t *axis="X") const; //return axis title color of pad title color
175 Style_t GetTitleFont(Option_t *axis="X") const; //return axis title font of pad title font
176 Float_t GetTitleOffset(Option_t *axis="X") const; //return axis title offset
177 Float_t GetTitleSize(Option_t *axis="X") const; //return axis title size
178 Float_t GetTickLength(Option_t *axis="X") const;
179 void GetExponentOffset(Float_t &xoff, Float_t &yoff, Option_t *axis = "X") const;
180 Int_t GetAxisMaxDigits() const;
181
183 Float_t GetBarWidth() const {return fBarWidth;}
186 Float_t GetErrorX() const {return fErrorX;}
195 Int_t GetColorPalette(Int_t i) const;
197 Float_t GetDateX() const {return fDateX;}
198 Float_t GetDateY() const {return fDateY;}
199 const char *GetFitFormat() const {return fFitFormat.Data();}
207 Int_t GetNumberOfColors() const;
208 Color_t GetPadColor() const {return fPadColor;}
215 Bool_t GetPadGridX() const {return fPadGridX;}
216 Bool_t GetPadGridY() const {return fPadGridY;}
217 Int_t GetPadTickX() const {return fPadTickX;}
218 Int_t GetPadTickY() const {return fPadTickY;}
242 Int_t GetOptDate() const {return fOptDate;}
243 Int_t GetOptFile() const {return fOptFile;}
244 Int_t GetOptFit() const {return fOptFit;}
245 Int_t GetOptStat() const {return fOptStat;}
246 Int_t GetOptTitle() const {return fOptTitle;}
247 Int_t GetOptLogx() const {return fOptLogx;}
248 Int_t GetOptLogy() const {return fOptLogy;}
249 Int_t GetOptLogz() const {return fOptLogz;}
250 const char *GetPaintTextFormat() const {return fPaintTextFormat.Data();}
251 void GetPaperSize(Float_t &xsize, Float_t &ysize) const;
255
260 Style_t GetStatFont() const {return fStatFont;}
263 const char *GetStatFormat() const {return fStatFormat.Data();}
264 Float_t GetStatX() const {return fStatX;}
265 Float_t GetStatY() const {return fStatY;}
266 Float_t GetStatW() const {return fStatW;}
267 Float_t GetStatH() const {return fStatH;}
269 Double_t GetTimeOffset() const {return fTimeOffset;} //return axis time offset
270 Int_t GetTitleAlign() const {return fTitleAlign;} // return the histogram title TPaveLabel alignment
271 Color_t GetTitleFillColor() const {return fTitleColor;} //return histogram title fill area color
272 Color_t GetTitleTextColor() const {return fTitleTextColor;} //return histogram title text color
274 Float_t GetTitleFontSize() const {return fTitleFontSize;} //return histogram title font size
275 Width_t GetTitleBorderSize() const {return fTitleBorderSize;} //return border size of histogram title TPaveLabel
276 Float_t GetTitleXOffset() const {return GetTitleOffset("X");} //return X axis title offset
277 Float_t GetTitleXSize() const {return GetTitleSize("X");} //return X axis title size
278 Float_t GetTitleYOffset() const {return GetTitleOffset("Y");} //return Y axis title offset
279 Float_t GetTitleYSize() const {return GetTitleSize("Y");} //return Y axis title size
280 Float_t GetTitleX() const {return fTitleX;} //return left X position of histogram title TPavelabel
281 Float_t GetTitleY() const {return fTitleY;} //return left bottom position of histogram title TPavelabel
282 Float_t GetTitleW() const {return fTitleW;} //return width of histogram title TPaveLabel
283 Float_t GetTitleH() const {return fTitleH;} //return height of histogram title TPavelabel
284 const char *GetHeaderPS() const {return fHeaderPS.Data();}
285 const char *GetTitlePS() const {return fTitlePS.Data();}
286 const char *GetLineStyleString(Int_t i=1) const;
287 Int_t GetJoinLinePS() const {return fJoinLinePS;} ///< Returns the line join method used for PostScript, PDF and SVG output. See `TPostScript::SetLineJoin` for details.
288 Int_t GetCapLinePS() const {return fCapLinePS;} ///< Returns the line cap method used for PostScript, PDF and SVG output. See `TPostScript::SetLineCap` for details.
295
296 Bool_t IsReading() const {return fIsReading;}
297 void Paint(Option_t *option="") override;
298 virtual void Reset(Option_t *option="");
299
300 void SetColorModelPS(Int_t c=0);
301 void SetFitFormat(const char *format="5.4g") {fFitFormat = format;}
302 void SetHeaderPS(const char *header);
305 void SetTitlePS(const char *pstitle);
306 void SetJoinLinePS(Int_t joinline=0) {fJoinLinePS=joinline;} ///< Set the line join method used for PostScript, PDF and SVG output. See `TPostScript::SetLineJoin` for details.
307 void SetCapLinePS(Int_t capline=0) {fCapLinePS=capline;} ///< Set the line cap method used for PostScript, PDF and SVG output. See `TPostScript::SetLineCap` for details.
308 void SetLineScalePS(Float_t scale=3) {fLineScalePS=scale;}
309 void SetLineStyleString(Int_t i, const char *text);
310 void SetNdivisions(Int_t n=510, Option_t *axis="X");
311 void SetAxisColor(Color_t color=1, Option_t *axis="X");
312 void SetLabelColor(Color_t color=1, Option_t *axis="X");
313 void SetLabelFont(Style_t font=62, Option_t *axis="X");
314 void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X");
315 void SetLabelSize(Float_t size=0.04, Option_t *axis="X");
316 void SetLegoInnerR(Float_t rad=0.5) {fLegoInnerR = rad;}
317 void SetScreenFactor(Float_t factor=1) {fScreenFactor = factor;}
318 void SetTickLength(Float_t length=0.03, Option_t *axis="X");
319 void SetTitleColor(Color_t color=1, Option_t *axis="X"); //set axis title color or pad title color
320 void SetTitleFont(Style_t font=62, Option_t *axis="X"); //set axis title font or pad title font
321 void SetTitleOffset(Float_t offset=1, Option_t *axis="X"); //set axis title offset
322 void SetTitleSize(Float_t size=0.02, Option_t *axis="X"); //set axis title size or pad title size
323 void SetExponentOffset(Float_t xoff=0., Float_t yoff=0., Option_t *axis="XY");
324 void SetAxisMaxDigits(Int_t maxd=5);
325 void SetNumberContours(Int_t number=20);
326 void SetOptDate(Int_t datefl=1);
327 void SetOptFile(Int_t file=1) {fOptFile = file;}
328 void SetOptFit(Int_t fit=1);
329 void SetOptLogx(Int_t logx=1) {fOptLogx = logx;}
330 void SetOptLogy(Int_t logy=1) {fOptLogy = logy;}
331 void SetOptLogz(Int_t logz=1) {fOptLogz = logz;}
332 void SetOptStat(Int_t stat=1);
333 void SetOptStat(Option_t *stat);
334 void SetOptTitle(Int_t tit=1) {fOptTitle = tit;}
335 void SetBarOffset(Float_t baroff=0.5) {fBarOffset = baroff;}
336 void SetBarWidth(Float_t barwidth=0.5) {fBarWidth = barwidth;}
337 void SetDateX(Float_t x=0.01) {fDateX = x;}
338 void SetDateY(Float_t y=0.01) {fDateY = y;}
339 void SetEndErrorSize(Float_t np=2);
340 void SetErrorX(Float_t errorx=0.5) {fErrorX = errorx;}
342 void SetDrawBorder(Int_t drawborder=1) {fDrawBorder = drawborder;}
343 void SetCanvasColor(Color_t color=19) {fCanvasColor = color;}
348 void SetCanvasDefX(Int_t topx=10) {fCanvasDefX = topx;}
349 void SetCanvasDefY(Int_t topy=10) {fCanvasDefY = topy;}
353 void SetLegendFont(Style_t font=62) {fLegendFont = font;}
355 void SetPadColor(Color_t color=19) {fPadColor = color;}
358 void SetPadBottomMargin(Float_t margin=0.1) {fPadBottomMargin=margin;}
359 void SetPadTopMargin(Float_t margin=0.1) {fPadTopMargin=margin;}
360 void SetPadLeftMargin(Float_t margin=0.1) {fPadLeftMargin=margin;}
361 void SetPadRightMargin(Float_t margin=0.1) {fPadRightMargin=margin;}
362 void SetPadGridX(Bool_t gridx) {fPadGridX = gridx;}
363 void SetPadGridY(Bool_t gridy) {fPadGridY = gridy;}
364 void SetPadTickX(Int_t tickx) {fPadTickX = tickx;}
365 void SetPadTickY(Int_t ticky) {fPadTickY = ticky;}
367 void SetFuncColor(Color_t color=1) {fFuncColor = color;}
370 void SetGridColor(Color_t color=0) {fGridColor = color;}
379 void SetHistFillColor(Color_t color=1) {fHistFillColor = color;}
380 void SetHistLineColor(Color_t color=1) {fHistLineColor = color;}
389 void SetPaperSize(Float_t xsize=20, Float_t ysize=26);
390 void SetStatColor(Color_t color=19) {fStatColor=color;}
394 void SetStatFont(Style_t font=62) {fStatFont=font;}
396 void SetStatFormat(const char *format="6.4g") {fStatFormat = format;}
399 void SetStatW(Float_t w=0.19) {fStatW=w;}
400 void SetStatH(Float_t h=0.1) {fStatH=h;}
401 void SetStripDecimals(Bool_t strip=kTRUE);
402 void SetTimeOffset(Double_t toffset);
404 void SetTitleFillColor(Color_t color=1) {fTitleColor=color;}
414 void SetTitleY(Float_t y=0.985) {fTitleY=y;}
420 void SetIsReading(Bool_t reading=kTRUE);
421 void SetPalette(Int_t ncolors = kBird, Int_t *colors = nullptr, Float_t alpha = 1.);
422 void SetPalette(TString fileName, Float_t alpha = 1.);
423 void SetCandleWhiskerRange(Double_t wRange=1.0);
424 void SetCandleBoxRange(Double_t bRange=0.5);
428
429 void SavePrimitive(std::ostream &out, Option_t * = "") override;
430 void SaveSource(const char *filename, Option_t *option = nullptr);
431
432 ClassDefOverride(TStyle, 23); //A collection of all graphics attributes
433};
434
435
437
438#endif
#define R__EXTERN
Definition DllImport.h:26
#define b(i)
Definition RSha256.hxx:100
#define c(i)
Definition RSha256.hxx:101
#define a(i)
Definition RSha256.hxx:99
#define h(i)
Definition RSha256.hxx:106
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
short Style_t
Definition RtypesCore.h:82
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
short Color_t
Definition RtypesCore.h:85
short Width_t
Definition RtypesCore.h:84
float Float_t
Definition RtypesCore.h:57
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
double Double_t
Definition RtypesCore.h:59
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
@ kBird
Definition TColor.h:118
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmax
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h length
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
Option_t Option_t width
Option_t Option_t style
Option_t Option_t TPoint TPoint const char text
char name[80]
Definition TGX11.cxx:110
R__EXTERN TStyle * gStyle
Definition TStyle.h:436
Color * colors
Definition X3DBuffer.c:21
Manages histogram axis attributes.
Definition TAttAxis.h:18
Fill Area Attributes class.
Definition TAttFill.h:19
Line Attributes class.
Definition TAttLine.h:18
Marker Attributes class.
Definition TAttMarker.h:19
Text Attributes class.
Definition TAttText.h:18
Using a TBrowser one can browse all ROOT objects.
Definition TBrowser.h:37
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139
const char * Data() const
Definition TString.h:376
TStyle objects may be created to define special styles.
Definition TStyle.h:29
Bool_t GetViolinScaled() const
Definition TStyle.h:293
Double_t GetTimeOffset() const
Definition TStyle.h:269
Int_t GetAxisMaxDigits() const
Method returns maximum number of digits permitted for the axis labels above which the notation with 1...
Definition TStyle.cxx:1157
Int_t GetOptLogy() const
Definition TStyle.h:248
Color_t GetGridColor() const
Definition TStyle.h:222
Int_t fOptFile
True if option File is selected.
Definition TStyle.h:45
Int_t GetOptStat() const
Definition TStyle.h:245
Color_t GetLabelColor(Option_t *axis="X") const
Return the label color number in the axis.
Definition TStyle.cxx:1109
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
Definition TStyle.cxx:1323
void SetPadBorderMode(Int_t mode=1)
Definition TStyle.h:357
void SetOptTitle(Int_t tit=1)
Definition TStyle.h:334
void SetFrameLineColor(Color_t color=1)
Definition TStyle.h:373
Color_t fGridColor
Grid line color (if 0 use axis line color)
Definition TStyle.h:60
void SetPadTopMargin(Float_t margin=0.1)
Definition TStyle.h:359
Color_t GetStatTextColor() const
Definition TStyle.h:258
void SetLegendFont(Style_t font=62)
Definition TStyle.h:353
void SetTitleX(Float_t x=0)
Definition TStyle.h:413
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Definition TStyle.cxx:1640
Int_t fCanvasDefW
Default canvas width.
Definition TStyle.h:89
void SetHistFillColor(Color_t color=1)
Definition TStyle.h:379
Int_t fHatchesLineWidth
Hatches line width for hatch styles > 3100.
Definition TStyle.h:68
Float_t fScreenFactor
Multiplication factor for canvas size and position.
Definition TStyle.h:105
void SetLegoInnerR(Float_t rad=0.5)
Definition TStyle.h:316
void SetOptLogx(Int_t logx=1)
Definition TStyle.h:329
Float_t fYAxisExpXOffset
Y axis exponent label X offset.
Definition TStyle.h:147
Float_t fTitleFontSize
Font size in pixels for fonts with precision type 3.
Definition TStyle.h:123
void SetDateX(Float_t x=0.01)
Definition TStyle.h:337
Int_t fCanvasDefX
Default canvas top X position.
Definition TStyle.h:90
void SetStatFormat(const char *format="6.4g")
Definition TStyle.h:396
void SetPadBottomMargin(Float_t margin=0.1)
Definition TStyle.h:358
Float_t GetTitleX() const
Definition TStyle.h:280
Bool_t fViolinScaled
Violin plot, shall the violin or histos be scaled to each other by the maximum height?
Definition TStyle.h:144
void SetLegendFillColor(Color_t color=0)
Definition TStyle.h:351
Float_t fPadRightMargin
Pad right margin.
Definition TStyle.h:98
Float_t fPaperSizeX
PostScript paper size along X.
Definition TStyle.h:103
void SetPaintTextFormat(const char *format="g")
Definition TStyle.h:386
Int_t GetOptTitle() const
Definition TStyle.h:246
void SetCanvasBorderSize(Width_t size=1)
Definition TStyle.h:344
Float_t GetScreenFactor() const
Definition TStyle.h:256
Int_t GetShowEditor() const
Definition TStyle.h:253
void SetCanvasDefX(Int_t topx=10)
Definition TStyle.h:348
TString fPaintTextFormat
Printing format for TH2::PaintText.
Definition TStyle.h:134
Color_t GetHistLineColor() const
Definition TStyle.h:233
Color_t fStatColor
Stat fill area color.
Definition TStyle.h:106
Int_t GetNdivisions(Option_t *axis="X") const
Return number of divisions.
Definition TStyle.cxx:1077
void SetFrameFillColor(Color_t color=1)
Definition TStyle.h:372
Int_t fFrameBorderMode
Pad frame border mode.
Definition TStyle.h:76
void SetImageScaling(Float_t s)
Definition TStyle.h:387
Int_t GetPadTickX() const
Definition TStyle.h:217
Color_t GetTitleColor(Option_t *axis="X") const
Return title color.
Definition TStyle.cxx:1204
Bool_t IsReading() const
Definition TStyle.h:296
Style_t fHistLineStyle
Histogram line style.
Definition TStyle.h:80
Color_t GetFrameLineColor() const
Definition TStyle.h:226
void SetTitleYSize(Float_t size=0.02)
Definition TStyle.h:412
Style_t GetGridStyle() const
Definition TStyle.h:223
Int_t GetJoinLinePS() const
Returns the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin fo...
Definition TStyle.h:287
Style_t fLegendFillStyle
Legend fill style.
Definition TStyle.h:65
void SetStatFont(Style_t font=62)
Definition TStyle.h:394
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).
Definition TStyle.cxx:1340
Float_t GetStatFontSize() const
Definition TStyle.h:261
Float_t GetBarOffset() const
Definition TStyle.h:182
Float_t GetStatX() const
Definition TStyle.h:264
Float_t GetLabelSize(Option_t *axis="X") const
Return label size.
Definition TStyle.cxx:1145
void SetStatStyle(Style_t style=1001)
Definition TStyle.h:392
void SetCapLinePS(Int_t capline=0)
Set the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for deta...
Definition TStyle.h:307
Color_t GetPadColor() const
Definition TStyle.h:208
Float_t fBarOffset
Offset of bar for graphs.
Definition TStyle.h:36
void SetHistLineStyle(Style_t styl=0)
Definition TStyle.h:382
Bool_t GetCandleScaled() const
Definition TStyle.h:292
void SetPadRightMargin(Float_t margin=0.1)
Definition TStyle.h:361
Style_t GetHistFillStyle() const
Definition TStyle.h:234
void SetCanvasColor(Color_t color=19)
Definition TStyle.h:343
TAttAxis fZaxis
Z axis attributes.
Definition TStyle.h:34
void SetTitleFont(Style_t font=62, Option_t *axis="X")
Definition TStyle.cxx:1775
Float_t GetPadRightMargin() const
Definition TStyle.h:214
Float_t GetTickLength(Option_t *axis="X") const
Return tick length.
Definition TStyle.cxx:1192
void SetExponentOffset(Float_t xoff=0., Float_t yoff=0., Option_t *axis="XY")
Method set X and Y offset of the axis 10^n notation.
Definition TStyle.cxx:1836
Int_t fDrawBorder
Flag to draw border(=1) or not (0)
Definition TStyle.h:38
void SetCanvasDefH(Int_t h=500)
Definition TStyle.h:346
void SetTitleBorderSize(Width_t size=2)
Definition TStyle.h:408
void SaveSource(const char *filename, Option_t *option=nullptr)
Save the current style in a C++ macro file.
Definition TStyle.cxx:1969
Double_t GetCandleWhiskerRange() const
Definition TStyle.h:290
Style_t GetFrameFillStyle() const
Definition TStyle.h:227
void SetStatTextColor(Color_t color=1)
Definition TStyle.h:391
void SetStatX(Float_t x=0)
Definition TStyle.h:397
Float_t GetTitleSize(Option_t *axis="X") const
Return title size.
Definition TStyle.cxx:1240
Float_t GetLegoInnerR() const
Definition TStyle.h:240
Int_t AxisChoice(Option_t *axis) const
Definition TStyle.cxx:507
TString fTitlePS
User defined Postscript file title.
Definition TStyle.h:132
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
Definition TStyle.cxx:1121
virtual ~TStyle()
Destructor.
Definition TStyle.cxx:479
void SetCanvasBorderMode(Int_t mode=1)
Definition TStyle.h:345
Int_t GetShowToolBar() const
Definition TStyle.h:254
Float_t GetTitleY() const
Definition TStyle.h:281
Style_t fFuncStyle
Function style.
Definition TStyle.h:58
void SetOptDate(Int_t datefl=1)
If optdate is non null, the current date/time will be printed in the canvas.
Definition TStyle.cxx:1546
Int_t fPadTickX
True to set special pad ticks along X.
Definition TStyle.h:101
void SetFrameFillStyle(Style_t styl=0)
Definition TStyle.h:374
Float_t GetDateX() const
Definition TStyle.h:197
void SetCanvasDefW(Int_t w=700)
Definition TStyle.h:347
Style_t fStatFont
Font style of Stats PaveLabel.
Definition TStyle.h:109
TString fLineStyle[30]
String describing line style i (for postScript)
Definition TStyle.h:130
void SetDateY(Float_t y=0.01)
Definition TStyle.h:338
Width_t fGridWidth
Grid line width.
Definition TStyle.h:62
Double_t fCandleBoxRange
Candle plot, The fraction which is covered by the box (0 < x < 1), default 0.5.
Definition TStyle.h:142
Float_t GetTitleOffset(Option_t *axis="X") const
Return title offset.
Definition TStyle.cxx:1228
Color_t GetHistFillColor() const
Definition TStyle.h:232
void SetFrameBorderMode(Int_t mode=1)
Definition TStyle.h:378
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
Definition TStyle.cxx:1216
Int_t fOptLogx
True if log scale in X.
Definition TStyle.h:39
Bool_t fStripDecimals
Strip decimals in axis labels.
Definition TStyle.h:117
Bool_t fHistMinimumZero
True if default minimum is 0, false if minimum is automatic.
Definition TStyle.h:82
Float_t GetImageScaling() const
Definition TStyle.h:239
Style_t fLegendFont
Legend font style.
Definition TStyle.h:66
void SetFuncColor(Color_t color=1)
Definition TStyle.h:367
Bool_t GetHistMinimumZero() const
Definition TStyle.h:237
TAttAxis fXaxis
X axis attributes.
Definition TStyle.h:32
void SetHeaderPS(const char *header)
Define a string to be inserted in the Postscript header.
Definition TStyle.cxx:1362
Float_t GetStatY() const
Definition TStyle.h:265
Color_t fTitleColor
Title fill area color.
Definition TStyle.h:119
Int_t fJoinLinePS
Determines the appearance of joining lines on PostScript, PDF and SVG.
Definition TStyle.h:136
void SetCandleScaled(Bool_t on=kFALSE)
Definition TStyle.h:425
void SetPadTickY(Int_t ticky)
Definition TStyle.h:365
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.
Definition TStyle.cxx:1798
Width_t fFrameLineWidth
Pad frame line width.
Definition TStyle.h:74
Color_t GetTitleFillColor() const
Definition TStyle.h:271
Int_t GetCanvasDefH() const
Definition TStyle.h:191
void SetColorModelPS(Int_t c=0)
Define the color model used by TPostScript and TPDF (RGB or CMYK).
Definition TStyle.cxx:1275
Style_t GetTitleStyle() const
Definition TStyle.h:273
void SetPadTickX(Int_t tickx)
Definition TStyle.h:364
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
Definition TStyle.cxx:1133
Int_t GetCanvasDefX() const
Definition TStyle.h:193
Int_t fOptTitle
True if option Title is selected.
Definition TStyle.h:44
Style_t fTitleFont
Font style of Title PaveLabel.
Definition TStyle.h:122
Int_t GetOptDate() const
Definition TStyle.h:242
Bool_t GetPadGridY() const
Definition TStyle.h:216
Float_t GetTitleXSize() const
Definition TStyle.h:277
Int_t fOptDate
True if date option is selected.
Definition TStyle.h:42
Float_t fPadTopMargin
Pad top margin.
Definition TStyle.h:96
Color_t GetStatColor() const
Definition TStyle.h:257
void SetPadGridX(Bool_t gridx)
Definition TStyle.h:362
Width_t fCanvasBorderSize
Canvas border size.
Definition TStyle.h:86
void ToggleEditor()
Definition TStyle.h:418
void SetTitleTextColor(Color_t color=1)
Definition TStyle.h:405
Float_t GetTitleYOffset() const
Definition TStyle.h:278
void SetAxisMaxDigits(Int_t maxd=5)
Method set maximum number of digits permitted for the axis labels above which the notation with 10^N ...
Definition TStyle.cxx:1880
Color_t fCanvasColor
Canvas color.
Definition TStyle.h:85
Float_t GetPadLeftMargin() const
Definition TStyle.h:213
Double_t GetHatchesSpacing() const
Definition TStyle.h:201
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.
Definition TStyle.cxx:1888
Float_t fStatY
Y position of top right corner of stat box.
Definition TStyle.h:114
void Copy(TObject &style) const override
Copy this style.
Definition TStyle.cxx:551
Width_t GetLegendBorderSize() const
Definition TStyle.h:202
Style_t fFrameLineStyle
Pad frame line style.
Definition TStyle.h:73
void SetStatBorderSize(Width_t size=2)
Definition TStyle.h:393
Float_t GetBarWidth() const
Definition TStyle.h:183
Int_t fCanvasBorderMode
Canvas border mode.
Definition TStyle.h:87
Bool_t GetCanvasPreferGL() const
Definition TStyle.h:187
void SetGridColor(Color_t color=0)
Definition TStyle.h:370
Int_t GetColorModelPS() const
Definition TStyle.h:196
void SetGridStyle(Style_t style=3)
Definition TStyle.h:369
void SetErrorX(Float_t errorx=0.5)
Definition TStyle.h:340
Int_t GetCanvasDefY() const
Definition TStyle.h:194
void SetTitleColor(Color_t color=1, Option_t *axis="X")
Definition TStyle.cxx:1754
void SetNumberContours(Int_t number=20)
Set the default number of contour levels when drawing 2-d plots.
Definition TStyle.cxx:1500
void Paint(Option_t *option="") override
Copy this style to gStyle.
Definition TStyle.cxx:1252
Float_t fTitleX
X position of top left corner of title box.
Definition TStyle.h:125
Int_t fShowToolBar
Show toolbar.
Definition TStyle.h:49
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
Definition TStyle.cxx:1413
Int_t fCapLinePS
Determines the appearance of line caps on PostScript, PDF and SVG.
Definition TStyle.h:137
Width_t fFuncWidth
Function line width.
Definition TStyle.h:59
Int_t fPadTickY
True to set special pad ticks along Y.
Definition TStyle.h:102
TAttAxis fYaxis
Y axis attributes.
Definition TStyle.h:33
void SetTitleFontSize(Float_t size=0)
Definition TStyle.h:407
Float_t fImageScaling
Image scaling to produce high definition bitmap images.
Definition TStyle.h:140
Double_t fCandleWhiskerRange
Candle plot, the fraction which is covered by the whiskers (0 < x < 1), default 1.
Definition TStyle.h:141
Float_t GetTitleXOffset() const
Definition TStyle.h:276
void SetDrawBorder(Int_t drawborder=1)
Definition TStyle.h:342
void SetOrthoCamera(Bool_t on=kTRUE)
Definition TStyle.h:427
Width_t GetFrameBorderSize() const
Definition TStyle.h:230
Width_t fHistLineWidth
Histogram line width.
Definition TStyle.h:81
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
Definition TStyle.cxx:1913
Bool_t fPadGridY
True to get the grid along Y.
Definition TStyle.h:100
void SetTitlePS(const char *pstitle)
Define a string to be used in the %Title of the Postscript files.
Definition TStyle.cxx:1383
Style_t fHistFillStyle
Histogram fill style.
Definition TStyle.h:79
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.
Definition TStyle.cxx:1288
Bool_t GetPadGridX() const
Definition TStyle.h:215
Float_t GetStatH() const
Definition TStyle.h:267
Int_t GetShowEventStatus() const
Definition TStyle.h:252
void SetPadLeftMargin(Float_t margin=0.1)
Definition TStyle.h:360
Float_t fEndErrorSize
Size of lines at the end of error bars.
Definition TStyle.h:55
void SetStatH(Float_t h=0.1)
Definition TStyle.h:400
void SetPadGridY(Bool_t gridy)
Definition TStyle.h:363
Float_t GetTitleYSize() const
Definition TStyle.h:279
void SetOptLogy(Int_t logy=1)
Definition TStyle.h:330
void SetJoinLinePS(Int_t joinline=0)
Set the line join method used for PostScript, PDF and SVG output. See TPostScript::SetLineJoin for de...
Definition TStyle.h:306
Bool_t fIsReading
! Set to FALSE when userclass::UseCurrentStyle is called by the style manager
Definition TStyle.h:139
Width_t GetGridWidth() const
Definition TStyle.h:224
Int_t GetOptFile() const
Definition TStyle.h:243
Width_t fFrameBorderSize
Pad frame border size.
Definition TStyle.h:75
Color_t GetFuncColor() const
Definition TStyle.h:219
void SetTitleXOffset(Float_t offset=1)
Definition TStyle.h:409
void SetLegendBorderSize(Width_t size=4)
Definition TStyle.h:350
TAttText * GetAttDate()
Definition TStyle.h:168
Color_t fTitleTextColor
Title text color.
Definition TStyle.h:120
Int_t GetPadTickY() const
Definition TStyle.h:218
Width_t GetPadBorderSize() const
Definition TStyle.h:209
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
Definition TStyle.cxx:1926
Width_t GetTitleBorderSize() const
Definition TStyle.h:275
void SetHistLineColor(Color_t color=1)
Definition TStyle.h:380
TString fHeaderPS
User defined additional Postscript header.
Definition TStyle.h:131
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
Definition TStyle.cxx:1101
virtual void cd()
Change current style.
Definition TStyle.cxx:543
const char * GetLineStyleString(Int_t i=1) const
Return line style string (used by PostScript).
Definition TStyle.cxx:1166
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis labels.
Definition TStyle.cxx:1429
Color_t fPadColor
Pad color.
Definition TStyle.h:92
void SetFitFormat(const char *format="5.4g")
Definition TStyle.h:301
Float_t GetErrorX() const
Definition TStyle.h:186
Float_t fDateX
X position of the date in the canvas (in NDC)
Definition TStyle.h:53
Int_t fOptLogz
True if log scale in z.
Definition TStyle.h:41
void SetCanvasDefY(Int_t topy=10)
Definition TStyle.h:349
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
Definition TStyle.cxx:1817
void SetTitleFillColor(Color_t color=1)
Definition TStyle.h:404
TString fFitFormat
Printing format for fit parameters.
Definition TStyle.h:133
Int_t fPadBorderMode
Pad border mode.
Definition TStyle.h:94
Double_t GetLegendTextSize() const
Definition TStyle.h:206
Int_t fNumberContours
Default number of contours for 2-d plots.
Definition TStyle.h:51
void SetLineStyleString(Int_t i, const char *text)
Set line style string using the PostScript convention.
Definition TStyle.cxx:1483
Double_t GetCandleBoxRange() const
Definition TStyle.h:291
Float_t fPadLeftMargin
Pad left margin.
Definition TStyle.h:97
Float_t fTitleY
Y position of top left corner of title box.
Definition TStyle.h:126
Double_t fTimeOffset
Time offset to the beginning of an axis.
Definition TStyle.h:138
Color_t GetCanvasColor() const
Definition TStyle.h:188
Color_t fFrameLineColor
Pad frame line color.
Definition TStyle.h:71
Double_t fLegendTextSize
Legend text size. If 0 the size is computed automatically.
Definition TStyle.h:67
Int_t fShowEditor
Show pad editor.
Definition TStyle.h:48
Color_t fLegendFillColor
Legend fill color.
Definition TStyle.h:64
Double_t GetHistTopMargin() const
Definition TStyle.h:238
void SetTitleAlign(Int_t a=13)
Definition TStyle.h:403
Float_t fLineScalePS
Line scale factor when drawing lines on Postscript.
Definition TStyle.h:135
void SetBarOffset(Float_t baroff=0.5)
Definition TStyle.h:335
void SetPaperSize(EPaperSize size)
Set paper size for PostScript output.
Definition TStyle.cxx:1704
Float_t GetEndErrorSize() const
Definition TStyle.h:185
Float_t GetPadBottomMargin() const
Definition TStyle.h:211
void SetFrameLineWidth(Width_t width=1)
Definition TStyle.h:376
void SetTickLength(Float_t length=0.03, Option_t *axis="X")
Set the tick marks length for an axis.
Definition TStyle.cxx:1735
Double_t fHistTopMargin
Margin between histogram's top and pad's top.
Definition TStyle.h:83
void SetNdivisions(Int_t n=510, Option_t *axis="X")
Set the number of divisions to draw an axis.
Definition TStyle.cxx:1309
Int_t fOptStat
True if option Stat is selected.
Definition TStyle.h:43
Double_t fHatchesSpacing
Hatches spacing for hatch styles > 3100.
Definition TStyle.h:69
Color_t fStatTextColor
Stat text color.
Definition TStyle.h:107
Width_t GetFuncWidth() const
Definition TStyle.h:221
TAttText fAttDate
Canvas date attribute.
Definition TStyle.h:52
Width_t fStatBorderSize
Border size of Stats PaveLabel.
Definition TStyle.h:108
Bool_t GetOrthoCamera() const
Definition TStyle.h:294
void Browse(TBrowser *b) override
Browse the style object.
Definition TStyle.cxx:517
Float_t fTitleW
Width of title box.
Definition TStyle.h:127
Width_t fPadBorderSize
Pad border size.
Definition TStyle.h:93
void SetFuncWidth(Width_t width=4)
Definition TStyle.h:368
void SetLegendFillStyle(Style_t style=1001)
Definition TStyle.h:352
Int_t GetDrawBorder() const
Definition TStyle.h:184
void SetOptLogz(Int_t logz=1)
Definition TStyle.h:331
const char * GetTitlePS() const
Definition TStyle.h:285
Color_t fHistLineColor
Histogram line color.
Definition TStyle.h:78
Int_t fOptFit
True if option Fit is selected.
Definition TStyle.h:46
Int_t GetCanvasDefW() const
Definition TStyle.h:192
Int_t GetCapLinePS() const
Returns the line cap method used for PostScript, PDF and SVG output. See TPostScript::SetLineCap for ...
Definition TStyle.h:288
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Function used by the TStyle manager when drawing a canvas showing the current style.
Definition TStyle.cxx:687
void SetFrameBorderSize(Width_t size=1)
Definition TStyle.h:377
Width_t GetStatBorderSize() const
Definition TStyle.h:259
void GetPaperSize(Float_t &xsize, Float_t &ysize) const
Set paper size for PostScript output.
Definition TStyle.cxx:1183
Int_t GetStripDecimals() const
Definition TStyle.h:268
void SetOptFile(Int_t file=1)
Definition TStyle.h:327
Float_t fXAxisExpYOffset
X axis exponent label Y offset.
Definition TStyle.h:146
Style_t GetLegendFillStyle() const
Definition TStyle.h:204
void SetTitleW(Float_t w=0)
Definition TStyle.h:415
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
Definition TStyle.h:341
Color_t fFrameFillColor
Pad frame fill color.
Definition TStyle.h:70
Style_t GetHistLineStyle() const
Definition TStyle.h:235
void ToggleToolBar()
Definition TStyle.h:419
TStyle()
Default constructor.
Definition TStyle.cxx:145
void SetHistTopMargin(Double_t hmax=0.05)
Definition TStyle.h:385
Float_t fTitleH
Height of title box.
Definition TStyle.h:128
void SetTitleStyle(Style_t style=1001)
Definition TStyle.h:406
void SetStatFontSize(Float_t size=0)
Definition TStyle.h:395
void SetStatColor(Color_t color=19)
Definition TStyle.h:390
Style_t fFrameFillStyle
Pad frame fill style.
Definition TStyle.h:72
void SetPadColor(Color_t color=19)
Definition TStyle.h:355
void SetStatW(Float_t w=0.19)
Definition TStyle.h:399
void SetHatchesSpacing(Double_t h)
Definition TStyle.h:304
void SetTitleH(Float_t h=0)
Definition TStyle.h:416
virtual void Reset(Option_t *option="")
Reset.
Definition TStyle.cxx:696
Int_t fShowEventStatus
Show event status panel.
Definition TStyle.h:47
Color_t GetTitleTextColor() const
Definition TStyle.h:272
Bool_t fPadGridX
True to get the grid along X.
Definition TStyle.h:99
void SetViolinScaled(Bool_t on=kTRUE)
Definition TStyle.h:426
void SetBarWidth(Float_t barwidth=0.5)
Definition TStyle.h:336
void SetStatY(Float_t y=0)
Definition TStyle.h:398
void SetCandleWhiskerRange(Double_t wRange=1.0)
By setting whisker-range for candle plot, one can force the whiskers to cover the fraction of the dis...
Definition TStyle.cxx:1939
Style_t fTitleStyle
Fill area style of title PaveLabel.
Definition TStyle.h:124
Style_t GetLegendFont() const
Definition TStyle.h:205
Int_t GetOptLogx() const
Definition TStyle.h:247
void SetLegendTextSize(Double_t size=0.)
Definition TStyle.h:354
TStyle & operator=(const TStyle &style)
Assignment operator.
Definition TStyle.cxx:497
void SavePrimitive(std::ostream &out, Option_t *="") override
Save a main frame widget as a C++ statement(s) on output stream out.
Definition TStyle.cxx:2027
Bool_t fCandleScaled
Candle plot, shall the box-width be scaled to each other by the integral of a box?
Definition TStyle.h:143
Float_t GetTitleH() const
Definition TStyle.h:283
Style_t GetStatStyle() const
Definition TStyle.h:262
void SetTitleY(Float_t y=0.985)
Definition TStyle.h:414
void SetHistFillStyle(Style_t styl=0)
Definition TStyle.h:381
Float_t fStatFontSize
Font size in pixels for fonts with precision type 3.
Definition TStyle.h:110
Bool_t fCanvasPreferGL
If true, rendering in canvas is with GL.
Definition TStyle.h:84
Float_t fLegoInnerR
Inner radius for cylindrical legos.
Definition TStyle.h:129
Width_t GetHistLineWidth() const
Definition TStyle.h:236
EPaperSize
Definition TStyle.h:153
@ kA4
Definition TStyle.h:153
@ kUSLetter
Definition TStyle.h:153
Int_t fOptLogy
True if log scale in y.
Definition TStyle.h:40
Int_t fAxisMaxDigits
Number of digits above which the 10^N notation is used for axis.
Definition TStyle.h:149
Style_t GetFrameLineStyle() const
Definition TStyle.h:228
void SetIsReading(Bool_t reading=kTRUE)
Sets the fIsReading member to reading (default=kTRUE).
Definition TStyle.cxx:1374
Float_t GetStatW() const
Definition TStyle.h:266
Style_t fGridStyle
Grid line style.
Definition TStyle.h:61
Color_t fHistFillColor
Histogram fill color.
Definition TStyle.h:77
Float_t GetDateY() const
Definition TStyle.h:198
const char * GetFitFormat() const
Definition TStyle.h:199
void SetScreenFactor(Float_t factor=1)
Definition TStyle.h:317
Int_t fCanvasDefH
Default canvas height.
Definition TStyle.h:88
void SetHatchesLineWidth(Int_t l)
Definition TStyle.h:303
Int_t GetCanvasBorderMode() const
Definition TStyle.h:190
Int_t GetPadBorderMode() const
Definition TStyle.h:210
Float_t fXAxisExpXOffset
X axis exponent label X offset.
Definition TStyle.h:145
void SetGridWidth(Width_t width=1)
Definition TStyle.h:371
Color_t fFuncColor
Function color.
Definition TStyle.h:57
const char * GetHeaderPS() const
Definition TStyle.h:284
void SetTitleYOffset(Float_t offset=1)
Definition TStyle.h:411
const char * GetStatFormat() const
Definition TStyle.h:263
void SetFuncStyle(Style_t style=1)
Definition TStyle.h:366
Width_t GetCanvasBorderSize() const
Definition TStyle.h:189
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
Definition TStyle.cxx:1175
Float_t fStatH
Height of stat box.
Definition TStyle.h:116
Int_t GetOptFit() const
Definition TStyle.h:244
Float_t fStatX
X position of top right corner of stat box.
Definition TStyle.h:113
void SetTitleXSize(Float_t size=0.02)
Definition TStyle.h:410
Int_t fCanvasDefY
Default canvas top Y position.
Definition TStyle.h:91
Int_t GetNumberContours() const
Definition TStyle.h:241
void SetHistLineWidth(Width_t width=1)
Definition TStyle.h:383
Bool_t fOrthoCamera
Use orthographic camera with web display.
Definition TStyle.h:150
Float_t fPadBottomMargin
Pad bottom margin.
Definition TStyle.h:95
const char * GetPaintTextFormat() const
Definition TStyle.h:250
Float_t GetLineScalePS() const
Definition TStyle.h:289
Float_t fErrorX
Per cent of bin width for errors along X.
Definition TStyle.h:56
void SetLabelColor(Color_t color=1, Option_t *axis="X")
Set axis labels color.
Definition TStyle.cxx:1393
void SetCandleBoxRange(Double_t bRange=0.5)
By setting box-range for candle plot, one can force the box of the candle-chart to cover that given f...
Definition TStyle.cxx:1956
Style_t GetStatFont() const
Definition TStyle.h:260
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Set size of axis labels.
Definition TStyle.cxx:1444
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
Definition TStyle.cxx:1593
Width_t fLegendBorderSize
Legend box border size.
Definition TStyle.h:63
Float_t fStatW
Width of stat box.
Definition TStyle.h:115
Float_t fYAxisExpYOffset
Y axis exponent label Y offset.
Definition TStyle.h:148
Float_t fBarWidth
Width of bar for graphs.
Definition TStyle.h:35
Width_t fTitleBorderSize
Border size of Title PavelLabel.
Definition TStyle.h:121
Int_t GetOptLogz() const
Definition TStyle.h:249
void SetPadBorderSize(Width_t size=1)
Definition TStyle.h:356
Float_t fPaperSizeY
PostScript paper size along Y.
Definition TStyle.h:104
static void BuildStyles()
Create some standard styles.
Definition TStyle.cxx:525
Int_t fTitleAlign
Title box alignment.
Definition TStyle.h:118
Style_t GetFuncStyle() const
Definition TStyle.h:220
Color_t GetLegendFillColor() const
Definition TStyle.h:203
Float_t GetTitleFontSize() const
Definition TStyle.h:274
void SetFrameLineStyle(Style_t styl=0)
Definition TStyle.h:375
Int_t GetHatchesLineWidth() const
Definition TStyle.h:200
Float_t fDateY
Y position of the date in the canvas (in NDC)
Definition TStyle.h:54
void ToggleEventStatus()
Definition TStyle.h:417
void GetExponentOffset(Float_t &xoff, Float_t &yoff, Option_t *axis="X") const
Method returns X and Y offset of the axis 10^n notation.
Definition TStyle.cxx:1855
Int_t GetTitleAlign() const
Definition TStyle.h:270
Color_t GetAxisColor(Option_t *axis="X") const
Return the axis color number in the axis.
Definition TStyle.cxx:1089
Int_t GetFrameBorderMode() const
Definition TStyle.h:231
TString fStatFormat
Printing format for stats.
Definition TStyle.h:112
Float_t GetPadTopMargin() const
Definition TStyle.h:212
Int_t fColorModelPS
PostScript color model: 0 = RGB, 1 = CMYK.
Definition TStyle.h:37
void SetLineScalePS(Float_t scale=3)
Definition TStyle.h:308
Width_t GetFrameLineWidth() const
Definition TStyle.h:229
Color_t GetFrameFillColor() const
Definition TStyle.h:225
Style_t fStatStyle
Fill area style of Stats PaveLabel.
Definition TStyle.h:111
Float_t GetTitleW() const
Definition TStyle.h:282
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
const Int_t n
Definition legend1.C:16
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Definition TMathBase.h:250
TLine l
Definition textangle.C:4