ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self, name='MyPlots', otherMethods=[]) |
def | protect (self, obj) |
def | plot (self, plotName='', *args) |
def | genPlot (self, what='ALL', code='plot', labels=[], *args) |
Public Attributes | |
name | |
otherMethods | |
rootObjects | |
whatList | |
singleCanvasSize | |
allCanvasSize | |
allCanvasDivs | |
saveAsList | |
gPadSaveAsList | |
PlotLibrary is a base class that can be used to manage a set of plots. Each individual plot should be created as a method of a derived class. Other methods of the derived class that do not generate plots should either have names starting with underscore, or should be declared when calling __init__ of the base class.
Definition at line 77 of file roofit/ROOTUtils.py.
def ROOTUtils.PlotLibrary.__init__ | ( | self, | |
name = 'MyPlots' , |
|||
otherMethods = [] |
|||
) |
Constructor. otherMethods specifies a list of methods of the derived class that are not creating plots and should not be called by plot().
Reimplemented in fitman.Plots.
Definition at line 85 of file roofit/ROOTUtils.py.
def ROOTUtils.PlotLibrary.genPlot | ( | self, | |
what = 'ALL' , |
|||
code = 'plot' , |
|||
labels = [] , |
|||
* | args | ||
) |
Make plots using a general code. genPlot makes either a single plot defined by argument what, or all plots (if what=''). The plots made in the latter case are specified by whatList. A canvas that is subdivided if necessary is created before the plotting code is called.
Definition at line 116 of file roofit/ROOTUtils.py.
def ROOTUtils.PlotLibrary.plot | ( | self, | |
plotName = '' , |
|||
* | args | ||
) |
def ROOTUtils.PlotLibrary.protect | ( | self, | |
obj | |||
) |
Protect ROOT object from garbage collection.
Definition at line 101 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.allCanvasDivs |
Definition at line 97 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.allCanvasSize |
Definition at line 96 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.gPadSaveAsList |
Definition at line 99 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.name |
Definition at line 88 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.otherMethods |
Definition at line 89 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.rootObjects |
Definition at line 91 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.saveAsList |
Definition at line 98 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.singleCanvasSize |
Definition at line 95 of file roofit/ROOTUtils.py.
ROOTUtils.PlotLibrary.whatList |
Definition at line 94 of file roofit/ROOTUtils.py.