110 delete gROOT->GetStyle(style_name);
116 gROOT->GetListOfStyles()->Add(
this);
119 if (strcmp(style_name,
"Modern") == 0) {
160 if (strcmp(style_name,
"Plain") == 0) {
175 if (strcmp(style_name,
"Bold") == 0) {
202 if (strcmp(style_name,
"Video") == 0) {
227 if (strcmp(style_name,
"Pub") == 0) {
264 gROOT->GetListOfStyles()->Remove(
this);
265 if (gStyle ==
this) gStyle = (
TStyle*)
gROOT->GetListOfStyles()->Last();
290 new TStyle(
"Plain",
"Plain Style (no colors/fill areas)");
291 new TStyle(
"Bold",
"Bold Style");;
292 new TStyle(
"Video",
"Style for video presentation histograms");
293 new TStyle(
"Pub",
"Style for Publications");
294 new TStyle(
"Classic",
"Classic Style");
295 new TStyle(
"Default",
"Equivalent to Classic");
296 new TStyle(
"Modern",
"Modern Style");
432 gPad->SetSelected(
this);
570 if (strcmp(style_name,
"Modern") == 0) {
611 if (strcmp(style_name,
"Plain") == 0) {
624 if (strcmp(style_name,
"Bold") == 0) {
650 if (strcmp(style_name,
"Video") == 0) {
674 if (strcmp(style_name,
"Pub") == 0) {
877 gROOT->ProcessLine(
Form(
"TStyleManager::PaintStyle((TStyle*)0x%lx,\"%s\")",
1106 Int_t nch = strlen(text);
1107 char *st =
new char[nch+10];
1108 snprintf(st,nch+10,
" ");
1109 strlcat(st,text,nch+10);
1110 l = strstr(st,
"[");
if (l) l[0] =
' ';
1111 l = strstr(st,
"]");
if (l) l[0] =
' ';
1121 if (number > 0 && number < 1000) {
1126 Error(
"SetNumberContours",
"Illegal number of contours: %d, must be > 0 and < 1000",number);
1168 Int_t mode = optdate%10;
1210 while ((obj =
next())) {
1258 while ((obj =
next())) {
1301 if (opt.
Contains(
"u")) mode+=10000;
1302 if (opt.
Contains(
"o")) mode+=100000;
1303 if (opt.
Contains(
"i")) mode+=1000000;
1304 if (opt.
Contains(
"I")) mode+=2000000;
1305 if (opt.
Contains(
"s")) mode+=10000000;
1306 if (opt.
Contains(
"S")) mode+=20000000;
1307 if (opt.
Contains(
"k")) mode+=100000000;
1308 if (opt.
Contains(
"K")) mode+=200000000;
1309 if (mode == 1) mode = 1000000001;
1327 Error(
"SetPaperSize",
"illegal paper size %d\n", (
int)size);
1487 TString ff = strlen(filename) ? filename :
"Rootstyl.C";
1491 Int_t lenfname = strlen(fname);
1492 char *
sname =
new char[lenfname + 1];
1494 while ((fname[i] !=
'.') && (i < lenfname)) {
1495 sname[i] = fname[i];
1498 if (i == lenfname) ff +=
".C";
1506 Error(
"SaveSource",
"cannot open file: %s", ff.
Data());
1512 out <<
"// Mainframe macro generated from application: " <<
gApplication->
Argv(0) << std::endl;
1513 out <<
"// By ROOT version " <<
gROOT->GetVersion() <<
" on " << t.
AsSQLString() << std::endl;
1519 out <<
"#if !defined( __CINT__) || defined (__MAKECINT__)" << std::endl << std::endl;
1520 out <<
"#ifndef ROOT_TStyle" << std::endl;
1521 out <<
"#include " << quote <<
"TStyle.h" << quote << std::endl;
1522 out <<
"#endif" << std::endl;
1523 out << std::endl <<
"#endif" << std::endl;
1527 out <<
"void " << sname <<
"()" << std::endl;
1528 out <<
"{" << std::endl;
1533 out <<
"}" << std::endl;
1546 out <<
" // Add the saved style to the current ROOT session." << std::endl;
1548 out<<
" "<<
"delete gROOT->GetStyle("<<quote<<
GetName()<<quote<<
");"<< std::endl;
1550 out<<
" "<<
"TStyle *tmpStyle = new TStyle("
1551 << quote <<
GetName() << quote <<
", "
1552 << quote <<
GetTitle() << quote <<
");" << std::endl;
1555 out<<
" "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"x") <<
", \"x\");"<<std::endl;
1556 out<<
" "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"y") <<
", \"y\");"<<std::endl;
1557 out<<
" "<<
"tmpStyle->SetNdivisions(" <<
GetNdivisions(
"z") <<
", \"z\");"<<std::endl;
1558 out<<
" "<<
"tmpStyle->SetAxisColor(" <<
GetAxisColor(
"x") <<
", \"x\");"<<std::endl;
1559 out<<
" "<<
"tmpStyle->SetAxisColor(" <<
GetAxisColor(
"y") <<
", \"y\");"<<std::endl;
1560 out<<
" "<<
"tmpStyle->SetAxisColor(" <<
GetAxisColor(
"z") <<
", \"z\");"<<std::endl;
1561 out<<
" "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"x") <<
", \"x\");"<<std::endl;
1562 out<<
" "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"y") <<
", \"y\");"<<std::endl;
1563 out<<
" "<<
"tmpStyle->SetLabelColor(" <<
GetLabelColor(
"z") <<
", \"z\");"<<std::endl;
1564 out<<
" "<<
"tmpStyle->SetLabelFont(" <<
GetLabelFont(
"x") <<
", \"x\");"<<std::endl;
1565 out<<
" "<<
"tmpStyle->SetLabelFont(" <<
GetLabelFont(
"y") <<
", \"y\");"<<std::endl;
1566 out<<
" "<<
"tmpStyle->SetLabelFont(" <<
GetLabelFont(
"z") <<
", \"z\");"<<std::endl;
1567 out<<
" "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"x")<<
", \"x\");"<<std::endl;
1568 out<<
" "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"y")<<
", \"y\");"<<std::endl;
1569 out<<
" "<<
"tmpStyle->SetLabelOffset("<<
GetLabelOffset(
"z")<<
", \"z\");"<<std::endl;
1570 out<<
" "<<
"tmpStyle->SetLabelSize(" <<
GetLabelSize(
"x") <<
", \"x\");"<<std::endl;
1571 out<<
" "<<
"tmpStyle->SetLabelSize(" <<
GetLabelSize(
"y") <<
", \"y\");"<<std::endl;
1572 out<<
" "<<
"tmpStyle->SetLabelSize(" <<
GetLabelSize(
"z") <<
", \"z\");"<<std::endl;
1573 out<<
" "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"x") <<
", \"x\");"<<std::endl;
1574 out<<
" "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"y") <<
", \"y\");"<<std::endl;
1575 out<<
" "<<
"tmpStyle->SetTickLength(" <<
GetTickLength(
"z") <<
", \"z\");"<<std::endl;
1576 out<<
" "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"x")<<
", \"x\");"<<std::endl;
1577 out<<
" "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"y")<<
", \"y\");"<<std::endl;
1578 out<<
" "<<
"tmpStyle->SetTitleOffset("<<
GetTitleOffset(
"z")<<
", \"z\");"<<std::endl;
1579 out<<
" "<<
"tmpStyle->SetTitleSize(" <<
GetTitleSize(
"x") <<
", \"x\");"<<std::endl;
1580 out<<
" "<<
"tmpStyle->SetTitleSize(" <<
GetTitleSize(
"y") <<
", \"y\");"<<std::endl;
1581 out<<
" "<<
"tmpStyle->SetTitleSize(" <<
GetTitleSize(
"z") <<
", \"z\");"<<std::endl;
1582 out<<
" "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"x") <<
", \"x\");"<<std::endl;
1583 out<<
" "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"y") <<
", \"y\");"<<std::endl;
1584 out<<
" "<<
"tmpStyle->SetTitleColor(" <<
GetTitleColor(
"z") <<
", \"z\");"<<std::endl;
1585 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont(
"x") <<
", \"x\");"<<std::endl;
1586 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont(
"y") <<
", \"y\");"<<std::endl;
1587 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont(
"z") <<
", \"z\");"<<std::endl;
1589 out<<
" "<<
"tmpStyle->SetBarWidth(" <<
GetBarWidth() <<
");"<<std::endl;
1590 out<<
" "<<
"tmpStyle->SetBarOffset(" <<
GetBarOffset() <<
");"<<std::endl;
1591 out<<
" "<<
"tmpStyle->SetDrawBorder(" <<
GetDrawBorder() <<
");"<<std::endl;
1592 out<<
" "<<
"tmpStyle->SetOptLogx(" <<
GetOptLogx() <<
");"<<std::endl;
1593 out<<
" "<<
"tmpStyle->SetOptLogy(" <<
GetOptLogy() <<
");"<<std::endl;
1594 out<<
" "<<
"tmpStyle->SetOptLogz(" <<
GetOptLogz() <<
");"<<std::endl;
1595 out<<
" "<<
"tmpStyle->SetOptDate(" <<
GetOptDate() <<
");"<<std::endl;
1596 out<<
" "<<
"tmpStyle->SetOptStat(" <<
GetOptStat() <<
");"<<std::endl;
1598 if (
GetOptTitle()) out <<
" tmpStyle->SetOptTitle(kTRUE);" << std::endl;
1599 else out <<
" tmpStyle->SetOptTitle(kFALSE);" << std::endl;
1600 out<<
" "<<
"tmpStyle->SetOptFit(" <<
GetOptFit() <<
");"<<std::endl;
1601 out<<
" "<<
"tmpStyle->SetNumberContours(" <<
GetNumberContours() <<
");"<<std::endl;
1610 out<<
" "<<
"tmpStyle->SetDateX(" <<
GetDateX() <<
");"<<std::endl;
1611 out<<
" "<<
"tmpStyle->SetDateY(" <<
GetDateY() <<
");"<<std::endl;
1612 out<<
" "<<
"tmpStyle->SetEndErrorSize(" <<
GetEndErrorSize() <<
");"<<std::endl;
1613 out<<
" "<<
"tmpStyle->SetErrorX(" <<
GetErrorX() <<
");"<<std::endl;
1614 out<<
" "<<
"tmpStyle->SetFuncColor(" <<
GetFuncColor() <<
");"<<std::endl;
1615 out<<
" "<<
"tmpStyle->SetFuncStyle(" <<
GetFuncStyle() <<
");"<<std::endl;
1616 out<<
" "<<
"tmpStyle->SetFuncWidth(" <<
GetFuncWidth() <<
");"<<std::endl;
1617 out<<
" "<<
"tmpStyle->SetGridColor(" <<
GetGridColor() <<
");"<<std::endl;
1618 out<<
" "<<
"tmpStyle->SetGridStyle(" <<
GetGridStyle() <<
");"<<std::endl;
1619 out<<
" "<<
"tmpStyle->SetGridWidth(" <<
GetGridWidth() <<
");"<<std::endl;
1622 out<<
" "<<
"tmpStyle->SetLegendFont(" <<
GetLegendFont() <<
");"<<std::endl;
1623 out<<
" "<<
"tmpStyle->SetLegendTextSize(" <<
GetLegendTextSize() <<
");"<<std::endl;
1625 out<<
" "<<
"tmpStyle->SetHatchesSpacing(" <<
GetHatchesSpacing() <<
");"<<std::endl;
1626 out<<
" "<<
"tmpStyle->SetFrameFillColor(" <<
GetFrameFillColor() <<
");"<<std::endl;
1627 out<<
" "<<
"tmpStyle->SetFrameLineColor(" <<
GetFrameLineColor() <<
");"<<std::endl;
1628 out<<
" "<<
"tmpStyle->SetFrameFillStyle(" <<
GetFrameFillStyle() <<
");"<<std::endl;
1629 out<<
" "<<
"tmpStyle->SetFrameLineStyle(" <<
GetFrameLineStyle() <<
");"<<std::endl;
1630 out<<
" "<<
"tmpStyle->SetFrameLineWidth(" <<
GetFrameLineWidth() <<
");"<<std::endl;
1633 out<<
" "<<
"tmpStyle->SetHistFillColor(" <<
GetHistFillColor() <<
");"<<std::endl;
1634 out<<
" "<<
"tmpStyle->SetHistLineColor(" <<
GetHistLineColor() <<
");"<<std::endl;
1635 out<<
" "<<
"tmpStyle->SetHistFillStyle(" <<
GetHistFillStyle() <<
");"<<std::endl;
1636 out<<
" "<<
"tmpStyle->SetHistLineStyle(" <<
GetHistLineStyle() <<
");"<<std::endl;
1637 out<<
" "<<
"tmpStyle->SetHistLineWidth(" <<
GetHistLineWidth() <<
");"<<std::endl;
1639 else out<<
" tmpStyle->SetHistMinimumZero(kFALSE);"<<std::endl;
1640 if (
GetCanvasPreferGL()) out<<
" tmpStyle->SetCanvasPreferGL(kTRUE);" <<std::endl;
1641 else out<<
" tmpStyle->SetCanvasPreferGL(kFALSE);"<<std::endl;
1642 out<<
" "<<
"tmpStyle->SetCanvasColor(" <<
GetCanvasColor() <<
");"<<std::endl;
1645 out<<
" "<<
"tmpStyle->SetCanvasDefH(" <<
GetCanvasDefH() <<
");"<<std::endl;
1646 out<<
" "<<
"tmpStyle->SetCanvasDefW(" <<
GetCanvasDefW() <<
");"<<std::endl;
1647 out<<
" "<<
"tmpStyle->SetCanvasDefX(" <<
GetCanvasDefX() <<
");"<<std::endl;
1648 out<<
" "<<
"tmpStyle->SetCanvasDefY(" <<
GetCanvasDefY() <<
");"<<std::endl;
1649 out<<
" "<<
"tmpStyle->SetPadColor(" <<
GetPadColor() <<
");"<<std::endl;
1650 out<<
" "<<
"tmpStyle->SetPadBorderSize(" <<
GetPadBorderSize() <<
");"<<std::endl;
1651 out<<
" "<<
"tmpStyle->SetPadBorderMode(" <<
GetPadBorderMode() <<
");"<<std::endl;
1653 out<<
" "<<
"tmpStyle->SetPadTopMargin(" <<
GetPadTopMargin() <<
");"<<std::endl;
1654 out<<
" "<<
"tmpStyle->SetPadLeftMargin(" <<
GetPadLeftMargin() <<
");"<<std::endl;
1655 out<<
" "<<
"tmpStyle->SetPadRightMargin(" <<
GetPadRightMargin() <<
");"<<std::endl;
1656 if (
GetPadGridX()) out<<
" tmpStyle->SetPadGridX(kTRUE);" <<std::endl;
1657 else out<<
" tmpStyle->SetPadGridX(kFALSE);"<<std::endl;
1658 if (
GetPadGridY()) out<<
" tmpStyle->SetPadGridY(kTRUE);" <<std::endl;
1659 else out<<
" tmpStyle->SetPadGridY(kFALSE);"<<std::endl;
1660 out<<
" "<<
"tmpStyle->SetPadTickX(" <<
GetPadTickX() <<
");"<<std::endl;
1661 out<<
" "<<
"tmpStyle->SetPadTickY(" <<
GetPadTickY() <<
");"<<std::endl;
1664 out<<
" "<<
"tmpStyle->SetPaperSize(" <<
fPaperSizeX <<
", "
1667 out<<
" "<<
"tmpStyle->SetScreenFactor(" <<
GetScreenFactor() <<
");"<<std::endl;
1668 out<<
" "<<
"tmpStyle->SetStatColor(" <<
GetStatColor() <<
");"<<std::endl;
1669 out<<
" "<<
"tmpStyle->SetStatTextColor(" <<
GetStatTextColor() <<
");"<<std::endl;
1670 out<<
" "<<
"tmpStyle->SetStatBorderSize(" <<
GetStatBorderSize() <<
");"<<std::endl;
1671 out<<
" "<<
"tmpStyle->SetStatFont(" <<
GetStatFont() <<
");"<<std::endl;
1672 out<<
" "<<
"tmpStyle->SetStatFontSize(" <<
GetStatFontSize() <<
");"<<std::endl;
1673 out<<
" "<<
"tmpStyle->SetStatStyle(" <<
GetStatStyle() <<
");"<<std::endl;
1674 out<<
" "<<
"tmpStyle->SetStatFormat(" <<quote <<
GetStatFormat()
1675 <<quote <<
");"<<std::endl;
1676 out<<
" "<<
"tmpStyle->SetStatX(" <<
GetStatX() <<
");"<<std::endl;
1677 out<<
" "<<
"tmpStyle->SetStatY(" <<
GetStatY() <<
");"<<std::endl;
1678 out<<
" "<<
"tmpStyle->SetStatW(" <<
GetStatW() <<
");"<<std::endl;
1679 out<<
" "<<
"tmpStyle->SetStatH(" <<
GetStatH() <<
");"<<std::endl;
1680 if (
GetStripDecimals()) out<<
" tmpStyle->SetStripDecimals(kTRUE);" <<std::endl;
1681 else out<<
" tmpStyle->SetStripDecimals(kFALSE);"<<std::endl;
1682 out<<
" "<<
"tmpStyle->SetTitleAlign(" <<
GetTitleAlign() <<
");"<<std::endl;
1683 out<<
" "<<
"tmpStyle->SetTitleFillColor(" <<
GetTitleFillColor() <<
");"<<std::endl;
1684 out<<
" "<<
"tmpStyle->SetTitleTextColor(" <<
GetTitleTextColor() <<
");"<<std::endl;
1686 out<<
" "<<
"tmpStyle->SetTitleFont(" <<
GetTitleFont() <<
");"<<std::endl;
1687 out<<
" "<<
"tmpStyle->SetTitleFontSize(" <<
GetTitleFontSize() <<
");"<<std::endl;
1688 out<<
" "<<
"tmpStyle->SetTitleStyle(" <<
GetTitleStyle() <<
");"<<std::endl;
1689 out<<
" "<<
"tmpStyle->SetTitleX(" <<
GetTitleX() <<
");"<<std::endl;
1690 out<<
" "<<
"tmpStyle->SetTitleY(" <<
GetTitleY() <<
");"<<std::endl;
1691 out<<
" "<<
"tmpStyle->SetTitleW(" <<
GetTitleW() <<
");"<<std::endl;
1692 out<<
" "<<
"tmpStyle->SetTitleH(" <<
GetTitleH() <<
");"<<std::endl;
1693 out<<
" "<<
"tmpStyle->SetLegoInnerR(" <<
GetLegoInnerR() <<
");"<<std::endl;
1700 out<<std::endl<<
" ";
1705 <<
", fPaletteColor);" << std::endl;
1709 out<<
" "<<
"TString fLineStyleArrayTmp[30] = {";
1710 for (
Int_t li=0; li<29; ++li) {
1712 out<<std::endl<<
" ";
1716 out<<
" "<<
"for (Int_t i=0; i<30; i++)"<<std::endl;
1717 out<<
" "<<
" tmpStyle->SetLineStyleString(i, fLineStyleArrayTmp[i]);"<<std::endl;
1720 out<<
" "<<
"tmpStyle->SetHeaderPS(" <<quote<<
GetHeaderPS()
1721 <<quote <<
");"<<std::endl;
1722 out<<
" "<<
"tmpStyle->SetTitlePS(" <<quote<<
GetTitlePS()
1723 <<quote <<
");"<<std::endl;
1724 out<<
" "<<
"tmpStyle->SetFitFormat(" <<quote<<
GetFitFormat()
1725 <<quote <<
");"<<std::endl;
1727 <<quote <<
");"<<std::endl;
1728 out<<
" "<<
"tmpStyle->SetLineScalePS(" <<
GetLineScalePS() <<
");"<<std::endl;
1729 out<<
" "<<
"tmpStyle->SetColorModelPS(" <<
GetColorModelPS() <<
");"<<std::endl;
1735 out <<
" " <<
"tmpStyle->SetLineColor(" <<
GetLineColor() <<
");" <<std::endl;
1736 out <<
" " <<
"tmpStyle->SetLineStyle(" <<
GetLineStyle() <<
");" <<std::endl;
1737 out <<
" " <<
"tmpStyle->SetLineWidth(" <<
GetLineWidth() <<
");" <<std::endl;
1740 out <<
" " <<
"tmpStyle->SetFillColor(" <<
GetFillColor() <<
");" <<std::endl;
1741 out <<
" " <<
"tmpStyle->SetFillStyle(" <<
GetFillStyle() <<
");" <<std::endl;
1744 out <<
" " <<
"tmpStyle->SetMarkerColor(" <<
GetMarkerColor() <<
");" <<std::endl;
1745 out <<
" " <<
"tmpStyle->SetMarkerSize(" <<
GetMarkerSize() <<
");" <<std::endl;
1746 out <<
" " <<
"tmpStyle->SetMarkerStyle(" <<
GetMarkerStyle() <<
");" <<std::endl;
1749 out <<
" " <<
"tmpStyle->SetTextAlign(" <<
GetTextAlign() <<
");" <<std::endl;
1750 out <<
" " <<
"tmpStyle->SetTextAngle(" <<
GetTextAngle() <<
");" <<std::endl;
1751 out <<
" " <<
"tmpStyle->SetTextColor(" <<
GetTextColor() <<
");" <<std::endl;
1752 out <<
" " <<
"tmpStyle->SetTextFont(" <<
GetTextFont() <<
");" <<std::endl;
1753 out <<
" " <<
"tmpStyle->SetTextSize(" <<
GetTextSize() <<
");" <<std::endl;
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...
const char * GetLineStyleString(Int_t i=1) const
Return line style string (used by PostScript).
virtual const char * GetTitle() const
Returns title of object.
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
virtual Style_t GetLineStyle() const
virtual Style_t GetFillStyle() const
virtual void SetLineWidth(Width_t lwidth)
Float_t GetEndErrorSize() const
const char * GetHeaderPS() const
Width_t GetGridWidth() const
virtual Color_t GetAxisColor() const
Float_t GetLabelSize(Option_t *axis="X") const
Return label size.
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)...
virtual Color_t GetLabelColor() const
virtual Float_t GetTextAngle() const
Float_t GetTitleW() const
Bool_t GetPadGridX() const
void SetPadLeftMargin(Float_t margin=0.1)
Width_t GetFrameBorderSize() const
Int_t GetCanvasBorderMode() const
virtual Font_t GetTextFont() const
void SetStatColor(Color_t color=19)
void SetFrameBorderMode(Int_t mode=1)
virtual void ResetAttText(Option_t *toption="")
Reset this text attributes to default values.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
Int_t GetDrawBorder() const
Bool_t GetCanvasPreferGL() const
void Copy(TAttText &atttext) const
Copy this text attributes to a new TAttText.
Double_t GetTimeOffset() const
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
Style_t GetHistLineStyle() const
Int_t GetFrameBorderMode() const
virtual void Copy(TObject &style) const
Copy this style.
void SetDateY(Float_t y=0.01)
virtual void ResetAttAxis(Option_t *option="")
Reset axis attributes.
Color_t GetFrameFillColor() const
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
Int_t GetPadTickX() const
Color_t GetGridColor() const
void SetHistLineWidth(Width_t width=1)
Float_t GetTickLength(Option_t *axis="X") const
Return tick length.
Color_t GetTitleFillColor() const
Width_t GetPadBorderSize() const
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
void SaveSource(const char *filename, Option_t *option=0)
Save the current style in a C++ macro file.
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
Float_t GetTitleSize(Option_t *axis="X") const
Return title size.
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
void SetFrameLineWidth(Width_t width=1)
virtual Float_t GetTextSize() const
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
Int_t GetNumberContours() const
static const char * filename()
void SetStatBorderSize(Width_t size=2)
void SetTitleFont(Style_t font=62, Option_t *axis="X")
Float_t GetTitleX() const
void GetPaperSize(Float_t &xsize, Float_t &ysize) const
Set paper size for PostScript output.
Float_t GetLineScalePS() const
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
virtual void SetTitleFont(Style_t font=62)
Set the title font.
Float_t GetTitleFontSize() const
void ToLower()
Change string to lower-case.
Style_t GetFrameLineStyle() const
R__EXTERN TVirtualMutex * gROOTMutex
virtual Color_t GetTitleColor() const
virtual void SetFillStyle(Style_t fstyle)
virtual Style_t GetTitleFont() const
void SetStatY(Float_t y=0)
Width_t GetFuncWidth() const
R__EXTERN TApplication * gApplication
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
Int_t GetHatchesLineWidth() const
Style_t GetHistFillStyle() const
Color_t GetLegendFillColor() const
virtual Float_t GetTitleSize() const
virtual void SetNameTitle(const char *name, const char *title)
Change (i.e. set) all the TNamed parameters (name and title).
Int_t AxisChoice(Option_t *axis) const
void SetPadBottomMargin(Float_t margin=0.1)
Bool_t GetHistMinimumZero() 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...
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.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Width_t GetTitleBorderSize() const
void SetCanvasColor(Color_t color=19)
Style_t GetStatFont() const
Float_t GetLegoInnerR() 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.
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
const char * Data() const
void SetTitleAlign(Int_t a=13)
void SetNumberContours(Int_t number=20)
Set the default number of contour levels when drawing 2-d plots.
void SetTitleBorderSize(Width_t size=2)
void SetLegendBorderSize(Width_t size=4)
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
virtual Short_t GetTextAlign() const
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 GetBarOffset() const
Float_t GetPadBottomMargin() const
Color_t GetTitleTextColor() const
virtual void ResetAttFill(Option_t *option="")
Reset this fill attributes to default values.
The TNamed class is the base class for all named ROOT classes.
void SetTitleX(Float_t x=0)
Width_t GetStatBorderSize() const
UChar_t mod R__LOCKGUARD2(gSrvAuthenticateMutex)
virtual Color_t GetTextColor() const
Style_t GetFrameFillStyle() const
Color_t GetFuncColor() const
void SetPadTickX(Int_t tickx)
void Copy(TAttAxis &attaxis) const
Copy of the object.
Color_t GetStatColor() const
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
Double_t GetHatchesSpacing() const
void SetTitleTextColor(Color_t color=1)
Double_t GetLegendTextSize() const
Float_t GetBarWidth() const
void SetHeaderPS(const char *header)
Define a string to be inserted in the Postscript header The string in header will be added to the Pos...
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
virtual void ResetAttLine(Option_t *option="")
Reset this line attributes to default values.
virtual Float_t GetTitleOffset() const
virtual void SetTextAlign(Short_t align=11)
Int_t GetColorModelPS() const
void SetTitleColor(Color_t color=1, Option_t *axis="X")
void SetStatFont(Style_t font=62)
Int_t GetPadTickY() const
Int_t GetOptTitle() const
TStyle objects may be created to define special styles.
Float_t GetPadRightMargin() const
Color_t GetAxisColor(Option_t *axis="X") const
Return the axis color number in the axis.
Using a TBrowser one can browse all ROOT objects.
virtual Size_t GetMarkerSize() const
Color_t GetHistFillColor() const
Width_t GetHistLineWidth() const
void SetPadBorderMode(Int_t mode=1)
void SetCanvasBorderMode(Int_t mode=1)
Double_t length(const TVector2 &v)
R__EXTERN TSystem * gSystem
void SetPadColor(Color_t color=19)
Int_t GetStripDecimals() const
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual void SetFillColor(Color_t fcolor)
Float_t GetTitleOffset(Option_t *axis="X") const
Return title offset.
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) fIsReading (used via gStyle->IsReading()) can b...
virtual Color_t GetFillColor() const
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Function used by the TStyle manager when drawing a canvas showing the current style.
virtual void Paint(Option_t *option="")
Show the options from the current style if (TClass::GetClass("TStyleManager")) gSystem->Load("libGed"...
const char * GetPaintTextFormat() const
char * Form(const char *fmt,...)
void SetTickLength(Float_t length=0.03, Option_t *axis="X")
Set the tick marks length for an axis.
virtual ~TStyle()
Destructor.
virtual const char * GetName() const
Returns name of object.
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.
void SetColorModelPS(Int_t c=0)
Define the color model used by TPostScript and TPDF (RGB or CMYK).
void Reset(Detail::TBranchProxy *x)
Style_t GetTitleStyle() const
virtual Color_t GetLineColor() const
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 if the mini...
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
Float_t GetErrorX() const
Int_t GetCanvasDefW() const
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.
EPaperSize
Set to FALSE when userclass::UseCurrentStyle is called by the style manager.
void SetDateX(Float_t x=0.01)
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
virtual void ResetAttMarker(Option_t *toption="")
Reset this marker attributes to the default values.
Float_t GetPadLeftMargin() const
Width_t fLegendBorderSize
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis labels.
Int_t GetCanvasDefX() const
static void BuildStyles()
Create some standard styles.
Int_t GetCanvasDefY() const
Color_t GetLabelColor(Option_t *axis="X") const
Return the label color number in the axis.
Int_t GetNdivisions(Option_t *axis="X") const
Return number of divisions.
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.
Float_t GetStatFontSize() const
Color_t GetTitleColor(Option_t *axis="X") const
Return title color.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
Color_t GetPadColor() const
virtual Style_t GetLabelFont() const
Width_t GetFrameLineWidth() const
virtual Int_t GetNdivisions() const
virtual void Reset(Option_t *option="")
Reset.
void SetLineScalePS(Float_t scale=3)
Style_t GetStatStyle() const
The color creation and management class.
Color_t GetHistLineColor() const
Style_t GetFuncStyle() const
virtual void Browse(TBrowser *b)
Browse the style object.
Width_t GetLegendBorderSize() const
void SetPaperSize(EPaperSize size)
Set paper size for PostScript output.
Mother of all ROOT objects.
virtual Float_t GetLabelSize() const
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Set size of axis labels.
virtual Color_t GetMarkerColor() const
void SetLegendFont(Style_t font=62)
Color_t GetFrameLineColor() const
const char * GetFitFormat() const
Style_t GetGridStyle() const
void SetTitleFillColor(Color_t color=1)
Float_t GetTitleY() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Width_t fCanvasBorderSize
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
Int_t GetPadBorderMode() const
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)
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length The length is expressed in per cent of the pad width.
Width_t GetCanvasBorderSize() const
Bool_t GetPadGridY() const
void SetPadTickY(Int_t ticky)
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
void SetStatFormat(const char *format="6.4g")
void SetPaintTextFormat(const char *format="g")
Color_t GetStatTextColor() const
virtual void SetTextSize(Float_t tsize=1)
void SetFitFormat(const char *format="5.4g")
void SetLegendFillColor(Color_t color=0)
Float_t GetPadTopMargin() const
virtual Style_t GetMarkerStyle() const
virtual Width_t GetLineWidth() const
virtual Float_t GetTickLength() const
Float_t GetScreenFactor() const
void SetHistLineColor(Color_t color=1)
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
Int_t GetCanvasDefH() const
Style_t GetLegendFont() const
const char * GetTitlePS() const
Color_t GetCanvasColor() const
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
void SetFuncColor(Color_t color=1)
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
Float_t GetTitleH() const
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * GetStatFormat() const
virtual Float_t GetLabelOffset() const
void SetLegendTextSize(Double_t size=0.)