CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
plotting.Plotter Class Reference

Public Member Functions

def __init__
 
def append
 
def readDirs
 

Private Attributes

 _plots
 

Detailed Description

Contains PlotFolders, i.e. the information what plots to do, and creates a helper object to actually produce the plots.

Definition at line 1916 of file plotting.py.

Constructor & Destructor Documentation

def plotting.Plotter.__init__ (   self)

Definition at line 1918 of file plotting.py.

1919  def __init__(self):
1920  self._plots = []
1921 
1922  _absoluteSize = True
1923  if _absoluteSize:
1924  font = 43
1925  titleSize = 22
1926  labelSize = 22
1927  statSize = 14
1928  else:
1929  font = 42
1930  titleSize = 0.05
1931  labelSize = 0.05
1932  statSize = 0.025
1933 
1934  ROOT.gROOT.SetStyle("Plain")
1935  ROOT.gStyle.SetPadRightMargin(0.07)
1936  ROOT.gStyle.SetPadLeftMargin(0.13)
1937  ROOT.gStyle.SetTitleFont(font, "XYZ")
1938  ROOT.gStyle.SetTitleSize(titleSize, "XYZ")
1939  ROOT.gStyle.SetTitleOffset(1.2, "Y")
1940  #ROOT.gStyle.SetTitleFontSize(0.05)
1941  ROOT.gStyle.SetLabelFont(font, "XYZ")
1942  ROOT.gStyle.SetLabelSize(labelSize, "XYZ")
1943  ROOT.gStyle.SetTextSize(labelSize)
1944  ROOT.gStyle.SetStatFont(font)
1945  ROOT.gStyle.SetStatFontSize(statSize)
1946 
1947  ROOT.TH1.AddDirectory(False)

Member Function Documentation

def plotting.Plotter.append (   self,
  args,
  kwargs 
)
Append a plot folder to the plotter.

All arguments are forwarded to the constructor of PlotterItem.

Definition at line 1948 of file plotting.py.

Referenced by diclist.diclist.add(), and BeautifulSoup.Tag.setString().

1949  def append(self, *args, **kwargs):
1950  """Append a plot folder to the plotter.
1951 
1952  All arguments are forwarded to the constructor of PlotterItem.
1953  """
1954  self._plots.append(PlotterItem(*args, **kwargs))
def plotting.Plotter.readDirs (   self,
  files 
)
Returns PlotterInstance object, which knows how exactly to produce the plots for these files

Definition at line 1955 of file plotting.py.

References plotting.PlotGroup._plots, and plotting.Plotter._plots.

1956  def readDirs(self, *files):
1957  """Returns PlotterInstance object, which knows how exactly to produce the plots for these files"""
1958  return PlotterInstance([plotterItem.readDirs(files) for plotterItem in self._plots])

Member Data Documentation

plotting.Plotter._plots
private

Definition at line 1919 of file plotting.py.

Referenced by plotting.Plotter.readDirs().