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 2512 of file plotting.py.

Constructor & Destructor Documentation

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

Definition at line 2518 of file plotting.py.

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

Member Function Documentation

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

Definition at line 2523 of file plotting.py.

Referenced by diclist.diclist.add().

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

Definition at line 2526 of file plotting.py.

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

Definition at line 2533 of file plotting.py.

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

Member Data Documentation

plotting.PlotOnSideGroup._plot
private

Definition at line 2520 of file plotting.py.

plotting.PlotOnSideGroup._plots
private