201   delete gROOT->GetStyle(style_name);
 
  207      gROOT->GetListOfStyles()->Add(
this);
 
  210   if (strcmp(style_name,
"Modern") == 0) {
 
  251   if (strcmp(style_name,
"Plain") == 0) {
 
  266   if (strcmp(style_name,
"Bold") == 0) {
 
  293   if (strcmp(style_name,
"Video") == 0) {
 
  318   if (strcmp(style_name,
"Pub") == 0) {
 
  346   if (strcmp(style_name,
"ATLAS") == 0) {
 
  398   gROOT->GetListOfStyles()->Remove(
this);
 
  430   new TStyle(
"Plain",  
"Plain Style (no colors/fill areas)");
 
  431   new TStyle(
"Bold",   
"Bold Style");;
 
  432   new TStyle(
"Video",  
"Style for video presentation histograms");
 
  433   new TStyle(
"Pub",    
"Style for Publications");
 
  434   new TStyle(
"Classic",
"Classic Style");
 
  435   new TStyle(
"Default",
"Equivalent to Classic");
 
  436   new TStyle(
"Modern", 
"Modern Style");
 
  437   new TStyle(
"ATLAS",  
"ATLAS Style");
 
  575   gPad->SetSelected(
this);
 
  715   if (strcmp(style_name,
"Modern") == 0) {
 
  756   if (strcmp(style_name,
"Plain") == 0) {
 
  769   if (strcmp(style_name,
"Bold") == 0) {
 
  795   if (strcmp(style_name,
"Video") == 0) {
 
  819   if (strcmp(style_name,
"Pub") == 0) {
 
  846   if (strcmp(style_name,
"ATLAS") == 0) {
 
 1065   gROOT->ProcessLine(
Form(
"TStyleManager::PaintStyle((TStyle*)0x%lx,\"%s\")",
 
 1300   char *st = 
new char[nch+10];
 
 1302   strlcat(st,
text,nch+10);
 
 1303   l = strstr(st,
"["); 
if (
l) 
l[0] = 
' ';
 
 1304   l = strstr(st,
"]"); 
if (
l) 
l[0] = 
' ';
 
 1314   if (number > 0 && number < 1000) {
 
 1319   Error(
"SetNumberContours",
"Illegal number of contours: %d, must be > 0 and < 1000",number);
 
 1361   Int_t mode = optdate%10;
 
 1407      TIter next(
gPad->GetListOfPrimitives());
 
 1408      while ((obj = next())) {
 
 1455      TIter next(
gPad->GetListOfPrimitives());
 
 1456      while ((obj = next())) {
 
 1499   if (opt.
Contains(
"u")) mode+=10000;
 
 1500   if (opt.
Contains(
"o")) mode+=100000;
 
 1501   if (opt.
Contains(
"i")) mode+=1000000;
 
 1502   if (opt.
Contains(
"I")) mode+=2000000;
 
 1503   if (opt.
Contains(
"s")) mode+=10000000;
 
 1504   if (opt.
Contains(
"S")) mode+=20000000;
 
 1505   if (opt.
Contains(
"k")) mode+=100000000;
 
 1506   if (opt.
Contains(
"K")) mode+=200000000;
 
 1507   if (mode == 1) mode = 1000000001;
 
 1525         Error(
"SetPaperSize", 
"illegal paper size %d\n", (
int)size);
 
 1685   TString ff = strlen(filename) ? filename : 
"Rootstyl.C";
 
 1689   Int_t lenfname = strlen(fname);
 
 1690   char *sname = 
new char[lenfname + 1];
 
 1692   while ((i < lenfname) && (fname[i] != 
'.')) {
 
 1693      sname[i] = fname[i];
 
 1696   if (i == lenfname) ff += 
".C";
 
 1701   out.open(ff.
Data(), std::ios::out);
 
 1704      Error(
"SaveSource", 
"cannot open file: %s", ff.
Data());
 
 1710   out <<
"// Mainframe macro generated from application: " << 
gApplication->
Argv(0) << std::endl;
 
 1711   out <<
"// By ROOT version " << 
gROOT->GetVersion() << 
" on " << t.
AsSQLString() << std::endl;
 
 1717   out << 
"#if !defined( __CINT__) || defined (__MAKECINT__)" << std::endl << std::endl;
 
 1718   out << 
"#ifndef ROOT_TStyle" << std::endl;
 
 1719   out << 
"#include " << quote << 
"TStyle.h" << quote << std::endl;
 
 1720   out << 
"#endif" << std::endl;
 
 1721   out << std::endl << 
"#endif" << std::endl;
 
 1725   out << 
"void " << sname << 
"()" << std::endl;
 
 1726   out << 
"{" << std::endl;
 
 1731   out << 
"}" << std::endl;
 
 1734   printf(
" C++ macro file %s has been generated\n", 
gSystem->
BaseName(ff));
 
 1744   out << 
"   // Add the saved style to the current ROOT session." << std::endl;
 
 1746   out<<
"   "<<
"delete gROOT->GetStyle("<<quote<<
GetName()<<quote<<
");"<< std::endl;
 
 1748   out<<
"   "<<
"TStyle *tmpStyle = new TStyle(" 
 1749                           << quote << 
GetName()  << quote << 
", " 
 1750                           << quote << 
GetTitle() << quote << 
");" << std::endl;
 
 1753   out<<
"   "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"x") <<
", \"x\");"<<std::endl;
 
 1754   out<<
"   "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"y") <<
", \"y\");"<<std::endl;
 
 1755   out<<
"   "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"z") <<
", \"z\");"<<std::endl;
 
 1756   out<<
"   "<<
"tmpStyle->SetAxisColor("  <<
GetAxisColor(
"x")  <<
", \"x\");"<<std::endl;
 
 1757   out<<
"   "<<
"tmpStyle->SetAxisColor("  <<
GetAxisColor(
"y")  <<
", \"y\");"<<std::endl;
 
 1758   out<<
"   "<<
"tmpStyle->SetAxisColor("  <<
GetAxisColor(
"z")  <<
", \"z\");"<<std::endl;
 
 1759   out<<
"   "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"x") <<
", \"x\");"<<std::endl;
 
 1760   out<<
"   "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"y") <<
", \"y\");"<<std::endl;
 
 1761   out<<
"   "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"z") <<
", \"z\");"<<std::endl;
 
 1762   out<<
"   "<<
"tmpStyle->SetLabelFont("  <<
GetLabelFont(
"x")  <<
", \"x\");"<<std::endl;
 
 1763   out<<
"   "<<
"tmpStyle->SetLabelFont("  <<
GetLabelFont(
"y")  <<
", \"y\");"<<std::endl;
 
 1764   out<<
"   "<<
"tmpStyle->SetLabelFont("  <<
GetLabelFont(
"z")  <<
", \"z\");"<<std::endl;
 
 1765   out<<
"   "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"x")<<
", \"x\");"<<std::endl;
 
 1766   out<<
"   "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"y")<<
", \"y\");"<<std::endl;
 
 1767   out<<
"   "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"z")<<
", \"z\");"<<std::endl;
 
 1768   out<<
"   "<<
"tmpStyle->SetLabelSize("  <<
GetLabelSize(
"x")  <<
", \"x\");"<<std::endl;
 
 1769   out<<
"   "<<
"tmpStyle->SetLabelSize("  <<
GetLabelSize(
"y")  <<
", \"y\");"<<std::endl;
 
 1770   out<<
"   "<<
"tmpStyle->SetLabelSize("  <<
GetLabelSize(
"z")  <<
", \"z\");"<<std::endl;
 
 1771   out<<
"   "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"x") <<
", \"x\");"<<std::endl;
 
 1772   out<<
"   "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"y") <<
", \"y\");"<<std::endl;
 
 1773   out<<
"   "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"z") <<
", \"z\");"<<std::endl;
 
 1774   out<<
"   "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"x")<<
", \"x\");"<<std::endl;
 
 1775   out<<
"   "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"y")<<
", \"y\");"<<std::endl;
 
 1776   out<<
"   "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"z")<<
", \"z\");"<<std::endl;
 
 1777   out<<
"   "<<
"tmpStyle->SetTitleSize("  <<
GetTitleSize(
"x")  <<
", \"x\");"<<std::endl;
 
 1778   out<<
"   "<<
"tmpStyle->SetTitleSize("  <<
GetTitleSize(
"y")  <<
", \"y\");"<<std::endl;
 
 1779   out<<
"   "<<
"tmpStyle->SetTitleSize("  <<
GetTitleSize(
"z")  <<
", \"z\");"<<std::endl;
 
 1780   out<<
"   "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"x") <<
", \"x\");"<<std::endl;
 
 1781   out<<
"   "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"y") <<
", \"y\");"<<std::endl;
 
 1782   out<<
"   "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"z") <<
", \"z\");"<<std::endl;
 
 1783   out<<
"   "<<
"tmpStyle->SetTitleFont("  <<
GetTitleFont(
"x")  <<
", \"x\");"<<std::endl;
 
 1784   out<<
"   "<<
"tmpStyle->SetTitleFont("  <<
GetTitleFont(
"y")  <<
", \"y\");"<<std::endl;
 
 1785   out<<
"   "<<
"tmpStyle->SetTitleFont("  <<
GetTitleFont(
"z")  <<
", \"z\");"<<std::endl;
 
 1787   out<<
"   "<<
"tmpStyle->SetBarWidth("       <<
GetBarWidth()       <<
");"<<std::endl;
 
 1788   out<<
"   "<<
"tmpStyle->SetBarOffset("      <<
GetBarOffset()      <<
");"<<std::endl;
 
 1789   out<<
"   "<<
"tmpStyle->SetDrawBorder("     <<
GetDrawBorder()     <<
");"<<std::endl;
 
 1790   out<<
"   "<<
"tmpStyle->SetOptLogx("        <<
GetOptLogx()        <<
");"<<std::endl;
 
 1791   out<<
"   "<<
"tmpStyle->SetOptLogy("        <<
GetOptLogy()        <<
");"<<std::endl;
 
 1792   out<<
"   "<<
"tmpStyle->SetOptLogz("        <<
GetOptLogz()        <<
");"<<std::endl;
 
 1793   out<<
"   "<<
"tmpStyle->SetOptDate("        <<
GetOptDate()        <<
");"<<std::endl;
 
 1794   out<<
"   "<<
"tmpStyle->SetOptStat("        <<
GetOptStat()        <<
");"<<std::endl;
 
 1796   if (
GetOptTitle()) out << 
"   tmpStyle->SetOptTitle(kTRUE);"  << std::endl;
 
 1797   else               out << 
"   tmpStyle->SetOptTitle(kFALSE);" << std::endl;
 
 1798   out<<
"   "<<
"tmpStyle->SetOptFit("         <<
GetOptFit()         <<
");"<<std::endl;
 
 1799   out<<
"   "<<
"tmpStyle->SetNumberContours(" <<
GetNumberContours() <<
");"<<std::endl;
 
 1808   out<<
"   "<<
"tmpStyle->SetDateX("           <<
GetDateX()           <<
");"<<std::endl;
 
 1809   out<<
"   "<<
"tmpStyle->SetDateY("           <<
GetDateY()           <<
");"<<std::endl;
 
 1810   out<<
"   "<<
"tmpStyle->SetEndErrorSize("    <<
GetEndErrorSize()    <<
");"<<std::endl;
 
 1811   out<<
"   "<<
"tmpStyle->SetErrorX("          <<
GetErrorX()          <<
");"<<std::endl;
 
 1812   out<<
"   "<<
"tmpStyle->SetFuncColor("       <<
GetFuncColor()       <<
");"<<std::endl;
 
 1813   out<<
"   "<<
"tmpStyle->SetFuncStyle("       <<
GetFuncStyle()       <<
");"<<std::endl;
 
 1814   out<<
"   "<<
"tmpStyle->SetFuncWidth("       <<
GetFuncWidth()       <<
");"<<std::endl;
 
 1815   out<<
"   "<<
"tmpStyle->SetGridColor("       <<
GetGridColor()       <<
");"<<std::endl;
 
 1816   out<<
"   "<<
"tmpStyle->SetGridStyle("       <<
GetGridStyle()       <<
");"<<std::endl;
 
 1817   out<<
"   "<<
"tmpStyle->SetGridWidth("       <<
GetGridWidth()       <<
");"<<std::endl;
 
 1820   out<<
"   "<<
"tmpStyle->SetLegendFont("      <<
GetLegendFont()      <<
");"<<std::endl;
 
 1821   out<<
"   "<<
"tmpStyle->SetLegendTextSize("  <<
GetLegendTextSize()  <<
");"<<std::endl;
 
 1823   out<<
"   "<<
"tmpStyle->SetHatchesSpacing("  <<
GetHatchesSpacing()  <<
");"<<std::endl;
 
 1824   out<<
"   "<<
"tmpStyle->SetFrameFillColor("  <<
GetFrameFillColor()  <<
");"<<std::endl;
 
 1825   out<<
"   "<<
"tmpStyle->SetFrameLineColor("  <<
GetFrameLineColor()  <<
");"<<std::endl;
 
 1826   out<<
"   "<<
"tmpStyle->SetFrameFillStyle("  <<
GetFrameFillStyle()  <<
");"<<std::endl;
 
 1827   out<<
"   "<<
"tmpStyle->SetFrameLineStyle("  <<
GetFrameLineStyle()  <<
");"<<std::endl;
 
 1828   out<<
"   "<<
"tmpStyle->SetFrameLineWidth("  <<
GetFrameLineWidth()  <<
");"<<std::endl;
 
 1831   out<<
"   "<<
"tmpStyle->SetHistFillColor("   <<
GetHistFillColor()   <<
");"<<std::endl;
 
 1832   out<<
"   "<<
"tmpStyle->SetHistLineColor("   <<
GetHistLineColor()   <<
");"<<std::endl;
 
 1833   out<<
"   "<<
"tmpStyle->SetHistFillStyle("   <<
GetHistFillStyle()   <<
");"<<std::endl;
 
 1834   out<<
"   "<<
"tmpStyle->SetHistLineStyle("   <<
GetHistLineStyle()   <<
");"<<std::endl;
 
 1835   out<<
"   "<<
"tmpStyle->SetHistLineWidth("   <<
GetHistLineWidth()   <<
");"<<std::endl;
 
 1837   else                      out<<
"   tmpStyle->SetHistMinimumZero(kFALSE);"<<std::endl;
 
 1838   if (
GetCanvasPreferGL()) out<<
"   tmpStyle->SetCanvasPreferGL(kTRUE);" <<std::endl;
 
 1839   else                     out<<
"   tmpStyle->SetCanvasPreferGL(kFALSE);"<<std::endl;
 
 1840   out<<
"   "<<
"tmpStyle->SetCanvasColor("     <<
GetCanvasColor()     <<
");"<<std::endl;
 
 1843   out<<
"   "<<
"tmpStyle->SetCanvasDefH("      <<
GetCanvasDefH()      <<
");"<<std::endl;
 
 1844   out<<
"   "<<
"tmpStyle->SetCanvasDefW("      <<
GetCanvasDefW()      <<
");"<<std::endl;
 
 1845   out<<
"   "<<
"tmpStyle->SetCanvasDefX("      <<
GetCanvasDefX()      <<
");"<<std::endl;
 
 1846   out<<
"   "<<
"tmpStyle->SetCanvasDefY("      <<
GetCanvasDefY()      <<
");"<<std::endl;
 
 1847   out<<
"   "<<
"tmpStyle->SetPadColor("        <<
GetPadColor()        <<
");"<<std::endl;
 
 1848   out<<
"   "<<
"tmpStyle->SetPadBorderSize("   <<
GetPadBorderSize()   <<
");"<<std::endl;
 
 1849   out<<
"   "<<
"tmpStyle->SetPadBorderMode("   <<
GetPadBorderMode()   <<
");"<<std::endl;
 
 1851   out<<
"   "<<
"tmpStyle->SetPadTopMargin("    <<
GetPadTopMargin()    <<
");"<<std::endl;
 
 1852   out<<
"   "<<
"tmpStyle->SetPadLeftMargin("   <<
GetPadLeftMargin()   <<
");"<<std::endl;
 
 1853   out<<
"   "<<
"tmpStyle->SetPadRightMargin("  <<
GetPadRightMargin()  <<
");"<<std::endl;
 
 1854   if (
GetPadGridX()) out<<
"   tmpStyle->SetPadGridX(kTRUE);" <<std::endl;
 
 1855   else               out<<
"   tmpStyle->SetPadGridX(kFALSE);"<<std::endl;
 
 1856   if (
GetPadGridY()) out<<
"   tmpStyle->SetPadGridY(kTRUE);" <<std::endl;
 
 1857   else               out<<
"   tmpStyle->SetPadGridY(kFALSE);"<<std::endl;
 
 1858   out<<
"   "<<
"tmpStyle->SetPadTickX("        <<
GetPadTickX()         <<
");"<<std::endl;
 
 1859   out<<
"   "<<
"tmpStyle->SetPadTickY("        <<
GetPadTickY()         <<
");"<<std::endl;
 
 1862   out<<
"   "<<
"tmpStyle->SetPaperSize("       <<
fPaperSizeX          <<
", " 
 1865   out<<
"   "<<
"tmpStyle->SetScreenFactor("   <<
GetScreenFactor()   <<
");"<<std::endl;
 
 1866   out<<
"   "<<
"tmpStyle->SetStatColor("      <<
GetStatColor()      <<
");"<<std::endl;
 
 1867   out<<
"   "<<
"tmpStyle->SetStatTextColor("  <<
GetStatTextColor()  <<
");"<<std::endl;
 
 1868   out<<
"   "<<
"tmpStyle->SetStatBorderSize(" <<
GetStatBorderSize() <<
");"<<std::endl;
 
 1869   out<<
"   "<<
"tmpStyle->SetStatFont("       <<
GetStatFont()       <<
");"<<std::endl;
 
 1870   out<<
"   "<<
"tmpStyle->SetStatFontSize("   <<
GetStatFontSize()   <<
");"<<std::endl;
 
 1871   out<<
"   "<<
"tmpStyle->SetStatStyle("      <<
GetStatStyle()      <<
");"<<std::endl;
 
 1872   out<<
"   "<<
"tmpStyle->SetStatFormat("     <<quote << 
GetStatFormat()
 
 1873                                            <<quote               <<
");"<<std::endl;
 
 1874   out<<
"   "<<
"tmpStyle->SetStatX("          <<
GetStatX()          <<
");"<<std::endl;
 
 1875   out<<
"   "<<
"tmpStyle->SetStatY("          <<
GetStatY()          <<
");"<<std::endl;
 
 1876   out<<
"   "<<
"tmpStyle->SetStatW("          <<
GetStatW()          <<
");"<<std::endl;
 
 1877   out<<
"   "<<
"tmpStyle->SetStatH("          <<
GetStatH()          <<
");"<<std::endl;
 
 1878   if (
GetStripDecimals()) out<<
"   tmpStyle->SetStripDecimals(kTRUE);" <<std::endl;
 
 1879   else                    out<<
"   tmpStyle->SetStripDecimals(kFALSE);"<<std::endl;
 
 1880   out<<
"   "<<
"tmpStyle->SetTitleAlign("     <<
GetTitleAlign()     <<
");"<<std::endl;
 
 1881   out<<
"   "<<
"tmpStyle->SetTitleFillColor(" <<
GetTitleFillColor() <<
");"<<std::endl;
 
 1882   out<<
"   "<<
"tmpStyle->SetTitleTextColor(" <<
GetTitleTextColor() <<
");"<<std::endl;
 
 1884   out<<
"   "<<
"tmpStyle->SetTitleFont("      <<
GetTitleFont()      <<
");"<<std::endl;
 
 1885   out<<
"   "<<
"tmpStyle->SetTitleFontSize("  <<
GetTitleFontSize()  <<
");"<<std::endl;
 
 1886   out<<
"   "<<
"tmpStyle->SetTitleStyle("     <<
GetTitleStyle()     <<
");"<<std::endl;
 
 1887   out<<
"   "<<
"tmpStyle->SetTitleX("         <<
GetTitleX()         <<
");"<<std::endl;
 
 1888   out<<
"   "<<
"tmpStyle->SetTitleY("         <<
GetTitleY()         <<
");"<<std::endl;
 
 1889   out<<
"   "<<
"tmpStyle->SetTitleW("         <<
GetTitleW()         <<
");"<<std::endl;
 
 1890   out<<
"   "<<
"tmpStyle->SetTitleH("         <<
GetTitleH()         <<
");"<<std::endl;
 
 1891   out<<
"   "<<
"tmpStyle->SetLegoInnerR("     <<
GetLegoInnerR()     <<
");"<<std::endl;
 
 1898         out<<std::endl<<
"                             ";
 
 1903                                            << 
", fPaletteColor);" << std::endl;
 
 1907   out<<
"   "<<
"TString fLineStyleArrayTmp[30] = {";
 
 1908   for (
Int_t li=0; li<29; ++li) {
 
 1910         out<<std::endl<<
"                             ";
 
 1914   out<<
"   "<<
"for (Int_t i=0; i<30; i++)"<<std::endl;
 
 1915   out<<
"   "<<
"   tmpStyle->SetLineStyleString(i, fLineStyleArrayTmp[i]);"<<std::endl;
 
 1918   out<<
"   "<<
"tmpStyle->SetHeaderPS("       <<quote<<
GetHeaderPS()
 
 1919                                            <<quote                  <<
");"<<std::endl;
 
 1920   out<<
"   "<<
"tmpStyle->SetTitlePS("        <<quote<<
GetTitlePS()
 
 1921                                            <<quote                  <<
");"<<std::endl;
 
 1922   out<<
"   "<<
"tmpStyle->SetFitFormat("      <<quote<<
GetFitFormat()
 
 1923                                            <<quote                  <<
");"<<std::endl;
 
 1925                                            <<quote                  <<
");"<<std::endl;
 
 1926   out<<
"   "<<
"tmpStyle->SetLineScalePS("    <<
GetLineScalePS()       <<
");"<<std::endl;
 
 1927   out<<
"   "<<
"tmpStyle->SetJoinLinePS("    <<
GetJoinLinePS()       <<
");"<<std::endl;
 
 1928   out<<
"   "<<
"tmpStyle->SetColorModelPS("   <<
GetColorModelPS()      <<
");"<<std::endl;
 
 1934   out <<
"   " <<
"tmpStyle->SetLineColor(" <<
GetLineColor() <<
");" <<std::endl;
 
 1935   out <<
"   " <<
"tmpStyle->SetLineStyle(" <<
GetLineStyle() <<
");" <<std::endl;
 
 1936   out <<
"   " <<
"tmpStyle->SetLineWidth(" <<
GetLineWidth() <<
");" <<std::endl;
 
 1939   out <<
"   " <<
"tmpStyle->SetFillColor(" <<
GetFillColor() <<
");" <<std::endl;
 
 1940   out <<
"   " <<
"tmpStyle->SetFillStyle(" <<
GetFillStyle() <<
");" <<std::endl;
 
 1943   out <<
"   " <<
"tmpStyle->SetMarkerColor(" <<
GetMarkerColor() <<
");" <<std::endl;
 
 1944   out <<
"   " <<
"tmpStyle->SetMarkerSize("  <<
GetMarkerSize() <<
");" <<std::endl;
 
 1945   out <<
"   " <<
"tmpStyle->SetMarkerStyle(" <<
GetMarkerStyle() <<
");" <<std::endl;
 
 1948   out <<
"   " <<
"tmpStyle->SetTextAlign(" <<
GetTextAlign() <<
");" <<std::endl;
 
 1949   out <<
"   " <<
"tmpStyle->SetTextAngle(" <<
GetTextAngle() <<
");" <<std::endl;
 
 1950   out <<
"   " <<
"tmpStyle->SetTextColor(" <<
GetTextColor() <<
");" <<std::endl;
 
 1951   out <<
"   " <<
"tmpStyle->SetTextFont("  <<
GetTextFont()  <<
");" <<std::endl;
 
 1952   out <<
"   " <<
"tmpStyle->SetTextSize("  <<
GetTextSize()  <<
");" <<std::endl;
 
R__EXTERN TApplication * gApplication
 
R__EXTERN TVirtualMutex * gROOTMutex
 
char * Form(const char *fmt,...)
 
R__EXTERN TSystem * gSystem
 
#define R__LOCKGUARD(mutex)
 
virtual Color_t GetTitleColor() const
 
virtual Color_t GetLabelColor() const
 
virtual Int_t GetNdivisions() const
 
virtual Color_t GetAxisColor() const
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
virtual Style_t GetTitleFont() const
 
virtual Float_t GetLabelOffset() const
 
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
Set color of the line axis and tick marks.
 
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
 
virtual Style_t GetLabelFont() const
 
virtual void SetTitleFont(Style_t font=62)
Set the title font.
 
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels.
 
virtual void SetLabelFont(Style_t font=62)
Set labels' font.
 
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title.
 
virtual void SetTitleColor(Color_t color=1)
Set color of axis title.
 
virtual Float_t GetTitleSize() const
 
virtual Float_t GetLabelSize() const
 
virtual Float_t GetTickLength() const
 
virtual void ResetAttAxis(Option_t *option="")
Reset axis attributes.
 
virtual Float_t GetTitleOffset() const
 
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length.
 
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
 
void Copy(TAttAxis &attaxis) const
Copy of the object.
 
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
 
Fill Area Attributes class.
 
virtual Color_t GetFillColor() const
Return the fill area color.
 
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
 
virtual Style_t GetFillStyle() const
Return the fill area style.
 
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
 
virtual void ResetAttFill(Option_t *option="")
Reset this fill attributes to default values.
 
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
 
virtual Color_t GetLineColor() const
Return the line color.
 
virtual Width_t GetLineWidth() const
Return the line width.
 
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
 
virtual void ResetAttLine(Option_t *option="")
Reset this line attributes to default values.
 
virtual Style_t GetLineStyle() const
Return the line style.
 
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
 
virtual Style_t GetMarkerStyle() const
Return the marker style.
 
virtual Color_t GetMarkerColor() const
Return the marker color.
 
virtual Size_t GetMarkerSize() const
Return the marker size.
 
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
 
virtual void ResetAttMarker(Option_t *toption="")
Reset this marker attributes to the default values.
 
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
 
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
 
virtual Float_t GetTextSize() const
Return the text size.
 
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
 
virtual Short_t GetTextAlign() const
Return the text alignment.
 
virtual Font_t GetTextFont() const
Return the text font.
 
virtual Color_t GetTextColor() const
Return the text color.
 
virtual Float_t GetTextAngle() const
Return the text angle.
 
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
 
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
 
void Copy(TAttText &atttext) const
Copy this text attributes to a new TAttText.
 
virtual void ResetAttText(Option_t *toption="")
Reset this text attributes to default values.
 
Using a TBrowser one can browse all ROOT objects.
 
The color creation and management class.
 
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Static function.
 
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
 
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
 
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
 
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
 
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
 
The TNamed class is the base class for all named ROOT classes.
 
virtual const char * GetTitle() const
Returns title of object.
 
virtual const char * GetName() const
Returns name of object.
 
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
 
Mother of all ROOT objects.
 
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
 
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
 
virtual void Copy(TObject &object) const
Copy this to obj.
 
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
 
void ToLower()
Change string to lower-case.
 
const char * Data() const
 
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
 
TStyle objects may be created to define special styles.
 
Double_t GetTimeOffset() const
 
Color_t GetGridColor() const
 
Int_t fOptFile
True if option File is selected.
 
Color_t GetLabelColor(Option_t *axis="X") const
Return the label color number in the axis.
 
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
 
void SetPadBorderMode(Int_t mode=1)
 
void SetOptTitle(Int_t tit=1)
 
Color_t fGridColor
Grid line color (if 0 use axis line color)
 
void SetPadTopMargin(Float_t margin=0.1)
 
Color_t GetStatTextColor() const
 
void SetLegendFont(Style_t font=62)
 
void SetTitleX(Float_t x=0)
 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
 
Int_t fCanvasDefW
Default canvas width.
 
Int_t fHatchesLineWidth
Hatches line width for hatch styles > 3100.
 
Float_t fScreenFactor
Multiplication factor for canvas size and position.
 
void SaveSource(const char *filename, Option_t *option=0)
Save the current style in a C++ macro file.
 
Float_t fTitleFontSize
Font size in pixels for fonts with precision type 3.
 
void SetDateX(Float_t x=0.01)
 
Int_t fCanvasDefX
Default canvas top X position.
 
void SetStatFormat(const char *format="6.4g")
 
void SetPadBottomMargin(Float_t margin=0.1)
 
Float_t GetTitleX() const
 
void SetLegendFillColor(Color_t color=0)
 
Float_t fPadRightMargin
Pad right margin.
 
Float_t fPaperSizeX
PostScript paper size along X.
 
void SetPaintTextFormat(const char *format="g")
 
Int_t GetOptTitle() const
 
Float_t GetScreenFactor() const
 
TString fPaintTextFormat
Printing format for TH2::PaintText.
 
Color_t GetHistLineColor() const
 
Color_t fStatColor
Stat fill area color.
 
Int_t GetNdivisions(Option_t *axis="X") const
Return number of divisions.
 
void SetFrameFillColor(Color_t color=1)
 
Int_t fFrameBorderMode
Pad frame border mode.
 
Int_t GetPadTickX() const
 
Color_t GetTitleColor(Option_t *axis="X") const
Return title color.
 
Style_t fHistLineStyle
Histogram line style.
 
Color_t GetFrameLineColor() const
 
Style_t GetGridStyle() const
 
Int_t GetJoinLinePS() const
 
void SetStatFont(Style_t font=62)
 
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).
 
Float_t GetStatFontSize() const
 
Float_t GetBarOffset() const
 
Float_t GetLabelSize(Option_t *axis="X") const
Return label size.
 
Color_t GetPadColor() const
 
Float_t fBarOffset
Offset of bar for graphs.
 
void SetPadRightMargin(Float_t margin=0.1)
 
Style_t GetHistFillStyle() const
 
void SetCanvasColor(Color_t color=19)
 
TAttAxis fZaxis
Z axis attributes.
 
void SetTitleFont(Style_t font=62, Option_t *axis="X")
 
Float_t GetPadRightMargin() const
 
Float_t GetTickLength(Option_t *axis="X") const
Return tick length.
 
Int_t fDrawBorder
Flag to draw border(=1) or not (0)
 
void SetTitleBorderSize(Width_t size=2)
 
Style_t GetFrameFillStyle() const
 
Float_t GetTitleSize(Option_t *axis="X") const
Return title size.
 
Float_t GetLegoInnerR() 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.
 
Int_t AxisChoice(Option_t *axis) const
 
TString fTitlePS
User defined Postscript file title.
 
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
 
virtual ~TStyle()
Destructor.
 
void SetCanvasBorderMode(Int_t mode=1)
 
Float_t GetTitleY() const
 
Style_t fFuncStyle
Function style.
 
void SetOptDate(Int_t datefl=1)
If optdate is non null, the current date/time will be printed in the canvas.
 
Int_t fPadTickX
True to set special pad ticks along X.
 
Style_t fStatFont
Font style of Stats PaveLabel.
 
TString fLineStyle[30]
String describing line style i (for postScript)
 
void SetDateY(Float_t y=0.01)
 
Width_t fGridWidth
Grid line width.
 
Float_t GetTitleOffset(Option_t *axis="X") const
Return title offset.
 
Color_t GetHistFillColor() const
 
void SetFrameBorderMode(Int_t mode=1)
 
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
 
Int_t fOptLogx
True if log scale in X.
 
Bool_t fStripDecimals
Strip decimals in axis labels.
 
Bool_t fHistMinimumZero
True if default minimum is 0, false if minimum is automatic.
 
Style_t fLegendFont
Legend font style.
 
void SetFuncColor(Color_t color=1)
 
Bool_t GetHistMinimumZero() const
 
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
 
TAttAxis fXaxis
X axis attributes.
 
void SetHeaderPS(const char *header)
Define a string to be inserted in the Postscript header.
 
virtual void Browse(TBrowser *b)
Browse the style object.
 
Color_t fTitleColor
Title fill area color.
 
Int_t fJoinLinePS
Determines the appearance of joining lines on PostScript.
 
void SetPadTickY(Int_t ticky)
 
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.
 
Width_t fFrameLineWidth
Pad frame line width.
 
Color_t GetTitleFillColor() const
 
Int_t GetCanvasDefH() const
 
void SetColorModelPS(Int_t c=0)
Define the color model used by TPostScript and TPDF (RGB or CMYK).
 
Style_t GetTitleStyle() const
 
void SetPadTickX(Int_t tickx)
 
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
 
Int_t GetCanvasDefX() const
 
Int_t fOptTitle
True if option Title is selected.
 
Style_t fTitleFont
Font style of Title PaveLabel.
 
Bool_t GetPadGridY() const
 
Int_t fOptDate
True if date option is selected.
 
Float_t fPadTopMargin
Pad top margin.
 
Color_t GetStatColor() const
 
Width_t fCanvasBorderSize
Canvas border size.
 
void SetTitleTextColor(Color_t color=1)
 
Color_t fCanvasColor
Canvas color.
 
Float_t GetPadLeftMargin() const
 
Double_t GetHatchesSpacing() const
 
Float_t fStatY
Y position of top right corner of stat box.
 
Width_t GetLegendBorderSize() const
 
Style_t fFrameLineStyle
Pad frame line style.
 
void SetStatBorderSize(Width_t size=2)
 
Float_t GetBarWidth() const
 
Int_t fCanvasBorderMode
Canvas border mode.
 
Bool_t GetCanvasPreferGL() const
 
Int_t GetColorModelPS() const
 
void SetErrorX(Float_t errorx=0.5)
 
Int_t GetCanvasDefY() const
 
void SetTitleColor(Color_t color=1, Option_t *axis="X")
 
void SetNumberContours(Int_t number=20)
Set the default number of contour levels when drawing 2-d plots.
 
Float_t fTitleX
X position of top left corner of title box.
 
Int_t fShowToolBar
Show toolbar.
 
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
 
Width_t fFuncWidth
Function line width.
 
Int_t fPadTickY
True to set special pad ticks along Y.
 
TAttAxis fYaxis
Y axis attributes.
 
Float_t fImageScaling
Image scaling to produce high definition bitmap images.
 
Width_t GetFrameBorderSize() const
 
Width_t fHistLineWidth
Histogram line width.
 
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
 
Bool_t fPadGridY
True to get the grid along Y.
 
void SetTitlePS(const char *pstitle)
Define a string to be used in the %Title of the Postscript files.
 
Style_t fHistFillStyle
Histogram fill style.
 
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.
 
Bool_t GetPadGridX() const
 
void SetPadLeftMargin(Float_t margin=0.1)
 
Float_t fEndErrorSize
Size of lines at the end of error bars.
 
void SetJoinLinePS(Int_t joinline=0)
 
Bool_t fIsReading
! Set to FALSE when userclass::UseCurrentStyle is called by the style manager
 
Width_t GetGridWidth() const
 
Width_t fFrameBorderSize
Pad frame border size.
 
Color_t GetFuncColor() const
 
void SetTitleXOffset(Float_t offset=1)
 
void SetLegendBorderSize(Width_t size=4)
 
Color_t fTitleTextColor
Title text color.
 
Int_t GetPadTickY() const
 
Width_t GetPadBorderSize() const
 
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
 
Width_t GetTitleBorderSize() const
 
void SetHistLineColor(Color_t color=1)
 
TString fHeaderPS
User defined additional Postscript header.
 
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
 
virtual void cd()
Change current style.
 
const char * GetLineStyleString(Int_t i=1) const
Return line style string (used by PostScript).
 
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis labels.
 
Color_t fPadColor
Pad color.
 
void SetFitFormat(const char *format="5.4g")
 
Float_t GetErrorX() const
 
Float_t fDateX
X position of the date in the canvas (in NDC)
 
Int_t fOptLogz
True if log scale in z.
 
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
 
void SetTitleFillColor(Color_t color=1)
 
TString fFitFormat
Printing format for fit parameters.
 
Int_t fPadBorderMode
Pad border mode.
 
Double_t GetLegendTextSize() const
 
Int_t fNumberContours
Default number of contours for 2-d plots.
 
void SetLineStyleString(Int_t i, const char *text)
Set line style string using the PostScript convention.
 
Float_t fPadLeftMargin
Pad left margin.
 
Float_t fTitleY
Y position of top left corner of title box.
 
Double_t fTimeOffset
Time offset to the beginning of an axis.
 
Color_t GetCanvasColor() const
 
Color_t fFrameLineColor
Pad frame line color.
 
Double_t fLegendTextSize
Legend text size. If 0 the size is computed automatically.
 
Int_t fShowEditor
Show pad editor.
 
Color_t fLegendFillColor
Legend fill color.
 
void SetTitleAlign(Int_t a=13)
 
Float_t fLineScalePS
Line scale factor when drawing lines on Postscript.
 
void SetPaperSize(EPaperSize size)
Set paper size for PostScript output.
 
Float_t GetEndErrorSize() const
 
Float_t GetPadBottomMargin() const
 
void SetFrameLineWidth(Width_t width=1)
 
void SetTickLength(Float_t length=0.03, Option_t *axis="X")
Set the tick marks length for an axis.
 
Double_t fHistTopMargin
Margin between histogram's top and pad's top.
 
void SetNdivisions(Int_t n=510, Option_t *axis="X")
Set the number of divisions to draw an axis.
 
Int_t fOptStat
True if option Stat is selected.
 
Double_t fHatchesSpacing
Hatches spacing for hatch styles > 3100.
 
Color_t fStatTextColor
Stat text color.
 
Width_t GetFuncWidth() const
 
TAttText fAttDate
Canvas date attribute.
 
Width_t fStatBorderSize
Border size of Stats PaveLabel.
 
Float_t fTitleW
Width of title box.
 
Width_t fPadBorderSize
Pad border size.
 
void SetFuncWidth(Width_t width=4)
 
Int_t GetDrawBorder() const
 
const char * GetTitlePS() const
 
Color_t fHistLineColor
Histogram line color.
 
Int_t fOptFit
True if option Fit is selected.
 
Int_t GetCanvasDefW() const
 
Width_t GetStatBorderSize() const
 
void GetPaperSize(Float_t &xsize, Float_t &ysize) const
Set paper size for PostScript output.
 
Int_t GetStripDecimals() const
 
Color_t fFrameFillColor
Pad frame fill color.
 
Style_t GetHistLineStyle() const
 
void SavePrimitive(std::ostream &out, Option_t *="")
Save a main frame widget as a C++ statement(s) on output stream out.
 
TStyle()
Default constructor.
 
Float_t fTitleH
Height of title box.
 
void SetTitleStyle(Style_t style=1001)
 
void SetStatColor(Color_t color=19)
 
Style_t fFrameFillStyle
Pad frame fill style.
 
void SetPadColor(Color_t color=19)
 
virtual void Reset(Option_t *option="")
Reset.
 
Int_t fShowEventStatus
Show event status panel.
 
Color_t GetTitleTextColor() const
 
Bool_t fPadGridX
True to get the grid along X.
 
void SetStatY(Float_t y=0)
 
Style_t fTitleStyle
Fill area style of title PaveLabel.
 
Style_t GetLegendFont() const
 
void SetLegendTextSize(Double_t size=0.)
 
TStyle & operator=(const TStyle &style)
 
Float_t GetTitleH() const
 
Style_t GetStatStyle() const
 
Float_t fStatFontSize
Font size in pixels for fonts with precision type 3.
 
Bool_t fCanvasPreferGL
If true, rendering in canvas is with GL.
 
Float_t fLegoInnerR
Inner radius for cylindrical legos.
 
Width_t GetHistLineWidth() const
 
Int_t fOptLogy
True if log scale in y.
 
Style_t GetFrameLineStyle() const
 
void SetIsReading(Bool_t reading=kTRUE)
Sets the fIsReading member to reading (default=kTRUE).
 
Style_t fGridStyle
Grid line style.
 
Color_t fHistFillColor
Histogram fill color.
 
const char * GetFitFormat() const
 
Int_t fCanvasDefH
Default canvas height.
 
Int_t GetCanvasBorderMode() const
 
Int_t GetPadBorderMode() const
 
Color_t fFuncColor
Function color.
 
const char * GetHeaderPS() const
 
void SetTitleYOffset(Float_t offset=1)
 
const char * GetStatFormat() const
 
Width_t GetCanvasBorderSize() const
 
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
 
Float_t fStatH
Height of stat box.
 
Float_t fStatX
X position of top right corner of stat box.
 
virtual void Copy(TObject &style) const
Copy this style.
 
Int_t fCanvasDefY
Default canvas top Y position.
 
Int_t GetNumberContours() const
 
void SetHistLineWidth(Width_t width=1)
 
Float_t fPadBottomMargin
Pad bottom margin.
 
virtual void Paint(Option_t *option="")
Show the options from the current style.
 
const char * GetPaintTextFormat() const
 
Float_t GetLineScalePS() const
 
Float_t fErrorX
Per cent of bin width for errors along X.
 
void SetLabelColor(Color_t color=1, Option_t *axis="X")
Set axis labels color.
 
Style_t GetStatFont() const
 
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Set size of axis labels.
 
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
 
Width_t fLegendBorderSize
Legend box border size.
 
Float_t fStatW
Width of stat box.
 
Float_t fBarWidth
Width of bar for graphs.
 
Width_t fTitleBorderSize
Border size of Title PavelLabel.
 
Float_t fPaperSizeY
PostScript paper size along Y.
 
static void BuildStyles()
Create some standard styles.
 
Int_t fTitleAlign
Title box alignment.
 
Style_t GetFuncStyle() const
 
Color_t GetLegendFillColor() const
 
Float_t GetTitleFontSize() const
 
Int_t GetHatchesLineWidth() const
 
Float_t fDateY
Y position of the date in the canvas (in NDC)
 
Color_t GetAxisColor(Option_t *axis="X") const
Return the axis color number in the axis.
 
Int_t GetFrameBorderMode() const
 
TString fStatFormat
Printing format for stats.
 
Float_t GetPadTopMargin() const
 
Int_t fColorModelPS
PostScript color model: 0 = RGB, 1 = CMYK.
 
void SetLineScalePS(Float_t scale=3)
 
Width_t GetFrameLineWidth() const
 
Color_t GetFrameFillColor() const
 
Style_t fStatStyle
Fill area style of Stats PaveLabel.
 
Float_t GetTitleW() const
 
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.