Example #1
0
 def __init__(self,
              title='',
              xVariable=None,
              yVariable=None,
              zVariable=None,
              tree=None):
     ## Default constructor
     #  @param title           title of the canvas
     #  @param xVariable       Variable object to define the xAxis and the draw command
     #  @param yVariable       Variable object to define the yAxis
     from AtlasStyle import linesColor
     BasicPlot.__init__(self, title, xVariable, yVariable, zVariable)
     self.cutDefinitions = []
     self.defaultTree = tree
     self.cutStyle = linesColor
Example #2
0
 def __init__(self,
              title='DoublePlot',
              xVariable=None,
              yVariableUp=var_Entries,
              yVariableDown=None,
              upperFraction=0.7,
              lowerFraction=0.3):
     BasicPlot.__init__(self, title, xVariable, yVariableUp)
     self.plotUp = BasicPlot(title + '_up', xVariable, yVariableUp)
     self.plotDown = BasicPlot(title + '_down', xVariable, yVariableDown)
     self.plotDown.drawLegend = False
     self.plotDown.showBinWidthY = False
     self.upperFraction = upperFraction
     self.lowerFraction = lowerFraction
     self.legendElements = self.plotUp.legendElements
     self.titles = self.plotUp.titles
     self.plotDown.drawLegend = False
     self.plotDown.drawTitle = False