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

Constructor & Destructor Documentation

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

Definition at line 2530 of file plotting.py.

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

Member Function Documentation

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

Definition at line 2535 of file plotting.py.

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

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

Definition at line 2538 of file plotting.py.

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

Definition at line 2546 of file plotting.py.

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

Member Data Documentation

plotting.PlotOnSideGroup._plot
private

Definition at line 2532 of file plotting.py.

plotting.PlotOnSideGroup._plots
private

Definition at line 2539 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().