113 delete gROOT->GetStyle(style_name);
119 gROOT->GetListOfStyles()->Add(
this);
122 if (strcmp(style_name,
"Modern") == 0) {
163 if (strcmp(style_name,
"Plain") == 0) {
178 if (strcmp(style_name,
"Bold") == 0) {
205 if (strcmp(style_name,
"Video") == 0) {
230 if (strcmp(style_name,
"Pub") == 0) {
267 gROOT->GetListOfStyles()->Remove(
this);
268 if (gStyle ==
this) gStyle = (
TStyle*)
gROOT->GetListOfStyles()->Last();
293 new TStyle(
"Plain",
"Plain Style (no colors/fill areas)");
294 new TStyle(
"Bold",
"Bold Style");;
295 new TStyle(
"Video",
"Style for video presentation histograms");
296 new TStyle(
"Pub",
"Style for Publications");
297 new TStyle(
"Classic",
"Classic Style");
298 new TStyle(
"Default",
"Equivalent to Classic");
299 new TStyle(
"Modern",
"Modern Style");
436 gPad->SetSelected(
this);
575 if (strcmp(style_name,
"Modern") == 0) {
616 if (strcmp(style_name,
"Plain") == 0) {
629 if (strcmp(style_name,
"Bold") == 0) {
655 if (strcmp(style_name,
"Video") == 0) {
679 if (strcmp(style_name,
"Pub") == 0) {
882 gROOT->ProcessLine(
Form(
"TStyleManager::PaintStyle((TStyle*)0x%lx,\"%s\")",
1116 Int_t nch = strlen(text);
1117 char *st =
new char[nch+10];
1119 strlcat(st,text,nch+10);
1120 l = strstr(st,
"[");
if (l) l[0] =
' ';
1121 l = strstr(st,
"]");
if (l) l[0] =
' ';
1131 if (number > 0 && number < 1000) {
1136 Error(
"SetNumberContours",
"Illegal number of contours: %d, must be > 0 and < 1000",number);
1178 Int_t mode = optdate%10;
1224 TIter next(
gPad->GetListOfPrimitives());
1225 while ((obj = next())) {
1272 TIter next(
gPad->GetListOfPrimitives());
1273 while ((obj = next())) {
1316 if (opt.
Contains(
"u")) mode+=10000;
1317 if (opt.
Contains(
"o")) mode+=100000;
1318 if (opt.
Contains(
"i")) mode+=1000000;
1319 if (opt.
Contains(
"I")) mode+=2000000;
1320 if (opt.
Contains(
"s")) mode+=10000000;
1321 if (opt.
Contains(
"S")) mode+=20000000;
1322 if (opt.
Contains(
"k")) mode+=100000000;
1323 if (opt.
Contains(
"K")) mode+=200000000;
1324 if (mode == 1) mode = 1000000001;
1342 Error(
"SetPaperSize",
"illegal paper size %d\n", (
int)size);
1502 TString ff = strlen(filename) ? filename :
"Rootstyl.C";
1506 Int_t lenfname = strlen(fname);
1507 char *
sname =
new char[lenfname + 1];
1509 while ((fname[i] !=
'.') && (i < lenfname)) {
1510 sname[i] = fname[i];
1513 if (i == lenfname) ff +=
".C";
1518 out.open(ff.
Data(), std::ios::out);
1521 Error(
"SaveSource",
"cannot open file: %s", ff.
Data());
1527 out <<
"// Mainframe macro generated from application: " <<
gApplication->
Argv(0) << std::endl;
1528 out <<
"// By ROOT version " <<
gROOT->GetVersion() <<
" on " << t.
AsSQLString() << std::endl;
1534 out <<
"#if !defined( __CINT__) || defined (__MAKECINT__)" << std::endl << std::endl;
1535 out <<
"#ifndef ROOT_TStyle" << std::endl;
1536 out <<
"#include " << quote <<
"TStyle.h" << quote << std::endl;
1537 out <<
"#endif" << std::endl;
1538 out << std::endl <<
"#endif" << std::endl;
1542 out <<
"void " << sname <<
"()" << std::endl;
1543 out <<
"{" << std::endl;
1548 out <<
"}" << std::endl;
1551 printf(
" C++ macro file %s has been generated\n",
gSystem->
BaseName(ff));
1561 out <<
" // Add the saved style to the current ROOT session." << std::endl;
1563 out<<
" "<<
"delete gROOT->GetStyle("<<quote<<
GetName()<<quote<<
");"<< std::endl;
1565 out<<
" "<<
"TStyle *tmpStyle = new TStyle(" 1566 << quote <<
GetName() << quote <<
", " 1567 << quote <<
GetTitle() << quote <<
");" << std::endl;
1570 out<<
" "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"x") <<
", \"x\");"<<std::endl;
1571 out<<
" "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"y") <<
", \"y\");"<<std::endl;
1572 out<<
" "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"z") <<
", \"z\");"<<std::endl;
1573 out<<
" "<<
"tmpStyle->SetAxisColor(" <<
GetAxisColor(
"x") <<
", \"x\");"<<std::endl;
1574 out<<
" "<<
"tmpStyle->SetAxisColor(" <<
GetAxisColor(
"y") <<
", \"y\");"<<std::endl;
1575 out<<
" "<<
"tmpStyle->SetAxisColor(" <<
GetAxisColor(
"z") <<
", \"z\");"<<std::endl;
1576 out<<
" "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"x") <<
", \"x\");"<<std::endl;
1577 out<<
" "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"y") <<
", \"y\");"<<std::endl;
1578 out<<
" "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"z") <<
", \"z\");"<<std::endl;
1579 out<<
" "<<
"tmpStyle->SetLabelFont(" <<
GetLabelFont(
"x") <<
", \"x\");"<<std::endl;
1580 out<<
" "<<
"tmpStyle->SetLabelFont(" <<
GetLabelFont(
"y") <<
", \"y\");"<<std::endl;
1581 out<<
" "<<
"tmpStyle->SetLabelFont(" <<
GetLabelFont(
"z") <<
", \"z\");"<<std::endl;
1582 out<<
" "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"x")<<
", \"x\");"<<std::endl;
1583 out<<
" "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"y")<<
", \"y\");"<<std::endl;
1584 out<<
" "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"z")<<
", \"z\");"<<std::endl;
1585 out<<
" "<<
"tmpStyle->SetLabelSize(" <<
GetLabelSize(
"x") <<
", \"x\");"<<std::endl;
1586 out<<
" "<<
"tmpStyle->SetLabelSize(" <<
GetLabelSize(
"y") <<
", \"y\");"<<std::endl;
1587 out<<
" "<<
"tmpStyle->SetLabelSize(" <<
GetLabelSize(
"z") <<
", \"z\");"<<std::endl;
1588 out<<
" "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"x") <<
", \"x\");"<<std::endl;
1589 out<<
" "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"y") <<
", \"y\");"<<std::endl;
1590 out<<
" "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"z") <<
", \"z\");"<<std::endl;
1591 out<<
" "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"x")<<
", \"x\");"<<std::endl;
1592 out<<
" "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"y")<<
", \"y\");"<<std::endl;
1593 out<<
" "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"z")<<
", \"z\");"<<std::endl;
1594 out<<
" "<<
"tmpStyle->SetTitleSize(" <<
GetTitleSize(
"x") <<
", \"x\");"<<std::endl;
1595 out<<
" "<<
"tmpStyle->SetTitleSize(" <<
GetTitleSize(
"y") <<
", \"y\");"<<std::endl;
1596 out<<
" "<<
"tmpStyle->SetTitleSize(" <<
GetTitleSize(
"z") <<
", \"z\");"<<std::endl;
1597 out<<
" "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"x") <<
", \"x\");"<<std::endl;
1598 out<<
" "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"y") <<
", \"y\");"<<std::endl;
1599 out<<
" "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"z") <<
", \"z\");"<<std::endl;
1600 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont(
"x") <<
", \"x\");"<<std::endl;
1601 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont(
"y") <<
", \"y\");"<<std::endl;
1602 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont(
"z") <<
", \"z\");"<<std::endl;
1604 out<<
" "<<
"tmpStyle->SetBarWidth(" <<
GetBarWidth() <<
");"<<std::endl;
1605 out<<
" "<<
"tmpStyle->SetBarOffset(" <<
GetBarOffset() <<
");"<<std::endl;
1606 out<<
" "<<
"tmpStyle->SetDrawBorder(" <<
GetDrawBorder() <<
");"<<std::endl;
1607 out<<
" "<<
"tmpStyle->SetOptLogx(" <<
GetOptLogx() <<
");"<<std::endl;
1608 out<<
" "<<
"tmpStyle->SetOptLogy(" <<
GetOptLogy() <<
");"<<std::endl;
1609 out<<
" "<<
"tmpStyle->SetOptLogz(" <<
GetOptLogz() <<
");"<<std::endl;
1610 out<<
" "<<
"tmpStyle->SetOptDate(" <<
GetOptDate() <<
");"<<std::endl;
1611 out<<
" "<<
"tmpStyle->SetOptStat(" <<
GetOptStat() <<
");"<<std::endl;
1613 if (
GetOptTitle()) out <<
" tmpStyle->SetOptTitle(kTRUE);" << std::endl;
1614 else out <<
" tmpStyle->SetOptTitle(kFALSE);" << std::endl;
1615 out<<
" "<<
"tmpStyle->SetOptFit(" <<
GetOptFit() <<
");"<<std::endl;
1616 out<<
" "<<
"tmpStyle->SetNumberContours(" <<
GetNumberContours() <<
");"<<std::endl;
1625 out<<
" "<<
"tmpStyle->SetDateX(" <<
GetDateX() <<
");"<<std::endl;
1626 out<<
" "<<
"tmpStyle->SetDateY(" <<
GetDateY() <<
");"<<std::endl;
1627 out<<
" "<<
"tmpStyle->SetEndErrorSize(" <<
GetEndErrorSize() <<
");"<<std::endl;
1628 out<<
" "<<
"tmpStyle->SetErrorX(" <<
GetErrorX() <<
");"<<std::endl;
1629 out<<
" "<<
"tmpStyle->SetFuncColor(" <<
GetFuncColor() <<
");"<<std::endl;
1630 out<<
" "<<
"tmpStyle->SetFuncStyle(" <<
GetFuncStyle() <<
");"<<std::endl;
1631 out<<
" "<<
"tmpStyle->SetFuncWidth(" <<
GetFuncWidth() <<
");"<<std::endl;
1632 out<<
" "<<
"tmpStyle->SetGridColor(" <<
GetGridColor() <<
");"<<std::endl;
1633 out<<
" "<<
"tmpStyle->SetGridStyle(" <<
GetGridStyle() <<
");"<<std::endl;
1634 out<<
" "<<
"tmpStyle->SetGridWidth(" <<
GetGridWidth() <<
");"<<std::endl;
1637 out<<
" "<<
"tmpStyle->SetLegendFont(" <<
GetLegendFont() <<
");"<<std::endl;
1638 out<<
" "<<
"tmpStyle->SetLegendTextSize(" <<
GetLegendTextSize() <<
");"<<std::endl;
1640 out<<
" "<<
"tmpStyle->SetHatchesSpacing(" <<
GetHatchesSpacing() <<
");"<<std::endl;
1641 out<<
" "<<
"tmpStyle->SetFrameFillColor(" <<
GetFrameFillColor() <<
");"<<std::endl;
1642 out<<
" "<<
"tmpStyle->SetFrameLineColor(" <<
GetFrameLineColor() <<
");"<<std::endl;
1643 out<<
" "<<
"tmpStyle->SetFrameFillStyle(" <<
GetFrameFillStyle() <<
");"<<std::endl;
1644 out<<
" "<<
"tmpStyle->SetFrameLineStyle(" <<
GetFrameLineStyle() <<
");"<<std::endl;
1645 out<<
" "<<
"tmpStyle->SetFrameLineWidth(" <<
GetFrameLineWidth() <<
");"<<std::endl;
1648 out<<
" "<<
"tmpStyle->SetHistFillColor(" <<
GetHistFillColor() <<
");"<<std::endl;
1649 out<<
" "<<
"tmpStyle->SetHistLineColor(" <<
GetHistLineColor() <<
");"<<std::endl;
1650 out<<
" "<<
"tmpStyle->SetHistFillStyle(" <<
GetHistFillStyle() <<
");"<<std::endl;
1651 out<<
" "<<
"tmpStyle->SetHistLineStyle(" <<
GetHistLineStyle() <<
");"<<std::endl;
1652 out<<
" "<<
"tmpStyle->SetHistLineWidth(" <<
GetHistLineWidth() <<
");"<<std::endl;
1654 else out<<
" tmpStyle->SetHistMinimumZero(kFALSE);"<<std::endl;
1655 if (
GetCanvasPreferGL()) out<<
" tmpStyle->SetCanvasPreferGL(kTRUE);" <<std::endl;
1656 else out<<
" tmpStyle->SetCanvasPreferGL(kFALSE);"<<std::endl;
1657 out<<
" "<<
"tmpStyle->SetCanvasColor(" <<
GetCanvasColor() <<
");"<<std::endl;
1660 out<<
" "<<
"tmpStyle->SetCanvasDefH(" <<
GetCanvasDefH() <<
");"<<std::endl;
1661 out<<
" "<<
"tmpStyle->SetCanvasDefW(" <<
GetCanvasDefW() <<
");"<<std::endl;
1662 out<<
" "<<
"tmpStyle->SetCanvasDefX(" <<
GetCanvasDefX() <<
");"<<std::endl;
1663 out<<
" "<<
"tmpStyle->SetCanvasDefY(" <<
GetCanvasDefY() <<
");"<<std::endl;
1664 out<<
" "<<
"tmpStyle->SetPadColor(" <<
GetPadColor() <<
");"<<std::endl;
1665 out<<
" "<<
"tmpStyle->SetPadBorderSize(" <<
GetPadBorderSize() <<
");"<<std::endl;
1666 out<<
" "<<
"tmpStyle->SetPadBorderMode(" <<
GetPadBorderMode() <<
");"<<std::endl;
1668 out<<
" "<<
"tmpStyle->SetPadTopMargin(" <<
GetPadTopMargin() <<
");"<<std::endl;
1669 out<<
" "<<
"tmpStyle->SetPadLeftMargin(" <<
GetPadLeftMargin() <<
");"<<std::endl;
1670 out<<
" "<<
"tmpStyle->SetPadRightMargin(" <<
GetPadRightMargin() <<
");"<<std::endl;
1671 if (
GetPadGridX()) out<<
" tmpStyle->SetPadGridX(kTRUE);" <<std::endl;
1672 else out<<
" tmpStyle->SetPadGridX(kFALSE);"<<std::endl;
1673 if (
GetPadGridY()) out<<
" tmpStyle->SetPadGridY(kTRUE);" <<std::endl;
1674 else out<<
" tmpStyle->SetPadGridY(kFALSE);"<<std::endl;
1675 out<<
" "<<
"tmpStyle->SetPadTickX(" <<
GetPadTickX() <<
");"<<std::endl;
1676 out<<
" "<<
"tmpStyle->SetPadTickY(" <<
GetPadTickY() <<
");"<<std::endl;
1679 out<<
" "<<
"tmpStyle->SetPaperSize(" <<
fPaperSizeX <<
", " 1682 out<<
" "<<
"tmpStyle->SetScreenFactor(" <<
GetScreenFactor() <<
");"<<std::endl;
1683 out<<
" "<<
"tmpStyle->SetStatColor(" <<
GetStatColor() <<
");"<<std::endl;
1684 out<<
" "<<
"tmpStyle->SetStatTextColor(" <<
GetStatTextColor() <<
");"<<std::endl;
1685 out<<
" "<<
"tmpStyle->SetStatBorderSize(" <<
GetStatBorderSize() <<
");"<<std::endl;
1686 out<<
" "<<
"tmpStyle->SetStatFont(" <<
GetStatFont() <<
");"<<std::endl;
1687 out<<
" "<<
"tmpStyle->SetStatFontSize(" <<
GetStatFontSize() <<
");"<<std::endl;
1688 out<<
" "<<
"tmpStyle->SetStatStyle(" <<
GetStatStyle() <<
");"<<std::endl;
1689 out<<
" "<<
"tmpStyle->SetStatFormat(" <<quote <<
GetStatFormat()
1690 <<quote <<
");"<<std::endl;
1691 out<<
" "<<
"tmpStyle->SetStatX(" <<
GetStatX() <<
");"<<std::endl;
1692 out<<
" "<<
"tmpStyle->SetStatY(" <<
GetStatY() <<
");"<<std::endl;
1693 out<<
" "<<
"tmpStyle->SetStatW(" <<
GetStatW() <<
");"<<std::endl;
1694 out<<
" "<<
"tmpStyle->SetStatH(" <<
GetStatH() <<
");"<<std::endl;
1695 if (
GetStripDecimals()) out<<
" tmpStyle->SetStripDecimals(kTRUE);" <<std::endl;
1696 else out<<
" tmpStyle->SetStripDecimals(kFALSE);"<<std::endl;
1697 out<<
" "<<
"tmpStyle->SetTitleAlign(" <<
GetTitleAlign() <<
");"<<std::endl;
1698 out<<
" "<<
"tmpStyle->SetTitleFillColor(" <<
GetTitleFillColor() <<
");"<<std::endl;
1699 out<<
" "<<
"tmpStyle->SetTitleTextColor(" <<
GetTitleTextColor() <<
");"<<std::endl;
1701 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont() <<
");"<<std::endl;
1702 out<<
" "<<
"tmpStyle->SetTitleFontSize(" <<
GetTitleFontSize() <<
");"<<std::endl;
1703 out<<
" "<<
"tmpStyle->SetTitleStyle(" <<
GetTitleStyle() <<
");"<<std::endl;
1704 out<<
" "<<
"tmpStyle->SetTitleX(" <<
GetTitleX() <<
");"<<std::endl;
1705 out<<
" "<<
"tmpStyle->SetTitleY(" <<
GetTitleY() <<
");"<<std::endl;
1706 out<<
" "<<
"tmpStyle->SetTitleW(" <<
GetTitleW() <<
");"<<std::endl;
1707 out<<
" "<<
"tmpStyle->SetTitleH(" <<
GetTitleH() <<
");"<<std::endl;
1708 out<<
" "<<
"tmpStyle->SetLegoInnerR(" <<
GetLegoInnerR() <<
");"<<std::endl;
1715 out<<std::endl<<
" ";
1720 <<
", fPaletteColor);" << std::endl;
1724 out<<
" "<<
"TString fLineStyleArrayTmp[30] = {";
1725 for (
Int_t li=0; li<29; ++li) {
1727 out<<std::endl<<
" ";
1731 out<<
" "<<
"for (Int_t i=0; i<30; i++)"<<std::endl;
1732 out<<
" "<<
" tmpStyle->SetLineStyleString(i, fLineStyleArrayTmp[i]);"<<std::endl;
1735 out<<
" "<<
"tmpStyle->SetHeaderPS(" <<quote<<
GetHeaderPS()
1736 <<quote <<
");"<<std::endl;
1737 out<<
" "<<
"tmpStyle->SetTitlePS(" <<quote<<
GetTitlePS()
1738 <<quote <<
");"<<std::endl;
1739 out<<
" "<<
"tmpStyle->SetFitFormat(" <<quote<<
GetFitFormat()
1740 <<quote <<
");"<<std::endl;
1742 <<quote <<
");"<<std::endl;
1743 out<<
" "<<
"tmpStyle->SetLineScalePS(" <<
GetLineScalePS() <<
");"<<std::endl;
1744 out<<
" "<<
"tmpStyle->SetJoinLinePS(" <<
GetJoinLinePS() <<
");"<<std::endl;
1745 out<<
" "<<
"tmpStyle->SetColorModelPS(" <<
GetColorModelPS() <<
");"<<std::endl;
1751 out <<
" " <<
"tmpStyle->SetLineColor(" <<
GetLineColor() <<
");" <<std::endl;
1752 out <<
" " <<
"tmpStyle->SetLineStyle(" <<
GetLineStyle() <<
");" <<std::endl;
1753 out <<
" " <<
"tmpStyle->SetLineWidth(" <<
GetLineWidth() <<
");" <<std::endl;
1756 out <<
" " <<
"tmpStyle->SetFillColor(" <<
GetFillColor() <<
");" <<std::endl;
1757 out <<
" " <<
"tmpStyle->SetFillStyle(" <<
GetFillStyle() <<
");" <<std::endl;
1760 out <<
" " <<
"tmpStyle->SetMarkerColor(" <<
GetMarkerColor() <<
");" <<std::endl;
1761 out <<
" " <<
"tmpStyle->SetMarkerSize(" <<
GetMarkerSize() <<
");" <<std::endl;
1762 out <<
" " <<
"tmpStyle->SetMarkerStyle(" <<
GetMarkerStyle() <<
");" <<std::endl;
1765 out <<
" " <<
"tmpStyle->SetTextAlign(" <<
GetTextAlign() <<
");" <<std::endl;
1766 out <<
" " <<
"tmpStyle->SetTextAngle(" <<
GetTextAngle() <<
");" <<std::endl;
1767 out <<
" " <<
"tmpStyle->SetTextColor(" <<
GetTextColor() <<
");" <<std::endl;
1768 out <<
" " <<
"tmpStyle->SetTextFont(" <<
GetTextFont() <<
");" <<std::endl;
1769 out <<
" " <<
"tmpStyle->SetTextSize(" <<
GetTextSize() <<
");" <<std::endl;
Color_t fFuncColor
Function color.
Int_t GetColorModelPS() const
Style_t GetFrameLineStyle() const
Style_t GetLegendFont() const
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual const char * GetName() const
Returns name of object.
Int_t fOptFit
True if option Fit is selected.
Width_t fFuncWidth
Function line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Float_t fLineScalePS
Line scale factor when drawing lines on Postscript.
virtual Float_t GetTickLength() 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.
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)...
TString fFitFormat
Printing format for fit parameters.
TString fLineStyle[30]
String describing line style i (for postScript)
void SetPadLeftMargin(Float_t margin=0.1)
Float_t GetPadLeftMargin() const
Int_t fOptStat
True if option Stat is selected.
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 SetStatColor(Color_t color=19)
void SetFrameBorderMode(Int_t mode=1)
Color_t GetTitleTextColor() const
Int_t GetNumberContours() const
virtual void ResetAttText(Option_t *toption="")
Reset this text attributes to default values.
virtual Color_t GetTextColor() const
Return the text color.
Style_t GetGridStyle() const
Style_t fFrameLineStyle
Pad frame line style.
virtual Float_t GetLabelOffset() const
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
virtual Short_t GetTextAlign() const
Return the text alignment.
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.
Int_t fHatchesLineWidth
Hatches line width for hatch styles > 3100.
TAttAxis fZaxis
Z axis attributes.
void SetDateY(Float_t y=0.01)
virtual void ResetAttAxis(Option_t *option="")
Reset axis attributes.
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
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.
virtual Color_t GetAxisColor() const
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
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.
virtual Float_t GetTextAngle() const
Return the text angle.
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
TAttAxis fYaxis
Y axis attributes.
void SetFrameLineWidth(Width_t width=1)
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
TStyle()
Default constructor.
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 SetStatBorderSize(Width_t size=2)
void SetTitleFont(Style_t font=62, Option_t *axis="X")
virtual void SetTitleFont(Style_t font=62)
Set the title font.
void ToLower()
Change string to lower-case.
R__EXTERN TVirtualMutex * gROOTMutex
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
Float_t fDateY
Y position of the date in the canvas (in NDC)
Width_t GetLegendBorderSize() const
void SetStatY(Float_t y=0)
virtual Float_t GetLabelSize() const
Color_t GetFrameLineColor() const
Width_t fTitleBorderSize
Border size of Title PavelLabel.
R__EXTERN TApplication * gApplication
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
Float_t GetScreenFactor() const
Float_t GetTitleY() const
Int_t fCanvasDefH
Default canvas height.
Color_t GetFrameFillColor() const
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
void SetPadBottomMargin(Float_t margin=0.1)
const char * GetFitFormat() const
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels The distance is expressed in per cent of the pad width...
Style_t fFrameFillStyle
Pad frame fill style.
Int_t GetCanvasDefW() const
Width_t fFrameLineWidth
Pad frame line width.
Style_t fTitleFont
Font style of Title PaveLabel.
void SetTitlePS(const char *pstitle)
Define a string to be used in the %Title of the Postscript files.
void SetLineStyleString(Int_t i, const char *text)
Set line style string using the PostScript convention.
virtual Width_t GetLineWidth() const
Return the line width.
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
Float_t fPaperSizeY
PostScript paper size along Y.
Width_t GetFuncWidth() const
Double_t GetLegendTextSize() const
Int_t GetHatchesLineWidth() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
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 SetLabelFont(Style_t font=62)
Set labels' font.
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Static function.
virtual void cd()
Change current style.
TString fPaintTextFormat
Printing format for TH2::PaintText.
Int_t fPadTickX
True to set special pad ticks along X.
virtual Style_t GetMarkerStyle() const
Return the marker style.
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
virtual Style_t GetTitleFont() const
void SetTitleAlign(Int_t a=13)
virtual Style_t GetLineStyle() const
Return the line style.
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)
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
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
Bool_t GetPadGridX() const
virtual void ResetAttFill(Option_t *option="")
Reset this fill attributes to default values.
Int_t GetPadTickX() const
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
The TNamed class is the base class for all named ROOT classes.
virtual Float_t GetTextSize() const
Return the text size.
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 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
virtual Size_t GetMarkerSize() const
Return the marker size.
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.
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
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
virtual void ResetAttLine(Option_t *option="")
Reset this line attributes to default values.
Float_t fStatH
Height of stat box.
virtual Color_t GetLabelColor() const
Style_t fHistLineStyle
Histogram line style.
Color_t fStatTextColor
Stat text color.
Color_t fTitleTextColor
Title text color.
Width_t GetFrameBorderSize() const
virtual Int_t GetNdivisions() const
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
void SetTitleColor(Color_t color=1, Option_t *axis="X")
Style_t fFuncStyle
Function style.
void SetStatFont(Style_t font=62)
Int_t fCanvasBorderMode
Canvas border mode.
TStyle objects may be created to define special styles.
void Copy(TAttText &atttext) const
Copy this text attributes to a new TAttText.
Float_t fTitleX
X position of top left corner of title box.
Float_t GetErrorX() const
const char * GetPaintTextFormat() const
Using a TBrowser one can browse all ROOT objects.
Float_t GetLegoInnerR() const
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
void SetPadBorderMode(Int_t mode=1)
void SetCanvasBorderMode(Int_t mode=1)
Color_t fFrameLineColor
Pad frame line color.
TAttText fAttDate
Canvas date attribute.
Width_t fGridWidth
Grid line width.
R__EXTERN TSystem * gSystem
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
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual Font_t GetTextFont() const
Return the text font.
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)
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
void SetIsReading(Bool_t reading=kTRUE)
Sets the fIsReading member to reading (default=kTRUE).
Float_t GetPadBottomMargin() const
Width_t GetCanvasBorderSize() const
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.
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
Style_t GetFrameFillStyle() const
void Copy(TAttAxis &attaxis) const
Copy of the object.
virtual void Paint(Option_t *option="")
Show the options from the current style if (TClass::GetClass("TStyleManager")) gSystem->Load("libGed"...
virtual Float_t GetTitleOffset() const
virtual void Copy(TObject &style) const
Copy this style.
Int_t fShowEventStatus
Show event status panel.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
char * Form(const char *fmt,...)
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 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).
virtual Color_t GetTitleColor() const
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 Reset(Detail::TBranchProxy *x)
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
Set color of the line axis and tick marks.
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...
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
virtual void SetTitleColor(Color_t color=1)
Set color of axis title.
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title The size is expressed in per cent of the pad width.
const char * GetHeaderPS() const
void SetDateX(Float_t x=0.01)
Color_t GetTitleFillColor() const
Int_t GetJoinLinePS() const
virtual void ResetAttMarker(Option_t *toption="")
Reset this marker attributes to the default values.
#define R__LOCKGUARD2(mutex)
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.
virtual Color_t GetLineColor() const
Return the line color.
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.
Bool_t fPadGridY
True to get the grid along Y.
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.
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
virtual Color_t GetFillColor() const
Return the fill area color.
Float_t fPaperSizeX
PostScript paper size along X.
virtual void Reset(Option_t *option="")
Reset.
void SetLineScalePS(Float_t scale=3)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Float_t fPadLeftMargin
Pad left margin.
The color creation and management class.
Float_t fBarOffset
Offset of bar for graphs.
Float_t fStatFontSize
Font size in pixels for fonts with precision type 3.
virtual Float_t GetTitleSize() const
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.
Color_t fHistFillColor
Histogram fill color.
Width_t GetPadBorderSize() const
Color_t fFrameFillColor
Pad frame fill color.
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
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 SetTitleFillColor(Color_t color=1)
Color_t fGridColor
Grid line color (if 0 use axis line color)
Width_t fCanvasBorderSize
Canvas border size.
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetOptTitle(Int_t tit=1)
TString fStatFormat
Printing format for stats.
Color_t GetFuncColor() const
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length The length is expressed in per cent of the pad width.
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
virtual Color_t GetMarkerColor() const
Return the marker color.
void SetPaintTextFormat(const char *format="g")
Bool_t fCanvasPreferGL
If true, rendering in canvas is with GL.
virtual Style_t GetFillStyle() const
Return the fill area style.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
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
Color_t fHistLineColor
Histogram line color.
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.
Style_t fStatFont
Font style of Stats PaveLabel.
void SetFuncColor(Color_t color=1)
Float_t fLegoInnerR
Inner radius for cylindrical legos.
virtual Style_t GetLabelFont() const
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
const char * GetStatFormat() const
virtual const char * GetTitle() const
Returns title of object.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
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.)