Public Member Functions | |
def | __init__ |
def | create |
def | draw |
Private Member Functions | |
def | _createLegend |
def | _drawSeparate |
def | _save |
Private Attributes | |
_canvas | |
_canvasSingle | |
_name | |
_plots | |
Group of plots, results a TCanvas
Definition at line 566 of file plotting.py.
def plotting.PlotGroup.__init__ | ( | self, | |
name, | |||
plots, | |||
kwargs | |||
) |
Constructor. Arguments: name -- String for name of the TCanvas, used also as the basename of the picture files plots -- List of Plot objects Keyword arguments: legendDx -- Float for moving TLegend in x direction (default None) legendDy -- Float for moving TLegend in y direction (default None) legendDw -- Float for changing TLegend width (default None) legendDh -- Float for changing TLegend height (default None) overrideLegendLabels -- List of strings for legend labels, if given, these are used instead of the ones coming from Plotter (default None)
Definition at line 568 of file plotting.py.
|
private |
Definition at line 707 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), and plotting.PlotGroup.draw().
|
private |
Definition at line 672 of file plotting.py.
References plotting.PlotGroup._canvasSingle, plotting.PlotGroup._createLegend(), plotting.PlotGroup._plots, and plotting.PlotGroup._save().
Referenced by plotting.PlotGroup.draw().
|
private |
Definition at line 720 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, plotting.FakeDuplicate._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, plotting.AggregateBins._name, plotting.AggregateHistos._name, HistoParams< TProfile2D >._name, plotting.Plot._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, and plotting.PlotGroup._name.
Referenced by plotting.PlotGroup._drawSeparate(), and plotting.PlotGroup.draw().
def plotting.PlotGroup.create | ( | self, | |
tdirectories | |||
) |
Create histograms from a list of TDirectories.
Definition at line 616 of file plotting.py.
References plotting.PlotGroup._plots.
def plotting.PlotGroup.draw | ( | self, | |
algo, | |||
legendLabels, | |||
prefix = None , |
|||
separate = False , |
|||
saveFormat = ".pdf" |
|||
) |
Draw the histograms using values for a given algorithm. Arguments: algo -- string for algorithm legendLabels -- List of strings for legend labels (corresponding to the tdirectories in create()) prefix -- Optional string for file name prefix (default None) separate -- Save the plots of a group to separate files instead of a file per group (default False) saveFormat -- String specifying the plot format (default '.pdf')
Definition at line 621 of file plotting.py.
References DQMIO2histo.DQMIO._canvas, plotting.PlotGroup._canvas, plotting.PlotGroup._createLegend(), plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._plots, plotting.PlotGroup._save(), and bookConverter.max.
|
private |
Definition at line 586 of file plotting.py.
Referenced by plotting.PlotGroup.draw().
|
private |
Definition at line 598 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate().
|
private |
Definition at line 582 of file plotting.py.
Referenced by plotting.PlotGroup._save().
|
private |
Definition at line 583 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), plotting.PlotGroup.create(), and plotting.PlotGroup.draw().