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 74 of file python/ROOTUtils.py.
def python.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().
Definition at line 82 of file python/ROOTUtils.py.
def python.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 113 of file python/ROOTUtils.py.
def python.ROOTUtils.PlotLibrary.plot | ( | self, | |
plotName = '' , |
|||
* | args | ||
) |
def python.ROOTUtils.PlotLibrary.protect | ( | self, | |
obj | |||
) |
Protect ROOT object from garbage collection.
Definition at line 98 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.allCanvasDivs |
Definition at line 94 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.allCanvasSize |
Definition at line 93 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.gPadSaveAsList |
Definition at line 96 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.name |
Definition at line 85 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.otherMethods |
Definition at line 86 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.rootObjects |
Definition at line 88 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.saveAsList |
Definition at line 95 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.singleCanvasSize |
Definition at line 92 of file python/ROOTUtils.py.
python.ROOTUtils.PlotLibrary.whatList |
Definition at line 91 of file python/ROOTUtils.py.