CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 
def append
 
def create
 
def draw
 
- Public Member Functions inherited from plotting.PlotGroup
def __init__
 
def append
 
def clear
 
def create
 
def draw
 
def getName
 
def getPlot
 
def getPlots
 
def onlyForPileup
 
def remove
 
def setProperties
 

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

Constructor & Destructor Documentation

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

Definition at line 2529 of file plotting.py.

2530  def __init__(self, name, plot, ncols=2, onlyForPileup=False):
2531  super(PlotOnSideGroup, self).__init__(name, [], ncols=ncols, legend=False, onlyForPileup=onlyForPileup)
2532  self._plot = plot
2533  self._plot.setProperties(ratio=False)

Member Function Documentation

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

Definition at line 2534 of file plotting.py.

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

2535  def append(self, *args, **kwargs):
2536  raise Exception("PlotOnSideGroup.append() is not implemented")
def plotting.PlotOnSideGroup.create (   self,
  tdirectoryNEvents,
  requireAllHistograms = False 
)

Definition at line 2537 of file plotting.py.

2538  def create(self, tdirectoryNEvents, requireAllHistograms=False):
2539  self._plots = []
2540  for i, element in enumerate(tdirectoryNEvents):
2541  pl = self._plot.clone()
2542  pl.create([element], requireAllHistograms)
2543  pl.setName(pl.getName()+"_"+str(i))
2544  self._plots.append(pl)
#define str(s)
def plotting.PlotOnSideGroup.draw (   self,
  args,
  kwargs 
)

Definition at line 2545 of file plotting.py.

2546  def draw(self, *args, **kwargs):
2547  kargs = copy.copy(kwargs)
2548  kargs["ratio"] = False
2549  return super(PlotOnSideGroup, self).draw(*args, **kargs)

Member Data Documentation

plotting.PlotOnSideGroup._plot
private

Definition at line 2531 of file plotting.py.

plotting.PlotOnSideGroup._plots
private

Definition at line 2538 of file plotting.py.

Referenced by plotting.Plotter.appendTable(), plotting.Plotter.clear(), trackingPlots.TrackingSeedingLayerTable.create(), trackingPlots.TrackingSeedingLayerTable.draw(), plotting.Plotter.getPlotFolder(), plotting.Plotter.getPlotFolderNames(), plotting.Plotter.getPlotFolders(), and plotting.Plotter.readDirs().