CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
plotting.PlotOnSideGroup Class Reference
Inheritance diagram for plotting.PlotOnSideGroup:
plotting.PlotGroup

Public Member Functions

def __init__ (self, name, plot, ncols=2, onlyForPileup=False)
 
def append (self, args, kwargs)
 
def create (self, tdirectoryNEvents, requireAllHistograms=False)
 
def draw (self, args, kwargs)
 
- Public Member Functions inherited from plotting.PlotGroup
def __init__ (self, name, plots, kwargs)
 
def append (self, plot)
 
def clear (self)
 
def create (self, tdirectoryNEvents, requireAllHistograms=False)
 
def draw (self, legendLabels, prefix=None, separate=False, saveFormat=".pdf", ratio=True, directory="")
 
def getName (self)
 
def getPlot (self, name)
 
def getPlots (self)
 
def onlyForPileup (self)
 
def remove (self, name)
 
def setProperties (self, kwargs)
 

Private Attributes

 _plot
 
 _plots
 

Detailed Description

Resembles DQM GUI's "On side" layout.

Like PlotGroup, but has only a description of a single plot. The
plot is drawn separately for each file. Useful for 2D histograms.

Definition at line 2510 of file plotting.py.

Constructor & Destructor Documentation

def plotting.PlotOnSideGroup.__init__ (   self,
  name,
  plot,
  ncols = 2,
  onlyForPileup = False 
)

Definition at line 2516 of file plotting.py.

2516  def __init__(self, name, plot, ncols=2, onlyForPileup=False):
2517  super(PlotOnSideGroup, self).__init__(name, [], ncols=ncols, legend=False, onlyForPileup=onlyForPileup)
2518  self._plot = plot
2519  self._plot.setProperties(ratio=False)
2520 
def __init__(self, name, plot, ncols=2, onlyForPileup=False)
Definition: plotting.py:2516

Member Function Documentation

def plotting.PlotOnSideGroup.append (   self,
  args,
  kwargs 
)

Definition at line 2521 of file plotting.py.

Referenced by diclist.diclist.add().

2521  def append(self, *args, **kwargs):
2522  raise Exception("PlotOnSideGroup.append() is not implemented")
2523 
def append(self, args, kwargs)
Definition: plotting.py:2521
def plotting.PlotOnSideGroup.create (   self,
  tdirectoryNEvents,
  requireAllHistograms = False 
)

Definition at line 2524 of file plotting.py.

2524  def create(self, tdirectoryNEvents, requireAllHistograms=False):
2525  self._plots = []
2526  for element in tdirectoryNEvents:
2527  pl = self._plot.clone()
2528  pl.create([element], requireAllHistograms)
2529  self._plots.append(pl)
2530 
def create(self, tdirectoryNEvents, requireAllHistograms=False)
Definition: plotting.py:2524
def plotting.PlotOnSideGroup.draw (   self,
  args,
  kwargs 
)

Definition at line 2531 of file plotting.py.

2531  def draw(self, *args, **kwargs):
2532  kargs = copy.copy(kwargs)
2533  kargs["ratio"] = False
2534  return super(PlotOnSideGroup, self).draw(*args, **kargs)
2535 
def draw(self, args, kwargs)
Definition: plotting.py:2531

Member Data Documentation

plotting.PlotOnSideGroup._plot
private

Definition at line 2518 of file plotting.py.

plotting.PlotOnSideGroup._plots
private