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

Constructor & Destructor Documentation

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

Definition at line 2514 of file plotting.py.

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

Member Function Documentation

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

Definition at line 2519 of file plotting.py.

Referenced by diclist.diclist.add().

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

Definition at line 2522 of file plotting.py.

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

Definition at line 2529 of file plotting.py.

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

Member Data Documentation

plotting.PlotOnSideGroup._plot
private

Definition at line 2516 of file plotting.py.

plotting.PlotOnSideGroup._plots
private