![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, name='MyPlots', otherMethods=[]) | |
| protect (self, obj) | |
| plot (self, plotName='', *args) | |
| genPlot (self, what='ALL', code='plot', labels=[], *args) | |
Public Attributes | |
| name = name | |
| list | otherMethods = [] |
| list | rootObjects = [] |
| list | whatList = [] |
| str | singleCanvasSize = 'default' |
| str | allCanvasSize = 'page' |
| tuple | allCanvasDivs = (3,4) |
| list | saveAsList = [] |
| list | 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.
| 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 85 of file roofit/ROOTUtils.py.
| 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.
| ROOTUtils.PlotLibrary.plot | ( | self, | |
| plotName = '', | |||
| * | args ) |
Make one or all (if plotName=='') plots.
Reimplemented in beamspotnt.Plots, and beamspotnt.Plots.
Definition at line 106 of file roofit/ROOTUtils.py.
| ROOTUtils.PlotLibrary.protect | ( | self, | |
| obj ) |
Protect ROOT object from garbage collection.
Definition at line 101 of file roofit/ROOTUtils.py.
| tuple ROOTUtils.PlotLibrary.allCanvasDivs = (3,4) |
Definition at line 97 of file roofit/ROOTUtils.py.
| str ROOTUtils.PlotLibrary.allCanvasSize = 'page' |
Definition at line 96 of file roofit/ROOTUtils.py.
| list ROOTUtils.PlotLibrary.gPadSaveAsList = [] |
Definition at line 99 of file roofit/ROOTUtils.py.
| ROOTUtils.PlotLibrary.name = name |
Definition at line 88 of file roofit/ROOTUtils.py.
| list ROOTUtils.PlotLibrary.otherMethods = [] |
Definition at line 89 of file roofit/ROOTUtils.py.
| list ROOTUtils.PlotLibrary.rootObjects = [] |
Definition at line 91 of file roofit/ROOTUtils.py.
| list ROOTUtils.PlotLibrary.saveAsList = [] |
Definition at line 98 of file roofit/ROOTUtils.py.
| str ROOTUtils.PlotLibrary.singleCanvasSize = 'default' |
Definition at line 95 of file roofit/ROOTUtils.py.
| list ROOTUtils.PlotLibrary.whatList = [] |
Definition at line 94 of file roofit/ROOTUtils.py.